From a2540a1a6728855c561f19912b1baac4213daaf3 Mon Sep 17 00:00:00 2001 From: GlennChia Date: Thu, 20 Oct 2022 03:42:18 +0000 Subject: [PATCH 1/3] fix(connect): contact flow type ForceNew --- internal/service/connect/contact_flow.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/service/connect/contact_flow.go b/internal/service/connect/contact_flow.go index a41b481ca4c..ca83213a10e 100644 --- a/internal/service/connect/contact_flow.go +++ b/internal/service/connect/contact_flow.go @@ -79,6 +79,7 @@ func ResourceContactFlow() *schema.Resource { "type": { Type: schema.TypeString, Optional: true, + ForceNew: true, Default: connect.ContactFlowTypeContactFlow, ValidateFunc: validation.StringInSlice(connect.ContactFlowType_Values(), false), }, From c7550d3b69d167edb00cfe60d493efefe517b2b1 Mon Sep 17 00:00:00 2001 From: GlennChia Date: Thu, 20 Oct 2022 03:44:15 +0000 Subject: [PATCH 2/3] docs(connect): contact flow type ForceNew --- website/docs/r/connect_contact_flow.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/r/connect_contact_flow.html.markdown b/website/docs/r/connect_contact_flow.html.markdown index 2a26164c4a7..a92d5493de4 100644 --- a/website/docs/r/connect_contact_flow.html.markdown +++ b/website/docs/r/connect_contact_flow.html.markdown @@ -98,7 +98,7 @@ The following arguments are supported: * `instance_id` - (Required) Specifies the identifier of the hosting Amazon Connect Instance. * `name` - (Required) Specifies the name of the Contact Flow. * `tags` - (Optional) Tags to apply to the Contact Flow. If configured with a provider [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level. -* `type` - (Optional) Specifies the type of the Contact Flow. Defaults to `CONTACT_FLOW`. Allowed Values are: `CONTACT_FLOW`, `CUSTOMER_QUEUE`, `CUSTOMER_HOLD`, `CUSTOMER_WHISPER`, `AGENT_HOLD`, `AGENT_WHISPER`, `OUTBOUND_WHISPER`, `AGENT_TRANSFER`, `QUEUE_TRANSFER`. +* `type` - (Optional, Forces new resource) Specifies the type of the Contact Flow. Defaults to `CONTACT_FLOW`. Allowed Values are: `CONTACT_FLOW`, `CUSTOMER_QUEUE`, `CUSTOMER_HOLD`, `CUSTOMER_WHISPER`, `AGENT_HOLD`, `AGENT_WHISPER`, `OUTBOUND_WHISPER`, `AGENT_TRANSFER`, `QUEUE_TRANSFER`. ## Attributes Reference From a1e0957eadfea6b23717145bd26e9322cf157971 Mon Sep 17 00:00:00 2001 From: GlennChia Date: Thu, 20 Oct 2022 03:50:16 +0000 Subject: [PATCH 3/3] ci(connect): changelog contact flow type ForceNew --- .changelog/27347.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/27347.txt diff --git a/.changelog/27347.txt b/.changelog/27347.txt new file mode 100644 index 00000000000..16372945432 --- /dev/null +++ b/.changelog/27347.txt @@ -0,0 +1,3 @@ +```release-note:bug +resource/aws_connect_contact_flow: Change `type` to ForceNew +``` \ No newline at end of file