Skip to content

Commit

Permalink
[datadog_downtime_schedule] GA the resource (#2090)
Browse files Browse the repository at this point in the history
* [datadog_downtime_schedule] GA the resource

* [datadog_downtime] Deprecate the resource

* Run make docs
  • Loading branch information
carlmartensen authored Sep 12, 2023
1 parent 4d9aec0 commit eeec314
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion datadog/fwprovider/resource_datadog_downtime_schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (r *DowntimeScheduleResource) Metadata(_ context.Context, request resource.

func (r *DowntimeScheduleResource) Schema(_ context.Context, _ resource.SchemaRequest, response *resource.SchemaResponse) {
response.Schema = schema.Schema{
Description: "Provides a Datadog DowntimeSchedule resource. This can be used to create and manage Datadog downtimes. **NOTE:** Currently in private beta. To request access, contact Support at [email protected].",
Description: "Provides a Datadog DowntimeSchedule resource. This can be used to create and manage Datadog downtimes.",
Attributes: map[string]schema.Attribute{
"display_timezone": schema.StringAttribute{
Optional: true,
Expand Down
11 changes: 6 additions & 5 deletions datadog/resource_datadog_downtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,12 @@ func (d *downtimeChild) GetMuteFirstRecoveryNotification() bool {

func resourceDatadogDowntime() *schema.Resource {
return &schema.Resource{
Description: "Provides a Datadog downtime resource. This can be used to create and manage Datadog downtimes.",
CreateContext: resourceDatadogDowntimeCreate,
ReadContext: resourceDatadogDowntimeRead,
UpdateContext: resourceDatadogDowntimeUpdate,
DeleteContext: resourceDatadogDowntimeDelete,
Description: "This resource is deprecated — use the `datadog_downtime_schedule resource` instead. Provides a Datadog downtime resource. This can be used to create and manage Datadog downtimes.",
DeprecationMessage: "This resource is deprecated — use the datadog_downtime_schedule resource instead.",
CreateContext: resourceDatadogDowntimeCreate,
ReadContext: resourceDatadogDowntimeRead,
UpdateContext: resourceDatadogDowntimeUpdate,
DeleteContext: resourceDatadogDowntimeDelete,
Importer: &schema.ResourceImporter{
StateContext: schema.ImportStatePassthroughContext,
},
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/downtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "datadog_downtime Resource - terraform-provider-datadog"
subcategory: ""
description: |-
Provides a Datadog downtime resource. This can be used to create and manage Datadog downtimes.
This resource is deprecated — use the datadog_downtime_schedule resource instead. Provides a Datadog downtime resource. This can be used to create and manage Datadog downtimes.
---

# datadog_downtime (Resource)

Provides a Datadog downtime resource. This can be used to create and manage Datadog downtimes.
This resource is deprecated — use the `datadog_downtime_schedule resource` instead. Provides a Datadog downtime resource. This can be used to create and manage Datadog downtimes.

## Example Usage

Expand Down
4 changes: 2 additions & 2 deletions docs/resources/downtime_schedule.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "datadog_downtime_schedule Resource - terraform-provider-datadog"
subcategory: ""
description: |-
Provides a Datadog DowntimeSchedule resource. This can be used to create and manage Datadog downtimes. NOTE: Currently in private beta. To request access, contact Support at [email protected].
Provides a Datadog DowntimeSchedule resource. This can be used to create and manage Datadog downtimes.
---

# datadog_downtime_schedule (Resource)

Provides a Datadog DowntimeSchedule resource. This can be used to create and manage Datadog downtimes. **NOTE:** Currently in private beta. To request access, contact Support at [email protected].
Provides a Datadog DowntimeSchedule resource. This can be used to create and manage Datadog downtimes.

## Example Usage

Expand Down

0 comments on commit eeec314

Please sign in to comment.