Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[datadog_downtime_schedule] GA the resource #2090

Merged
merged 3 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading