From 65e4030597dc286e4c4f562925a7aab31d940da0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Antonio=20Reyes?= Date: Wed, 29 Nov 2023 10:58:41 -0300 Subject: [PATCH] deprecate `integration_key` attr mutation --- pagerduty/resource_pagerduty_service_integration.go | 7 ++++--- website/docs/r/service_integration.html.markdown | 3 +-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pagerduty/resource_pagerduty_service_integration.go b/pagerduty/resource_pagerduty_service_integration.go index f7142ff21..ce2e169b2 100644 --- a/pagerduty/resource_pagerduty_service_integration.go +++ b/pagerduty/resource_pagerduty_service_integration.go @@ -65,9 +65,10 @@ func resourcePagerDutyServiceIntegration() *schema.Resource { Computed: true, }, "integration_key": { - Type: schema.TypeString, - Optional: true, - Computed: true, + Type: schema.TypeString, + Optional: true, + Computed: true, + Deprecated: "Assignments or updates to this attribute are not supported by Service Integrations API, it is a read-only value. Input support will be dropped in upcomming major release", }, "integration_email": { Type: schema.TypeString, diff --git a/website/docs/r/service_integration.html.markdown b/website/docs/r/service_integration.html.markdown index c2fa60d03..976eef603 100644 --- a/website/docs/r/service_integration.html.markdown +++ b/website/docs/r/service_integration.html.markdown @@ -49,7 +49,6 @@ resource "pagerduty_service_integration" "example" { resource "pagerduty_service_integration" "apiv2" { name = "API V2" type = "events_api_v2_inbound_integration" - integration_key = "12345678910testtesttesttesttes" service = pagerduty_service.example.id } @@ -166,7 +165,7 @@ The following arguments are supported: To integrate with a **vendor** (e.g. Datadog or Amazon Cloudwatch) use the `vendor` field instead. * `vendor` - (Optional) The ID of the vendor the integration should integrate with (e.g. Datadog or Amazon Cloudwatch). - * `integration_key` - (Optional) This is the unique key used to route events to this integration when received via the PagerDuty Events API. + * `integration_key` - (Optional) (Deprecated) This is the unique key used to route events to this integration when received via the PagerDuty Events API. * `integration_email` - (Optional) This is the unique fully-qualified email address used for routing emails to this integration for processing. * `email_incident_creation` - (Optional) Behaviour of Email Management feature ([explained in PD docs](https://support.pagerduty.com/docs/email-management-filters-and-rules#control-when-a-new-incident-or-alert-is-triggered)). Can be `on_new_email`, `on_new_email_subject`, `only_if_no_open_incidents` or `use_rules`.