From 0408d1035fb3bb2784da94f4e9b2c3b59e99fcc1 Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Fri, 10 Mar 2023 17:09:46 +0000 Subject: [PATCH] Updating default accelerator.state field behavior in Data Fusion Instance (#7434) Making suggested default behavior functionality updates in previous accelerators PR. Signed-off-by: Modular Magician --- .changelog/7434.txt | 2 ++ google-beta/resource_data_fusion_instance.go | 5 ++--- website/docs/r/data_fusion_instance.html.markdown | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 .changelog/7434.txt diff --git a/.changelog/7434.txt b/.changelog/7434.txt new file mode 100644 index 0000000000..e4e22fc1e4 --- /dev/null +++ b/.changelog/7434.txt @@ -0,0 +1,2 @@ +```release-note:none +``` diff --git a/google-beta/resource_data_fusion_instance.go b/google-beta/resource_data_fusion_instance.go index 9ce315ed62..2a526f4647 100644 --- a/google-beta/resource_data_fusion_instance.go +++ b/google-beta/resource_data_fusion_instance.go @@ -103,9 +103,8 @@ Users will need to either manually update their state file to include these diff }, "state": { Type: schema.TypeString, - Computed: true, - Optional: true, - ValidateFunc: validateEnum([]string{"ENABLED", "DISABLED", ""}), + Required: true, + ValidateFunc: validateEnum([]string{"ENABLED", "DISABLED"}), Description: `The type of an accelator for a CDF instance. Possible values: ["ENABLED", "DISABLED"]`, }, }, diff --git a/website/docs/r/data_fusion_instance.html.markdown b/website/docs/r/data_fusion_instance.html.markdown index 2a491f2a60..5161ef9215 100644 --- a/website/docs/r/data_fusion_instance.html.markdown +++ b/website/docs/r/data_fusion_instance.html.markdown @@ -336,7 +336,7 @@ The following arguments are supported: Possible values are `CDC`, `HEALTHCARE`, and `CCAI_INSIGHTS`. * `state` - - (Optional) + (Required) The type of an accelator for a CDF instance. Possible values are `ENABLED` and `DISABLED`.