Skip to content

Commit

Permalink
[datadog_integration_gcp] Mark resource as deprecated (#1965)
Browse files Browse the repository at this point in the history
* mark resource as deprecated

* update documentation

* address comment

* wrap resource name in backticks

---------

Co-authored-by: Kevin Zou <[email protected]>
  • Loading branch information
joshhuie and nkzou authored Jun 13, 2023
1 parent ef657c8 commit 1b22787
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions datadog/resource_datadog_integration_gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ var integrationGcpMutex = sync.Mutex{}

func resourceDatadogIntegrationGcp() *schema.Resource {
return &schema.Resource{
Description: "Provides a Datadog - Google Cloud Platform integration resource. This can be used to create and manage Datadog - Google Cloud Platform integration.",
CreateContext: resourceDatadogIntegrationGcpCreate,
ReadContext: resourceDatadogIntegrationGcpRead,
UpdateContext: resourceDatadogIntegrationGcpUpdate,
DeleteContext: resourceDatadogIntegrationGcpDelete,
Description: "This resource is deprecated — use the `datadog_integration_gcp_sts resource` instead. Provides a Datadog - Google Cloud Platform integration resource. This can be used to create and manage Datadog - Google Cloud Platform integration.",
DeprecationMessage: "This resource is deprecated — use the datadog_integration_gcp_sts resource instead.",
CreateContext: resourceDatadogIntegrationGcpCreate,
ReadContext: resourceDatadogIntegrationGcpRead,
UpdateContext: resourceDatadogIntegrationGcpUpdate,
DeleteContext: resourceDatadogIntegrationGcpDelete,
Importer: &schema.ResourceImporter{
StateContext: schema.ImportStatePassthroughContext,
},
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/integration_gcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "datadog_integration_gcp Resource - terraform-provider-datadog"
subcategory: ""
description: |-
Provides a Datadog - Google Cloud Platform integration resource. This can be used to create and manage Datadog - Google Cloud Platform integration.
This resource is deprecated — use the datadog_integration_gcp_sts resource instead. Provides a Datadog - Google Cloud Platform integration resource. This can be used to create and manage Datadog - Google Cloud Platform integration.
---

# datadog_integration_gcp (Resource)

Provides a Datadog - Google Cloud Platform integration resource. This can be used to create and manage Datadog - Google Cloud Platform integration.
This resource is deprecated — use the `datadog_integration_gcp_sts resource` instead. Provides a Datadog - Google Cloud Platform integration resource. This can be used to create and manage Datadog - Google Cloud Platform integration.

## Example Usage

Expand Down

0 comments on commit 1b22787

Please sign in to comment.