From 2478cd976863138222ba8c9da78e042c5bfb4d3a Mon Sep 17 00:00:00 2001 From: Jiawei Tao Date: Thu, 12 Dec 2024 16:32:07 +0800 Subject: [PATCH] hdinsight: mark script_actions as force_new --- internal/services/hdinsight/schema.go | 1 + website/docs/r/hdinsight_hadoop_cluster.html.markdown | 8 ++++---- website/docs/r/hdinsight_hbase_cluster.html.markdown | 6 +++--- .../r/hdinsight_interactive_query_cluster.html.markdown | 6 +++--- website/docs/r/hdinsight_kafka_cluster.html.markdown | 8 ++++---- website/docs/r/hdinsight_spark_cluster.html.markdown | 6 +++--- 6 files changed, 18 insertions(+), 17 deletions(-) diff --git a/internal/services/hdinsight/schema.go b/internal/services/hdinsight/schema.go index 3c70268ea7cb..530ee7e22d20 100644 --- a/internal/services/hdinsight/schema.go +++ b/internal/services/hdinsight/schema.go @@ -344,6 +344,7 @@ func SchemaHDInsightsScriptActions() *pluginsdk.Schema { return &pluginsdk.Schema{ Type: pluginsdk.TypeList, Optional: true, + ForceNew: true, MinItems: 1, Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ diff --git a/website/docs/r/hdinsight_hadoop_cluster.html.markdown b/website/docs/r/hdinsight_hadoop_cluster.html.markdown index 8202ed46c7fe..d1aa906dc86a 100644 --- a/website/docs/r/hdinsight_hadoop_cluster.html.markdown +++ b/website/docs/r/hdinsight_hadoop_cluster.html.markdown @@ -161,7 +161,7 @@ A `head_node` block supports the following: * `virtual_network_id` - (Optional) The ID of the Virtual Network where the Head Nodes should be provisioned within. Changing this forces a new resource to be created. -* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined below. +* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined below. Changing this forces a new resource to be created. --- @@ -283,7 +283,7 @@ A `worker_node` block supports the following: * `autoscale` - (Optional) A `autoscale` block as defined below. -* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined above. +* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined above. Changing this forces a new resource to be created. --- @@ -317,7 +317,7 @@ A `zookeeper_node` block supports the following: * `virtual_network_id` - (Optional) The ID of the Virtual Network where the Zookeeper Nodes should be provisioned within. Changing this forces a new resource to be created. -* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined above. +* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined above. Changing this forces a new resource to be created. --- @@ -331,7 +331,7 @@ A `edge_node` block supports the following: * `https_endpoints` - (Optional) The HTTPS Connectivity Endpoint for this HDInsight Hadoop Cluster. One or more `https_endpoints` blocks as defined below. -* `uninstall_script_actions` - (Optional) A `uninstall_script_actions` block as defined below. +* `uninstall_script_actions` - (Optional) A `uninstall_script_actions` block as defined below. Changing this forces a new resource to be created. --- diff --git a/website/docs/r/hdinsight_hbase_cluster.html.markdown b/website/docs/r/hdinsight_hbase_cluster.html.markdown index 839815673ab6..e9cecd9d5cf3 100644 --- a/website/docs/r/hdinsight_hbase_cluster.html.markdown +++ b/website/docs/r/hdinsight_hbase_cluster.html.markdown @@ -161,7 +161,7 @@ A `head_node` block supports the following: * `virtual_network_id` - (Optional) The ID of the Virtual Network where the Head Nodes should be provisioned within. Changing this forces a new resource to be created. -* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined below. +* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined below. Changing this forces a new resource to be created. --- @@ -261,7 +261,7 @@ A `private_link_service_connection` block supports the following: A `worker_node` block supports the following: -* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined above. +* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined above. Changing this forces a new resource to be created. * `username` - (Required) The Username of the local administrator for the Worker Nodes. Changing this forces a new resource to be created. @@ -299,7 +299,7 @@ A `disk_encryption` block supports the following: A `zookeeper_node` block supports the following: -* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined above. +* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined above. Changing this forces a new resource to be created. * `username` - (Required) The Username of the local administrator for the Zookeeper Nodes. Changing this forces a new resource to be created. diff --git a/website/docs/r/hdinsight_interactive_query_cluster.html.markdown b/website/docs/r/hdinsight_interactive_query_cluster.html.markdown index d9a76135c498..03842ad52e1b 100644 --- a/website/docs/r/hdinsight_interactive_query_cluster.html.markdown +++ b/website/docs/r/hdinsight_interactive_query_cluster.html.markdown @@ -165,7 +165,7 @@ A `head_node` block supports the following: * `virtual_network_id` - (Optional) The ID of the Virtual Network where the Head Nodes should be provisioned within. Changing this forces a new resource to be created. -* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined below. +* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined below. Changing this forces a new resource to be created. --- @@ -265,7 +265,7 @@ A `private_link_service_connection` block supports the following: A `worker_node` block supports the following: -* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined above. +* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined above. Changing this forces a new resource to be created. * `username` - (Required) The Username of the local administrator for the Worker Nodes. Changing this forces a new resource to be created. @@ -305,7 +305,7 @@ A `disk_encryption` block supports the following: A `zookeeper_node` block supports the following: -* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined above. +* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined above. Changing this forces a new resource to be created. * `username` - (Required) The Username of the local administrator for the Zookeeper Nodes. Changing this forces a new resource to be created. diff --git a/website/docs/r/hdinsight_kafka_cluster.html.markdown b/website/docs/r/hdinsight_kafka_cluster.html.markdown index dbd24789e96d..9fad752a5e7f 100644 --- a/website/docs/r/hdinsight_kafka_cluster.html.markdown +++ b/website/docs/r/hdinsight_kafka_cluster.html.markdown @@ -158,7 +158,7 @@ A `compute_isolation` block supports the following: A `head_node` block supports the following: -* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined below. +* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined below. Changing this forces a new resource to be created. * `username` - (Required) The Username of the local administrator for the Head Nodes. Changing this forces a new resource to be created. @@ -260,7 +260,7 @@ A `private_link_service_connection` block supports the following: A `worker_node` block supports the following: -* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined below. +* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined below. Changing this forces a new resource to be created. * `number_of_disks_per_node` - (Required) The number of Data Disks which should be assigned to each Worker Node, which can be between 1 and 8. Changing this forces a new resource to be created. @@ -286,7 +286,7 @@ A `worker_node` block supports the following: A `zookeeper_node` block supports the following: -* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined below. +* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined below. Changing this forces a new resource to be created. * `username` - (Required) The Username of the local administrator for the Zookeeper Nodes. Changing this forces a new resource to be created. @@ -320,7 +320,7 @@ A `disk_encryption` block supports the following: A `kafka_management_node` block supports the following: -* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined below. +* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined below. Changing this forces a new resource to be created. * `username` - The Username of the local administrator for the Kafka Management Nodes. diff --git a/website/docs/r/hdinsight_spark_cluster.html.markdown b/website/docs/r/hdinsight_spark_cluster.html.markdown index b43ebe8ea21a..36036d0eba69 100644 --- a/website/docs/r/hdinsight_spark_cluster.html.markdown +++ b/website/docs/r/hdinsight_spark_cluster.html.markdown @@ -163,7 +163,7 @@ A `head_node` block supports the following: * `virtual_network_id` - (Optional) The ID of the Virtual Network where the Head Nodes should be provisioned within. Changing this forces a new resource to be created. -* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined below. +* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined below. Changing this forces a new resource to be created. --- @@ -263,7 +263,7 @@ A `private_link_service_connection` block supports the following: A `worker_node` block supports the following: -* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined above. +* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined above. Changing this forces a new resource to be created. * `username` - (Required) The Username of the local administrator for the Worker Nodes. Changing this forces a new resource to be created. @@ -289,7 +289,7 @@ A `worker_node` block supports the following: A `zookeeper_node` block supports the following: -* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined above. +* `script_actions` - (Optional) The script action which will run on the cluster. One or more `script_actions` blocks as defined above. Changing this forces a new resource to be created. * `username` - (Required) The Username of the local administrator for the Zookeeper Nodes. Changing this forces a new resource to be created.