diff --git a/docs/resources/accessanalyzer_analyzer.md b/docs/resources/accessanalyzer_analyzer.md index 24b5b43ae8..4a5296fcc7 100644 --- a/docs/resources/accessanalyzer_analyzer.md +++ b/docs/resources/accessanalyzer_analyzer.md @@ -81,7 +81,7 @@ Optional: ### Nested Schema for `archive_rules` -Required: +Optional: - `filter` (Attributes List) (see [below for nested schema](#nestedatt--archive_rules--filter)) - `rule_name` (String) The archive rule name @@ -89,23 +89,20 @@ Required: ### Nested Schema for `archive_rules.filter` -Required: - -- `property` (String) - Optional: - `contains` (List of String) - `eq` (List of String) - `exists` (Boolean) - `neq` (List of String) +- `property` (String) ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/acmpca_certificate.md b/docs/resources/acmpca_certificate.md index 8c805a5b5c..a3ce36448a 100644 --- a/docs/resources/acmpca_certificate.md +++ b/docs/resources/acmpca_certificate.md @@ -103,18 +103,15 @@ Optional: ### Nested Schema for `api_passthrough.extensions.certificate_policies` -Required: - -- `cert_policy_id` (String) Specifies the object identifier (OID) of the certificate policy under which the certificate was issued. For more information, see NIST's definition of [Object Identifier (OID)](https://docs.aws.amazon.com/https://csrc.nist.gov/glossary/term/Object_Identifier). - Optional: +- `cert_policy_id` (String) Specifies the object identifier (OID) of the certificate policy under which the certificate was issued. For more information, see NIST's definition of [Object Identifier (OID)](https://docs.aws.amazon.com/https://csrc.nist.gov/glossary/term/Object_Identifier). - `policy_qualifiers` (Attributes List) Modifies the given ``CertPolicyId`` with a qualifier. AWS Private CA supports the certification practice statement (CPS) qualifier. (see [below for nested schema](#nestedatt--api_passthrough--extensions--certificate_policies--policy_qualifiers)) ### Nested Schema for `api_passthrough.extensions.certificate_policies.policy_qualifiers` -Required: +Optional: - `policy_qualifier_id` (String) Identifies the qualifier modifying a ``CertPolicyId``. - `qualifier` (Attributes) Defines the qualifier type. AWS Private CA supports the use of a URI for a CPS qualifier in this field. (see [below for nested schema](#nestedatt--api_passthrough--extensions--certificate_policies--policy_qualifiers--qualifier)) @@ -122,7 +119,7 @@ Required: ### Nested Schema for `api_passthrough.extensions.certificate_policies.policy_qualifiers.qualifier` -Required: +Optional: - `cps_uri` (String) Contains a pointer to a certification practice statement (CPS) published by the CA. @@ -132,14 +129,11 @@ Required: ### Nested Schema for `api_passthrough.extensions.custom_extensions` -Required: - -- `object_identifier` (String) Specifies the object identifier (OID) of the X.509 extension. For more information, see the [Global OID reference database.](https://docs.aws.amazon.com/https://oidref.com/2.5.29) -- `value` (String) Specifies the base64-encoded value of the X.509 extension. - Optional: - `critical` (Boolean) Specifies the critical flag of the X.509 extension. +- `object_identifier` (String) Specifies the object identifier (OID) of the X.509 extension. For more information, see the [Global OID reference database.](https://docs.aws.amazon.com/https://oidref.com/2.5.29) +- `value` (String) Specifies the base64-encoded value of the X.509 extension. @@ -207,7 +201,7 @@ Optional: ### Nested Schema for `api_passthrough.extensions.subject_alternative_names.directory_name.custom_attributes` -Required: +Optional: - `object_identifier` (String) Specifies the object identifier (OID) of the attribute type of the relative distinguished name (RDN). - `value` (String) Specifies the attribute value of relative distinguished name (RDN). @@ -217,7 +211,7 @@ Required: ### Nested Schema for `api_passthrough.extensions.subject_alternative_names.edi_party_name` -Required: +Optional: - `name_assigner` (String) Specifies the name assigner. - `party_name` (String) Specifies the party name. @@ -226,7 +220,7 @@ Required: ### Nested Schema for `api_passthrough.extensions.subject_alternative_names.other_name` -Required: +Optional: - `type_id` (String) Specifies an OID. - `value` (String) Specifies an OID value. @@ -260,7 +254,7 @@ Optional: ### Nested Schema for `api_passthrough.subject.custom_attributes` -Required: +Optional: - `object_identifier` (String) Specifies the object identifier (OID) of the attribute type of the relative distinguished name (RDN). - `value` (String) Specifies the attribute value of relative distinguished name (RDN). @@ -271,7 +265,7 @@ Required: ### Nested Schema for `validity_not_before` -Required: +Optional: - `type` (String) Specifies whether the ``Value`` parameter represents days, months, or years. - `value` (Number) A long integer interpreted according to the value of ``Type``, below. diff --git a/docs/resources/acmpca_certificate_authority.md b/docs/resources/acmpca_certificate_authority.md index 106209b9b0..508f41c7f3 100644 --- a/docs/resources/acmpca_certificate_authority.md +++ b/docs/resources/acmpca_certificate_authority.md @@ -149,7 +149,7 @@ Optional: ### Nested Schema for `subject.custom_attributes` -Required: +Optional: - `object_identifier` (String) String that contains X.509 ObjectIdentifier information. - `value` (String) @@ -183,7 +183,7 @@ Optional: ### Nested Schema for `csr_extensions.subject_information_access` -Required: +Optional: - `access_location` (Attributes) Structure that contains X.509 GeneralName information. Assign one and ONLY one field. (see [below for nested schema](#nestedatt--csr_extensions--subject_information_access--access_location)) - `access_method` (Attributes) Structure that contains X.509 AccessMethod information. Assign one and ONLY one field. (see [below for nested schema](#nestedatt--csr_extensions--subject_information_access--access_method)) @@ -226,7 +226,7 @@ Optional: ### Nested Schema for `csr_extensions.subject_information_access.access_location.directory_name.custom_attributes` -Required: +Optional: - `object_identifier` (String) String that contains X.509 ObjectIdentifier information. - `value` (String) @@ -236,19 +236,16 @@ Required: ### Nested Schema for `csr_extensions.subject_information_access.access_location.edi_party_name` -Required: - -- `party_name` (String) - Optional: - `name_assigner` (String) +- `party_name` (String) ### Nested Schema for `csr_extensions.subject_information_access.access_location.other_name` -Required: +Optional: - `type_id` (String) String that contains X.509 ObjectIdentifier information. - `value` (String) @@ -277,14 +274,11 @@ Optional: ### Nested Schema for `revocation_configuration.crl_configuration` -Required: - -- `enabled` (Boolean) - Optional: - `crl_distribution_point_extension_configuration` (Attributes) Configures the default behavior of the CRL Distribution Point extension for certificates issued by your certificate authority (see [below for nested schema](#nestedatt--revocation_configuration--crl_configuration--crl_distribution_point_extension_configuration)) - `custom_cname` (String) +- `enabled` (Boolean) - `expiration_in_days` (Number) - `s3_bucket_name` (String) - `s3_object_acl` (String) @@ -292,7 +286,7 @@ Optional: ### Nested Schema for `revocation_configuration.crl_configuration.crl_distribution_point_extension_configuration` -Required: +Optional: - `omit_extension` (Boolean) @@ -301,12 +295,9 @@ Required: ### Nested Schema for `revocation_configuration.ocsp_configuration` -Required: - -- `enabled` (Boolean) - Optional: +- `enabled` (Boolean) - `ocsp_custom_cname` (String) @@ -314,12 +305,9 @@ Optional: ### Nested Schema for `tags` -Required: - -- `key` (String) - Optional: +- `key` (String) - `value` (String) ## Import diff --git a/docs/resources/amplify_app.md b/docs/resources/amplify_app.md index d6667afb18..938786eece 100644 --- a/docs/resources/amplify_app.md +++ b/docs/resources/amplify_app.md @@ -226,7 +226,7 @@ Optional: ### Nested Schema for `auto_branch_creation_config.environment_variables` -Required: +Optional: - `name` (String) - `value` (String) @@ -254,21 +254,18 @@ Optional: ### Nested Schema for `custom_rules` -Required: - -- `source` (String) -- `target` (String) - Optional: - `condition` (String) +- `source` (String) - `status` (String) +- `target` (String) ### Nested Schema for `environment_variables` -Required: +Optional: - `name` (String) - `value` (String) @@ -277,7 +274,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/amplify_branch.md b/docs/resources/amplify_branch.md index f187304213..fb71021021 100644 --- a/docs/resources/amplify_branch.md +++ b/docs/resources/amplify_branch.md @@ -142,20 +142,17 @@ Optional: ### Nested Schema for `basic_auth_config` -Required: - -- `password` (String) -- `username` (String) - Optional: - `enable_basic_auth` (Boolean) +- `password` (String) +- `username` (String) ### Nested Schema for `environment_variables` -Required: +Optional: - `name` (String) - `value` (String) @@ -164,7 +161,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/apigateway_api_key.md b/docs/resources/apigateway_api_key.md index 0fe77bedfc..38a91209b2 100644 --- a/docs/resources/apigateway_api_key.md +++ b/docs/resources/apigateway_api_key.md @@ -56,7 +56,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/apigateway_client_certificate.md b/docs/resources/apigateway_client_certificate.md index 9ff66e0db4..337ffce49e 100644 --- a/docs/resources/apigateway_client_certificate.md +++ b/docs/resources/apigateway_client_certificate.md @@ -41,7 +41,7 @@ resource "awscc_apigateway_client_certificate" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/apigateway_deployment.md b/docs/resources/apigateway_deployment.md index 42482e0e1c..c8f6456385 100644 --- a/docs/resources/apigateway_deployment.md +++ b/docs/resources/apigateway_deployment.md @@ -142,7 +142,7 @@ Optional: ### Nested Schema for `stage_description.tags` -Required: +Optional: - `key` (String) The key name of the tag - `value` (String) The value for the tag diff --git a/docs/resources/apigateway_method.md b/docs/resources/apigateway_method.md index 90a3beaca2..db8f3582d0 100644 --- a/docs/resources/apigateway_method.md +++ b/docs/resources/apigateway_method.md @@ -149,11 +149,6 @@ resource "awscc_apigateway_method" "terraform_apigateway_method" { ### Nested Schema for `integration` -Required: - -- `type` (String) Specifies an API method integration type. The valid value is one of the following: - For the HTTP and HTTP proxy integrations, each integration can specify a protocol (``http/https``), port and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or HTTP proxy integration with a ``connectionType`` of ``VPC_LINK`` is referred to as a private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC. - Optional: - `cache_key_parameters` (List of String) A list of request parameters whose values API Gateway caches. To be valid values for ``cacheKeyParameters``, these parameters must also be specified for Method ``requestParameters``. @@ -169,16 +164,14 @@ Optional: - `request_parameters` (Map of String) A key-value map specifying request parameters that are passed from the method request to the back end. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the back end. The method request parameter value must match the pattern of ``method.request.{location}.{name}``, where ``location`` is ``querystring``, ``path``, or ``header`` and ``name`` must be a valid and unique method request parameter name. - `request_templates` (Map of String) Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value. - `timeout_in_millis` (Number) Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds. +- `type` (String) Specifies an API method integration type. The valid value is one of the following: + For the HTTP and HTTP proxy integrations, each integration can specify a protocol (``http/https``), port and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or HTTP proxy integration with a ``connectionType`` of ``VPC_LINK`` is referred to as a private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC. - `uri` (String) Specifies Uniform Resource Identifier (URI) of the integration endpoint. For ``HTTP`` or ``HTTP_PROXY`` integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification for standard integrations. If ``connectionType`` is ``VPC_LINK`` specify the Network Load Balancer DNS name. For ``AWS`` or ``AWS_PROXY`` integrations, the URI is of the form ``arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}``. Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated AWS service (e.g., s3); and {subdomain} is a designated subdomain supported by certain AWS service for fast host-name lookup. action can be used for an AWS service action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path can be used for an AWS service path-based API. The ensuing service_api refers to the path to an AWS service resource, including the region of the integrated AWS service, if applicable. For example, for integration with the S3 API of GetObject, the uri can be either ``arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key}`` or ``arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}`` ### Nested Schema for `integration.integration_responses` -Required: - -- `status_code` (String) Specifies the status code that is used to map the integration response to an existing MethodResponse. - Optional: - `content_handling` (String) Specifies how to handle response payload content type conversions. Supported values are ``CONVERT_TO_BINARY`` and ``CONVERT_TO_TEXT``, with the following behaviors: @@ -186,20 +179,18 @@ Optional: - `response_parameters` (Map of String) A key-value map specifying response parameters that are passed to the method response from the back end. The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of ``method.response.header.{name}``, where ``name`` is a valid and unique header name. The mapped non-static value must match the pattern of ``integration.response.header.{name}`` or ``integration.response.body.{JSON-expression}``, where ``name`` is a valid and unique response header name and ``JSON-expression`` is a valid JSON expression without the ``$`` prefix. - `response_templates` (Map of String) Specifies the templates used to transform the integration response body. Response templates are represented as a key/value map, with a content-type as the key and a template as the value. - `selection_pattern` (String) Specifies the regular expression (regex) pattern used to choose an integration response based on the response from the back end. For example, if the success response returns nothing and the error response returns some string, you could use the ``.+`` regex to match error response. However, make sure that the error response does not contain any newline (``\n``) character in such cases. If the back end is an LAMlong function, the LAMlong function error header is matched. For all other HTTP and AWS back ends, the HTTP status code is matched. +- `status_code` (String) Specifies the status code that is used to map the integration response to an existing MethodResponse. ### Nested Schema for `method_responses` -Required: - -- `status_code` (String) The method response's status code. - Optional: - `response_models` (Map of String) Specifies the Model resources used for the response's content-type. Response models are represented as a key/value map, with a content-type as the key and a Model name as the value. - `response_parameters` (Map of Boolean) A key-value map specifying required or optional response parameters that API Gateway can send back to the caller. A key defines a method response header and the value specifies whether the associated method response header is required or not. The expression of the key must match the pattern ``method.response.header.{name}``, where ``name`` is a valid and unique header name. API Gateway passes certain integration response data to the method response headers specified here according to the mapping you prescribe in the API's IntegrationResponse. The integration response data that can be mapped include an integration response header expressed in ``integration.response.header.{name}``, a static value enclosed within a pair of single quotes (e.g., ``'application/json'``), or a JSON expression from the back-end response payload in the form of ``integration.response.body.{JSON-expression}``, where ``JSON-expression`` is a valid JSON expression without the ``$`` prefix.) +- `status_code` (String) The method response's status code. ## Import diff --git a/docs/resources/apigateway_rest_api.md b/docs/resources/apigateway_rest_api.md index 9a29f9b60f..cb778a3f44 100644 --- a/docs/resources/apigateway_rest_api.md +++ b/docs/resources/apigateway_rest_api.md @@ -152,7 +152,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/apigateway_stage.md b/docs/resources/apigateway_stage.md index 27dfc56da0..fd449af3d4 100644 --- a/docs/resources/apigateway_stage.md +++ b/docs/resources/apigateway_stage.md @@ -141,7 +141,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. diff --git a/docs/resources/apigateway_usage_plan.md b/docs/resources/apigateway_usage_plan.md index 0c030dc8fd..8ca99d9462 100644 --- a/docs/resources/apigateway_usage_plan.md +++ b/docs/resources/apigateway_usage_plan.md @@ -126,7 +126,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/apigateway_vpc_link.md b/docs/resources/apigateway_vpc_link.md index ddc7ddd2c6..9f93777d22 100644 --- a/docs/resources/apigateway_vpc_link.md +++ b/docs/resources/apigateway_vpc_link.md @@ -53,7 +53,7 @@ resource "awscc_elasticloadbalancingv2_load_balancer" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/appconfig_application.md b/docs/resources/appconfig_application.md index cebb04ff43..8a84496e5f 100644 --- a/docs/resources/appconfig_application.md +++ b/docs/resources/appconfig_application.md @@ -43,7 +43,7 @@ resource "awscc_appconfig_application" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key-value string map. The valid character set is [a-zA-Z1-9 +-=._:/-]. The tag key can be up to 128 characters and must not start with aws:. - `value` (String) The tag value can be up to 256 characters. diff --git a/docs/resources/appconfig_environment.md b/docs/resources/appconfig_environment.md index ee09ec5960..6fc0a4aaba 100644 --- a/docs/resources/appconfig_environment.md +++ b/docs/resources/appconfig_environment.md @@ -47,19 +47,16 @@ resource "awscc_appconfig_environment" "example" { ### Nested Schema for `monitors` -Required: - -- `alarm_arn` (String) Amazon Resource Name (ARN) of the Amazon CloudWatch alarm. - Optional: +- `alarm_arn` (String) Amazon Resource Name (ARN) of the Amazon CloudWatch alarm. - `alarm_role_arn` (String) ARN of an AWS Identity and Access Management (IAM) role for AWS AppConfig to monitor AlarmArn. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key-value string map. The valid character set is [a-zA-Z1-9+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. - `value` (String) The tag value can be up to 256 characters. diff --git a/docs/resources/appconfig_extension_association.md b/docs/resources/appconfig_extension_association.md index 15ad832712..5f8f4a5f51 100644 --- a/docs/resources/appconfig_extension_association.md +++ b/docs/resources/appconfig_extension_association.md @@ -34,7 +34,7 @@ An example resource schema demonstrating some basic constructs and validation ru ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/appflow_connector.md b/docs/resources/appflow_connector.md index 6f6c08e3c0..5cb02b21c0 100644 --- a/docs/resources/appflow_connector.md +++ b/docs/resources/appflow_connector.md @@ -40,7 +40,7 @@ Optional: ### Nested Schema for `connector_provisioning_config.lambda` -Required: +Optional: - `lambda_arn` (String) Lambda ARN of the connector being registered. diff --git a/docs/resources/appflow_connector_profile.md b/docs/resources/appflow_connector_profile.md index cb6ae10e3d..6ab1f04def 100644 --- a/docs/resources/appflow_connector_profile.md +++ b/docs/resources/appflow_connector_profile.md @@ -68,7 +68,7 @@ Optional: ### Nested Schema for `connector_profile_config.connector_profile_credentials.amplitude` -Required: +Optional: - `api_key` (String) A unique alphanumeric identi?er used to authenticate a user, developer, or calling program to your API. - `secret_key` (String) @@ -77,13 +77,10 @@ Required: ### Nested Schema for `connector_profile_config.connector_profile_credentials.custom_connector` -Required: - -- `authentication_type` (String) - Optional: - `api_key` (Attributes) (see [below for nested schema](#nestedatt--connector_profile_config--connector_profile_credentials--custom_connector--api_key)) +- `authentication_type` (String) - `basic` (Attributes) (see [below for nested schema](#nestedatt--connector_profile_config--connector_profile_credentials--custom_connector--basic)) - `custom` (Attributes) (see [below for nested schema](#nestedatt--connector_profile_config--connector_profile_credentials--custom_connector--custom)) - `oauth_2` (Attributes) (see [below for nested schema](#nestedatt--connector_profile_config--connector_profile_credentials--custom_connector--oauth_2)) @@ -91,19 +88,16 @@ Optional: ### Nested Schema for `connector_profile_config.connector_profile_credentials.custom_connector.api_key` -Required: - -- `api_key` (String) - Optional: +- `api_key` (String) - `api_secret_key` (String) ### Nested Schema for `connector_profile_config.connector_profile_credentials.custom_connector.basic` -Required: +Optional: - `password` (String) - `username` (String) @@ -112,13 +106,10 @@ Required: ### Nested Schema for `connector_profile_config.connector_profile_credentials.custom_connector.custom` -Required: - -- `custom_authentication_type` (String) - Optional: - `credentials_map` (Map of String) A map for properties for custom authentication. +- `custom_authentication_type` (String) @@ -147,7 +138,7 @@ granted. ### Nested Schema for `connector_profile_config.connector_profile_credentials.datadog` -Required: +Optional: - `api_key` (String) A unique alphanumeric identi?er used to authenticate a user, developer, or calling program to your API. - `application_key` (String) Application keys, in conjunction with your API key, give you full access to Datadog?s programmatic API. Application keys are associated with the user account that created them. The application key is used to log all requests made to the API. @@ -156,7 +147,7 @@ Required: ### Nested Schema for `connector_profile_config.connector_profile_credentials.dynatrace` -Required: +Optional: - `api_token` (String) The API tokens used by Dynatrace API to authenticate various API calls. @@ -164,14 +155,11 @@ Required: ### Nested Schema for `connector_profile_config.connector_profile_credentials.google_analytics` -Required: - -- `client_id` (String) The identi?er for the desired client. -- `client_secret` (String) The client secret used by the oauth client to authenticate to the authorization server. - Optional: - `access_token` (String) The credentials used to access protected resources. +- `client_id` (String) The identi?er for the desired client. +- `client_secret` (String) The client secret used by the oauth client to authenticate to the authorization server. - `connector_o_auth_request` (Attributes) The oauth needed to request security tokens from the connector endpoint. (see [below for nested schema](#nestedatt--connector_profile_config--connector_profile_credentials--google_analytics--connector_o_auth_request)) - `refresh_token` (String) The credentials used to acquire new access tokens. @@ -189,7 +177,7 @@ granted. ### Nested Schema for `connector_profile_config.connector_profile_credentials.infor_nexus` -Required: +Optional: - `access_key_id` (String) The Access Key portion of the credentials. - `datakey` (String) The encryption keys used to encrypt data. @@ -200,14 +188,11 @@ Required: ### Nested Schema for `connector_profile_config.connector_profile_credentials.marketo` -Required: - -- `client_id` (String) The identi?er for the desired client. -- `client_secret` (String) The client secret used by the oauth client to authenticate to the authorization server. - Optional: - `access_token` (String) The credentials used to access protected resources. +- `client_id` (String) The identi?er for the desired client. +- `client_secret` (String) The client secret used by the oauth client to authenticate to the authorization server. - `connector_o_auth_request` (Attributes) The oauth needed to request security tokens from the connector endpoint. (see [below for nested schema](#nestedatt--connector_profile_config--connector_profile_credentials--marketo--connector_o_auth_request)) @@ -283,7 +268,7 @@ Optional: ### Nested Schema for `connector_profile_config.connector_profile_credentials.sapo_data.basic_auth_credentials` -Required: +Optional: - `password` (String) - `username` (String) @@ -315,7 +300,7 @@ granted. ### Nested Schema for `connector_profile_config.connector_profile_credentials.service_now` -Required: +Optional: - `password` (String) The password that corresponds to the username. - `username` (String) The name of the user. @@ -324,7 +309,7 @@ Required: ### Nested Schema for `connector_profile_config.connector_profile_credentials.singular` -Required: +Optional: - `api_key` (String) A unique alphanumeric identi?er used to authenticate a user, developer, or calling program to your API. @@ -332,14 +317,11 @@ Required: ### Nested Schema for `connector_profile_config.connector_profile_credentials.slack` -Required: - -- `client_id` (String) The identi?er for the desired client. -- `client_secret` (String) The client secret used by the oauth client to authenticate to the authorization server. - Optional: - `access_token` (String) The credentials used to access protected resources. +- `client_id` (String) The identi?er for the desired client. +- `client_secret` (String) The client secret used by the oauth client to authenticate to the authorization server. - `connector_o_auth_request` (Attributes) The oauth needed to request security tokens from the connector endpoint. (see [below for nested schema](#nestedatt--connector_profile_config--connector_profile_credentials--slack--connector_o_auth_request)) @@ -356,7 +338,7 @@ granted. ### Nested Schema for `connector_profile_config.connector_profile_credentials.snowflake` -Required: +Optional: - `password` (String) The password that corresponds to the username. - `username` (String) The name of the user. @@ -365,7 +347,7 @@ Required: ### Nested Schema for `connector_profile_config.connector_profile_credentials.trendmicro` -Required: +Optional: - `api_secret_key` (String) The Secret Access Key portion of the credentials. @@ -373,7 +355,7 @@ Required: ### Nested Schema for `connector_profile_config.connector_profile_credentials.veeva` -Required: +Optional: - `password` (String) The password that corresponds to the username. - `username` (String) The name of the user. @@ -382,14 +364,11 @@ Required: ### Nested Schema for `connector_profile_config.connector_profile_credentials.zendesk` -Required: - -- `client_id` (String) The identi?er for the desired client. -- `client_secret` (String) The client secret used by the oauth client to authenticate to the authorization server. - Optional: - `access_token` (String) The credentials used to access protected resources. +- `client_id` (String) The identi?er for the desired client. +- `client_secret` (String) The client secret used by the oauth client to authenticate to the authorization server. - `connector_o_auth_request` (Attributes) The oauth needed to request security tokens from the connector endpoint. (see [below for nested schema](#nestedatt--connector_profile_config--connector_profile_credentials--zendesk--connector_o_auth_request)) @@ -446,7 +425,7 @@ Optional: ### Nested Schema for `connector_profile_config.connector_profile_properties.datadog` -Required: +Optional: - `instance_url` (String) The location of the Datadog resource @@ -454,7 +433,7 @@ Required: ### Nested Schema for `connector_profile_config.connector_profile_properties.dynatrace` -Required: +Optional: - `instance_url` (String) The location of the Dynatrace resource @@ -462,7 +441,7 @@ Required: ### Nested Schema for `connector_profile_config.connector_profile_properties.infor_nexus` -Required: +Optional: - `instance_url` (String) The location of the InforNexus resource @@ -470,7 +449,7 @@ Required: ### Nested Schema for `connector_profile_config.connector_profile_properties.marketo` -Required: +Optional: - `instance_url` (String) The location of the Marketo resource @@ -478,12 +457,9 @@ Required: ### Nested Schema for `connector_profile_config.connector_profile_properties.pardot` -Required: - -- `business_unit_id` (String) The Business unit id of Salesforce Pardot instance to be connected - Optional: +- `business_unit_id` (String) The Business unit id of Salesforce Pardot instance to be connected - `instance_url` (String) The location of the Salesforce Pardot resource - `is_sandbox_environment` (Boolean) Indicates whether the connector profile applies to a demo or production environment @@ -491,19 +467,16 @@ Optional: ### Nested Schema for `connector_profile_config.connector_profile_properties.redshift` -Required: - -- `bucket_name` (String) The name of the Amazon S3 bucket associated with Redshift. -- `role_arn` (String) The Amazon Resource Name (ARN) of the IAM role. - Optional: +- `bucket_name` (String) The name of the Amazon S3 bucket associated with Redshift. - `bucket_prefix` (String) The object key for the destination bucket in which Amazon AppFlow will place the ?les. - `cluster_identifier` (String) The unique identifier of the Amazon Redshift cluster. - `data_api_role_arn` (String) The Amazon Resource Name (ARN) of the IAM role that grants Amazon AppFlow access to the data through the Amazon Redshift Data API. - `database_name` (String) The name of the Amazon Redshift database that will store the transferred data. - `database_url` (String) The JDBC URL of the Amazon Redshift cluster. - `is_redshift_serverless` (Boolean) If Amazon AppFlow will connect to Amazon Redshift Serverless or Amazon Redshift cluster. +- `role_arn` (String) The Amazon Resource Name (ARN) of the IAM role. - `workgroup_name` (String) The name of the Amazon Redshift serverless workgroup @@ -543,7 +516,7 @@ Optional: ### Nested Schema for `connector_profile_config.connector_profile_properties.service_now` -Required: +Optional: - `instance_url` (String) The location of the ServiceNow resource @@ -551,7 +524,7 @@ Required: ### Nested Schema for `connector_profile_config.connector_profile_properties.slack` -Required: +Optional: - `instance_url` (String) The location of the Slack resource @@ -559,25 +532,22 @@ Required: ### Nested Schema for `connector_profile_config.connector_profile_properties.snowflake` -Required: - -- `bucket_name` (String) The name of the Amazon S3 bucket associated with Snow?ake. -- `stage` (String) The name of the Amazon S3 stage that was created while setting up an Amazon S3 stage in the -Snow?ake account. This is written in the following format: < Database>< Schema>. -- `warehouse` (String) The name of the Snow?ake warehouse. - Optional: - `account_name` (String) The name of the account. +- `bucket_name` (String) The name of the Amazon S3 bucket associated with Snow?ake. - `bucket_prefix` (String) The bucket prefix that refers to the Amazon S3 bucket associated with Snow?ake. - `private_link_service_name` (String) The Snow?ake Private Link service name to be used for private data transfers. - `region` (String) The region of the Snow?ake account. +- `stage` (String) The name of the Amazon S3 stage that was created while setting up an Amazon S3 stage in the +Snow?ake account. This is written in the following format: < Database>< Schema>. +- `warehouse` (String) The name of the Snow?ake warehouse. ### Nested Schema for `connector_profile_config.connector_profile_properties.veeva` -Required: +Optional: - `instance_url` (String) The location of the Veeva resource @@ -585,7 +555,7 @@ Required: ### Nested Schema for `connector_profile_config.connector_profile_properties.zendesk` -Required: +Optional: - `instance_url` (String) The location of the Zendesk resource diff --git a/docs/resources/appflow_flow.md b/docs/resources/appflow_flow.md index f171394b79..699d098ea0 100644 --- a/docs/resources/appflow_flow.md +++ b/docs/resources/appflow_flow.md @@ -133,13 +133,10 @@ Optional: ### Nested Schema for `destination_flow_config_list.destination_connector_properties.custom_connector` -Required: - -- `entity_name` (String) - Optional: - `custom_properties` (Map of String) A map for properties for custom connector. +- `entity_name` (String) - `error_handling_config` (Attributes) (see [below for nested schema](#nestedatt--destination_flow_config_list--destination_connector_properties--custom_connector--error_handling_config)) - `id_field_names` (List of String) List of fields used as ID when performing a write operation. - `write_operation_type` (String) @@ -158,13 +155,10 @@ Optional: ### Nested Schema for `destination_flow_config_list.destination_connector_properties.event_bridge` -Required: - -- `object` (String) - Optional: - `error_handling_config` (Attributes) (see [below for nested schema](#nestedatt--destination_flow_config_list--destination_connector_properties--event_bridge--error_handling_config)) +- `object` (String) ### Nested Schema for `destination_flow_config_list.destination_connector_properties.event_bridge.error_handling_config` @@ -188,13 +182,10 @@ Optional: ### Nested Schema for `destination_flow_config_list.destination_connector_properties.marketo` -Required: - -- `object` (String) - Optional: - `error_handling_config` (Attributes) (see [below for nested schema](#nestedatt--destination_flow_config_list--destination_connector_properties--marketo--error_handling_config)) +- `object` (String) ### Nested Schema for `destination_flow_config_list.destination_connector_properties.marketo.error_handling_config` @@ -210,15 +201,12 @@ Optional: ### Nested Schema for `destination_flow_config_list.destination_connector_properties.redshift` -Required: - -- `intermediate_bucket_name` (String) -- `object` (String) - Optional: - `bucket_prefix` (String) - `error_handling_config` (Attributes) (see [below for nested schema](#nestedatt--destination_flow_config_list--destination_connector_properties--redshift--error_handling_config)) +- `intermediate_bucket_name` (String) +- `object` (String) ### Nested Schema for `destination_flow_config_list.destination_connector_properties.redshift.error_handling_config` @@ -234,12 +222,9 @@ Optional: ### Nested Schema for `destination_flow_config_list.destination_connector_properties.s3` -Required: - -- `bucket_name` (String) - Optional: +- `bucket_name` (String) - `bucket_prefix` (String) - `s3_output_format_config` (Attributes) (see [below for nested schema](#nestedatt--destination_flow_config_list--destination_connector_properties--s3--s3_output_format_config)) @@ -277,15 +262,12 @@ Optional: ### Nested Schema for `destination_flow_config_list.destination_connector_properties.salesforce` -Required: - -- `object` (String) - Optional: - `data_transfer_api` (String) - `error_handling_config` (Attributes) (see [below for nested schema](#nestedatt--destination_flow_config_list--destination_connector_properties--salesforce--error_handling_config)) - `id_field_names` (List of String) List of fields used as ID when performing a write operation. +- `object` (String) - `write_operation_type` (String) @@ -302,14 +284,11 @@ Optional: ### Nested Schema for `destination_flow_config_list.destination_connector_properties.sapo_data` -Required: - -- `object_path` (String) - Optional: - `error_handling_config` (Attributes) (see [below for nested schema](#nestedatt--destination_flow_config_list--destination_connector_properties--sapo_data--error_handling_config)) - `id_field_names` (List of String) List of fields used as ID when performing a write operation. +- `object_path` (String) - `success_response_handling_config` (Attributes) (see [below for nested schema](#nestedatt--destination_flow_config_list--destination_connector_properties--sapo_data--success_response_handling_config)) - `write_operation_type` (String) @@ -336,15 +315,12 @@ Optional: ### Nested Schema for `destination_flow_config_list.destination_connector_properties.snowflake` -Required: - -- `intermediate_bucket_name` (String) -- `object` (String) - Optional: - `bucket_prefix` (String) - `error_handling_config` (Attributes) (see [below for nested schema](#nestedatt--destination_flow_config_list--destination_connector_properties--snowflake--error_handling_config)) +- `intermediate_bucket_name` (String) +- `object` (String) ### Nested Schema for `destination_flow_config_list.destination_connector_properties.snowflake.error_handling_config` @@ -360,26 +336,29 @@ Optional: ### Nested Schema for `destination_flow_config_list.destination_connector_properties.upsolver` -Required: - -- `bucket_name` (String) -- `s3_output_format_config` (Attributes) (see [below for nested schema](#nestedatt--destination_flow_config_list--destination_connector_properties--upsolver--s3_output_format_config)) - Optional: +- `bucket_name` (String) - `bucket_prefix` (String) +- `s3_output_format_config` (Attributes) (see [below for nested schema](#nestedatt--destination_flow_config_list--destination_connector_properties--upsolver--s3_output_format_config)) ### Nested Schema for `destination_flow_config_list.destination_connector_properties.upsolver.s3_output_format_config` -Required: +Optional: +- `aggregation_config` (Attributes) (see [below for nested schema](#nestedatt--destination_flow_config_list--destination_connector_properties--upsolver--s3_output_format_config--aggregation_config)) +- `file_type` (String) - `prefix_config` (Attributes) (see [below for nested schema](#nestedatt--destination_flow_config_list--destination_connector_properties--upsolver--s3_output_format_config--prefix_config)) + +### Nested Schema for `destination_flow_config_list.destination_connector_properties.upsolver.s3_output_format_config.aggregation_config` + Optional: -- `aggregation_config` (Attributes) (see [below for nested schema](#nestedatt--destination_flow_config_list--destination_connector_properties--upsolver--s3_output_format_config--aggregation_config)) -- `file_type` (String) +- `aggregation_type` (String) +- `target_file_size` (Number) + ### Nested Schema for `destination_flow_config_list.destination_connector_properties.upsolver.s3_output_format_config.prefix_config` @@ -391,28 +370,16 @@ Optional: - `prefix_type` (String) - -### Nested Schema for `destination_flow_config_list.destination_connector_properties.upsolver.s3_output_format_config.aggregation_config` - -Optional: - -- `aggregation_type` (String) -- `target_file_size` (Number) - - ### Nested Schema for `destination_flow_config_list.destination_connector_properties.zendesk` -Required: - -- `object` (String) - Optional: - `error_handling_config` (Attributes) (see [below for nested schema](#nestedatt--destination_flow_config_list--destination_connector_properties--zendesk--error_handling_config)) - `id_field_names` (List of String) List of fields used as ID when performing a write operation. +- `object` (String) - `write_operation_type` (String) @@ -468,7 +435,7 @@ Optional: ### Nested Schema for `source_flow_config.source_connector_properties.amplitude` -Required: +Optional: - `object` (String) @@ -476,19 +443,16 @@ Required: ### Nested Schema for `source_flow_config.source_connector_properties.custom_connector` -Required: - -- `entity_name` (String) - Optional: - `custom_properties` (Map of String) A map for properties for custom connector. - `data_transfer_api` (Attributes) (see [below for nested schema](#nestedatt--source_flow_config--source_connector_properties--custom_connector--data_transfer_api)) +- `entity_name` (String) ### Nested Schema for `source_flow_config.source_connector_properties.custom_connector.data_transfer_api` -Required: +Optional: - `name` (String) - `type` (String) @@ -498,7 +462,7 @@ Required: ### Nested Schema for `source_flow_config.source_connector_properties.datadog` -Required: +Optional: - `object` (String) @@ -506,7 +470,7 @@ Required: ### Nested Schema for `source_flow_config.source_connector_properties.dynatrace` -Required: +Optional: - `object` (String) @@ -514,7 +478,7 @@ Required: ### Nested Schema for `source_flow_config.source_connector_properties.google_analytics` -Required: +Optional: - `object` (String) @@ -522,7 +486,7 @@ Required: ### Nested Schema for `source_flow_config.source_connector_properties.infor_nexus` -Required: +Optional: - `object` (String) @@ -530,7 +494,7 @@ Required: ### Nested Schema for `source_flow_config.source_connector_properties.marketo` -Required: +Optional: - `object` (String) @@ -538,7 +502,7 @@ Required: ### Nested Schema for `source_flow_config.source_connector_properties.pardot` -Required: +Optional: - `object` (String) @@ -546,13 +510,10 @@ Required: ### Nested Schema for `source_flow_config.source_connector_properties.s3` -Required: +Optional: - `bucket_name` (String) - `bucket_prefix` (String) - -Optional: - - `s3_input_format_config` (Attributes) (see [below for nested schema](#nestedatt--source_flow_config--source_connector_properties--s3--s3_input_format_config)) @@ -567,33 +528,27 @@ Optional: ### Nested Schema for `source_flow_config.source_connector_properties.salesforce` -Required: - -- `object` (String) - Optional: - `data_transfer_api` (String) - `enable_dynamic_field_update` (Boolean) - `include_deleted_records` (Boolean) +- `object` (String) ### Nested Schema for `source_flow_config.source_connector_properties.sapo_data` -Required: - -- `object_path` (String) - Optional: +- `object_path` (String) - `pagination_config` (Attributes) SAP Source connector page size (see [below for nested schema](#nestedatt--source_flow_config--source_connector_properties--sapo_data--pagination_config)) - `parallelism_config` (Attributes) SAP Source connector parallelism factor (see [below for nested schema](#nestedatt--source_flow_config--source_connector_properties--sapo_data--parallelism_config)) ### Nested Schema for `source_flow_config.source_connector_properties.sapo_data.pagination_config` -Required: +Optional: - `max_page_size` (Number) @@ -601,7 +556,7 @@ Required: ### Nested Schema for `source_flow_config.source_connector_properties.sapo_data.parallelism_config` -Required: +Optional: - `max_parallelism` (Number) @@ -610,7 +565,7 @@ Required: ### Nested Schema for `source_flow_config.source_connector_properties.service_now` -Required: +Optional: - `object` (String) @@ -618,7 +573,7 @@ Required: ### Nested Schema for `source_flow_config.source_connector_properties.singular` -Required: +Optional: - `object` (String) @@ -626,7 +581,7 @@ Required: ### Nested Schema for `source_flow_config.source_connector_properties.slack` -Required: +Optional: - `object` (String) @@ -634,7 +589,7 @@ Required: ### Nested Schema for `source_flow_config.source_connector_properties.trendmicro` -Required: +Optional: - `object` (String) @@ -642,22 +597,19 @@ Required: ### Nested Schema for `source_flow_config.source_connector_properties.veeva` -Required: - -- `object` (String) - Optional: - `document_type` (String) - `include_all_versions` (Boolean) - `include_renditions` (Boolean) - `include_source_files` (Boolean) +- `object` (String) ### Nested Schema for `source_flow_config.source_connector_properties.zendesk` -Required: +Optional: - `object` (String) @@ -713,7 +665,7 @@ Optional: ### Nested Schema for `tasks.task_properties` -Required: +Optional: - `key` (String) - `value` (String) @@ -734,16 +686,13 @@ Optional: ### Nested Schema for `trigger_config.trigger_properties` -Required: - -- `schedule_expression` (String) - Optional: - `data_pull_mode` (String) - `first_execution_from` (Number) - `flow_error_deactivation_threshold` (Number) - `schedule_end_time` (Number) +- `schedule_expression` (String) - `schedule_offset` (Number) - `schedule_start_time` (Number) - `time_zone` (String) @@ -760,7 +709,7 @@ Optional: ### Nested Schema for `metadata_catalog_config.glue_data_catalog` -Required: +Optional: - `database_name` (String) A string containing the value for the tag - `role_arn` (String) A string containing the value for the tag @@ -771,7 +720,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) A string used to identify this tag - `value` (String) A string containing the value for the tag diff --git a/docs/resources/appintegrations_application.md b/docs/resources/appintegrations_application.md index fe3d31cb6b..191a5c7513 100644 --- a/docs/resources/appintegrations_application.md +++ b/docs/resources/appintegrations_application.md @@ -56,7 +56,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) A key to identify the tag. - `value` (String) Corresponding tag value for the key. diff --git a/docs/resources/appintegrations_event_integration.md b/docs/resources/appintegrations_event_integration.md index f8c3d6bff3..5e735c225c 100644 --- a/docs/resources/appintegrations_event_integration.md +++ b/docs/resources/appintegrations_event_integration.md @@ -42,7 +42,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) A key to identify the tag. - `value` (String) Corresponding tag value for the key. diff --git a/docs/resources/applicationautoscaling_scalable_target.md b/docs/resources/applicationautoscaling_scalable_target.md index ab13b5f1c8..a39d45e371 100644 --- a/docs/resources/applicationautoscaling_scalable_target.md +++ b/docs/resources/applicationautoscaling_scalable_target.md @@ -157,8 +157,10 @@ resource "awscc_cassandra_table" "example" { ### Nested Schema for `scheduled_actions` -Required: +Optional: +- `end_time` (String) The date and time that the action is scheduled to end, in UTC. +- `scalable_target_action` (Attributes) The new minimum and maximum capacity. You can set both values or just one. At the scheduled time, if the current capacity is below the minimum capacity, Application Auto Scaling scales out to the minimum capacity. If the current capacity is above the maximum capacity, Application Auto Scaling scales in to the maximum capacity. (see [below for nested schema](#nestedatt--scheduled_actions--scalable_target_action)) - `schedule` (String) The schedule for this action. The following formats are supported: + At expressions - "``at(yyyy-mm-ddThh:mm:ss)``" + Rate expressions - "``rate(value unit)``" @@ -169,11 +171,6 @@ Required: The cron format consists of six fields separated by white spaces: [Minutes] [Hours] [Day_of_Month] [Month] [Day_of_Week] [Year]. For rate expressions, *value* is a positive integer and *unit* is ``minute`` | ``minutes`` | ``hour`` | ``hours`` | ``day`` | ``days``. - `scheduled_action_name` (String) The name of the scheduled action. This name must be unique among all other scheduled actions on the specified scalable target. - -Optional: - -- `end_time` (String) The date and time that the action is scheduled to end, in UTC. -- `scalable_target_action` (Attributes) The new minimum and maximum capacity. You can set both values or just one. At the scheduled time, if the current capacity is below the minimum capacity, Application Auto Scaling scales out to the minimum capacity. If the current capacity is above the maximum capacity, Application Auto Scaling scales in to the maximum capacity. (see [below for nested schema](#nestedatt--scheduled_actions--scalable_target_action)) - `start_time` (String) The date and time that the action is scheduled to begin, in UTC. - `timezone` (String) The time zone used when referring to the date and time of a scheduled action, when the scheduled action uses an at or cron expression. diff --git a/docs/resources/applicationautoscaling_scaling_policy.md b/docs/resources/applicationautoscaling_scaling_policy.md index 7876dcdd13..ed2816cd99 100644 --- a/docs/resources/applicationautoscaling_scaling_policy.md +++ b/docs/resources/applicationautoscaling_scaling_policy.md @@ -98,26 +98,19 @@ Optional: ### Nested Schema for `step_scaling_policy_configuration.step_adjustments` -Required: - -- `scaling_adjustment` (Number) The amount by which to scale. The adjustment is based on the value that you specified in the ``AdjustmentType`` property (either an absolute number or a percentage). A positive value adds to the current capacity and a negative number subtracts from the current capacity. - Optional: - `metric_interval_lower_bound` (Number) The lower bound for the difference between the alarm threshold and the CloudWatch metric. If the metric value is above the breach threshold, the lower bound is inclusive (the metric must be greater than or equal to the threshold plus the lower bound). Otherwise, it is exclusive (the metric must be greater than the threshold plus the lower bound). A null value indicates negative infinity. You must specify at least one upper or lower bound. - `metric_interval_upper_bound` (Number) The upper bound for the difference between the alarm threshold and the CloudWatch metric. If the metric value is above the breach threshold, the upper bound is exclusive (the metric must be less than the threshold plus the upper bound). Otherwise, it is inclusive (the metric must be less than or equal to the threshold plus the upper bound). A null value indicates positive infinity. You must specify at least one upper or lower bound. +- `scaling_adjustment` (Number) The amount by which to scale. The adjustment is based on the value that you specified in the ``AdjustmentType`` property (either an absolute number or a percentage). A positive value adds to the current capacity and a negative number subtracts from the current capacity. ### Nested Schema for `target_tracking_scaling_policy_configuration` -Required: - -- `target_value` (Number) The target value for the metric. Although this property accepts numbers of type Double, it won't accept values that are either too small or too large. Values must be in the range of -2^360 to 2^360. The value must be a valid number based on the choice of metric. For example, if the metric is CPU utilization, then the target value is a percent value that represents how much of the CPU can be used before scaling out. - Optional: - `customized_metric_specification` (Attributes) A customized metric. You can specify either a predefined metric or a customized metric. (see [below for nested schema](#nestedatt--target_tracking_scaling_policy_configuration--customized_metric_specification)) @@ -125,6 +118,7 @@ Optional: - `predefined_metric_specification` (Attributes) A predefined metric. You can specify either a predefined metric or a customized metric. (see [below for nested schema](#nestedatt--target_tracking_scaling_policy_configuration--predefined_metric_specification)) - `scale_in_cooldown` (Number) The amount of time, in seconds, after a scale-in activity completes before another scale-in activity can start. For more information and for default values, see [Define cooldown periods](https://docs.aws.amazon.com/autoscaling/application/userguide/target-tracking-scaling-policy-overview.html#target-tracking-cooldown) in the *Application Auto Scaling User Guide*. - `scale_out_cooldown` (Number) The amount of time, in seconds, to wait for a previous scale-out activity to take effect. For more information and for default values, see [Define cooldown periods](https://docs.aws.amazon.com/autoscaling/application/userguide/target-tracking-scaling-policy-overview.html#target-tracking-cooldown) in the *Application Auto Scaling User Guide*. +- `target_value` (Number) The target value for the metric. Although this property accepts numbers of type Double, it won't accept values that are either too small or too large. Values must be in the range of -2^360 to 2^360. The value must be a valid number based on the choice of metric. For example, if the metric is CPU utilization, then the target value is a percent value that represents how much of the CPU can be used before scaling out. ### Nested Schema for `target_tracking_scaling_policy_configuration.customized_metric_specification` @@ -142,7 +136,7 @@ Optional: ### Nested Schema for `target_tracking_scaling_policy_configuration.customized_metric_specification.dimensions` -Required: +Optional: - `name` (String) The name of the dimension. - `value` (String) The value of the dimension. @@ -199,12 +193,9 @@ Optional: ### Nested Schema for `target_tracking_scaling_policy_configuration.predefined_metric_specification` -Required: - -- `predefined_metric_type` (String) The metric type. The ``ALBRequestCountPerTarget`` metric type applies only to Spot fleet requests and ECS services. - Optional: +- `predefined_metric_type` (String) The metric type. The ``ALBRequestCountPerTarget`` metric type applies only to Spot fleet requests and ECS services. - `resource_label` (String) Identifies the resource associated with the metric type. You can't specify a resource label unless the metric type is ``ALBRequestCountPerTarget`` and there is a target group attached to the Spot Fleet or ECS service. You create the resource label by appending the final portion of the load balancer ARN and the final portion of the target group ARN into a single value, separated by a forward slash (/). The format of the resource label is: ``app/my-alb/778d41231b141a0f/targetgroup/my-alb-target-group/943f017f100becff``. diff --git a/docs/resources/applicationinsights_application.md b/docs/resources/applicationinsights_application.md index b4d98b8f6b..1fdba1420a 100644 --- a/docs/resources/applicationinsights_application.md +++ b/docs/resources/applicationinsights_application.md @@ -40,17 +40,14 @@ Resource schema for AWS::ApplicationInsights::Application ### Nested Schema for `component_monitoring_settings` -Required: - -- `component_configuration_mode` (String) The component monitoring configuration mode. -- `tier` (String) The tier of the application component. - Optional: - `component_arn` (String) The ARN of the compnonent. +- `component_configuration_mode` (String) The component monitoring configuration mode. - `component_name` (String) The name of the component. - `custom_component_configuration` (Attributes) The monitoring configuration of the component. (see [below for nested schema](#nestedatt--component_monitoring_settings--custom_component_configuration)) - `default_overwrite_component_configuration` (Attributes) The overwritten settings on default component monitoring configuration. (see [below for nested schema](#nestedatt--component_monitoring_settings--default_overwrite_component_configuration)) +- `tier` (String) The tier of the application component. ### Nested Schema for `component_monitoring_settings.custom_component_configuration` @@ -79,7 +76,7 @@ Optional: ### Nested Schema for `component_monitoring_settings.custom_component_configuration.configuration_details.alarm_metrics` -Required: +Optional: - `alarm_metric_name` (String) The name of the metric to be monitored for the component. @@ -87,12 +84,9 @@ Required: ### Nested Schema for `component_monitoring_settings.custom_component_configuration.configuration_details.alarms` -Required: - -- `alarm_name` (String) The name of the CloudWatch alarm to be monitored for the component. - Optional: +- `alarm_name` (String) The name of the CloudWatch alarm to be monitored for the component. - `severity` (String) Indicates the degree of outage when the alarm goes off. @@ -107,7 +101,7 @@ Optional: ### Nested Schema for `component_monitoring_settings.custom_component_configuration.configuration_details.hana_prometheus_exporter` -Required: +Optional: - `agree_to_install_hanadb_client` (Boolean) A flag which indicates agreeing to install SAP HANA DB client. - `hana_port` (String) The HANA DB port. @@ -116,9 +110,6 @@ Required: "password": "<>" }. - `hanasid` (String) HANA DB SID. - -Optional: - - `prometheus_port` (String) Prometheus exporter port. @@ -135,35 +126,29 @@ Optional: ### Nested Schema for `component_monitoring_settings.custom_component_configuration.configuration_details.logs` -Required: - -- `log_type` (String) The log type decides the log patterns against which Application Insights analyzes the log. - Optional: - `encoding` (String) The type of encoding of the logs to be monitored. - `log_group_name` (String) The CloudWatch log group name to be associated to the monitored log. - `log_path` (String) The path of the logs to be monitored. +- `log_type` (String) The log type decides the log patterns against which Application Insights analyzes the log. - `pattern_set` (String) The name of the log pattern set. ### Nested Schema for `component_monitoring_settings.custom_component_configuration.configuration_details.net_weaver_prometheus_exporter` -Required: - -- `instance_numbers` (List of String) SAP instance numbers for ASCS, ERS, and App Servers. -- `sapsid` (String) SAP NetWeaver SID. - Optional: +- `instance_numbers` (List of String) SAP instance numbers for ASCS, ERS, and App Servers. - `prometheus_port` (String) Prometheus exporter port. +- `sapsid` (String) SAP NetWeaver SID. ### Nested Schema for `component_monitoring_settings.custom_component_configuration.configuration_details.processes` -Required: +Optional: - `alarm_metrics` (Attributes List) A list of metrics to monitor for the component. (see [below for nested schema](#nestedatt--component_monitoring_settings--custom_component_configuration--configuration_details--processes--alarm_metrics)) - `process_name` (String) The name of the process to be monitored for the component. @@ -171,7 +156,7 @@ Required: ### Nested Schema for `component_monitoring_settings.custom_component_configuration.configuration_details.processes.alarm_metrics` -Required: +Optional: - `alarm_metric_name` (String) The name of the metric to be monitored for the component. @@ -180,7 +165,7 @@ Required: ### Nested Schema for `component_monitoring_settings.custom_component_configuration.configuration_details.sql_server_prometheus_exporter` -Required: +Optional: - `prometheus_port` (String) Prometheus exporter port. - `sql_secret_name` (String) Secret name which managers SQL exporter connection. e.g. {"data_source_name": "sqlserver://:@localhost:1433"} @@ -189,14 +174,11 @@ Required: ### Nested Schema for `component_monitoring_settings.custom_component_configuration.configuration_details.windows_events` -Required: +Optional: - `event_levels` (List of String) The levels of event to log. - `event_name` (String) The type of Windows Events to log. - `log_group_name` (String) The CloudWatch log group name to be associated to the monitored log. - -Optional: - - `pattern_set` (String) The name of the log pattern set. @@ -204,7 +186,7 @@ Optional: ### Nested Schema for `component_monitoring_settings.custom_component_configuration.sub_component_type_configurations` -Required: +Optional: - `sub_component_configuration_details` (Attributes) The configuration settings of sub components. (see [below for nested schema](#nestedatt--component_monitoring_settings--custom_component_configuration--sub_component_type_configurations--sub_component_configuration_details)) - `sub_component_type` (String) The sub component type. @@ -222,7 +204,7 @@ Optional: ### Nested Schema for `component_monitoring_settings.custom_component_configuration.sub_component_type_configurations.sub_component_configuration_details.alarm_metrics` -Required: +Optional: - `alarm_metric_name` (String) The name of the metric to be monitored for the component. @@ -230,22 +212,19 @@ Required: ### Nested Schema for `component_monitoring_settings.custom_component_configuration.sub_component_type_configurations.sub_component_configuration_details.logs` -Required: - -- `log_type` (String) The log type decides the log patterns against which Application Insights analyzes the log. - Optional: - `encoding` (String) The type of encoding of the logs to be monitored. - `log_group_name` (String) The CloudWatch log group name to be associated to the monitored log. - `log_path` (String) The path of the logs to be monitored. +- `log_type` (String) The log type decides the log patterns against which Application Insights analyzes the log. - `pattern_set` (String) The name of the log pattern set. ### Nested Schema for `component_monitoring_settings.custom_component_configuration.sub_component_type_configurations.sub_component_configuration_details.processes` -Required: +Optional: - `alarm_metrics` (Attributes List) A list of metrics to monitor for the component. (see [below for nested schema](#nestedatt--component_monitoring_settings--custom_component_configuration--sub_component_type_configurations--sub_component_configuration_details--processes--alarm_metrics)) - `process_name` (String) The name of the process to be monitored for the component. @@ -253,7 +232,7 @@ Required: ### Nested Schema for `component_monitoring_settings.custom_component_configuration.sub_component_type_configurations.sub_component_configuration_details.processes.alarm_metrics` -Required: +Optional: - `alarm_metric_name` (String) The name of the metric to be monitored for the component. @@ -262,14 +241,11 @@ Required: ### Nested Schema for `component_monitoring_settings.custom_component_configuration.sub_component_type_configurations.sub_component_configuration_details.windows_events` -Required: +Optional: - `event_levels` (List of String) The levels of event to log. - `event_name` (String) The type of Windows Events to log. - `log_group_name` (String) The CloudWatch log group name to be associated to the monitored log. - -Optional: - - `pattern_set` (String) The name of the log pattern set. @@ -303,7 +279,7 @@ Optional: ### Nested Schema for `component_monitoring_settings.default_overwrite_component_configuration.configuration_details.alarm_metrics` -Required: +Optional: - `alarm_metric_name` (String) The name of the metric to be monitored for the component. @@ -311,12 +287,9 @@ Required: ### Nested Schema for `component_monitoring_settings.default_overwrite_component_configuration.configuration_details.alarms` -Required: - -- `alarm_name` (String) The name of the CloudWatch alarm to be monitored for the component. - Optional: +- `alarm_name` (String) The name of the CloudWatch alarm to be monitored for the component. - `severity` (String) Indicates the degree of outage when the alarm goes off. @@ -331,7 +304,7 @@ Optional: ### Nested Schema for `component_monitoring_settings.default_overwrite_component_configuration.configuration_details.hana_prometheus_exporter` -Required: +Optional: - `agree_to_install_hanadb_client` (Boolean) A flag which indicates agreeing to install SAP HANA DB client. - `hana_port` (String) The HANA DB port. @@ -340,9 +313,6 @@ Required: "password": "<>" }. - `hanasid` (String) HANA DB SID. - -Optional: - - `prometheus_port` (String) Prometheus exporter port. @@ -359,35 +329,29 @@ Optional: ### Nested Schema for `component_monitoring_settings.default_overwrite_component_configuration.configuration_details.logs` -Required: - -- `log_type` (String) The log type decides the log patterns against which Application Insights analyzes the log. - Optional: - `encoding` (String) The type of encoding of the logs to be monitored. - `log_group_name` (String) The CloudWatch log group name to be associated to the monitored log. - `log_path` (String) The path of the logs to be monitored. +- `log_type` (String) The log type decides the log patterns against which Application Insights analyzes the log. - `pattern_set` (String) The name of the log pattern set. ### Nested Schema for `component_monitoring_settings.default_overwrite_component_configuration.configuration_details.net_weaver_prometheus_exporter` -Required: - -- `instance_numbers` (List of String) SAP instance numbers for ASCS, ERS, and App Servers. -- `sapsid` (String) SAP NetWeaver SID. - Optional: +- `instance_numbers` (List of String) SAP instance numbers for ASCS, ERS, and App Servers. - `prometheus_port` (String) Prometheus exporter port. +- `sapsid` (String) SAP NetWeaver SID. ### Nested Schema for `component_monitoring_settings.default_overwrite_component_configuration.configuration_details.processes` -Required: +Optional: - `alarm_metrics` (Attributes List) A list of metrics to monitor for the component. (see [below for nested schema](#nestedatt--component_monitoring_settings--default_overwrite_component_configuration--configuration_details--processes--alarm_metrics)) - `process_name` (String) The name of the process to be monitored for the component. @@ -395,7 +359,7 @@ Required: ### Nested Schema for `component_monitoring_settings.default_overwrite_component_configuration.configuration_details.processes.alarm_metrics` -Required: +Optional: - `alarm_metric_name` (String) The name of the metric to be monitored for the component. @@ -404,7 +368,7 @@ Required: ### Nested Schema for `component_monitoring_settings.default_overwrite_component_configuration.configuration_details.sql_server_prometheus_exporter` -Required: +Optional: - `prometheus_port` (String) Prometheus exporter port. - `sql_secret_name` (String) Secret name which managers SQL exporter connection. e.g. {"data_source_name": "sqlserver://:@localhost:1433"} @@ -413,14 +377,11 @@ Required: ### Nested Schema for `component_monitoring_settings.default_overwrite_component_configuration.configuration_details.windows_events` -Required: +Optional: - `event_levels` (List of String) The levels of event to log. - `event_name` (String) The type of Windows Events to log. - `log_group_name` (String) The CloudWatch log group name to be associated to the monitored log. - -Optional: - - `pattern_set` (String) The name of the log pattern set. @@ -428,7 +389,7 @@ Optional: ### Nested Schema for `component_monitoring_settings.default_overwrite_component_configuration.sub_component_type_configurations` -Required: +Optional: - `sub_component_configuration_details` (Attributes) The configuration settings of sub components. (see [below for nested schema](#nestedatt--component_monitoring_settings--default_overwrite_component_configuration--sub_component_type_configurations--sub_component_configuration_details)) - `sub_component_type` (String) The sub component type. @@ -446,7 +407,7 @@ Optional: ### Nested Schema for `component_monitoring_settings.default_overwrite_component_configuration.sub_component_type_configurations.sub_component_configuration_details.alarm_metrics` -Required: +Optional: - `alarm_metric_name` (String) The name of the metric to be monitored for the component. @@ -454,22 +415,19 @@ Required: ### Nested Schema for `component_monitoring_settings.default_overwrite_component_configuration.sub_component_type_configurations.sub_component_configuration_details.logs` -Required: - -- `log_type` (String) The log type decides the log patterns against which Application Insights analyzes the log. - Optional: - `encoding` (String) The type of encoding of the logs to be monitored. - `log_group_name` (String) The CloudWatch log group name to be associated to the monitored log. - `log_path` (String) The path of the logs to be monitored. +- `log_type` (String) The log type decides the log patterns against which Application Insights analyzes the log. - `pattern_set` (String) The name of the log pattern set. ### Nested Schema for `component_monitoring_settings.default_overwrite_component_configuration.sub_component_type_configurations.sub_component_configuration_details.processes` -Required: +Optional: - `alarm_metrics` (Attributes List) A list of metrics to monitor for the component. (see [below for nested schema](#nestedatt--component_monitoring_settings--default_overwrite_component_configuration--sub_component_type_configurations--sub_component_configuration_details--processes--alarm_metrics)) - `process_name` (String) The name of the process to be monitored for the component. @@ -477,7 +435,7 @@ Required: ### Nested Schema for `component_monitoring_settings.default_overwrite_component_configuration.sub_component_type_configurations.sub_component_configuration_details.processes.alarm_metrics` -Required: +Optional: - `alarm_metric_name` (String) The name of the metric to be monitored for the component. @@ -486,14 +444,11 @@ Required: ### Nested Schema for `component_monitoring_settings.default_overwrite_component_configuration.sub_component_type_configurations.sub_component_configuration_details.windows_events` -Required: +Optional: - `event_levels` (List of String) The levels of event to log. - `event_name` (String) The type of Windows Events to log. - `log_group_name` (String) The CloudWatch log group name to be associated to the monitored log. - -Optional: - - `pattern_set` (String) The name of the log pattern set. @@ -504,7 +459,7 @@ Optional: ### Nested Schema for `custom_components` -Required: +Optional: - `component_name` (String) The name of the component. - `resource_list` (List of String) The list of resource ARNs that belong to the component. @@ -513,7 +468,7 @@ Required: ### Nested Schema for `log_pattern_sets` -Required: +Optional: - `log_patterns` (Attributes List) The log patterns of a set. (see [below for nested schema](#nestedatt--log_pattern_sets--log_patterns)) - `pattern_set_name` (String) The name of the log pattern set. @@ -521,7 +476,7 @@ Required: ### Nested Schema for `log_pattern_sets.log_patterns` -Required: +Optional: - `pattern` (String) The log pattern. - `pattern_name` (String) The name of the log pattern. @@ -532,7 +487,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/applicationsignals_service_level_objective.md b/docs/resources/applicationsignals_service_level_objective.md index 891753000a..1525bea7b2 100644 --- a/docs/resources/applicationsignals_service_level_objective.md +++ b/docs/resources/applicationsignals_service_level_objective.md @@ -57,7 +57,7 @@ Optional: ### Nested Schema for `goal.interval.calendar_interval` -Required: +Optional: - `duration` (Number) Specifies the duration of each calendar interval. For example, if `Duration` is 1 and `DurationUnit` is `MONTH`, each interval is one month, aligned with the calendar. - `duration_unit` (String) Specifies the calendar interval unit. @@ -68,7 +68,7 @@ As soon as one calendar interval ends, another automatically begins. ### Nested Schema for `goal.interval.rolling_interval` -Required: +Optional: - `duration` (Number) Specifies the duration of each calendar interval. For example, if `Duration` is 1 and `DurationUnit` is `MONTH`, each interval is one month, aligned with the calendar. - `duration_unit` (String) Specifies the calendar interval unit. @@ -79,14 +79,11 @@ Required: ### Nested Schema for `request_based_sli` -Required: - -- `request_based_sli_metric` (Attributes) This structure contains the information about the metric that is used for a request-based SLO. (see [below for nested schema](#nestedatt--request_based_sli--request_based_sli_metric)) - Optional: - `comparison_operator` (String) The arithmetic operation used when comparing the specified metric to the threshold. - `metric_threshold` (Number) The value that the SLI metric is compared to. +- `request_based_sli_metric` (Attributes) This structure contains the information about the metric that is used for a request-based SLO. (see [below for nested schema](#nestedatt--request_based_sli--request_based_sli_metric)) ### Nested Schema for `request_based_sli.request_based_sli_metric` @@ -110,28 +107,22 @@ Optional: ### Nested Schema for `request_based_sli.request_based_sli_metric.monitored_request_count_metric.bad_count_metric` -Required: - -- `id` (String) A short name used to tie this object to the results in the response. - Optional: - `account_id` (String) The ID of the account where the metrics are located, if this is a cross-account alarm. - `expression` (String) The math expression to be performed on the returned data. +- `id` (String) A short name used to tie this object to the results in the response. - `metric_stat` (Attributes) A metric to be used directly for the SLO, or to be used in the math expression that will be used for the SLO. Within one MetricDataQuery, you must specify either Expression or MetricStat but not both. (see [below for nested schema](#nestedatt--request_based_sli--request_based_sli_metric--monitored_request_count_metric--bad_count_metric--metric_stat)) - `return_data` (Boolean) This option indicates whether to return the timestamps and raw data values of this metric. ### Nested Schema for `request_based_sli.request_based_sli_metric.monitored_request_count_metric.bad_count_metric.metric_stat` -Required: +Optional: - `metric` (Attributes) This structure defines the metric used for a service level indicator, including the metric name, namespace, and dimensions. (see [below for nested schema](#nestedatt--request_based_sli--request_based_sli_metric--monitored_request_count_metric--bad_count_metric--metric_stat--metric)) - `period` (Number) The granularity, in seconds, to be used for the metric. - `stat` (String) The statistic to use for comparison to the threshold. It can be any CloudWatch statistic or extended statistic. - -Optional: - - `unit` (String) If you omit Unit then all data that was collected with any unit is returned, along with the corresponding units that were specified when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified. If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions. @@ -146,7 +137,7 @@ Optional: ### Nested Schema for `request_based_sli.request_based_sli_metric.monitored_request_count_metric.bad_count_metric.metric_stat.metric.dimensions` -Required: +Optional: - `name` (String) The name of the dimension. Dimension names must contain only ASCII characters, must include at least one non-whitespace character, and cannot start with a colon (:). ASCII control characters are not supported as part of dimension names. - `value` (String) The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character. ASCII control characters are not supported as part of dimension values @@ -158,28 +149,22 @@ Required: ### Nested Schema for `request_based_sli.request_based_sli_metric.monitored_request_count_metric.good_count_metric` -Required: - -- `id` (String) A short name used to tie this object to the results in the response. - Optional: - `account_id` (String) The ID of the account where the metrics are located, if this is a cross-account alarm. - `expression` (String) The math expression to be performed on the returned data. +- `id` (String) A short name used to tie this object to the results in the response. - `metric_stat` (Attributes) A metric to be used directly for the SLO, or to be used in the math expression that will be used for the SLO. Within one MetricDataQuery, you must specify either Expression or MetricStat but not both. (see [below for nested schema](#nestedatt--request_based_sli--request_based_sli_metric--monitored_request_count_metric--good_count_metric--metric_stat)) - `return_data` (Boolean) This option indicates whether to return the timestamps and raw data values of this metric. ### Nested Schema for `request_based_sli.request_based_sli_metric.monitored_request_count_metric.good_count_metric.metric_stat` -Required: +Optional: - `metric` (Attributes) This structure defines the metric used for a service level indicator, including the metric name, namespace, and dimensions. (see [below for nested schema](#nestedatt--request_based_sli--request_based_sli_metric--monitored_request_count_metric--good_count_metric--metric_stat--metric)) - `period` (Number) The granularity, in seconds, to be used for the metric. - `stat` (String) The statistic to use for comparison to the threshold. It can be any CloudWatch statistic or extended statistic. - -Optional: - - `unit` (String) If you omit Unit then all data that was collected with any unit is returned, along with the corresponding units that were specified when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified. If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions. @@ -194,7 +179,7 @@ Optional: ### Nested Schema for `request_based_sli.request_based_sli_metric.monitored_request_count_metric.good_count_metric.metric_stat.metric.dimensions` -Required: +Optional: - `name` (String) The name of the dimension. Dimension names must contain only ASCII characters, must include at least one non-whitespace character, and cannot start with a colon (:). ASCII control characters are not supported as part of dimension names. - `value` (String) The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character. ASCII control characters are not supported as part of dimension values @@ -207,28 +192,22 @@ Required: ### Nested Schema for `request_based_sli.request_based_sli_metric.total_request_count_metric` -Required: - -- `id` (String) A short name used to tie this object to the results in the response. - Optional: - `account_id` (String) The ID of the account where the metrics are located, if this is a cross-account alarm. - `expression` (String) The math expression to be performed on the returned data. +- `id` (String) A short name used to tie this object to the results in the response. - `metric_stat` (Attributes) A metric to be used directly for the SLO, or to be used in the math expression that will be used for the SLO. Within one MetricDataQuery, you must specify either Expression or MetricStat but not both. (see [below for nested schema](#nestedatt--request_based_sli--request_based_sli_metric--total_request_count_metric--metric_stat)) - `return_data` (Boolean) This option indicates whether to return the timestamps and raw data values of this metric. ### Nested Schema for `request_based_sli.request_based_sli_metric.total_request_count_metric.metric_stat` -Required: +Optional: - `metric` (Attributes) This structure defines the metric used for a service level indicator, including the metric name, namespace, and dimensions. (see [below for nested schema](#nestedatt--request_based_sli--request_based_sli_metric--total_request_count_metric--metric_stat--metric)) - `period` (Number) The granularity, in seconds, to be used for the metric. - `stat` (String) The statistic to use for comparison to the threshold. It can be any CloudWatch statistic or extended statistic. - -Optional: - - `unit` (String) If you omit Unit then all data that was collected with any unit is returned, along with the corresponding units that were specified when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified. If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions. @@ -243,7 +222,7 @@ Optional: ### Nested Schema for `request_based_sli.request_based_sli_metric.total_request_count_metric.metric_stat.metric.dimensions` -Required: +Optional: - `name` (String) The name of the dimension. Dimension names must contain only ASCII characters, must include at least one non-whitespace character, and cannot start with a colon (:). ASCII control characters are not supported as part of dimension names. - `value` (String) The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character. ASCII control characters are not supported as part of dimension values @@ -257,7 +236,7 @@ Required: ### Nested Schema for `sli` -Required: +Optional: - `comparison_operator` (String) The arithmetic operation used when comparing the specified metric to the threshold. - `metric_threshold` (Number) The value that the SLI metric is compared to. @@ -278,28 +257,22 @@ Optional: ### Nested Schema for `sli.sli_metric.metric_data_queries` -Required: - -- `id` (String) A short name used to tie this object to the results in the response. - Optional: - `account_id` (String) The ID of the account where the metrics are located, if this is a cross-account alarm. - `expression` (String) The math expression to be performed on the returned data. +- `id` (String) A short name used to tie this object to the results in the response. - `metric_stat` (Attributes) A metric to be used directly for the SLO, or to be used in the math expression that will be used for the SLO. Within one MetricDataQuery, you must specify either Expression or MetricStat but not both. (see [below for nested schema](#nestedatt--sli--sli_metric--metric_data_queries--metric_stat)) - `return_data` (Boolean) This option indicates whether to return the timestamps and raw data values of this metric. ### Nested Schema for `sli.sli_metric.metric_data_queries.metric_stat` -Required: +Optional: - `metric` (Attributes) This structure defines the metric used for a service level indicator, including the metric name, namespace, and dimensions. (see [below for nested schema](#nestedatt--sli--sli_metric--metric_data_queries--metric_stat--metric)) - `period` (Number) The granularity, in seconds, to be used for the metric. - `stat` (String) The statistic to use for comparison to the threshold. It can be any CloudWatch statistic or extended statistic. - -Optional: - - `unit` (String) If you omit Unit then all data that was collected with any unit is returned, along with the corresponding units that were specified when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified. If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions. @@ -314,7 +287,7 @@ Optional: ### Nested Schema for `sli.sli_metric.metric_data_queries.metric_stat.metric.dimensions` -Required: +Optional: - `name` (String) The name of the dimension. Dimension names must contain only ASCII characters, must include at least one non-whitespace character, and cannot start with a colon (:). ASCII control characters are not supported as part of dimension names. - `value` (String) The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character. ASCII control characters are not supported as part of dimension values @@ -328,7 +301,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) A string that you can use to assign a value. The combination of tag keys and values can help you organize and categorize your resources. - `value` (String) The value for the specified tag key. diff --git a/docs/resources/apprunner_observability_configuration.md b/docs/resources/apprunner_observability_configuration.md index f5d1cc2438..6698669121 100644 --- a/docs/resources/apprunner_observability_configuration.md +++ b/docs/resources/apprunner_observability_configuration.md @@ -40,7 +40,7 @@ Optional: ### Nested Schema for `trace_configuration` -Required: +Optional: - `vendor` (String) The implementation provider chosen for tracing App Runner services. diff --git a/docs/resources/apprunner_service.md b/docs/resources/apprunner_service.md index ebb2ff7930..5142b5b8b0 100644 --- a/docs/resources/apprunner_service.md +++ b/docs/resources/apprunner_service.md @@ -60,47 +60,29 @@ Optional: ### Nested Schema for `source_configuration.code_repository` -Required: - -- `repository_url` (String) Repository Url -- `source_code_version` (Attributes) Source Code Version (see [below for nested schema](#nestedatt--source_configuration--code_repository--source_code_version)) - Optional: - `code_configuration` (Attributes) Code Configuration (see [below for nested schema](#nestedatt--source_configuration--code_repository--code_configuration)) +- `repository_url` (String) Repository Url +- `source_code_version` (Attributes) Source Code Version (see [below for nested schema](#nestedatt--source_configuration--code_repository--source_code_version)) - `source_directory` (String) Source Directory - -### Nested Schema for `source_configuration.code_repository.source_code_version` - -Required: - -- `type` (String) Source Code Version Type -- `value` (String) Source Code Version Value - - ### Nested Schema for `source_configuration.code_repository.code_configuration` -Required: - -- `configuration_source` (String) Configuration Source - Optional: - `code_configuration_values` (Attributes) Code Configuration Values (see [below for nested schema](#nestedatt--source_configuration--code_repository--code_configuration--code_configuration_values)) +- `configuration_source` (String) Configuration Source ### Nested Schema for `source_configuration.code_repository.code_configuration.code_configuration_values` -Required: - -- `runtime` (String) Runtime - Optional: - `build_command` (String) Build Command - `port` (String) Port +- `runtime` (String) Runtime - `runtime_environment_secrets` (Attributes List) The secrets and parameters that get referenced by your service as environment variables (see [below for nested schema](#nestedatt--source_configuration--code_repository--code_configuration--code_configuration_values--runtime_environment_secrets)) - `runtime_environment_variables` (Attributes List) (see [below for nested schema](#nestedatt--source_configuration--code_repository--code_configuration--code_configuration_values--runtime_environment_variables)) - `start_command` (String) Start Command @@ -125,18 +107,24 @@ Optional: + +### Nested Schema for `source_configuration.code_repository.source_code_version` - -### Nested Schema for `source_configuration.image_repository` +Optional: -Required: +- `type` (String) Source Code Version Type +- `value` (String) Source Code Version Value -- `image_identifier` (String) Image Identifier -- `image_repository_type` (String) Image Repository Type + + + +### Nested Schema for `source_configuration.image_repository` Optional: - `image_configuration` (Attributes) Image Configuration (see [below for nested schema](#nestedatt--source_configuration--image_repository--image_configuration)) +- `image_identifier` (String) Image Identifier +- `image_repository_type` (String) Image Repository Type ### Nested Schema for `source_configuration.image_repository.image_configuration` @@ -172,7 +160,7 @@ Optional: ### Nested Schema for `encryption_configuration` -Required: +Optional: - `kms_key` (String) The KMS Key @@ -212,19 +200,16 @@ Optional: ### Nested Schema for `network_configuration.egress_configuration` -Required: - -- `egress_type` (String) Network egress type. - Optional: +- `egress_type` (String) Network egress type. - `vpc_connector_arn` (String) The Amazon Resource Name (ARN) of the App Runner VpcConnector. ### Nested Schema for `network_configuration.ingress_configuration` -Required: +Optional: - `is_publicly_accessible` (Boolean) It's set to true if the Apprunner service is publicly accessible. It's set to false otherwise. @@ -233,13 +218,10 @@ Required: ### Nested Schema for `observability_configuration` -Required: - -- `observability_enabled` (Boolean) Observability enabled - Optional: - `observability_configuration_arn` (String) The Amazon Resource Name (ARN) of the App Runner ObservabilityConfiguration. +- `observability_enabled` (Boolean) Observability enabled diff --git a/docs/resources/appstream_app_block.md b/docs/resources/appstream_app_block.md index 8f6cb2eeac..012d00d1e0 100644 --- a/docs/resources/appstream_app_block.md +++ b/docs/resources/appstream_app_block.md @@ -50,25 +50,19 @@ Optional: ### Nested Schema for `post_setup_script_details` -Required: +Optional: +- `executable_parameters` (String) - `executable_path` (String) - `script_s3_location` (Attributes) (see [below for nested schema](#nestedatt--post_setup_script_details--script_s3_location)) - `timeout_in_seconds` (Number) -Optional: - -- `executable_parameters` (String) - ### Nested Schema for `post_setup_script_details.script_s3_location` -Required: - -- `s3_bucket` (String) - Optional: +- `s3_bucket` (String) - `s3_key` (String) @@ -76,25 +70,19 @@ Optional: ### Nested Schema for `setup_script_details` -Required: +Optional: +- `executable_parameters` (String) - `executable_path` (String) - `script_s3_location` (Attributes) (see [below for nested schema](#nestedatt--setup_script_details--script_s3_location)) - `timeout_in_seconds` (Number) -Optional: - -- `executable_parameters` (String) - ### Nested Schema for `setup_script_details.script_s3_location` -Required: - -- `s3_bucket` (String) - Optional: +- `s3_bucket` (String) - `s3_key` (String) diff --git a/docs/resources/appstream_app_block_builder.md b/docs/resources/appstream_app_block_builder.md index ca8f2cdc42..7c94afa997 100644 --- a/docs/resources/appstream_app_block_builder.md +++ b/docs/resources/appstream_app_block_builder.md @@ -50,7 +50,7 @@ Optional: ### Nested Schema for `access_endpoints` -Required: +Optional: - `endpoint_type` (String) - `vpce_id` (String) @@ -59,7 +59,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/appstream_image_builder.md b/docs/resources/appstream_image_builder.md index 07f35a3d38..79ce079348 100644 --- a/docs/resources/appstream_image_builder.md +++ b/docs/resources/appstream_image_builder.md @@ -42,7 +42,7 @@ Resource Type definition for AWS::AppStream::ImageBuilder ### Nested Schema for `access_endpoints` -Required: +Optional: - `endpoint_type` (String) - `vpce_id` (String) @@ -60,7 +60,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/appsync_function_configuration.md b/docs/resources/appsync_function_configuration.md index 0b74d6aaf4..f5c58c877e 100644 --- a/docs/resources/appsync_function_configuration.md +++ b/docs/resources/appsync_function_configuration.md @@ -44,7 +44,7 @@ An example resource schema demonstrating some basic constructs and validation ru ### Nested Schema for `runtime` -Required: +Optional: - `name` (String) The name of the runtime to use. Currently, the only allowed value is APPSYNC_JS. - `runtime_version` (String) The version of the runtime to use. Currently, the only allowed version is 1.0.0. @@ -53,12 +53,9 @@ Required: ### Nested Schema for `sync_config` -Required: - -- `conflict_detection` (String) The Conflict Detection strategy to use. - Optional: +- `conflict_detection` (String) The Conflict Detection strategy to use. - `conflict_handler` (String) The Conflict Resolution strategy to perform in the event of a conflict. - `lambda_conflict_handler_config` (Attributes) The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler. (see [below for nested schema](#nestedatt--sync_config--lambda_conflict_handler_config)) diff --git a/docs/resources/appsync_resolver.md b/docs/resources/appsync_resolver.md index c88b158b0e..3bcf225be4 100644 --- a/docs/resources/appsync_resolver.md +++ b/docs/resources/appsync_resolver.md @@ -53,15 +53,12 @@ The ``AWS::AppSync::Resolver`` resource defines the logical GraphQL resolver tha ### Nested Schema for `caching_config` -Required: - -- `ttl` (Number) The TTL in seconds for a resolver that has caching activated. - Valid values are 1?3,600 seconds. - Optional: - `caching_keys` (List of String) The caching keys for a resolver that has caching activated. Valid values are entries from the ``$context.arguments``, ``$context.source``, and ``$context.identity`` maps. +- `ttl` (Number) The TTL in seconds for a resolver that has caching activated. + Valid values are 1?3,600 seconds. @@ -75,7 +72,7 @@ Optional: ### Nested Schema for `runtime` -Required: +Optional: - `name` (String) The ``name`` of the runtime to use. Currently, the only allowed value is ``APPSYNC_JS``. - `runtime_version` (String) The ``version`` of the runtime to use. Currently, the only allowed version is ``1.0.0``. @@ -84,14 +81,11 @@ Required: ### Nested Schema for `sync_config` -Required: +Optional: - `conflict_detection` (String) The Conflict Detection strategy to use. + *VERSION*: Detect conflicts based on object versions for this resolver. + *NONE*: Do not detect conflicts when invoking this resolver. - -Optional: - - `conflict_handler` (String) The Conflict Resolution strategy to perform in the event of a conflict. + *OPTIMISTIC_CONCURRENCY*: Resolve conflicts by rejecting mutations when versions don't match the latest version at the server. + *AUTOMERGE*: Resolve conflicts with the Automerge conflict resolution strategy. diff --git a/docs/resources/apptest_test_case.md b/docs/resources/apptest_test_case.md index d1d90c6f90..a80386cabe 100644 --- a/docs/resources/apptest_test_case.md +++ b/docs/resources/apptest_test_case.md @@ -60,12 +60,9 @@ Optional: ### Nested Schema for `steps.action.compare_action` -Required: - -- `input` (Attributes) (see [below for nested schema](#nestedatt--steps--action--compare_action--input)) - Optional: +- `input` (Attributes) (see [below for nested schema](#nestedatt--steps--action--compare_action--input)) - `output` (Attributes) (see [below for nested schema](#nestedatt--steps--action--compare_action--output)) @@ -78,7 +75,7 @@ Optional: ### Nested Schema for `steps.action.compare_action.input.file` -Required: +Optional: - `file_metadata` (Attributes) (see [below for nested schema](#nestedatt--steps--action--compare_action--input--file--file_metadata)) - `source_location` (String) @@ -95,7 +92,7 @@ Optional: ### Nested Schema for `steps.action.compare_action.input.file.file_metadata.data_sets` -Required: +Optional: - `ccsid` (String) - `format` (String) @@ -107,7 +104,7 @@ Required: ### Nested Schema for `steps.action.compare_action.input.file.file_metadata.database_cdc` -Required: +Optional: - `source_metadata` (Attributes) (see [below for nested schema](#nestedatt--steps--action--compare_action--input--file--file_metadata--database_cdc--source_metadata)) - `target_metadata` (Attributes) (see [below for nested schema](#nestedatt--steps--action--compare_action--input--file--file_metadata--database_cdc--target_metadata)) @@ -115,7 +112,7 @@ Required: ### Nested Schema for `steps.action.compare_action.input.file.file_metadata.database_cdc.source_metadata` -Required: +Optional: - `capture_tool` (String) - `type` (String) @@ -124,7 +121,7 @@ Required: ### Nested Schema for `steps.action.compare_action.input.file.file_metadata.database_cdc.target_metadata` -Required: +Optional: - `capture_tool` (String) - `type` (String) @@ -154,14 +151,11 @@ Optional: ### Nested Schema for `steps.action.mainframe_action` -Required: - -- `action_type` (Attributes) (see [below for nested schema](#nestedatt--steps--action--mainframe_action--action_type)) -- `resource` (String) - Optional: +- `action_type` (Attributes) (see [below for nested schema](#nestedatt--steps--action--mainframe_action--action_type)) - `properties` (Attributes) (see [below for nested schema](#nestedatt--steps--action--mainframe_action--properties)) +- `resource` (String) ### Nested Schema for `steps.action.mainframe_action.action_type` @@ -174,12 +168,9 @@ Optional: ### Nested Schema for `steps.action.mainframe_action.action_type.batch` -Required: - -- `batch_job_name` (String) - Optional: +- `batch_job_name` (String) - `batch_job_parameters` (Map of String) - `export_data_set_names` (List of String) @@ -187,18 +178,15 @@ Optional: ### Nested Schema for `steps.action.mainframe_action.action_type.tn_3270` -Required: - -- `script` (Attributes) (see [below for nested schema](#nestedatt--steps--action--mainframe_action--action_type--tn_3270--script)) - Optional: - `export_data_set_names` (List of String) +- `script` (Attributes) (see [below for nested schema](#nestedatt--steps--action--mainframe_action--action_type--tn_3270--script)) ### Nested Schema for `steps.action.mainframe_action.action_type.tn_3270.script` -Required: +Optional: - `script_location` (String) - `type` (String) @@ -227,26 +215,20 @@ Optional: ### Nested Schema for `steps.action.resource_action.cloudformation_action` -Required: - -- `resource` (String) - Optional: - `action_type` (String) +- `resource` (String) ### Nested Schema for `steps.action.resource_action.m2_managed_application_action` -Required: - -- `action_type` (String) -- `resource` (String) - Optional: +- `action_type` (String) - `properties` (Attributes) (see [below for nested schema](#nestedatt--steps--action--resource_action--m2_managed_application_action--properties)) +- `resource` (String) ### Nested Schema for `steps.action.resource_action.m2_managed_application_action.properties` @@ -261,7 +243,7 @@ Optional: ### Nested Schema for `steps.action.resource_action.m2_non_managed_application_action` -Required: +Optional: - `action_type` (String) - `resource` (String) diff --git a/docs/resources/aps_rule_groups_namespace.md b/docs/resources/aps_rule_groups_namespace.md index b5ef5e45f0..4936afab01 100644 --- a/docs/resources/aps_rule_groups_namespace.md +++ b/docs/resources/aps_rule_groups_namespace.md @@ -33,7 +33,7 @@ RuleGroupsNamespace schema for cloudformation. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/aps_scraper.md b/docs/resources/aps_scraper.md index 31e5448532..eee0a25be3 100644 --- a/docs/resources/aps_scraper.md +++ b/docs/resources/aps_scraper.md @@ -43,7 +43,7 @@ Optional: ### Nested Schema for `destination.amp_configuration` -Required: +Optional: - `workspace_arn` (String) ARN of an Amazon Managed Prometheus workspace @@ -67,21 +67,18 @@ Optional: ### Nested Schema for `source.eks_configuration` -Required: - -- `cluster_arn` (String) ARN of an EKS cluster -- `subnet_ids` (List of String) List of subnet IDs - Optional: +- `cluster_arn` (String) ARN of an EKS cluster - `security_group_ids` (List of String) List of security group IDs +- `subnet_ids` (List of String) List of subnet IDs ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/aps_workspace.md b/docs/resources/aps_workspace.md index d5f8a17697..c362d19a10 100644 --- a/docs/resources/aps_workspace.md +++ b/docs/resources/aps_workspace.md @@ -41,7 +41,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/arczonalshift_zonal_autoshift_configuration.md b/docs/resources/arczonalshift_zonal_autoshift_configuration.md index 3ed6c19605..b239b14ff3 100644 --- a/docs/resources/arczonalshift_zonal_autoshift_configuration.md +++ b/docs/resources/arczonalshift_zonal_autoshift_configuration.md @@ -28,29 +28,26 @@ Definition of AWS::ARCZonalShift::ZonalAutoshiftConfiguration Resource Type ### Nested Schema for `practice_run_configuration` -Required: - -- `outcome_alarms` (Attributes List) (see [below for nested schema](#nestedatt--practice_run_configuration--outcome_alarms)) - Optional: - `blocked_dates` (List of String) - `blocked_windows` (List of String) - `blocking_alarms` (Attributes List) (see [below for nested schema](#nestedatt--practice_run_configuration--blocking_alarms)) +- `outcome_alarms` (Attributes List) (see [below for nested schema](#nestedatt--practice_run_configuration--outcome_alarms)) - -### Nested Schema for `practice_run_configuration.outcome_alarms` + +### Nested Schema for `practice_run_configuration.blocking_alarms` -Required: +Optional: - `alarm_identifier` (String) - `type` (String) - -### Nested Schema for `practice_run_configuration.blocking_alarms` + +### Nested Schema for `practice_run_configuration.outcome_alarms` -Required: +Optional: - `alarm_identifier` (String) - `type` (String) diff --git a/docs/resources/athena_capacity_reservation.md b/docs/resources/athena_capacity_reservation.md index b97b5162e0..1b72c2253b 100644 --- a/docs/resources/athena_capacity_reservation.md +++ b/docs/resources/athena_capacity_reservation.md @@ -61,14 +61,14 @@ variable "athena_workgroup_name" { ### Nested Schema for `capacity_assignment_configuration` -Required: +Optional: - `capacity_assignments` (Attributes List) List of capacity assignments (see [below for nested schema](#nestedatt--capacity_assignment_configuration--capacity_assignments)) ### Nested Schema for `capacity_assignment_configuration.capacity_assignments` -Required: +Optional: - `workgroup_names` (List of String) @@ -77,7 +77,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/athena_data_catalog.md b/docs/resources/athena_data_catalog.md index 1d1989d406..9c6172f328 100644 --- a/docs/resources/athena_data_catalog.md +++ b/docs/resources/athena_data_catalog.md @@ -46,7 +46,7 @@ resource "awscc_athena_data_catalog" "this" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/athena_work_group.md b/docs/resources/athena_work_group.md index e46abe2083..6f13e7f0ee 100644 --- a/docs/resources/athena_work_group.md +++ b/docs/resources/athena_work_group.md @@ -72,7 +72,7 @@ variable "kms_key_arn" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -96,7 +96,7 @@ Optional: ### Nested Schema for `work_group_configuration.customer_content_encryption_configuration` -Required: +Optional: - `kms_key` (String) For SSE-KMS and CSE-KMS, this is the KMS key ARN or ID. @@ -126,7 +126,7 @@ Optional: ### Nested Schema for `work_group_configuration.result_configuration.acl_configuration` -Required: +Optional: - `s3_acl_option` (String) The Amazon S3 canned ACL that Athena should specify when storing query results. Currently the only supported canned ACL is BUCKET_OWNER_FULL_CONTROL @@ -134,12 +134,9 @@ Required: ### Nested Schema for `work_group_configuration.result_configuration.encryption_configuration` -Required: - -- `encryption_option` (String) Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys (SSE-S3), server-side encryption with KMS-managed keys (SSE-KMS), or client-side encryption with KMS-managed keys (CSE-KMS) is used. - Optional: +- `encryption_option` (String) Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys (SSE-S3), server-side encryption with KMS-managed keys (SSE-KMS), or client-side encryption with KMS-managed keys (CSE-KMS) is used. - `kms_key` (String) For SSE-KMS and CSE-KMS, this is the KMS key ARN or ID. @@ -165,7 +162,7 @@ Optional: ### Nested Schema for `work_group_configuration_updates.customer_content_encryption_configuration` -Required: +Optional: - `kms_key` (String) For SSE-KMS and CSE-KMS, this is the KMS key ARN or ID. @@ -199,7 +196,7 @@ Optional: ### Nested Schema for `work_group_configuration_updates.result_configuration_updates.acl_configuration` -Required: +Optional: - `s3_acl_option` (String) The Amazon S3 canned ACL that Athena should specify when storing query results. Currently the only supported canned ACL is BUCKET_OWNER_FULL_CONTROL @@ -207,12 +204,9 @@ Required: ### Nested Schema for `work_group_configuration_updates.result_configuration_updates.encryption_configuration` -Required: - -- `encryption_option` (String) Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys (SSE-S3), server-side encryption with KMS-managed keys (SSE-KMS), or client-side encryption with KMS-managed keys (CSE-KMS) is used. - Optional: +- `encryption_option` (String) Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys (SSE-S3), server-side encryption with KMS-managed keys (SSE-KMS), or client-side encryption with KMS-managed keys (CSE-KMS) is used. - `kms_key` (String) For SSE-KMS and CSE-KMS, this is the KMS key ARN or ID. ## Import diff --git a/docs/resources/auditmanager_assessment.md b/docs/resources/auditmanager_assessment.md index 8fe52b693d..d903184bd4 100644 --- a/docs/resources/auditmanager_assessment.md +++ b/docs/resources/auditmanager_assessment.md @@ -111,7 +111,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/autoscaling_auto_scaling_group.md b/docs/resources/autoscaling_auto_scaling_group.md index 98896f1fff..5a731122ed 100644 --- a/docs/resources/autoscaling_auto_scaling_group.md +++ b/docs/resources/autoscaling_auto_scaling_group.md @@ -227,35 +227,29 @@ Optional: ### Nested Schema for `launch_template` -Required: - -- `version` (String) The version number of the launch template. - Specifying ``$Latest`` or ``$Default`` for the template version number is not supported. However, you can specify ``LatestVersionNumber`` or ``DefaultVersionNumber`` using the ``Fn::GetAtt`` intrinsic function. For more information, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html). - For an example of using the ``Fn::GetAtt`` function, see the [Examples](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html#aws-resource-autoscaling-autoscalinggroup--examples) section of the ``AWS::AutoScaling::AutoScalingGroup`` resource. - Optional: - `launch_template_id` (String) The ID of the launch template. You must specify the ``LaunchTemplateID`` or the ``LaunchTemplateName``, but not both. - `launch_template_name` (String) The name of the launch template. You must specify the ``LaunchTemplateName`` or the ``LaunchTemplateID``, but not both. +- `version` (String) The version number of the launch template. + Specifying ``$Latest`` or ``$Default`` for the template version number is not supported. However, you can specify ``LatestVersionNumber`` or ``DefaultVersionNumber`` using the ``Fn::GetAtt`` intrinsic function. For more information, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html). + For an example of using the ``Fn::GetAtt`` function, see the [Examples](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html#aws-resource-autoscaling-autoscalinggroup--examples) section of the ``AWS::AutoScaling::AutoScalingGroup`` resource. ### Nested Schema for `lifecycle_hook_specification_list` -Required: - -- `lifecycle_hook_name` (String) The name of the lifecycle hook. -- `lifecycle_transition` (String) The lifecycle transition. For Auto Scaling groups, there are two major lifecycle transitions. - + To create a lifecycle hook for scale-out events, specify ``autoscaling:EC2_INSTANCE_LAUNCHING``. - + To create a lifecycle hook for scale-in events, specify ``autoscaling:EC2_INSTANCE_TERMINATING``. - Optional: - `default_result` (String) The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs. The default value is ``ABANDON``. Valid values: ``CONTINUE`` | ``ABANDON`` - `heartbeat_timeout` (Number) The maximum time, in seconds, that can elapse before the lifecycle hook times out. The range is from ``30`` to ``7200`` seconds. The default value is ``3600`` seconds (1 hour). +- `lifecycle_hook_name` (String) The name of the lifecycle hook. +- `lifecycle_transition` (String) The lifecycle transition. For Auto Scaling groups, there are two major lifecycle transitions. + + To create a lifecycle hook for scale-out events, specify ``autoscaling:EC2_INSTANCE_LAUNCHING``. + + To create a lifecycle hook for scale-in events, specify ``autoscaling:EC2_INSTANCE_TERMINATING``. - `notification_metadata` (String) Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the notification target. - `notification_target_arn` (String) The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling sends notifications to when an instance is in a wait state for the lifecycle hook. You can specify an Amazon SNS topic or an Amazon SQS queue. - `role_arn` (String) The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target. For information about creating this role, see [Prepare to add a lifecycle hook to your Auto Scaling group](https://docs.aws.amazon.com/autoscaling/ec2/userguide/prepare-for-lifecycle-notifications.html) in the *Amazon EC2 Auto Scaling User Guide*. @@ -265,12 +259,9 @@ Optional: ### Nested Schema for `metrics_collection` -Required: - -- `granularity` (String) The frequency at which Amazon EC2 Auto Scaling sends aggregated data to CloudWatch. The only valid value is ``1Minute``. - Optional: +- `granularity` (String) The frequency at which Amazon EC2 Auto Scaling sends aggregated data to CloudWatch. The only valid value is ``1Minute``. - `metrics` (List of String) Identifies the metrics to enable. You can specify one or more of the following metrics: + ``GroupMinSize`` @@ -301,40 +292,56 @@ Optional: ### Nested Schema for `mixed_instances_policy` -Required: +Optional: +- `instances_distribution` (Attributes) The instances distribution. (see [below for nested schema](#nestedatt--mixed_instances_policy--instances_distribution)) - `launch_template` (Attributes) One or more launch templates and the instance types (overrides) that are used to launch EC2 instances to fulfill On-Demand and Spot capacities. (see [below for nested schema](#nestedatt--mixed_instances_policy--launch_template)) + +### Nested Schema for `mixed_instances_policy.instances_distribution` + Optional: -- `instances_distribution` (Attributes) The instances distribution. (see [below for nested schema](#nestedatt--mixed_instances_policy--instances_distribution)) +- `on_demand_allocation_strategy` (String) The allocation strategy to apply to your On-Demand Instances when they are launched. Possible instance types are determined by the launch template overrides that you specify. + The following lists the valid values: + + lowest-price Uses price to determine which instance types are the highest priority, launching the lowest priced instance types within an Availability Zone first. This is the default value for Auto Scaling groups that specify InstanceRequirements. + prioritized You set the order of instance types for the launch template overrides from highest to lowest priority (from first to last in the list). Amazon EC2 Auto Scaling launches your highest priority instance types first. If all your On-Demand capacity cannot be fulfilled using your highest priority instance type, then Amazon EC2 Auto Scaling launches the remaining capacity using the second priority instance type, and so on. This is the default value for Auto Scaling groups that don't specify InstanceRequirements and cannot be used for groups that do. +- `on_demand_base_capacity` (Number) The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is launched first as your group scales. + This number has the same unit of measurement as the group's desired capacity. If you change the default unit of measurement (number of instances) by specifying weighted capacity values in your launch template overrides list, or by changing the default desired capacity type setting of the group, you must specify this number using the same unit of measurement. + Default: 0 + An update to this setting means a gradual replacement of instances to adjust the current On-Demand Instance levels. When replacing instances, Amazon EC2 Auto Scaling launches new instances before terminating the previous ones. +- `on_demand_percentage_above_base_capacity` (Number) Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond ``OnDemandBaseCapacity``. Expressed as a number (for example, 20 specifies 20% On-Demand Instances, 80% Spot Instances). If set to 100, only On-Demand Instances are used. + Default: 100 + An update to this setting means a gradual replacement of instances to adjust the current On-Demand and Spot Instance levels for your additional capacity higher than the base capacity. When replacing instances, Amazon EC2 Auto Scaling launches new instances before terminating the previous ones. +- `spot_allocation_strategy` (String) The allocation strategy to apply to your Spot Instances when they are launched. Possible instance types are determined by the launch template overrides that you specify. + The following lists the valid values: + + capacity-optimized Requests Spot Instances using pools that are optimally chosen based on the available Spot capacity. This strategy has the lowest risk of interruption. To give certain instance types a higher chance of launching first, use capacity-optimized-prioritized. + capacity-optimized-prioritized You set the order of instance types for the launch template overrides from highest to lowest priority (from first to last in the list). Amazon EC2 Auto Scaling honors the instance type priorities on a best effort basis but optimizes for capacity first. Note that if the On-Demand allocation strategy is set to prioritized, the same priority is applied when fulfilling On-Demand capacity. This is not a valid value for Auto Scaling groups that specify InstanceRequirements. + lowest-price Requests Spot Instances using the lowest priced pools within an Availability Zone, across the number of Spot pools that you specify for the SpotInstancePools property. To ensure that your desired capacity is met, you might receive Spot Instances from several pools. This is the default value, but it might lead to high interruption rates because this strategy only considers instance price and not available capacity. + price-capacity-optimized (recommended) The price and capacity optimized allocation strategy looks at both price and capacity to select the Spot Instance pools that are the least likely to be interrupted and have the lowest possible price. +- `spot_instance_pools` (Number) The number of Spot Instance pools across which to allocate your Spot Instances. The Spot pools are determined from the different instance types in the overrides. Valid only when the ``SpotAllocationStrategy`` is ``lowest-price``. Value must be in the range of 1–20. + Default: 2 +- `spot_max_price` (String) The maximum price per unit hour that you are willing to pay for a Spot Instance. If your maximum price is lower than the Spot price for the instance types that you selected, your Spot Instances are not launched. We do not recommend specifying a maximum price because it can lead to increased interruptions. When Spot Instances launch, you pay the current Spot price. To remove a maximum price that you previously set, include the property but specify an empty string ("") for the value. + If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify one. + Valid Range: Minimum value of 0.001 + ### Nested Schema for `mixed_instances_policy.launch_template` -Required: - -- `launch_template_specification` (Attributes) The launch template. (see [below for nested schema](#nestedatt--mixed_instances_policy--launch_template--launch_template_specification)) - Optional: +- `launch_template_specification` (Attributes) The launch template. (see [below for nested schema](#nestedatt--mixed_instances_policy--launch_template--launch_template_specification)) - `overrides` (Attributes List) Any properties that you specify override the same properties in the launch template. (see [below for nested schema](#nestedatt--mixed_instances_policy--launch_template--overrides)) ### Nested Schema for `mixed_instances_policy.launch_template.launch_template_specification` -Required: - -- `version` (String) The version number of the launch template. - Specifying ``$Latest`` or ``$Default`` for the template version number is not supported. However, you can specify ``LatestVersionNumber`` or ``DefaultVersionNumber`` using the ``Fn::GetAtt`` intrinsic function. For more information, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html). - For an example of using the ``Fn::GetAtt`` function, see the [Examples](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html#aws-resource-autoscaling-autoscalinggroup--examples) section of the ``AWS::AutoScaling::AutoScalingGroup`` resource. - Optional: - `launch_template_id` (String) The ID of the launch template. You must specify the ``LaunchTemplateID`` or the ``LaunchTemplateName``, but not both. - `launch_template_name` (String) The name of the launch template. You must specify the ``LaunchTemplateName`` or the ``LaunchTemplateID``, but not both. +- `version` (String) The version number of the launch template. + Specifying ``$Latest`` or ``$Default`` for the template version number is not supported. However, you can specify ``LatestVersionNumber`` or ``DefaultVersionNumber`` using the ``Fn::GetAtt`` intrinsic function. For more information, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html). + For an example of using the ``Fn::GetAtt`` function, see the [Examples](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html#aws-resource-autoscaling-autoscalinggroup--examples) section of the ``AWS::AutoScaling::AutoScalingGroup`` resource. @@ -356,11 +363,6 @@ Optional: ### Nested Schema for `mixed_instances_policy.launch_template.overrides.instance_requirements` -Required: - -- `memory_mi_b` (Attributes) The minimum and maximum instance memory size for an instance type, in MiB. (see [below for nested schema](#nestedatt--mixed_instances_policy--launch_template--overrides--instance_requirements--memory_mi_b)) -- `v_cpu_count` (Attributes) The minimum and maximum number of vCPUs for an instance type. (see [below for nested schema](#nestedatt--mixed_instances_policy--launch_template--overrides--instance_requirements--v_cpu_count)) - Optional: - `accelerator_count` (Attributes) The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) for an instance type. @@ -431,6 +433,7 @@ Optional: Only one of ``SpotMaxPricePercentageOverLowestPrice`` or ``MaxSpotPriceAsPercentageOfOptimalOnDemandPrice`` can be specified. If you don't specify either, Amazon EC2 Auto Scaling will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as ``999999``. - `memory_gi_b_per_v_cpu` (Attributes) The minimum and maximum amount of memory per vCPU for an instance type, in GiB. Default: No minimum or maximum limits (see [below for nested schema](#nestedatt--mixed_instances_policy--launch_template--overrides--instance_requirements--memory_gi_b_per_v_cpu)) +- `memory_mi_b` (Attributes) The minimum and maximum instance memory size for an instance type, in MiB. (see [below for nested schema](#nestedatt--mixed_instances_policy--launch_template--overrides--instance_requirements--memory_mi_b)) - `network_bandwidth_gbps` (Attributes) The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default: No minimum or maximum limits (see [below for nested schema](#nestedatt--mixed_instances_policy--launch_template--overrides--instance_requirements--network_bandwidth_gbps)) - `network_interface_count` (Attributes) The minimum and maximum number of network interfaces for an instance type. @@ -448,24 +451,7 @@ Optional: Only one of ``SpotMaxPricePercentageOverLowestPrice`` or ``MaxSpotPriceAsPercentageOfOptimalOnDemandPrice`` can be specified. If you don't specify either, Amazon EC2 Auto Scaling will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as ``999999``. - `total_local_storage_gb` (Attributes) The minimum and maximum total local storage size for an instance type, in GB. Default: No minimum or maximum limits (see [below for nested schema](#nestedatt--mixed_instances_policy--launch_template--overrides--instance_requirements--total_local_storage_gb)) - - -### Nested Schema for `mixed_instances_policy.launch_template.overrides.instance_requirements.memory_mi_b` - -Optional: - -- `max` (Number) The memory maximum in MiB. -- `min` (Number) The memory minimum in MiB. - - - -### Nested Schema for `mixed_instances_policy.launch_template.overrides.instance_requirements.v_cpu_count` - -Optional: - -- `max` (Number) The maximum number of vCPUs. -- `min` (Number) The minimum number of vCPUs. - +- `v_cpu_count` (Attributes) The minimum and maximum number of vCPUs for an instance type. (see [below for nested schema](#nestedatt--mixed_instances_policy--launch_template--overrides--instance_requirements--v_cpu_count)) ### Nested Schema for `mixed_instances_policy.launch_template.overrides.instance_requirements.accelerator_count` @@ -503,6 +489,15 @@ Optional: - `min` (Number) The memory minimum in GiB. + +### Nested Schema for `mixed_instances_policy.launch_template.overrides.instance_requirements.memory_mi_b` + +Optional: + +- `max` (Number) The memory maximum in MiB. +- `min` (Number) The memory minimum in MiB. + + ### Nested Schema for `mixed_instances_policy.launch_template.overrides.instance_requirements.network_bandwidth_gbps` @@ -530,15 +525,18 @@ Optional: - `min` (Number) The storage minimum in GB. + +### Nested Schema for `mixed_instances_policy.launch_template.overrides.instance_requirements.v_cpu_count` - -### Nested Schema for `mixed_instances_policy.launch_template.overrides.launch_template_specification` +Optional: + +- `max` (Number) The maximum number of vCPUs. +- `min` (Number) The minimum number of vCPUs. -Required: -- `version` (String) The version number of the launch template. - Specifying ``$Latest`` or ``$Default`` for the template version number is not supported. However, you can specify ``LatestVersionNumber`` or ``DefaultVersionNumber`` using the ``Fn::GetAtt`` intrinsic function. For more information, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html). - For an example of using the ``Fn::GetAtt`` function, see the [Examples](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html#aws-resource-autoscaling-autoscalinggroup--examples) section of the ``AWS::AutoScaling::AutoScalingGroup`` resource. + + +### Nested Schema for `mixed_instances_policy.launch_template.overrides.launch_template_specification` Optional: @@ -546,43 +544,17 @@ Optional: You must specify the ``LaunchTemplateID`` or the ``LaunchTemplateName``, but not both. - `launch_template_name` (String) The name of the launch template. You must specify the ``LaunchTemplateName`` or the ``LaunchTemplateID``, but not both. +- `version` (String) The version number of the launch template. + Specifying ``$Latest`` or ``$Default`` for the template version number is not supported. However, you can specify ``LatestVersionNumber`` or ``DefaultVersionNumber`` using the ``Fn::GetAtt`` intrinsic function. For more information, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html). + For an example of using the ``Fn::GetAtt`` function, see the [Examples](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html#aws-resource-autoscaling-autoscalinggroup--examples) section of the ``AWS::AutoScaling::AutoScalingGroup`` resource. - -### Nested Schema for `mixed_instances_policy.instances_distribution` - -Optional: - -- `on_demand_allocation_strategy` (String) The allocation strategy to apply to your On-Demand Instances when they are launched. Possible instance types are determined by the launch template overrides that you specify. - The following lists the valid values: - + lowest-price Uses price to determine which instance types are the highest priority, launching the lowest priced instance types within an Availability Zone first. This is the default value for Auto Scaling groups that specify InstanceRequirements. + prioritized You set the order of instance types for the launch template overrides from highest to lowest priority (from first to last in the list). Amazon EC2 Auto Scaling launches your highest priority instance types first. If all your On-Demand capacity cannot be fulfilled using your highest priority instance type, then Amazon EC2 Auto Scaling launches the remaining capacity using the second priority instance type, and so on. This is the default value for Auto Scaling groups that don't specify InstanceRequirements and cannot be used for groups that do. -- `on_demand_base_capacity` (Number) The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is launched first as your group scales. - This number has the same unit of measurement as the group's desired capacity. If you change the default unit of measurement (number of instances) by specifying weighted capacity values in your launch template overrides list, or by changing the default desired capacity type setting of the group, you must specify this number using the same unit of measurement. - Default: 0 - An update to this setting means a gradual replacement of instances to adjust the current On-Demand Instance levels. When replacing instances, Amazon EC2 Auto Scaling launches new instances before terminating the previous ones. -- `on_demand_percentage_above_base_capacity` (Number) Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond ``OnDemandBaseCapacity``. Expressed as a number (for example, 20 specifies 20% On-Demand Instances, 80% Spot Instances). If set to 100, only On-Demand Instances are used. - Default: 100 - An update to this setting means a gradual replacement of instances to adjust the current On-Demand and Spot Instance levels for your additional capacity higher than the base capacity. When replacing instances, Amazon EC2 Auto Scaling launches new instances before terminating the previous ones. -- `spot_allocation_strategy` (String) The allocation strategy to apply to your Spot Instances when they are launched. Possible instance types are determined by the launch template overrides that you specify. - The following lists the valid values: - + capacity-optimized Requests Spot Instances using pools that are optimally chosen based on the available Spot capacity. This strategy has the lowest risk of interruption. To give certain instance types a higher chance of launching first, use capacity-optimized-prioritized. + capacity-optimized-prioritized You set the order of instance types for the launch template overrides from highest to lowest priority (from first to last in the list). Amazon EC2 Auto Scaling honors the instance type priorities on a best effort basis but optimizes for capacity first. Note that if the On-Demand allocation strategy is set to prioritized, the same priority is applied when fulfilling On-Demand capacity. This is not a valid value for Auto Scaling groups that specify InstanceRequirements. + lowest-price Requests Spot Instances using the lowest priced pools within an Availability Zone, across the number of Spot pools that you specify for the SpotInstancePools property. To ensure that your desired capacity is met, you might receive Spot Instances from several pools. This is the default value, but it might lead to high interruption rates because this strategy only considers instance price and not available capacity. + price-capacity-optimized (recommended) The price and capacity optimized allocation strategy looks at both price and capacity to select the Spot Instance pools that are the least likely to be interrupted and have the lowest possible price. -- `spot_instance_pools` (Number) The number of Spot Instance pools across which to allocate your Spot Instances. The Spot pools are determined from the different instance types in the overrides. Valid only when the ``SpotAllocationStrategy`` is ``lowest-price``. Value must be in the range of 1–20. - Default: 2 -- `spot_max_price` (String) The maximum price per unit hour that you are willing to pay for a Spot Instance. If your maximum price is lower than the Spot price for the instance types that you selected, your Spot Instances are not launched. We do not recommend specifying a maximum price because it can lead to increased interruptions. When Spot Instances launch, you pay the current Spot price. To remove a maximum price that you previously set, include the property but specify an empty string ("") for the value. - If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify one. - Valid Range: Minimum value of 0.001 - - ### Nested Schema for `notification_configuration` -Required: - -- `topic_arn` (String) The Amazon Resource Name (ARN) of the Amazon SNS topic. - Optional: - `notification_types` (List of String) A list of event types that send a notification. Event types can include any of the following types. @@ -592,15 +564,12 @@ Optional: + ``autoscaling:EC2_INSTANCE_TERMINATE`` + ``autoscaling:EC2_INSTANCE_TERMINATE_ERROR`` + ``autoscaling:TEST_NOTIFICATION`` +- `topic_arn` (String) The Amazon Resource Name (ARN) of the Amazon SNS topic. ### Nested Schema for `notification_configurations` -Required: - -- `topic_arn` (String) The Amazon Resource Name (ARN) of the Amazon SNS topic. - Optional: - `notification_types` (List of String) A list of event types that send a notification. Event types can include any of the following types. @@ -610,12 +579,13 @@ Optional: + ``autoscaling:EC2_INSTANCE_TERMINATE`` + ``autoscaling:EC2_INSTANCE_TERMINATE_ERROR`` + ``autoscaling:TEST_NOTIFICATION`` +- `topic_arn` (String) The Amazon Resource Name (ARN) of the Amazon SNS topic. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag key. - `propagate_at_launch` (Boolean) Set to ``true`` if you want CloudFormation to copy the tag to EC2 instances that are launched as part of the Auto Scaling group. Set to ``false`` if you want the tag attached only to the Auto Scaling group and not copied to any instances launched as part of the Auto Scaling group. diff --git a/docs/resources/autoscaling_launch_configuration.md b/docs/resources/autoscaling_launch_configuration.md index 9c835e3f69..94b1218bf9 100644 --- a/docs/resources/autoscaling_launch_configuration.md +++ b/docs/resources/autoscaling_launch_configuration.md @@ -47,12 +47,9 @@ The AWS::AutoScaling::LaunchConfiguration resource specifies the launch configur ### Nested Schema for `block_device_mappings` -Required: - -- `device_name` (String) The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh). - Optional: +- `device_name` (String) The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh). - `ebs` (Attributes) Parameters used to automatically set up EBS volumes when an instance is launched. (see [below for nested schema](#nestedatt--block_device_mappings--ebs)) - `no_device` (Boolean) Setting this value to true suppresses the specified device included in the block device mapping of the AMI. - `virtual_name` (String) The name of the virtual device. diff --git a/docs/resources/autoscaling_scaling_policy.md b/docs/resources/autoscaling_scaling_policy.md index 64d1d3ca0f..4fb6fb4031 100644 --- a/docs/resources/autoscaling_scaling_policy.md +++ b/docs/resources/autoscaling_scaling_policy.md @@ -41,24 +41,17 @@ The AWS::AutoScaling::ScalingPolicy resource specifies an Amazon EC2 Auto Scalin ### Nested Schema for `predictive_scaling_configuration` -Required: - -- `metric_specifications` (Attributes Set) (see [below for nested schema](#nestedatt--predictive_scaling_configuration--metric_specifications)) - Optional: - `max_capacity_breach_behavior` (String) - `max_capacity_buffer` (Number) +- `metric_specifications` (Attributes Set) (see [below for nested schema](#nestedatt--predictive_scaling_configuration--metric_specifications)) - `mode` (String) - `scheduling_buffer_time` (Number) ### Nested Schema for `predictive_scaling_configuration.metric_specifications` -Required: - -- `target_value` (Number) - Optional: - `customized_capacity_metric_specification` (Attributes) (see [below for nested schema](#nestedatt--predictive_scaling_configuration--metric_specifications--customized_capacity_metric_specification)) @@ -67,24 +60,22 @@ Optional: - `predefined_load_metric_specification` (Attributes) (see [below for nested schema](#nestedatt--predictive_scaling_configuration--metric_specifications--predefined_load_metric_specification)) - `predefined_metric_pair_specification` (Attributes) (see [below for nested schema](#nestedatt--predictive_scaling_configuration--metric_specifications--predefined_metric_pair_specification)) - `predefined_scaling_metric_specification` (Attributes) (see [below for nested schema](#nestedatt--predictive_scaling_configuration--metric_specifications--predefined_scaling_metric_specification)) +- `target_value` (Number) ### Nested Schema for `predictive_scaling_configuration.metric_specifications.customized_capacity_metric_specification` -Required: +Optional: - `metric_data_queries` (Attributes Set) (see [below for nested schema](#nestedatt--predictive_scaling_configuration--metric_specifications--customized_capacity_metric_specification--metric_data_queries)) ### Nested Schema for `predictive_scaling_configuration.metric_specifications.customized_capacity_metric_specification.metric_data_queries` -Required: - -- `id` (String) - Optional: - `expression` (String) +- `id` (String) - `label` (String) - `metric_stat` (Attributes) (see [below for nested schema](#nestedatt--predictive_scaling_configuration--metric_specifications--customized_capacity_metric_specification--metric_data_queries--metric_stat)) - `return_data` (Boolean) @@ -92,31 +83,25 @@ Optional: ### Nested Schema for `predictive_scaling_configuration.metric_specifications.customized_capacity_metric_specification.metric_data_queries.metric_stat` -Required: +Optional: - `metric` (Attributes) (see [below for nested schema](#nestedatt--predictive_scaling_configuration--metric_specifications--customized_capacity_metric_specification--metric_data_queries--metric_stat--metric)) - `stat` (String) - -Optional: - - `unit` (String) ### Nested Schema for `predictive_scaling_configuration.metric_specifications.customized_capacity_metric_specification.metric_data_queries.metric_stat.metric` -Required: - -- `metric_name` (String) -- `namespace` (String) - Optional: - `dimensions` (Attributes Set) (see [below for nested schema](#nestedatt--predictive_scaling_configuration--metric_specifications--customized_capacity_metric_specification--metric_data_queries--metric_stat--metric--dimensions)) +- `metric_name` (String) +- `namespace` (String) ### Nested Schema for `predictive_scaling_configuration.metric_specifications.customized_capacity_metric_specification.metric_data_queries.metric_stat.metric.dimensions` -Required: +Optional: - `name` (String) - `value` (String) @@ -129,20 +114,17 @@ Required: ### Nested Schema for `predictive_scaling_configuration.metric_specifications.customized_load_metric_specification` -Required: +Optional: - `metric_data_queries` (Attributes Set) (see [below for nested schema](#nestedatt--predictive_scaling_configuration--metric_specifications--customized_load_metric_specification--metric_data_queries)) ### Nested Schema for `predictive_scaling_configuration.metric_specifications.customized_load_metric_specification.metric_data_queries` -Required: - -- `id` (String) - Optional: - `expression` (String) +- `id` (String) - `label` (String) - `metric_stat` (Attributes) (see [below for nested schema](#nestedatt--predictive_scaling_configuration--metric_specifications--customized_load_metric_specification--metric_data_queries--metric_stat)) - `return_data` (Boolean) @@ -150,31 +132,25 @@ Optional: ### Nested Schema for `predictive_scaling_configuration.metric_specifications.customized_load_metric_specification.metric_data_queries.metric_stat` -Required: +Optional: - `metric` (Attributes) (see [below for nested schema](#nestedatt--predictive_scaling_configuration--metric_specifications--customized_load_metric_specification--metric_data_queries--metric_stat--metric)) - `stat` (String) - -Optional: - - `unit` (String) ### Nested Schema for `predictive_scaling_configuration.metric_specifications.customized_load_metric_specification.metric_data_queries.metric_stat.metric` -Required: - -- `metric_name` (String) -- `namespace` (String) - Optional: - `dimensions` (Attributes Set) (see [below for nested schema](#nestedatt--predictive_scaling_configuration--metric_specifications--customized_load_metric_specification--metric_data_queries--metric_stat--metric--dimensions)) +- `metric_name` (String) +- `namespace` (String) ### Nested Schema for `predictive_scaling_configuration.metric_specifications.customized_load_metric_specification.metric_data_queries.metric_stat.metric.dimensions` -Required: +Optional: - `name` (String) - `value` (String) @@ -187,20 +163,17 @@ Required: ### Nested Schema for `predictive_scaling_configuration.metric_specifications.customized_scaling_metric_specification` -Required: +Optional: - `metric_data_queries` (Attributes Set) (see [below for nested schema](#nestedatt--predictive_scaling_configuration--metric_specifications--customized_scaling_metric_specification--metric_data_queries)) ### Nested Schema for `predictive_scaling_configuration.metric_specifications.customized_scaling_metric_specification.metric_data_queries` -Required: - -- `id` (String) - Optional: - `expression` (String) +- `id` (String) - `label` (String) - `metric_stat` (Attributes) (see [below for nested schema](#nestedatt--predictive_scaling_configuration--metric_specifications--customized_scaling_metric_specification--metric_data_queries--metric_stat)) - `return_data` (Boolean) @@ -208,31 +181,25 @@ Optional: ### Nested Schema for `predictive_scaling_configuration.metric_specifications.customized_scaling_metric_specification.metric_data_queries.metric_stat` -Required: +Optional: - `metric` (Attributes) (see [below for nested schema](#nestedatt--predictive_scaling_configuration--metric_specifications--customized_scaling_metric_specification--metric_data_queries--metric_stat--metric)) - `stat` (String) - -Optional: - - `unit` (String) ### Nested Schema for `predictive_scaling_configuration.metric_specifications.customized_scaling_metric_specification.metric_data_queries.metric_stat.metric` -Required: - -- `metric_name` (String) -- `namespace` (String) - Optional: - `dimensions` (Attributes Set) (see [below for nested schema](#nestedatt--predictive_scaling_configuration--metric_specifications--customized_scaling_metric_specification--metric_data_queries--metric_stat--metric--dimensions)) +- `metric_name` (String) +- `namespace` (String) ### Nested Schema for `predictive_scaling_configuration.metric_specifications.customized_scaling_metric_specification.metric_data_queries.metric_stat.metric.dimensions` -Required: +Optional: - `name` (String) - `value` (String) @@ -245,36 +212,27 @@ Required: ### Nested Schema for `predictive_scaling_configuration.metric_specifications.predefined_load_metric_specification` -Required: - -- `predefined_metric_type` (String) - Optional: +- `predefined_metric_type` (String) - `resource_label` (String) ### Nested Schema for `predictive_scaling_configuration.metric_specifications.predefined_metric_pair_specification` -Required: - -- `predefined_metric_type` (String) - Optional: +- `predefined_metric_type` (String) - `resource_label` (String) ### Nested Schema for `predictive_scaling_configuration.metric_specifications.predefined_scaling_metric_specification` -Required: - -- `predefined_metric_type` (String) - Optional: +- `predefined_metric_type` (String) - `resource_label` (String) @@ -283,28 +241,22 @@ Optional: ### Nested Schema for `step_adjustments` -Required: - -- `scaling_adjustment` (Number) - Optional: - `metric_interval_lower_bound` (Number) - `metric_interval_upper_bound` (Number) +- `scaling_adjustment` (Number) ### Nested Schema for `target_tracking_configuration` -Required: - -- `target_value` (Number) - Optional: - `customized_metric_specification` (Attributes) (see [below for nested schema](#nestedatt--target_tracking_configuration--customized_metric_specification)) - `disable_scale_in` (Boolean) - `predefined_metric_specification` (Attributes) (see [below for nested schema](#nestedatt--target_tracking_configuration--predefined_metric_specification)) +- `target_value` (Number) ### Nested Schema for `target_tracking_configuration.customized_metric_specification` @@ -321,7 +273,7 @@ Optional: ### Nested Schema for `target_tracking_configuration.customized_metric_specification.dimensions` -Required: +Optional: - `name` (String) - `value` (String) @@ -330,13 +282,10 @@ Required: ### Nested Schema for `target_tracking_configuration.customized_metric_specification.metrics` -Required: - -- `id` (String) - Optional: - `expression` (String) +- `id` (String) - `label` (String) - `metric_stat` (Attributes) (see [below for nested schema](#nestedatt--target_tracking_configuration--customized_metric_specification--metrics--metric_stat)) - `return_data` (Boolean) @@ -344,31 +293,25 @@ Optional: ### Nested Schema for `target_tracking_configuration.customized_metric_specification.metrics.metric_stat` -Required: +Optional: - `metric` (Attributes) (see [below for nested schema](#nestedatt--target_tracking_configuration--customized_metric_specification--metrics--metric_stat--metric)) - `stat` (String) - -Optional: - - `unit` (String) ### Nested Schema for `target_tracking_configuration.customized_metric_specification.metrics.metric_stat.metric` -Required: - -- `metric_name` (String) -- `namespace` (String) - Optional: - `dimensions` (Attributes Set) (see [below for nested schema](#nestedatt--target_tracking_configuration--customized_metric_specification--metrics--metric_stat--metric--dimensions)) +- `metric_name` (String) +- `namespace` (String) ### Nested Schema for `target_tracking_configuration.customized_metric_specification.metrics.metric_stat.metric.dimensions` -Required: +Optional: - `name` (String) - `value` (String) @@ -381,12 +324,9 @@ Required: ### Nested Schema for `target_tracking_configuration.predefined_metric_specification` -Required: - -- `predefined_metric_type` (String) - Optional: +- `predefined_metric_type` (String) - `resource_label` (String) ## Import diff --git a/docs/resources/b2bi_capability.md b/docs/resources/b2bi_capability.md index 2d8537a9df..887fff26cb 100644 --- a/docs/resources/b2bi_capability.md +++ b/docs/resources/b2bi_capability.md @@ -44,7 +44,7 @@ Optional: ### Nested Schema for `configuration.edi` -Required: +Optional: - `input_location` (Attributes) (see [below for nested schema](#nestedatt--configuration--edi--input_location)) - `output_location` (Attributes) (see [below for nested schema](#nestedatt--configuration--edi--output_location)) @@ -100,7 +100,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/b2bi_partnership.md b/docs/resources/b2bi_partnership.md index 3c613fd077..3f7081ee33 100644 --- a/docs/resources/b2bi_partnership.md +++ b/docs/resources/b2bi_partnership.md @@ -39,7 +39,7 @@ Definition of AWS::B2BI::Partnership Resource Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/b2bi_profile.md b/docs/resources/b2bi_profile.md index 457155b26d..7ab933afab 100644 --- a/docs/resources/b2bi_profile.md +++ b/docs/resources/b2bi_profile.md @@ -39,7 +39,7 @@ Definition of AWS::B2BI::Profile Resource Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/b2bi_transformer.md b/docs/resources/b2bi_transformer.md index 242ff6a66d..9d57aafa69 100644 --- a/docs/resources/b2bi_transformer.md +++ b/docs/resources/b2bi_transformer.md @@ -56,7 +56,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/backup_backup_plan.md b/docs/resources/backup_backup_plan.md index e38b71f8fe..57957c6142 100644 --- a/docs/resources/backup_backup_plan.md +++ b/docs/resources/backup_backup_plan.md @@ -90,12 +90,9 @@ Optional: ### Nested Schema for `backup_plan.backup_plan_rule.copy_actions` -Required: - -- `destination_backup_vault_arn` (String) - Optional: +- `destination_backup_vault_arn` (String) - `lifecycle` (Attributes) (see [below for nested schema](#nestedatt--backup_plan--backup_plan_rule--copy_actions--lifecycle)) @@ -123,7 +120,7 @@ Optional: ### Nested Schema for `backup_plan.advanced_backup_settings` -Required: +Optional: - `backup_options` (String) - `resource_type` (String) diff --git a/docs/resources/backup_backup_selection.md b/docs/resources/backup_backup_selection.md index 19231cd034..100e996c66 100644 --- a/docs/resources/backup_backup_selection.md +++ b/docs/resources/backup_backup_selection.md @@ -185,7 +185,7 @@ Optional: ### Nested Schema for `backup_selection.list_of_tags` -Required: +Optional: - `condition_key` (String) - `condition_type` (String) diff --git a/docs/resources/backup_backup_vault.md b/docs/resources/backup_backup_vault.md index 132225eb25..40b9012111 100644 --- a/docs/resources/backup_backup_vault.md +++ b/docs/resources/backup_backup_vault.md @@ -76,20 +76,17 @@ resource "awscc_kms_alias" "example" { ### Nested Schema for `lock_configuration` -Required: - -- `min_retention_days` (Number) - Optional: - `changeable_for_days` (Number) - `max_retention_days` (Number) +- `min_retention_days` (Number) ### Nested Schema for `notifications` -Required: +Optional: - `backup_vault_events` (List of String) - `sns_topic_arn` (String) diff --git a/docs/resources/backup_framework.md b/docs/resources/backup_framework.md index 95262165c3..bca29dcaa7 100644 --- a/docs/resources/backup_framework.md +++ b/docs/resources/backup_framework.md @@ -110,7 +110,7 @@ Optional: ### Nested Schema for `framework_controls.control_input_parameters` -Required: +Optional: - `parameter_name` (String) - `parameter_value` (String) diff --git a/docs/resources/backup_restore_testing_plan.md b/docs/resources/backup_restore_testing_plan.md index f4ce79947d..d44f1866cb 100644 --- a/docs/resources/backup_restore_testing_plan.md +++ b/docs/resources/backup_restore_testing_plan.md @@ -51,7 +51,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/backup_restore_testing_selection.md b/docs/resources/backup_restore_testing_selection.md index e92cc842d3..cf3320017a 100644 --- a/docs/resources/backup_restore_testing_selection.md +++ b/docs/resources/backup_restore_testing_selection.md @@ -44,7 +44,7 @@ Optional: ### Nested Schema for `protected_resource_conditions.string_equals` -Required: +Optional: - `key` (String) - `value` (String) @@ -53,7 +53,7 @@ Required: ### Nested Schema for `protected_resource_conditions.string_not_equals` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/backupgateway_hypervisor.md b/docs/resources/backupgateway_hypervisor.md index 3a6054385e..31ba4d1774 100644 --- a/docs/resources/backupgateway_hypervisor.md +++ b/docs/resources/backupgateway_hypervisor.md @@ -33,7 +33,7 @@ Definition of AWS::BackupGateway::Hypervisor Resource Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/batch_compute_environment.md b/docs/resources/batch_compute_environment.md index e65e0e3c7f..52a69f7745 100644 --- a/docs/resources/batch_compute_environment.md +++ b/docs/resources/batch_compute_environment.md @@ -40,12 +40,6 @@ Resource Type definition for AWS::Batch::ComputeEnvironment ### Nested Schema for `compute_resources` -Required: - -- `maxv_cpus` (Number) -- `subnets` (List of String) -- `type` (String) - Optional: - `allocation_strategy` (String) @@ -57,24 +51,24 @@ Optional: - `instance_role` (String) - `instance_types` (List of String) - `launch_template` (Attributes) (see [below for nested schema](#nestedatt--compute_resources--launch_template)) +- `maxv_cpus` (Number) - `minv_cpus` (Number) - `placement_group` (String) - `security_group_ids` (List of String) - `spot_iam_fleet_role` (String) +- `subnets` (List of String) - `tags` (Map of String) A key-value pair to associate with a resource. +- `type` (String) - `update_to_latest_image_version` (Boolean) ### Nested Schema for `compute_resources.ec_2_configuration` -Required: - -- `image_type` (String) - Optional: - `image_id_override` (String) - `image_kubernetes_version` (String) +- `image_type` (String) diff --git a/docs/resources/batch_job_queue.md b/docs/resources/batch_job_queue.md index c067a4e4ce..e26b214cbc 100644 --- a/docs/resources/batch_job_queue.md +++ b/docs/resources/batch_job_queue.md @@ -45,7 +45,7 @@ Required: ### Nested Schema for `job_state_time_limit_actions` -Required: +Optional: - `action` (String) - `max_time_seconds` (Number) diff --git a/docs/resources/bedrock_agent.md b/docs/resources/bedrock_agent.md index f4bd97e69e..aad085cd8d 100644 --- a/docs/resources/bedrock_agent.md +++ b/docs/resources/bedrock_agent.md @@ -116,13 +116,10 @@ variable "lambda_arn" { ### Nested Schema for `action_groups` -Required: - -- `action_group_name` (String) Name of the action group - Optional: - `action_group_executor` (Attributes) Type of Executors for an Action Group (see [below for nested schema](#nestedatt--action_groups--action_group_executor)) +- `action_group_name` (String) Name of the action group - `action_group_state` (String) State of the action group - `api_schema` (Attributes) Contains information about the API Schema for the Action Group (see [below for nested schema](#nestedatt--action_groups--api_schema)) - `description` (String) Description of action group @@ -160,20 +157,17 @@ Optional: ### Nested Schema for `action_groups.function_schema` -Required: +Optional: - `functions` (Attributes List) List of Function definitions (see [below for nested schema](#nestedatt--action_groups--function_schema--functions)) ### Nested Schema for `action_groups.function_schema.functions` -Required: - -- `name` (String) Name for a resource. - Optional: - `description` (String) Description of function +- `name` (String) Name for a resource. - `parameters` (Attributes Map) A map of parameter name and detail (see [below for nested schema](#nestedatt--action_groups--function_schema--functions--parameters)) @@ -201,26 +195,20 @@ Optional: ### Nested Schema for `knowledge_bases` -Required: +Optional: - `description` (String) Description of the Resource. - `knowledge_base_id` (String) Identifier for a resource. - -Optional: - - `knowledge_base_state` (String) State of the knowledge base; whether it is enabled or disabled ### Nested Schema for `prompt_override_configuration` -Required: - -- `prompt_configurations` (Attributes List) List of BasePromptConfiguration (see [below for nested schema](#nestedatt--prompt_override_configuration--prompt_configurations)) - Optional: - `override_lambda` (String) ARN of a Lambda. +- `prompt_configurations` (Attributes List) List of BasePromptConfiguration (see [below for nested schema](#nestedatt--prompt_override_configuration--prompt_configurations)) ### Nested Schema for `prompt_override_configuration.prompt_configurations` diff --git a/docs/resources/bedrock_agent_alias.md b/docs/resources/bedrock_agent_alias.md index 796db665c3..7512d77027 100644 --- a/docs/resources/bedrock_agent_alias.md +++ b/docs/resources/bedrock_agent_alias.md @@ -81,7 +81,7 @@ variable "bedrock_agent_version" { ### Nested Schema for `routing_configuration` -Required: +Optional: - `agent_version` (String) Agent Version. diff --git a/docs/resources/bedrock_data_source.md b/docs/resources/bedrock_data_source.md index b0086ce24b..9ea30badaa 100644 --- a/docs/resources/bedrock_data_source.md +++ b/docs/resources/bedrock_data_source.md @@ -83,24 +83,10 @@ Optional: ### Nested Schema for `data_source_configuration.confluence_configuration` -Required: - -- `source_configuration` (Attributes) The endpoint information to connect to your Confluence data source. (see [below for nested schema](#nestedatt--data_source_configuration--confluence_configuration--source_configuration)) - Optional: - `crawler_configuration` (Attributes) The configuration of the Confluence content. For example, configuring specific types of Confluence content. (see [below for nested schema](#nestedatt--data_source_configuration--confluence_configuration--crawler_configuration)) - - -### Nested Schema for `data_source_configuration.confluence_configuration.source_configuration` - -Required: - -- `auth_type` (String) The supported authentication type to authenticate and connect to your Confluence instance. -- `credentials_secret_arn` (String) The Amazon Resource Name of an AWS Secrets Manager secret that stores your authentication credentials for your Confluence instance URL. For more information on the key-value pairs that must be included in your secret, depending on your authentication type, see Confluence connection configuration. -- `host_type` (String) The supported host type, whether online/cloud or server/on-premises. -- `host_url` (String) The Confluence host URL or instance URL. - +- `source_configuration` (Attributes) The endpoint information to connect to your Confluence data source. (see [below for nested schema](#nestedatt--data_source_configuration--confluence_configuration--source_configuration)) ### Nested Schema for `data_source_configuration.confluence_configuration.crawler_configuration` @@ -112,47 +98,49 @@ Optional: ### Nested Schema for `data_source_configuration.confluence_configuration.crawler_configuration.filter_configuration` -Required: - -- `type` (String) The crawl filter type. - Optional: - `pattern_object_filter` (Attributes) The configuration of specific filters applied to your data source content. You can filter out or include certain content. (see [below for nested schema](#nestedatt--data_source_configuration--confluence_configuration--crawler_configuration--filter_configuration--pattern_object_filter)) +- `type` (String) The crawl filter type. ### Nested Schema for `data_source_configuration.confluence_configuration.crawler_configuration.filter_configuration.pattern_object_filter` -Required: +Optional: - `filters` (Attributes List) Contains information (see [below for nested schema](#nestedatt--data_source_configuration--confluence_configuration--crawler_configuration--filter_configuration--pattern_object_filter--filters)) ### Nested Schema for `data_source_configuration.confluence_configuration.crawler_configuration.filter_configuration.pattern_object_filter.filters` -Required: - -- `object_type` (String) The supported object type or content type of the data source. - Optional: - `exclusion_filters` (List of String) A set of regular expression filter patterns for a type of object. - `inclusion_filters` (List of String) A set of regular expression filter patterns for a type of object. +- `object_type` (String) The supported object type or content type of the data source. + +### Nested Schema for `data_source_configuration.confluence_configuration.source_configuration` - -### Nested Schema for `data_source_configuration.s3_configuration` +Optional: -Required: +- `auth_type` (String) The supported authentication type to authenticate and connect to your Confluence instance. +- `credentials_secret_arn` (String) The Amazon Resource Name of an AWS Secrets Manager secret that stores your authentication credentials for your Confluence instance URL. For more information on the key-value pairs that must be included in your secret, depending on your authentication type, see Confluence connection configuration. +- `host_type` (String) The supported host type, whether online/cloud or server/on-premises. +- `host_url` (String) The Confluence host URL or instance URL. -- `bucket_arn` (String) The ARN of the bucket that contains the data source. + + + +### Nested Schema for `data_source_configuration.s3_configuration` Optional: +- `bucket_arn` (String) The ARN of the bucket that contains the data source. - `bucket_owner_account_id` (String) The account ID for the owner of the S3 bucket. - `inclusion_prefixes` (List of String) A list of S3 prefixes that define the object containing the data sources. @@ -160,23 +148,10 @@ Optional: ### Nested Schema for `data_source_configuration.salesforce_configuration` -Required: - -- `source_configuration` (Attributes) The endpoint information to connect to your Salesforce data source. (see [below for nested schema](#nestedatt--data_source_configuration--salesforce_configuration--source_configuration)) - Optional: - `crawler_configuration` (Attributes) The configuration of filtering the Salesforce content. For example, configuring regular expression patterns to include or exclude certain content. (see [below for nested schema](#nestedatt--data_source_configuration--salesforce_configuration--crawler_configuration)) - - -### Nested Schema for `data_source_configuration.salesforce_configuration.source_configuration` - -Required: - -- `auth_type` (String) The supported authentication type to authenticate and connect to your Salesforce instance. -- `credentials_secret_arn` (String) The Amazon Resource Name of an AWS Secrets Manager secret that stores your authentication credentials for your Salesforce instance URL. For more information on the key-value pairs that must be included in your secret, depending on your authentication type, see Salesforce connection configuration. -- `host_url` (String) The Salesforce host URL or instance URL. - +- `source_configuration` (Attributes) The endpoint information to connect to your Salesforce data source. (see [below for nested schema](#nestedatt--data_source_configuration--salesforce_configuration--source_configuration)) ### Nested Schema for `data_source_configuration.salesforce_configuration.crawler_configuration` @@ -188,64 +163,49 @@ Optional: ### Nested Schema for `data_source_configuration.salesforce_configuration.crawler_configuration.filter_configuration` -Required: - -- `type` (String) The crawl filter type. - Optional: - `pattern_object_filter` (Attributes) The configuration of specific filters applied to your data source content. You can filter out or include certain content. (see [below for nested schema](#nestedatt--data_source_configuration--salesforce_configuration--crawler_configuration--filter_configuration--pattern_object_filter)) +- `type` (String) The crawl filter type. ### Nested Schema for `data_source_configuration.salesforce_configuration.crawler_configuration.filter_configuration.pattern_object_filter` -Required: +Optional: - `filters` (Attributes List) Contains information (see [below for nested schema](#nestedatt--data_source_configuration--salesforce_configuration--crawler_configuration--filter_configuration--pattern_object_filter--filters)) ### Nested Schema for `data_source_configuration.salesforce_configuration.crawler_configuration.filter_configuration.pattern_object_filter.filters` -Required: - -- `object_type` (String) The supported object type or content type of the data source. - Optional: - `exclusion_filters` (List of String) A set of regular expression filter patterns for a type of object. - `inclusion_filters` (List of String) A set of regular expression filter patterns for a type of object. +- `object_type` (String) The supported object type or content type of the data source. - - -### Nested Schema for `data_source_configuration.share_point_configuration` - -Required: - -- `source_configuration` (Attributes) The endpoint information to connect to your SharePoint data source. (see [below for nested schema](#nestedatt--data_source_configuration--share_point_configuration--source_configuration)) + +### Nested Schema for `data_source_configuration.salesforce_configuration.source_configuration` Optional: -- `crawler_configuration` (Attributes) The configuration of the SharePoint content. For example, configuring specific types of SharePoint content. (see [below for nested schema](#nestedatt--data_source_configuration--share_point_configuration--crawler_configuration)) +- `auth_type` (String) The supported authentication type to authenticate and connect to your Salesforce instance. +- `credentials_secret_arn` (String) The Amazon Resource Name of an AWS Secrets Manager secret that stores your authentication credentials for your Salesforce instance URL. For more information on the key-value pairs that must be included in your secret, depending on your authentication type, see Salesforce connection configuration. +- `host_url` (String) The Salesforce host URL or instance URL. - -### Nested Schema for `data_source_configuration.share_point_configuration.source_configuration` -Required: -- `auth_type` (String) The supported authentication type to authenticate and connect to your SharePoint site/sites. -- `credentials_secret_arn` (String) The Amazon Resource Name of an AWS Secrets Manager secret that stores your authentication credentials for your SharePoint site/sites. For more information on the key-value pairs that must be included in your secret, depending on your authentication type, see SharePoint connection configuration. -- `domain` (String) The domain of your SharePoint instance or site URL/URLs. -- `host_type` (String) The supported host type, whether online/cloud or server/on-premises. -- `site_urls` (List of String) A list of one or more SharePoint site URLs. + +### Nested Schema for `data_source_configuration.share_point_configuration` Optional: -- `tenant_id` (String) The identifier of your Microsoft 365 tenant. - +- `crawler_configuration` (Attributes) The configuration of the SharePoint content. For example, configuring specific types of SharePoint content. (see [below for nested schema](#nestedatt--data_source_configuration--share_point_configuration--crawler_configuration)) +- `source_configuration` (Attributes) The endpoint information to connect to your SharePoint data source. (see [below for nested schema](#nestedatt--data_source_configuration--share_point_configuration--source_configuration)) ### Nested Schema for `data_source_configuration.share_point_configuration.crawler_configuration` @@ -257,89 +217,93 @@ Optional: ### Nested Schema for `data_source_configuration.share_point_configuration.crawler_configuration.filter_configuration` -Required: - -- `type` (String) The crawl filter type. - Optional: - `pattern_object_filter` (Attributes) The configuration of specific filters applied to your data source content. You can filter out or include certain content. (see [below for nested schema](#nestedatt--data_source_configuration--share_point_configuration--crawler_configuration--filter_configuration--pattern_object_filter)) +- `type` (String) The crawl filter type. ### Nested Schema for `data_source_configuration.share_point_configuration.crawler_configuration.filter_configuration.pattern_object_filter` -Required: +Optional: - `filters` (Attributes List) Contains information (see [below for nested schema](#nestedatt--data_source_configuration--share_point_configuration--crawler_configuration--filter_configuration--pattern_object_filter--filters)) ### Nested Schema for `data_source_configuration.share_point_configuration.crawler_configuration.filter_configuration.pattern_object_filter.filters` -Required: - -- `object_type` (String) The supported object type or content type of the data source. - Optional: - `exclusion_filters` (List of String) A set of regular expression filter patterns for a type of object. - `inclusion_filters` (List of String) A set of regular expression filter patterns for a type of object. +- `object_type` (String) The supported object type or content type of the data source. + +### Nested Schema for `data_source_configuration.share_point_configuration.source_configuration` + +Optional: + +- `auth_type` (String) The supported authentication type to authenticate and connect to your SharePoint site/sites. +- `credentials_secret_arn` (String) The Amazon Resource Name of an AWS Secrets Manager secret that stores your authentication credentials for your SharePoint site/sites. For more information on the key-value pairs that must be included in your secret, depending on your authentication type, see SharePoint connection configuration. +- `domain` (String) The domain of your SharePoint instance or site URL/URLs. +- `host_type` (String) The supported host type, whether online/cloud or server/on-premises. +- `site_urls` (List of String) A list of one or more SharePoint site URLs. +- `tenant_id` (String) The identifier of your Microsoft 365 tenant. + + ### Nested Schema for `data_source_configuration.web_configuration` -Required: +Optional: +- `crawler_configuration` (Attributes) Configuration for the web crawler. (see [below for nested schema](#nestedatt--data_source_configuration--web_configuration--crawler_configuration)) - `source_configuration` (Attributes) A web source configuration. (see [below for nested schema](#nestedatt--data_source_configuration--web_configuration--source_configuration)) + +### Nested Schema for `data_source_configuration.web_configuration.crawler_configuration` + Optional: -- `crawler_configuration` (Attributes) Configuration for the web crawler. (see [below for nested schema](#nestedatt--data_source_configuration--web_configuration--crawler_configuration)) +- `crawler_limits` (Attributes) Limit settings for the web crawler. (see [below for nested schema](#nestedatt--data_source_configuration--web_configuration--crawler_configuration--crawler_limits)) +- `exclusion_filters` (List of String) A set of regular expression filter patterns for a type of object. +- `inclusion_filters` (List of String) A set of regular expression filter patterns for a type of object. +- `scope` (String) The scope that a web crawl job will be restricted to. + + +### Nested Schema for `data_source_configuration.web_configuration.crawler_configuration.crawler_limits` + +Optional: + +- `rate_limit` (Number) Rate of web URLs retrieved per minute. + + ### Nested Schema for `data_source_configuration.web_configuration.source_configuration` -Required: +Optional: - `url_configuration` (Attributes) A url configuration. (see [below for nested schema](#nestedatt--data_source_configuration--web_configuration--source_configuration--url_configuration)) ### Nested Schema for `data_source_configuration.web_configuration.source_configuration.url_configuration` -Required: +Optional: - `seed_urls` (Attributes List) A list of web urls. (see [below for nested schema](#nestedatt--data_source_configuration--web_configuration--source_configuration--url_configuration--seed_urls)) ### Nested Schema for `data_source_configuration.web_configuration.source_configuration.url_configuration.seed_urls` -Required: - -- `url` (String) A web url. - - - - - -### Nested Schema for `data_source_configuration.web_configuration.crawler_configuration` - Optional: -- `crawler_limits` (Attributes) Limit settings for the web crawler. (see [below for nested schema](#nestedatt--data_source_configuration--web_configuration--crawler_configuration--crawler_limits)) -- `exclusion_filters` (List of String) A set of regular expression filter patterns for a type of object. -- `inclusion_filters` (List of String) A set of regular expression filter patterns for a type of object. -- `scope` (String) The scope that a web crawl job will be restricted to. - - -### Nested Schema for `data_source_configuration.web_configuration.crawler_configuration.crawler_limits` - -Optional: +- `url` (String) A web url. -- `rate_limit` (Number) Rate of web URLs retrieved per minute. @@ -365,12 +329,9 @@ Optional: ### Nested Schema for `vector_ingestion_configuration.chunking_configuration` -Required: - -- `chunking_strategy` (String) Knowledge base can split your source data into chunks. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried. You have the following options for chunking your data. If you opt for NONE, then you may want to pre-process your files by splitting them up such that each file corresponds to a chunk. - Optional: +- `chunking_strategy` (String) Knowledge base can split your source data into chunks. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried. You have the following options for chunking your data. If you opt for NONE, then you may want to pre-process your files by splitting them up such that each file corresponds to a chunk. - `fixed_size_chunking_configuration` (Attributes) Configurations for when you choose fixed-size chunking. If you set the chunkingStrategy as NONE, exclude this field. (see [below for nested schema](#nestedatt--vector_ingestion_configuration--chunking_configuration--fixed_size_chunking_configuration)) - `hierarchical_chunking_configuration` (Attributes) Configurations for when you choose hierarchical chunking. If you set the chunkingStrategy as NONE, exclude this field. (see [below for nested schema](#nestedatt--vector_ingestion_configuration--chunking_configuration--hierarchical_chunking_configuration)) - `semantic_chunking_configuration` (Attributes) Configurations for when you choose semantic chunking. If you set the chunkingStrategy as NONE, exclude this field. (see [below for nested schema](#nestedatt--vector_ingestion_configuration--chunking_configuration--semantic_chunking_configuration)) @@ -378,7 +339,7 @@ Optional: ### Nested Schema for `vector_ingestion_configuration.chunking_configuration.fixed_size_chunking_configuration` -Required: +Optional: - `max_tokens` (Number) The maximum number of tokens to include in a chunk. - `overlap_percentage` (Number) The percentage of overlap between adjacent chunks of a data source. @@ -387,7 +348,7 @@ Required: ### Nested Schema for `vector_ingestion_configuration.chunking_configuration.hierarchical_chunking_configuration` -Required: +Optional: - `level_configurations` (Attributes List) Token settings for each layer. (see [below for nested schema](#nestedatt--vector_ingestion_configuration--chunking_configuration--hierarchical_chunking_configuration--level_configurations)) - `overlap_tokens` (Number) The number of tokens to repeat across chunks in the same layer. @@ -395,7 +356,7 @@ Required: ### Nested Schema for `vector_ingestion_configuration.chunking_configuration.hierarchical_chunking_configuration.level_configurations` -Required: +Optional: - `max_tokens` (Number) The maximum number of tokens that a chunk can contain in this layer. @@ -404,7 +365,7 @@ Required: ### Nested Schema for `vector_ingestion_configuration.chunking_configuration.semantic_chunking_configuration` -Required: +Optional: - `breakpoint_percentile_threshold` (Number) The dissimilarity threshold for splitting chunks. - `buffer_size` (Number) The buffer size. @@ -415,7 +376,7 @@ Required: ### Nested Schema for `vector_ingestion_configuration.custom_transformation_configuration` -Required: +Optional: - `intermediate_storage` (Attributes) A location for storing content from data sources temporarily as it is processed by custom components in the ingestion pipeline. (see [below for nested schema](#nestedatt--vector_ingestion_configuration--custom_transformation_configuration--intermediate_storage)) - `transformations` (Attributes List) A list of Lambda functions that process documents. (see [below for nested schema](#nestedatt--vector_ingestion_configuration--custom_transformation_configuration--transformations)) @@ -423,14 +384,14 @@ Required: ### Nested Schema for `vector_ingestion_configuration.custom_transformation_configuration.intermediate_storage` -Required: +Optional: - `s3_location` (Attributes) An Amazon S3 location. (see [below for nested schema](#nestedatt--vector_ingestion_configuration--custom_transformation_configuration--intermediate_storage--s3_location)) ### Nested Schema for `vector_ingestion_configuration.custom_transformation_configuration.intermediate_storage.s3_location` -Required: +Optional: - `uri` (String) The location's URI @@ -439,7 +400,7 @@ Required: ### Nested Schema for `vector_ingestion_configuration.custom_transformation_configuration.transformations` -Required: +Optional: - `step_to_apply` (String) When the service applies the transformation. - `transformation_function` (Attributes) A Lambda function that processes documents. (see [below for nested schema](#nestedatt--vector_ingestion_configuration--custom_transformation_configuration--transformations--transformation_function)) @@ -447,14 +408,14 @@ Required: ### Nested Schema for `vector_ingestion_configuration.custom_transformation_configuration.transformations.transformation_function` -Required: +Optional: - `transformation_lambda_configuration` (Attributes) A Lambda function that processes documents. (see [below for nested schema](#nestedatt--vector_ingestion_configuration--custom_transformation_configuration--transformations--transformation_function--transformation_lambda_configuration)) ### Nested Schema for `vector_ingestion_configuration.custom_transformation_configuration.transformations.transformation_function.transformation_lambda_configuration` -Required: +Optional: - `lambda_arn` (String) The function's ARN identifier. @@ -465,29 +426,23 @@ Required: ### Nested Schema for `vector_ingestion_configuration.parsing_configuration` -Required: - -- `parsing_strategy` (String) The parsing strategy for the data source. - Optional: - `bedrock_foundation_model_configuration` (Attributes) Settings for a foundation model used to parse documents for a data source. (see [below for nested schema](#nestedatt--vector_ingestion_configuration--parsing_configuration--bedrock_foundation_model_configuration)) +- `parsing_strategy` (String) The parsing strategy for the data source. ### Nested Schema for `vector_ingestion_configuration.parsing_configuration.bedrock_foundation_model_configuration` -Required: - -- `model_arn` (String) The model's ARN. - Optional: +- `model_arn` (String) The model's ARN. - `parsing_prompt` (Attributes) Instructions for interpreting the contents of a document. (see [below for nested schema](#nestedatt--vector_ingestion_configuration--parsing_configuration--bedrock_foundation_model_configuration--parsing_prompt)) ### Nested Schema for `vector_ingestion_configuration.parsing_configuration.bedrock_foundation_model_configuration.parsing_prompt` -Required: +Optional: - `parsing_prompt_text` (String) Instructions for interpreting the contents of a document. diff --git a/docs/resources/bedrock_guardrail.md b/docs/resources/bedrock_guardrail.md index eb609fc118..6baf3d3da5 100644 --- a/docs/resources/bedrock_guardrail.md +++ b/docs/resources/bedrock_guardrail.md @@ -251,14 +251,14 @@ variable "kms_key_arn" { ### Nested Schema for `content_policy_config` -Required: +Optional: - `filters_config` (Attributes List) List of content filter configs in content policy. (see [below for nested schema](#nestedatt--content_policy_config--filters_config)) ### Nested Schema for `content_policy_config.filters_config` -Required: +Optional: - `input_strength` (String) Strength for filters - `output_strength` (String) Strength for filters @@ -269,14 +269,14 @@ Required: ### Nested Schema for `contextual_grounding_policy_config` -Required: +Optional: - `filters_config` (Attributes List) List of contextual grounding filter configs. (see [below for nested schema](#nestedatt--contextual_grounding_policy_config--filters_config)) ### Nested Schema for `contextual_grounding_policy_config.filters_config` -Required: +Optional: - `threshold` (Number) The threshold for this filter. - `type` (String) Type of contextual grounding filter @@ -294,7 +294,7 @@ Optional: ### Nested Schema for `sensitive_information_policy_config.pii_entities_config` -Required: +Optional: - `action` (String) Options for sensitive information action. - `type` (String) The currently supported PII entities @@ -303,22 +303,19 @@ Required: ### Nested Schema for `sensitive_information_policy_config.regexes_config` -Required: +Optional: - `action` (String) Options for sensitive information action. +- `description` (String) The regex description. - `name` (String) The regex name. - `pattern` (String) The regex pattern. -Optional: - -- `description` (String) The regex description. - ### Nested Schema for `tags` -Required: +Optional: - `key` (String) Tag Key - `value` (String) Tag Value @@ -327,23 +324,20 @@ Required: ### Nested Schema for `topic_policy_config` -Required: +Optional: - `topics_config` (Attributes List) List of topic configs in topic policy. (see [below for nested schema](#nestedatt--topic_policy_config--topics_config)) ### Nested Schema for `topic_policy_config.topics_config` -Required: +Optional: - `definition` (String) Definition of topic in topic policy +- `examples` (List of String) List of text examples - `name` (String) Name of topic in topic policy - `type` (String) Type of topic in a policy -Optional: - -- `examples` (List of String) List of text examples - @@ -357,7 +351,7 @@ Optional: ### Nested Schema for `word_policy_config.managed_word_lists_config` -Required: +Optional: - `type` (String) Options for managed words. @@ -365,7 +359,7 @@ Required: ### Nested Schema for `word_policy_config.words_config` -Required: +Optional: - `text` (String) The custom word text. diff --git a/docs/resources/bedrock_knowledge_base.md b/docs/resources/bedrock_knowledge_base.md index a37a84260b..ecfc3bf2bc 100644 --- a/docs/resources/bedrock_knowledge_base.md +++ b/docs/resources/bedrock_knowledge_base.md @@ -143,23 +143,20 @@ Optional: ### Nested Schema for `storage_configuration.mongo_db_atlas_configuration` -Required: +Optional: - `collection_name` (String) Name of the collection within MongoDB Atlas. - `credentials_secret_arn` (String) The ARN of the secret that you created in AWS Secrets Manager that is linked to your Amazon Mongo database. - `database_name` (String) Name of the database within MongoDB Atlas. - `endpoint` (String) MongoDB Atlas endpoint. +- `endpoint_service_name` (String) MongoDB Atlas endpoint service name. - `field_mapping` (Attributes) Contains the names of the fields to which to map information about the vector store. (see [below for nested schema](#nestedatt--storage_configuration--mongo_db_atlas_configuration--field_mapping)) - `vector_index_name` (String) Name of a MongoDB Atlas index. -Optional: - -- `endpoint_service_name` (String) MongoDB Atlas endpoint service name. - ### Nested Schema for `storage_configuration.mongo_db_atlas_configuration.field_mapping` -Required: +Optional: - `metadata_field` (String) The name of the field in which Amazon Bedrock stores metadata about the vector store. - `text_field` (String) The name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose. @@ -170,7 +167,7 @@ Required: ### Nested Schema for `storage_configuration.opensearch_serverless_configuration` -Required: +Optional: - `collection_arn` (String) The ARN of the OpenSearch Service vector store. - `field_mapping` (Attributes) A mapping of Bedrock Knowledge Base fields to OpenSearch Serverless field names (see [below for nested schema](#nestedatt--storage_configuration--opensearch_serverless_configuration--field_mapping)) @@ -179,7 +176,7 @@ Required: ### Nested Schema for `storage_configuration.opensearch_serverless_configuration.field_mapping` -Required: +Optional: - `metadata_field` (String) The name of the field in which Amazon Bedrock stores metadata about the vector store. - `text_field` (String) The name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose. @@ -190,20 +187,17 @@ Required: ### Nested Schema for `storage_configuration.pinecone_configuration` -Required: +Optional: - `connection_string` (String) The endpoint URL for your index management page. - `credentials_secret_arn` (String) The ARN of the secret that you created in AWS Secrets Manager that is linked to your Pinecone API key. - `field_mapping` (Attributes) Contains the names of the fields to which to map information about the vector store. (see [below for nested schema](#nestedatt--storage_configuration--pinecone_configuration--field_mapping)) - -Optional: - - `namespace` (String) The namespace to be used to write new data to your database. ### Nested Schema for `storage_configuration.pinecone_configuration.field_mapping` -Required: +Optional: - `metadata_field` (String) The name of the field in which Amazon Bedrock stores metadata about the vector store. - `text_field` (String) The name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose. @@ -213,7 +207,7 @@ Required: ### Nested Schema for `storage_configuration.rds_configuration` -Required: +Optional: - `credentials_secret_arn` (String) The ARN of the secret that you created in AWS Secrets Manager that is linked to your Amazon RDS database. - `database_name` (String) The name of your Amazon RDS database. @@ -224,7 +218,7 @@ Required: ### Nested Schema for `storage_configuration.rds_configuration.field_mapping` -Required: +Optional: - `metadata_field` (String) The name of the field in which Amazon Bedrock stores metadata about the vector store. - `primary_key_field` (String) The name of the field in which Amazon Bedrock stores the ID for each entry. diff --git a/docs/resources/bedrock_prompt.md b/docs/resources/bedrock_prompt.md index 31aac73632..6016907419 100644 --- a/docs/resources/bedrock_prompt.md +++ b/docs/resources/bedrock_prompt.md @@ -76,16 +76,13 @@ resource "awscc_bedrock_prompt" "example" { ### Nested Schema for `variants` -Required: - -- `name` (String) Name for a variant. -- `template_type` (String) Prompt template type - Optional: - `inference_configuration` (Attributes) Model inference configuration (see [below for nested schema](#nestedatt--variants--inference_configuration)) - `model_id` (String) ARN or name of a Bedrock model. +- `name` (String) Name for a variant. - `template_configuration` (Attributes) Prompt template configuration (see [below for nested schema](#nestedatt--variants--template_configuration)) +- `template_type` (String) Prompt template type ### Nested Schema for `variants.inference_configuration` @@ -134,13 +131,10 @@ Optional: ### Nested Schema for `variants.template_configuration.text.text_s3_location` -Required: +Optional: - `bucket` (String) A bucket in S3 - `key` (String) A object key in S3 - -Optional: - - `version` (String) The version of the the S3 object to use ## Import diff --git a/docs/resources/billingconductor_billing_group.md b/docs/resources/billingconductor_billing_group.md index 9795dc721d..f8a0afeb4d 100644 --- a/docs/resources/billingconductor_billing_group.md +++ b/docs/resources/billingconductor_billing_group.md @@ -79,7 +79,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/billingconductor_custom_line_item.md b/docs/resources/billingconductor_custom_line_item.md index 49023bd466..9290147967 100644 --- a/docs/resources/billingconductor_custom_line_item.md +++ b/docs/resources/billingconductor_custom_line_item.md @@ -50,20 +50,17 @@ Optional: ### Nested Schema for `custom_line_item_charge_details` -Required: - -- `type` (String) - Optional: - `flat` (Attributes) (see [below for nested schema](#nestedatt--custom_line_item_charge_details--flat)) - `line_item_filters` (Attributes Set) (see [below for nested schema](#nestedatt--custom_line_item_charge_details--line_item_filters)) - `percentage` (Attributes) (see [below for nested schema](#nestedatt--custom_line_item_charge_details--percentage)) +- `type` (String) ### Nested Schema for `custom_line_item_charge_details.flat` -Required: +Optional: - `charge_value` (Number) @@ -71,7 +68,7 @@ Required: ### Nested Schema for `custom_line_item_charge_details.line_item_filters` -Required: +Optional: - `attribute` (String) - `match_option` (String) @@ -81,20 +78,17 @@ Required: ### Nested Schema for `custom_line_item_charge_details.percentage` -Required: - -- `percentage_value` (Number) - Optional: - `child_associated_resources` (Set of String) +- `percentage_value` (Number) ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/billingconductor_pricing_plan.md b/docs/resources/billingconductor_pricing_plan.md index 736046d3f0..73205ceceb 100644 --- a/docs/resources/billingconductor_pricing_plan.md +++ b/docs/resources/billingconductor_pricing_plan.md @@ -51,7 +51,7 @@ resource "awscc_billingconductor_pricing_plan" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/billingconductor_pricing_rule.md b/docs/resources/billingconductor_pricing_rule.md index db97e9beeb..958cad44b1 100644 --- a/docs/resources/billingconductor_pricing_rule.md +++ b/docs/resources/billingconductor_pricing_rule.md @@ -155,7 +155,7 @@ resource "awscc_billingconductor_pricing_rule" "example_sku" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -171,7 +171,7 @@ Optional: ### Nested Schema for `tiering.free_tier` -Required: +Optional: - `activated` (Boolean) diff --git a/docs/resources/budgets_budgets_action.md b/docs/resources/budgets_budgets_action.md index 945ae11386..a33850ce4a 100644 --- a/docs/resources/budgets_budgets_action.md +++ b/docs/resources/budgets_budgets_action.md @@ -56,13 +56,10 @@ Optional: ### Nested Schema for `definition.iam_action_definition` -Required: - -- `policy_arn` (String) - Optional: - `groups` (List of String) +- `policy_arn` (String) - `roles` (List of String) - `users` (List of String) @@ -70,7 +67,7 @@ Optional: ### Nested Schema for `definition.scp_action_definition` -Required: +Optional: - `policy_id` (String) - `target_ids` (List of String) @@ -79,7 +76,7 @@ Required: ### Nested Schema for `definition.ssm_action_definition` -Required: +Optional: - `instance_ids` (List of String) - `region` (String) @@ -99,7 +96,7 @@ Required: ### Nested Schema for `resource_tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/cassandra_keyspace.md b/docs/resources/cassandra_keyspace.md index df53fe6ab3..3a8111588c 100644 --- a/docs/resources/cassandra_keyspace.md +++ b/docs/resources/cassandra_keyspace.md @@ -69,7 +69,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/cassandra_table.md b/docs/resources/cassandra_table.md index 8a96bf01d4..60cc7732e7 100644 --- a/docs/resources/cassandra_table.md +++ b/docs/resources/cassandra_table.md @@ -157,15 +157,12 @@ Optional: ### Nested Schema for `auto_scaling_specifications.read_capacity_auto_scaling.scaling_policy.target_tracking_scaling_policy_configuration` -Required: - -- `target_value` (Number) - Optional: - `disable_scale_in` (Boolean) - `scale_in_cooldown` (Number) - `scale_out_cooldown` (Number) +- `target_value` (Number) @@ -190,15 +187,12 @@ Optional: ### Nested Schema for `auto_scaling_specifications.write_capacity_auto_scaling.scaling_policy.target_tracking_scaling_policy_configuration` -Required: - -- `target_value` (Number) - Optional: - `disable_scale_in` (Boolean) - `scale_in_cooldown` (Number) - `scale_out_cooldown` (Number) +- `target_value` (Number) @@ -215,7 +209,7 @@ Optional: ### Nested Schema for `billing_mode.provisioned_throughput` -Required: +Optional: - `read_capacity_units` (Number) - `write_capacity_units` (Number) @@ -225,18 +219,15 @@ Required: ### Nested Schema for `clustering_key_columns` -Required: - -- `column` (Attributes) (see [below for nested schema](#nestedatt--clustering_key_columns--column)) - Optional: +- `column` (Attributes) (see [below for nested schema](#nestedatt--clustering_key_columns--column)) - `order_by` (String) ### Nested Schema for `clustering_key_columns.column` -Required: +Optional: - `column_name` (String) - `column_type` (String) @@ -255,7 +246,7 @@ Optional: ### Nested Schema for `regular_columns` -Required: +Optional: - `column_name` (String) - `column_type` (String) @@ -264,14 +255,11 @@ Required: ### Nested Schema for `replica_specifications` -Required: - -- `region` (String) - Optional: - `read_capacity_auto_scaling` (Attributes) Represents configuration for auto scaling. (see [below for nested schema](#nestedatt--replica_specifications--read_capacity_auto_scaling)) - `read_capacity_units` (Number) +- `region` (String) ### Nested Schema for `replica_specifications.read_capacity_auto_scaling` @@ -293,15 +281,12 @@ Optional: ### Nested Schema for `replica_specifications.read_capacity_auto_scaling.scaling_policy.target_tracking_scaling_policy_configuration` -Required: - -- `target_value` (Number) - Optional: - `disable_scale_in` (Boolean) - `scale_in_cooldown` (Number) - `scale_out_cooldown` (Number) +- `target_value` (Number) @@ -310,7 +295,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ce_anomaly_monitor.md b/docs/resources/ce_anomaly_monitor.md index 28be45d8d9..6ae5b2628f 100644 --- a/docs/resources/ce_anomaly_monitor.md +++ b/docs/resources/ce_anomaly_monitor.md @@ -38,7 +38,7 @@ AWS Cost Anomaly Detection leverages advanced Machine Learning technologies to i ### Nested Schema for `resource_tags` -Required: +Optional: - `key` (String) The key name for the tag. - `value` (String) The value for the tag. diff --git a/docs/resources/ce_anomaly_subscription.md b/docs/resources/ce_anomaly_subscription.md index 9044a7a6a1..922ccd9006 100644 --- a/docs/resources/ce_anomaly_subscription.md +++ b/docs/resources/ce_anomaly_subscription.md @@ -50,7 +50,7 @@ Optional: ### Nested Schema for `resource_tags` -Required: +Optional: - `key` (String) The key name for the tag. - `value` (String) The value for the tag. diff --git a/docs/resources/chatbot_microsoft_teams_channel_configuration.md b/docs/resources/chatbot_microsoft_teams_channel_configuration.md index 4b1325dc0a..0f672742f2 100644 --- a/docs/resources/chatbot_microsoft_teams_channel_configuration.md +++ b/docs/resources/chatbot_microsoft_teams_channel_configuration.md @@ -39,7 +39,7 @@ Resource schema for AWS::Chatbot::MicrosoftTeamsChannelConfiguration. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/chatbot_slack_channel_configuration.md b/docs/resources/chatbot_slack_channel_configuration.md index 14bf53417c..7e136c3f35 100644 --- a/docs/resources/chatbot_slack_channel_configuration.md +++ b/docs/resources/chatbot_slack_channel_configuration.md @@ -66,7 +66,7 @@ resource "awscc_iam_role" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/cleanrooms_analysis_template.md b/docs/resources/cleanrooms_analysis_template.md index c9f98ce779..56ed2a6c60 100644 --- a/docs/resources/cleanrooms_analysis_template.md +++ b/docs/resources/cleanrooms_analysis_template.md @@ -49,20 +49,17 @@ Required: ### Nested Schema for `analysis_parameters` -Required: - -- `name` (String) -- `type` (String) - Optional: - `default_value` (String) +- `name` (String) +- `type` (String) ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/cleanrooms_collaboration.md b/docs/resources/cleanrooms_collaboration.md index 63e83ff02b..ba01b4d533 100644 --- a/docs/resources/cleanrooms_collaboration.md +++ b/docs/resources/cleanrooms_collaboration.md @@ -84,14 +84,14 @@ Optional: ### Nested Schema for `members.payment_configuration` -Required: +Optional: - `query_compute` (Attributes) (see [below for nested schema](#nestedatt--members--payment_configuration--query_compute)) ### Nested Schema for `members.payment_configuration.query_compute` -Required: +Optional: - `is_responsible` (Boolean) @@ -101,14 +101,14 @@ Required: ### Nested Schema for `creator_payment_configuration` -Required: +Optional: - `query_compute` (Attributes) (see [below for nested schema](#nestedatt--creator_payment_configuration--query_compute)) ### Nested Schema for `creator_payment_configuration.query_compute` -Required: +Optional: - `is_responsible` (Boolean) @@ -117,7 +117,7 @@ Required: ### Nested Schema for `data_encryption_metadata` -Required: +Optional: - `allow_cleartext` (Boolean) - `allow_duplicates` (Boolean) @@ -128,7 +128,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/cleanrooms_configured_table.md b/docs/resources/cleanrooms_configured_table.md index 0ed01329b4..643adf787a 100644 --- a/docs/resources/cleanrooms_configured_table.md +++ b/docs/resources/cleanrooms_configured_table.md @@ -54,7 +54,7 @@ Required: ### Nested Schema for `analysis_rules` -Required: +Optional: - `policy` (Attributes) (see [below for nested schema](#nestedatt--analysis_rules--policy)) - `type` (String) @@ -62,7 +62,7 @@ Required: ### Nested Schema for `analysis_rules.policy` -Required: +Optional: - `v1` (Attributes) (see [below for nested schema](#nestedatt--analysis_rules--policy--v1)) @@ -78,24 +78,21 @@ Optional: ### Nested Schema for `analysis_rules.policy.v1.aggregation` -Required: +Optional: +- `additional_analyses` (String) - `aggregate_columns` (Attributes List) (see [below for nested schema](#nestedatt--analysis_rules--policy--v1--aggregation--aggregate_columns)) +- `allowed_join_operators` (List of String) - `dimension_columns` (List of String) - `join_columns` (List of String) +- `join_required` (String) - `output_constraints` (Attributes List) (see [below for nested schema](#nestedatt--analysis_rules--policy--v1--aggregation--output_constraints)) - `scalar_functions` (List of String) -Optional: - -- `additional_analyses` (String) -- `allowed_join_operators` (List of String) -- `join_required` (String) - ### Nested Schema for `analysis_rules.policy.v1.aggregation.aggregate_columns` -Required: +Optional: - `column_names` (List of String) - `function` (String) @@ -104,7 +101,7 @@ Required: ### Nested Schema for `analysis_rules.policy.v1.aggregation.output_constraints` -Required: +Optional: - `column_name` (String) - `minimum` (Number) @@ -115,13 +112,10 @@ Required: ### Nested Schema for `analysis_rules.policy.v1.custom` -Required: - -- `allowed_analyses` (List of String) - Optional: - `additional_analyses` (String) +- `allowed_analyses` (List of String) - `allowed_analysis_providers` (List of String) - `differential_privacy` (Attributes) (see [below for nested schema](#nestedatt--analysis_rules--policy--v1--custom--differential_privacy)) - `disallowed_output_columns` (List of String) @@ -129,14 +123,14 @@ Optional: ### Nested Schema for `analysis_rules.policy.v1.custom.differential_privacy` -Required: +Optional: - `columns` (Attributes List) (see [below for nested schema](#nestedatt--analysis_rules--policy--v1--custom--differential_privacy--columns)) ### Nested Schema for `analysis_rules.policy.v1.custom.differential_privacy.columns` -Required: +Optional: - `name` (String) @@ -146,15 +140,12 @@ Required: ### Nested Schema for `analysis_rules.policy.v1.list` -Required: - -- `join_columns` (List of String) -- `list_columns` (List of String) - Optional: - `additional_analyses` (String) - `allowed_join_operators` (List of String) +- `join_columns` (List of String) +- `list_columns` (List of String) @@ -163,7 +154,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/cleanrooms_configured_table_association.md b/docs/resources/cleanrooms_configured_table_association.md index ea188de5c4..00121963a0 100644 --- a/docs/resources/cleanrooms_configured_table_association.md +++ b/docs/resources/cleanrooms_configured_table_association.md @@ -37,7 +37,7 @@ Represents a table that can be queried within a collaboration ### Nested Schema for `configured_table_association_analysis_rules` -Required: +Optional: - `policy` (Attributes) (see [below for nested schema](#nestedatt--configured_table_association_analysis_rules--policy)) - `type` (String) @@ -45,7 +45,7 @@ Required: ### Nested Schema for `configured_table_association_analysis_rules.policy` -Required: +Optional: - `v1` (Attributes) (see [below for nested schema](#nestedatt--configured_table_association_analysis_rules--policy--v1)) @@ -91,7 +91,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/cleanrooms_id_mapping_table.md b/docs/resources/cleanrooms_id_mapping_table.md index ee64fda96b..6bcec235af 100644 --- a/docs/resources/cleanrooms_id_mapping_table.md +++ b/docs/resources/cleanrooms_id_mapping_table.md @@ -49,7 +49,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/cleanrooms_membership.md b/docs/resources/cleanrooms_membership.md index 2f73779f8f..562cb481a5 100644 --- a/docs/resources/cleanrooms_membership.md +++ b/docs/resources/cleanrooms_membership.md @@ -37,32 +37,26 @@ Represents an AWS account that is a part of a collaboration ### Nested Schema for `default_result_configuration` -Required: - -- `output_configuration` (Attributes) (see [below for nested schema](#nestedatt--default_result_configuration--output_configuration)) - Optional: +- `output_configuration` (Attributes) (see [below for nested schema](#nestedatt--default_result_configuration--output_configuration)) - `role_arn` (String) ### Nested Schema for `default_result_configuration.output_configuration` -Required: +Optional: - `s3` (Attributes) (see [below for nested schema](#nestedatt--default_result_configuration--output_configuration--s3)) ### Nested Schema for `default_result_configuration.output_configuration.s3` -Required: - -- `bucket` (String) -- `result_format` (String) - Optional: +- `bucket` (String) - `key_prefix` (String) +- `result_format` (String) @@ -70,14 +64,14 @@ Optional: ### Nested Schema for `payment_configuration` -Required: +Optional: - `query_compute` (Attributes) (see [below for nested schema](#nestedatt--payment_configuration--query_compute)) ### Nested Schema for `payment_configuration.query_compute` -Required: +Optional: - `is_responsible` (Boolean) @@ -86,7 +80,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/cleanrooms_privacy_budget_template.md b/docs/resources/cleanrooms_privacy_budget_template.md index 10bf123556..c01ed19a2a 100644 --- a/docs/resources/cleanrooms_privacy_budget_template.md +++ b/docs/resources/cleanrooms_privacy_budget_template.md @@ -47,7 +47,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/cleanroomsml_training_dataset.md b/docs/resources/cleanroomsml_training_dataset.md index 97860d8255..a5f9e3dc07 100644 --- a/docs/resources/cleanroomsml_training_dataset.md +++ b/docs/resources/cleanroomsml_training_dataset.md @@ -83,7 +83,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/cloudformation_stack.md b/docs/resources/cloudformation_stack.md index dfb8d84854..a0733034b4 100644 --- a/docs/resources/cloudformation_stack.md +++ b/docs/resources/cloudformation_stack.md @@ -96,7 +96,7 @@ resource "awscc_cloudformation_stack" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/cloudformation_stack_set.md b/docs/resources/cloudformation_stack_set.md index 8ef900052d..3a7196bded 100644 --- a/docs/resources/cloudformation_stack_set.md +++ b/docs/resources/cloudformation_stack_set.md @@ -136,7 +136,7 @@ Optional: ### Nested Schema for `parameters` -Required: +Optional: - `parameter_key` (String) The key associated with the parameter. If you don't specify a key and value for a particular parameter, AWS CloudFormation uses the default value that is specified in your template. - `parameter_value` (String) The input value associated with the parameter. @@ -145,14 +145,11 @@ Required: ### Nested Schema for `stack_instances_group` -Required: - -- `deployment_targets` (Attributes) The AWS OrganizationalUnitIds or Accounts for which to create stack instances in the specified Regions. (see [below for nested schema](#nestedatt--stack_instances_group--deployment_targets)) -- `regions` (Set of String) The names of one or more Regions where you want to create stack instances using the specified AWS account(s). - Optional: +- `deployment_targets` (Attributes) The AWS OrganizationalUnitIds or Accounts for which to create stack instances in the specified Regions. (see [below for nested schema](#nestedatt--stack_instances_group--deployment_targets)) - `parameter_overrides` (Attributes Set) A list of stack set parameters whose values you want to override in the selected stack instances. (see [below for nested schema](#nestedatt--stack_instances_group--parameter_overrides)) +- `regions` (Set of String) The names of one or more Regions where you want to create stack instances using the specified AWS account(s). ### Nested Schema for `stack_instances_group.deployment_targets` @@ -168,7 +165,7 @@ Optional: ### Nested Schema for `stack_instances_group.parameter_overrides` -Required: +Optional: - `parameter_key` (String) The key associated with the parameter. If you don't specify a key and value for a particular parameter, AWS CloudFormation uses the default value that is specified in your template. - `parameter_value` (String) The input value associated with the parameter. @@ -178,7 +175,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) A string used to identify this tag. You can specify a maximum of 127 characters for a tag key. - `value` (String) A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value. diff --git a/docs/resources/cloudfront_continuous_deployment_policy.md b/docs/resources/cloudfront_continuous_deployment_policy.md index 2f4292efa6..9a7f83f9d9 100644 --- a/docs/resources/cloudfront_continuous_deployment_policy.md +++ b/docs/resources/cloudfront_continuous_deployment_policy.md @@ -43,7 +43,7 @@ Optional: ### Nested Schema for `continuous_deployment_policy_config.single_header_policy_config` -Required: +Optional: - `header` (String) - `value` (String) @@ -52,18 +52,15 @@ Required: ### Nested Schema for `continuous_deployment_policy_config.single_weight_policy_config` -Required: - -- `weight` (Number) - Optional: - `session_stickiness_config` (Attributes) (see [below for nested schema](#nestedatt--continuous_deployment_policy_config--single_weight_policy_config--session_stickiness_config)) +- `weight` (Number) ### Nested Schema for `continuous_deployment_policy_config.single_weight_policy_config.session_stickiness_config` -Required: +Optional: - `idle_ttl` (Number) - `maximum_ttl` (Number) @@ -73,19 +70,16 @@ Required: ### Nested Schema for `continuous_deployment_policy_config.traffic_config` -Required: - -- `type` (String) - Optional: - `single_header_config` (Attributes) (see [below for nested schema](#nestedatt--continuous_deployment_policy_config--traffic_config--single_header_config)) - `single_weight_config` (Attributes) (see [below for nested schema](#nestedatt--continuous_deployment_policy_config--traffic_config--single_weight_config)) +- `type` (String) ### Nested Schema for `continuous_deployment_policy_config.traffic_config.single_header_config` -Required: +Optional: - `header` (String) - `value` (String) @@ -94,18 +88,15 @@ Required: ### Nested Schema for `continuous_deployment_policy_config.traffic_config.single_weight_config` -Required: - -- `weight` (Number) - Optional: - `session_stickiness_config` (Attributes) (see [below for nested schema](#nestedatt--continuous_deployment_policy_config--traffic_config--single_weight_config--session_stickiness_config)) +- `weight` (Number) ### Nested Schema for `continuous_deployment_policy_config.traffic_config.single_weight_config.session_stickiness_config` -Required: +Optional: - `idle_ttl` (Number) - `maximum_ttl` (Number) diff --git a/docs/resources/cloudfront_function.md b/docs/resources/cloudfront_function.md index 2d980a4c05..4157ec7b8e 100644 --- a/docs/resources/cloudfront_function.md +++ b/docs/resources/cloudfront_function.md @@ -82,7 +82,7 @@ Optional: ### Nested Schema for `function_config.key_value_store_associations` -Required: +Optional: - `key_value_store_arn` (String) diff --git a/docs/resources/cloudfront_key_value_store.md b/docs/resources/cloudfront_key_value_store.md index b49d80d595..af83b11074 100644 --- a/docs/resources/cloudfront_key_value_store.md +++ b/docs/resources/cloudfront_key_value_store.md @@ -57,7 +57,7 @@ resource "awscc_cloudfront_key_value_store" "example" { ### Nested Schema for `import_source` -Required: +Optional: - `source_arn` (String) - `source_type` (String) diff --git a/docs/resources/cloudfront_monitoring_subscription.md b/docs/resources/cloudfront_monitoring_subscription.md index f694c118e0..bdce4b0095 100644 --- a/docs/resources/cloudfront_monitoring_subscription.md +++ b/docs/resources/cloudfront_monitoring_subscription.md @@ -34,7 +34,7 @@ Optional: ### Nested Schema for `monitoring_subscription.realtime_metrics_subscription_config` -Required: +Optional: - `realtime_metrics_subscription_status` (String) diff --git a/docs/resources/cloudfront_response_headers_policy.md b/docs/resources/cloudfront_response_headers_policy.md index f8f45b7ebf..a6ecc48f38 100644 --- a/docs/resources/cloudfront_response_headers_policy.md +++ b/docs/resources/cloudfront_response_headers_policy.md @@ -119,23 +119,20 @@ Optional: ### Nested Schema for `response_headers_policy_config.cors_config` -Required: +Optional: - `access_control_allow_credentials` (Boolean) - `access_control_allow_headers` (Attributes) (see [below for nested schema](#nestedatt--response_headers_policy_config--cors_config--access_control_allow_headers)) - `access_control_allow_methods` (Attributes) (see [below for nested schema](#nestedatt--response_headers_policy_config--cors_config--access_control_allow_methods)) - `access_control_allow_origins` (Attributes) (see [below for nested schema](#nestedatt--response_headers_policy_config--cors_config--access_control_allow_origins)) -- `origin_override` (Boolean) - -Optional: - - `access_control_expose_headers` (Attributes) (see [below for nested schema](#nestedatt--response_headers_policy_config--cors_config--access_control_expose_headers)) - `access_control_max_age_sec` (Number) +- `origin_override` (Boolean) ### Nested Schema for `response_headers_policy_config.cors_config.access_control_allow_headers` -Required: +Optional: - `items` (List of String) @@ -143,7 +140,7 @@ Required: ### Nested Schema for `response_headers_policy_config.cors_config.access_control_allow_methods` -Required: +Optional: - `items` (List of String) @@ -151,7 +148,7 @@ Required: ### Nested Schema for `response_headers_policy_config.cors_config.access_control_allow_origins` -Required: +Optional: - `items` (List of String) @@ -159,7 +156,7 @@ Required: ### Nested Schema for `response_headers_policy_config.cors_config.access_control_expose_headers` -Required: +Optional: - `items` (List of String) @@ -168,14 +165,14 @@ Required: ### Nested Schema for `response_headers_policy_config.custom_headers_config` -Required: +Optional: - `items` (Attributes List) (see [below for nested schema](#nestedatt--response_headers_policy_config--custom_headers_config--items)) ### Nested Schema for `response_headers_policy_config.custom_headers_config.items` -Required: +Optional: - `header` (String) - `override` (Boolean) @@ -186,14 +183,14 @@ Required: ### Nested Schema for `response_headers_policy_config.remove_headers_config` -Required: +Optional: - `items` (Attributes Set) (see [below for nested schema](#nestedatt--response_headers_policy_config--remove_headers_config--items)) ### Nested Schema for `response_headers_policy_config.remove_headers_config.items` -Required: +Optional: - `header` (String) @@ -214,7 +211,7 @@ Optional: ### Nested Schema for `response_headers_policy_config.security_headers_config.content_security_policy` -Required: +Optional: - `content_security_policy` (String) - `override` (Boolean) @@ -223,7 +220,7 @@ Required: ### Nested Schema for `response_headers_policy_config.security_headers_config.content_type_options` -Required: +Optional: - `override` (Boolean) @@ -231,7 +228,7 @@ Required: ### Nested Schema for `response_headers_policy_config.security_headers_config.frame_options` -Required: +Optional: - `frame_option` (String) - `override` (Boolean) @@ -240,7 +237,7 @@ Required: ### Nested Schema for `response_headers_policy_config.security_headers_config.referrer_policy` -Required: +Optional: - `override` (Boolean) - `referrer_policy` (String) @@ -249,28 +246,22 @@ Required: ### Nested Schema for `response_headers_policy_config.security_headers_config.strict_transport_security` -Required: - -- `access_control_max_age_sec` (Number) -- `override` (Boolean) - Optional: +- `access_control_max_age_sec` (Number) - `include_subdomains` (Boolean) +- `override` (Boolean) - `preload` (Boolean) ### Nested Schema for `response_headers_policy_config.security_headers_config.xss_protection` -Required: - -- `override` (Boolean) -- `protection` (Boolean) - Optional: - `mode_block` (Boolean) +- `override` (Boolean) +- `protection` (Boolean) - `report_uri` (String) @@ -278,12 +269,9 @@ Optional: ### Nested Schema for `response_headers_policy_config.server_timing_headers_config` -Required: - -- `enabled` (Boolean) - Optional: +- `enabled` (Boolean) - `sampling_rate` (Number) ## Import diff --git a/docs/resources/cloudtrail_channel.md b/docs/resources/cloudtrail_channel.md index 90ef2f38f9..5dc73cc8b4 100644 --- a/docs/resources/cloudtrail_channel.md +++ b/docs/resources/cloudtrail_channel.md @@ -67,7 +67,7 @@ resource "awscc_cloudtrail_event_data_store" "example" { ### Nested Schema for `destinations` -Required: +Optional: - `location` (String) The ARN of a resource that receives events from a channel. - `type` (String) The type of destination for events arriving from a channel. @@ -76,7 +76,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/cloudtrail_event_data_store.md b/docs/resources/cloudtrail_event_data_store.md index 93d70eba11..56ada78e6c 100644 --- a/docs/resources/cloudtrail_event_data_store.md +++ b/docs/resources/cloudtrail_event_data_store.md @@ -95,25 +95,19 @@ resource "awscc_cloudtrail_event_data_store" "example" { ### Nested Schema for `advanced_event_selectors` -Required: - -- `field_selectors` (Attributes Set) Contains all selector statements in an advanced event selector. (see [below for nested schema](#nestedatt--advanced_event_selectors--field_selectors)) - Optional: +- `field_selectors` (Attributes Set) Contains all selector statements in an advanced event selector. (see [below for nested schema](#nestedatt--advanced_event_selectors--field_selectors)) - `name` (String) An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets". ### Nested Schema for `advanced_event_selectors.field_selectors` -Required: - -- `field` (String) A field in an event record on which to filter events to be logged. Supported fields include readOnly, eventCategory, eventSource (for management events), eventName, resources.type, and resources.ARN. - Optional: - `ends_with` (Set of String) An operator that includes events that match the last few characters of the event record field specified as the value of Field. - `equals` (Set of String) An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields. +- `field` (String) A field in an event record on which to filter events to be logged. Supported fields include readOnly, eventCategory, eventSource (for management events), eventName, resources.type, and resources.ARN. - `not_ends_with` (Set of String) An operator that excludes events that match the last few characters of the event record field specified as the value of Field. - `not_equals` (Set of String) An operator that excludes events that match the exact value of the event record field specified as the value of Field. - `not_starts_with` (Set of String) An operator that excludes events that match the first few characters of the event record field specified as the value of Field. @@ -132,7 +126,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/cloudtrail_trail.md b/docs/resources/cloudtrail_trail.md index 2aa29b22db..663bdae568 100644 --- a/docs/resources/cloudtrail_trail.md +++ b/docs/resources/cloudtrail_trail.md @@ -302,25 +302,19 @@ data "aws_region" "current" {} ### Nested Schema for `advanced_event_selectors` -Required: - -- `field_selectors` (Attributes Set) Contains all selector statements in an advanced event selector. (see [below for nested schema](#nestedatt--advanced_event_selectors--field_selectors)) - Optional: +- `field_selectors` (Attributes Set) Contains all selector statements in an advanced event selector. (see [below for nested schema](#nestedatt--advanced_event_selectors--field_selectors)) - `name` (String) An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets". ### Nested Schema for `advanced_event_selectors.field_selectors` -Required: - -- `field` (String) A field in an event record on which to filter events to be logged. Supported fields include readOnly, eventCategory, eventSource (for management events), eventName, resources.type, and resources.ARN. - Optional: - `ends_with` (Set of String) An operator that includes events that match the last few characters of the event record field specified as the value of Field. - `equals` (Set of String) An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields. +- `field` (String) A field in an event record on which to filter events to be logged. Supported fields include readOnly, eventCategory, eventSource (for management events), eventName, resources.type, and resources.ARN. - `not_ends_with` (Set of String) An operator that excludes events that match the last few characters of the event record field specified as the value of Field. - `not_equals` (Set of String) An operator that excludes events that match the exact value of the event record field specified as the value of Field. - `not_starts_with` (Set of String) An operator that excludes events that match the first few characters of the event record field specified as the value of Field. @@ -341,12 +335,9 @@ Optional: ### Nested Schema for `event_selectors.data_resources` -Required: - -- `type` (String) The resource type in which you want to log data events. You can specify AWS::S3::Object or AWS::Lambda::Function resources. - Optional: +- `type` (String) The resource type in which you want to log data events. You can specify AWS::S3::Object or AWS::Lambda::Function resources. - `values` (Set of String) An array of Amazon Resource Name (ARN) strings or partial ARN strings for the specified objects. @@ -362,7 +353,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/cloudwatch_alarm.md b/docs/resources/cloudwatch_alarm.md index bdb60dc524..7c6541c0ae 100644 --- a/docs/resources/cloudwatch_alarm.md +++ b/docs/resources/cloudwatch_alarm.md @@ -99,7 +99,7 @@ resource "awscc_cloudwatch_alarm" "lambda_invocations_alarm" { ### Nested Schema for `dimensions` -Required: +Optional: - `name` (String) The name of the dimension, from 1?255 characters in length. This dimension name must have been included when the metric was published. - `value` (String) The value for the dimension, from 1?255 characters in length. @@ -108,15 +108,12 @@ Required: ### Nested Schema for `metrics` -Required: - -- `id` (String) A short name used to tie this object to the results in the response. This name must be unique within a single call to ``GetMetricData``. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. - Optional: - `account_id` (String) The ID of the account where the metrics are located, if this is a cross-account alarm. - `expression` (String) The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the ``Id`` of the other metrics to refer to those metrics, and can also use the ``Id`` of other expressions to use the result of those expressions. For more information about metric math expressions, see [Metric Math Syntax and Functions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax) in the *User Guide*. Within each MetricDataQuery object, you must specify either ``Expression`` or ``MetricStat`` but not both. +- `id` (String) A short name used to tie this object to the results in the response. This name must be unique within a single call to ``GetMetricData``. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. - `label` (String) A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. If the metric or expression is shown in a CW dashboard widget, the label is shown. If ``Label`` is omitted, CW generates a default. - `metric_stat` (Attributes) The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data. Within one MetricDataQuery object, you must specify either ``Expression`` or ``MetricStat`` but not both. (see [below for nested schema](#nestedatt--metrics--metric_stat)) @@ -128,7 +125,7 @@ Optional: ### Nested Schema for `metrics.metric_stat` -Required: +Optional: - `metric` (Attributes) The metric to return, including the metric name, namespace, and dimensions. (see [below for nested schema](#nestedatt--metrics--metric_stat--metric)) - `period` (Number) The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a ``PutMetricData`` call that includes a ``StorageResolution`` of 1 second. @@ -137,9 +134,6 @@ Required: + Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes). + Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour). - `stat` (String) The statistic to return. It can include any CW statistic or extended statistic. For a list of valid values, see the table in [Statistics](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic) in the *User Guide*. - -Optional: - - `unit` (String) The unit to use for the returned data points. Valid values are: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, or None. @@ -155,7 +149,7 @@ Optional: ### Nested Schema for `metrics.metric_stat.metric.dimensions` -Required: +Optional: - `name` (String) The name of the dimension, from 1?255 characters in length. This dimension name must have been included when the metric was published. - `value` (String) The value for the dimension, from 1?255 characters in length. @@ -167,7 +161,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) A string that you can use to assign a value. The combination of tag keys and values can help you organize and categorize your resources. - `value` (String) The value for the specified tag key. diff --git a/docs/resources/cloudwatch_composite_alarm.md b/docs/resources/cloudwatch_composite_alarm.md index 7393fb842c..4a573a50d0 100644 --- a/docs/resources/cloudwatch_composite_alarm.md +++ b/docs/resources/cloudwatch_composite_alarm.md @@ -182,7 +182,7 @@ resource "aws_cloudwatch_metric_alarm" "status_gte_1" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) A unique identifier for the tag. The combination of tag keys and values can help you organize and categorize your resources. - `value` (String) The value for the specified tag key. diff --git a/docs/resources/cloudwatch_metric_stream.md b/docs/resources/cloudwatch_metric_stream.md index 00d0ad9a7e..a5b7fcca71 100644 --- a/docs/resources/cloudwatch_metric_stream.md +++ b/docs/resources/cloudwatch_metric_stream.md @@ -38,31 +38,25 @@ Resource Type definition for Metric Stream ### Nested Schema for `exclude_filters` -Required: - -- `namespace` (String) Only metrics with Namespace matching this value will be streamed. - Optional: - `metric_names` (List of String) Only metrics with MetricNames matching these values will be streamed. Must be set together with Namespace. +- `namespace` (String) Only metrics with Namespace matching this value will be streamed. ### Nested Schema for `include_filters` -Required: - -- `namespace` (String) Only metrics with Namespace matching this value will be streamed. - Optional: - `metric_names` (List of String) Only metrics with MetricNames matching these values will be streamed. Must be set together with Namespace. +- `namespace` (String) Only metrics with Namespace matching this value will be streamed. ### Nested Schema for `statistics_configurations` -Required: +Optional: - `additional_statistics` (List of String) The additional statistics to stream for the metrics listed in IncludeMetrics. - `include_metrics` (Attributes List) An array that defines the metrics that are to have additional statistics streamed. (see [below for nested schema](#nestedatt--statistics_configurations--include_metrics)) @@ -70,7 +64,7 @@ Required: ### Nested Schema for `statistics_configurations.include_metrics` -Required: +Optional: - `metric_name` (String) The name of the metric. - `namespace` (String) The namespace of the metric. @@ -80,7 +74,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) A unique identifier for the tag. - `value` (String) String which you can use to describe or define the tag. diff --git a/docs/resources/codeartifact_domain.md b/docs/resources/codeartifact_domain.md index d2d09a9887..1acf0d1107 100644 --- a/docs/resources/codeartifact_domain.md +++ b/docs/resources/codeartifact_domain.md @@ -35,7 +35,7 @@ The resource schema to create a CodeArtifact domain. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/codeartifact_package_group.md b/docs/resources/codeartifact_package_group.md index 70c05667ba..5429d8747d 100644 --- a/docs/resources/codeartifact_package_group.md +++ b/docs/resources/codeartifact_package_group.md @@ -36,7 +36,7 @@ The resource schema to create a CodeArtifact package group. ### Nested Schema for `origin_configuration` -Required: +Optional: - `restrictions` (Attributes) The origin configuration that is applied to the package group. (see [below for nested schema](#nestedatt--origin_configuration--restrictions)) @@ -52,37 +52,28 @@ Optional: ### Nested Schema for `origin_configuration.restrictions.external_upstream` -Required: - -- `restriction_mode` (String) - Optional: - `repositories` (List of String) +- `restriction_mode` (String) ### Nested Schema for `origin_configuration.restrictions.internal_upstream` -Required: - -- `restriction_mode` (String) - Optional: - `repositories` (List of String) +- `restriction_mode` (String) ### Nested Schema for `origin_configuration.restrictions.publish` -Required: - -- `restriction_mode` (String) - Optional: - `repositories` (List of String) +- `restriction_mode` (String) @@ -90,7 +81,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/codeartifact_repository.md b/docs/resources/codeartifact_repository.md index 14bf6f5efd..338bef4cbd 100644 --- a/docs/resources/codeartifact_repository.md +++ b/docs/resources/codeartifact_repository.md @@ -38,7 +38,7 @@ The resource schema to create a CodeArtifact repository. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/codebuild_fleet.md b/docs/resources/codebuild_fleet.md index 1200976ba5..56b72a2be4 100644 --- a/docs/resources/codebuild_fleet.md +++ b/docs/resources/codebuild_fleet.md @@ -66,7 +66,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 255 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/codeconnections_connection.md b/docs/resources/codeconnections_connection.md index f1d1968bd5..0c01d75428 100644 --- a/docs/resources/codeconnections_connection.md +++ b/docs/resources/codeconnections_connection.md @@ -35,7 +35,7 @@ Schema for AWS::CodeConnections::Connection resource which can be used to connec ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/codedeploy_application.md b/docs/resources/codedeploy_application.md index 66fb304ae3..9d1e2a124c 100644 --- a/docs/resources/codedeploy_application.md +++ b/docs/resources/codedeploy_application.md @@ -28,7 +28,7 @@ The AWS::CodeDeploy::Application resource creates an AWS CodeDeploy application ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/codedeploy_deployment_config.md b/docs/resources/codedeploy_deployment_config.md index 2a0ef5e4a8..f331e70caf 100644 --- a/docs/resources/codedeploy_deployment_config.md +++ b/docs/resources/codedeploy_deployment_config.md @@ -30,7 +30,7 @@ Resource Type definition for AWS::CodeDeploy::DeploymentConfig ### Nested Schema for `minimum_healthy_hosts` -Required: +Optional: - `type` (String) - `value` (Number) @@ -39,19 +39,16 @@ Required: ### Nested Schema for `traffic_routing_config` -Required: - -- `type` (String) - Optional: - `time_based_canary` (Attributes) (see [below for nested schema](#nestedatt--traffic_routing_config--time_based_canary)) - `time_based_linear` (Attributes) (see [below for nested schema](#nestedatt--traffic_routing_config--time_based_linear)) +- `type` (String) ### Nested Schema for `traffic_routing_config.time_based_canary` -Required: +Optional: - `canary_interval` (Number) - `canary_percentage` (Number) @@ -60,7 +57,7 @@ Required: ### Nested Schema for `traffic_routing_config.time_based_linear` -Required: +Optional: - `linear_interval` (Number) - `linear_percentage` (Number) @@ -79,7 +76,7 @@ Optional: ### Nested Schema for `zonal_config.minimum_healthy_hosts_per_zone` -Required: +Optional: - `type` (String) - `value` (Number) diff --git a/docs/resources/codeguruprofiler_profiling_group.md b/docs/resources/codeguruprofiler_profiling_group.md index 66782e3d0b..ece0c3ea53 100644 --- a/docs/resources/codeguruprofiler_profiling_group.md +++ b/docs/resources/codeguruprofiler_profiling_group.md @@ -67,7 +67,7 @@ variable "sns_topic_arn" { ### Nested Schema for `agent_permissions` -Required: +Optional: - `principals` (List of String) The principals for the agent permissions. @@ -75,19 +75,16 @@ Required: ### Nested Schema for `anomaly_detection_notification_configuration` -Required: - -- `channel_uri` (String) Unique arn of the resource to be used for notifications. We support a valid SNS topic arn as a channel uri. - Optional: - `channel_id` (String) Unique identifier for each Channel in the notification configuration of a Profiling Group +- `channel_uri` (String) Unique arn of the resource to be used for notifications. We support a valid SNS topic arn as a channel uri. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. The allowed characters across services are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. The allowed characters across services are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @. diff --git a/docs/resources/codegurureviewer_repository_association.md b/docs/resources/codegurureviewer_repository_association.md index eeac2afce3..9da4ad36af 100644 --- a/docs/resources/codegurureviewer_repository_association.md +++ b/docs/resources/codegurureviewer_repository_association.md @@ -73,7 +73,7 @@ variable "repo_name" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. The allowed characters across services are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. The allowed characters across services are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @. diff --git a/docs/resources/codepipeline_custom_action_type.md b/docs/resources/codepipeline_custom_action_type.md index 3f8c9f2f7b..9f78b6287d 100644 --- a/docs/resources/codepipeline_custom_action_type.md +++ b/docs/resources/codepipeline_custom_action_type.md @@ -55,17 +55,14 @@ Required: ### Nested Schema for `configuration_properties` -Required: +Optional: +- `description` (String) The description of the action configuration property that is displayed to users. - `key` (Boolean) Whether the configuration property is a key. - `name` (String) The name of the action configuration property. +- `queryable` (Boolean) Indicates that the property is used with PollForJobs. When creating a custom action, an action can have up to one queryable property. If it has one, that property must be both required and not secret.If you create a pipeline with a custom action type, and that custom action contains a queryable property, the value for that configuration property is subject to other restrictions. The value must be less than or equal to twenty (20) characters. The value can contain only alphanumeric characters, underscores, and hyphens. - `required` (Boolean) Whether the configuration property is a required value. - `secret` (Boolean) Whether the configuration property is secret. Secrets are hidden from all calls except for GetJobDetails, GetThirdPartyJobDetails, PollForJobs, and PollForThirdPartyJobs. - -Optional: - -- `description` (String) The description of the action configuration property that is displayed to users. -- `queryable` (Boolean) Indicates that the property is used with PollForJobs. When creating a custom action, an action can have up to one queryable property. If it has one, that property must be both required and not secret.If you create a pipeline with a custom action type, and that custom action contains a queryable property, the value for that configuration property is subject to other restrictions. The value must be less than or equal to twenty (20) characters. The value can contain only alphanumeric characters, underscores, and hyphens. - `type` (String) The type of the configuration property. @@ -83,7 +80,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/codepipeline_pipeline.md b/docs/resources/codepipeline_pipeline.md index 5a58d97e67..872eb4517e 100644 --- a/docs/resources/codepipeline_pipeline.md +++ b/docs/resources/codepipeline_pipeline.md @@ -86,7 +86,7 @@ Required: ### Nested Schema for `stages.actions.input_artifacts` -Required: +Optional: - `name` (String) The name of the artifact to be worked on (for example, "My App"). @@ -94,7 +94,7 @@ Required: ### Nested Schema for `stages.actions.output_artifacts` -Required: +Optional: - `name` (String) The name of the output of an artifact, such as "My App". @@ -130,7 +130,7 @@ Optional: ### Nested Schema for `stages.before_entry.conditions.rules.input_artifacts` -Required: +Optional: - `name` (String) The name of the artifact to be worked on (for example, "My App"). @@ -152,7 +152,7 @@ Optional: ### Nested Schema for `stages.blockers` -Required: +Optional: - `name` (String) Reserved for future use. - `type` (String) Reserved for future use. @@ -189,7 +189,7 @@ Optional: ### Nested Schema for `stages.on_failure.conditions.rules.input_artifacts` -Required: +Optional: - `name` (String) The name of the artifact to be worked on (for example, "My App"). @@ -238,7 +238,7 @@ Optional: ### Nested Schema for `stages.on_success.conditions.rules.input_artifacts` -Required: +Optional: - `name` (String) The name of the artifact to be worked on (for example, "My App"). @@ -261,19 +261,16 @@ Optional: ### Nested Schema for `artifact_store` -Required: - -- `location` (String) The S3 bucket used for storing the artifacts for a pipeline. You can specify the name of an S3 bucket but not a folder in the bucket. A folder to contain the pipeline artifacts is created for you based on the name of the pipeline. You can use any S3 bucket in the same AWS Region as the pipeline to store your pipeline artifacts. -- `type` (String) The type of the artifact store, such as S3. - Optional: - `encryption_key` (Attributes) Represents information about the key used to encrypt data in the artifact store, such as an AWS Key Management Service (AWS KMS) key (see [below for nested schema](#nestedatt--artifact_store--encryption_key)) +- `location` (String) The S3 bucket used for storing the artifacts for a pipeline. You can specify the name of an S3 bucket but not a folder in the bucket. A folder to contain the pipeline artifacts is created for you based on the name of the pipeline. You can use any S3 bucket in the same AWS Region as the pipeline to store your pipeline artifacts. +- `type` (String) The type of the artifact store, such as S3. ### Nested Schema for `artifact_store.encryption_key` -Required: +Optional: - `id` (String) The ID used to identify the key. For an AWS KMS key, you can use the key ID, the key ARN, or the alias ARN. - `type` (String) The type of encryption key, such as an AWS KMS key. When creating or updating a pipeline, the value must be set to 'KMS'. @@ -283,7 +280,7 @@ Required: ### Nested Schema for `artifact_stores` -Required: +Optional: - `artifact_store` (Attributes) The S3 bucket where artifacts for the pipeline are stored. (see [below for nested schema](#nestedatt--artifact_stores--artifact_store)) - `region` (String) The action declaration's AWS Region, such as us-east-1. @@ -291,19 +288,16 @@ Required: ### Nested Schema for `artifact_stores.artifact_store` -Required: - -- `location` (String) The S3 bucket used for storing the artifacts for a pipeline. You can specify the name of an S3 bucket but not a folder in the bucket. A folder to contain the pipeline artifacts is created for you based on the name of the pipeline. You can use any S3 bucket in the same AWS Region as the pipeline to store your pipeline artifacts. -- `type` (String) The type of the artifact store, such as S3. - Optional: - `encryption_key` (Attributes) Represents information about the key used to encrypt data in the artifact store, such as an AWS Key Management Service (AWS KMS) key (see [below for nested schema](#nestedatt--artifact_stores--artifact_store--encryption_key)) +- `location` (String) The S3 bucket used for storing the artifacts for a pipeline. You can specify the name of an S3 bucket but not a folder in the bucket. A folder to contain the pipeline artifacts is created for you based on the name of the pipeline. You can use any S3 bucket in the same AWS Region as the pipeline to store your pipeline artifacts. +- `type` (String) The type of the artifact store, such as S3. ### Nested Schema for `artifact_stores.artifact_store.encryption_key` -Required: +Optional: - `id` (String) The ID used to identify the key. For an AWS KMS key, you can use the key ID, the key ARN, or the alias ARN. - `type` (String) The type of encryption key, such as an AWS KMS key. When creating or updating a pipeline, the value must be set to 'KMS'. @@ -314,7 +308,7 @@ Required: ### Nested Schema for `disable_inbound_stage_transitions` -Required: +Optional: - `reason` (String) The reason given to the user that a stage is disabled, such as waiting for manual approval or manual tests. This message is displayed in the pipeline console UI. - `stage_name` (String) The name of the stage where you want to disable the inbound or outbound transition of artifacts. @@ -323,7 +317,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag's key. - `value` (String) The tag's value. @@ -332,25 +326,19 @@ Required: ### Nested Schema for `triggers` -Required: - -- `provider_type` (String) The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration. - Optional: - `git_configuration` (Attributes) A type of trigger configuration for Git-based source actions. (see [below for nested schema](#nestedatt--triggers--git_configuration)) +- `provider_type` (String) The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration. ### Nested Schema for `triggers.git_configuration` -Required: - -- `source_action_name` (String) The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only. - Optional: - `pull_request` (Attributes List) The field where the repository event that will start the pipeline is specified as pull requests. (see [below for nested schema](#nestedatt--triggers--git_configuration--pull_request)) - `push` (Attributes List) The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details. (see [below for nested schema](#nestedatt--triggers--git_configuration--push)) +- `source_action_name` (String) The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only. ### Nested Schema for `triggers.git_configuration.pull_request` @@ -422,14 +410,11 @@ Optional: ### Nested Schema for `variables` -Required: - -- `name` (String) The name of a pipeline-level variable. - Optional: - `default_value` (String) The value of a pipeline-level variable. - `description` (String) The description of a pipeline-level variable. It's used to add additional context about the variable, and not being used at time when pipeline executes. +- `name` (String) The name of a pipeline-level variable. ## Import diff --git a/docs/resources/codestarconnections_connection.md b/docs/resources/codestarconnections_connection.md index 68f876ffb0..666f797283 100644 --- a/docs/resources/codestarconnections_connection.md +++ b/docs/resources/codestarconnections_connection.md @@ -35,7 +35,7 @@ Schema for AWS::CodeStarConnections::Connection resource which can be used to co ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/codestarconnections_repository_link.md b/docs/resources/codestarconnections_repository_link.md index cd97a2153f..2c8dc0e517 100644 --- a/docs/resources/codestarconnections_repository_link.md +++ b/docs/resources/codestarconnections_repository_link.md @@ -36,7 +36,7 @@ Schema for AWS::CodeStarConnections::RepositoryLink resource which is used to ag ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, , ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, , ., /, =, +, and -. diff --git a/docs/resources/cognito_identity_pool.md b/docs/resources/cognito_identity_pool.md index e1c5a19b2c..a3c1104c34 100644 --- a/docs/resources/cognito_identity_pool.md +++ b/docs/resources/cognito_identity_pool.md @@ -73,13 +73,10 @@ resource "awscc_cognito_identity_pool" "example_identity_pool" { ### Nested Schema for `cognito_identity_providers` -Required: +Optional: - `client_id` (String) - `provider_name` (String) - -Optional: - - `server_side_token_check` (Boolean) @@ -96,7 +93,7 @@ Optional: ### Nested Schema for `identity_pool_tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/cognito_identity_pool_role_attachment.md b/docs/resources/cognito_identity_pool_role_attachment.md index 7354ac46d0..1ea32e10f7 100644 --- a/docs/resources/cognito_identity_pool_role_attachment.md +++ b/docs/resources/cognito_identity_pool_role_attachment.md @@ -42,14 +42,14 @@ Optional: ### Nested Schema for `role_mappings.rules_configuration` -Required: +Optional: - `rules` (Attributes List) (see [below for nested schema](#nestedatt--role_mappings--rules_configuration--rules)) ### Nested Schema for `role_mappings.rules_configuration.rules` -Required: +Optional: - `claim` (String) - `match_type` (String) diff --git a/docs/resources/cognito_user_pool_resource_server.md b/docs/resources/cognito_user_pool_resource_server.md index fbc6c092f0..597224354f 100644 --- a/docs/resources/cognito_user_pool_resource_server.md +++ b/docs/resources/cognito_user_pool_resource_server.md @@ -32,7 +32,7 @@ Resource Type definition for AWS::Cognito::UserPoolResourceServer ### Nested Schema for `scopes` -Required: +Optional: - `scope_description` (String) - `scope_name` (String) diff --git a/docs/resources/cognito_user_pool_risk_configuration_attachment.md b/docs/resources/cognito_user_pool_risk_configuration_attachment.md index f286c69553..96d727196b 100644 --- a/docs/resources/cognito_user_pool_risk_configuration_attachment.md +++ b/docs/resources/cognito_user_pool_risk_configuration_attachment.md @@ -33,12 +33,9 @@ Resource Type definition for AWS::Cognito::UserPoolRiskConfigurationAttachment ### Nested Schema for `account_takeover_risk_configuration` -Required: - -- `actions` (Attributes) (see [below for nested schema](#nestedatt--account_takeover_risk_configuration--actions)) - Optional: +- `actions` (Attributes) (see [below for nested schema](#nestedatt--account_takeover_risk_configuration--actions)) - `notify_configuration` (Attributes) (see [below for nested schema](#nestedatt--account_takeover_risk_configuration--notify_configuration)) @@ -53,7 +50,7 @@ Optional: ### Nested Schema for `account_takeover_risk_configuration.actions.high_action` -Required: +Optional: - `event_action` (String) - `notify` (Boolean) @@ -62,7 +59,7 @@ Required: ### Nested Schema for `account_takeover_risk_configuration.actions.low_action` -Required: +Optional: - `event_action` (String) - `notify` (Boolean) @@ -71,7 +68,7 @@ Required: ### Nested Schema for `account_takeover_risk_configuration.actions.medium_action` -Required: +Optional: - `event_action` (String) - `notify` (Boolean) @@ -81,10 +78,6 @@ Required: ### Nested Schema for `account_takeover_risk_configuration.notify_configuration` -Required: - -- `source_arn` (String) - Optional: - `block_email` (Attributes) (see [below for nested schema](#nestedatt--account_takeover_risk_configuration--notify_configuration--block_email)) @@ -92,43 +85,35 @@ Optional: - `mfa_email` (Attributes) (see [below for nested schema](#nestedatt--account_takeover_risk_configuration--notify_configuration--mfa_email)) - `no_action_email` (Attributes) (see [below for nested schema](#nestedatt--account_takeover_risk_configuration--notify_configuration--no_action_email)) - `reply_to` (String) +- `source_arn` (String) ### Nested Schema for `account_takeover_risk_configuration.notify_configuration.block_email` -Required: - -- `subject` (String) - Optional: - `html_body` (String) +- `subject` (String) - `text_body` (String) ### Nested Schema for `account_takeover_risk_configuration.notify_configuration.mfa_email` -Required: - -- `subject` (String) - Optional: - `html_body` (String) +- `subject` (String) - `text_body` (String) ### Nested Schema for `account_takeover_risk_configuration.notify_configuration.no_action_email` -Required: - -- `subject` (String) - Optional: - `html_body` (String) +- `subject` (String) - `text_body` (String) @@ -137,18 +122,15 @@ Optional: ### Nested Schema for `compromised_credentials_risk_configuration` -Required: - -- `actions` (Attributes) (see [below for nested schema](#nestedatt--compromised_credentials_risk_configuration--actions)) - Optional: +- `actions` (Attributes) (see [below for nested schema](#nestedatt--compromised_credentials_risk_configuration--actions)) - `event_filter` (List of String) ### Nested Schema for `compromised_credentials_risk_configuration.actions` -Required: +Optional: - `event_action` (String) diff --git a/docs/resources/comprehend_document_classifier.md b/docs/resources/comprehend_document_classifier.md index d656785f0c..9966addc41 100644 --- a/docs/resources/comprehend_document_classifier.md +++ b/docs/resources/comprehend_document_classifier.md @@ -55,25 +55,19 @@ Optional: ### Nested Schema for `input_data_config.augmented_manifests` -Required: +Optional: - `attribute_names` (Set of String) - `s3_uri` (String) - -Optional: - - `split` (String) ### Nested Schema for `input_data_config.document_reader_config` -Required: - -- `document_read_action` (String) - Optional: +- `document_read_action` (String) - `document_read_mode` (String) - `feature_types` (Set of String) @@ -81,12 +75,9 @@ Optional: ### Nested Schema for `input_data_config.documents` -Required: - -- `s3_uri` (String) - Optional: +- `s3_uri` (String) - `test_s3_uri` (String) @@ -103,7 +94,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -112,7 +103,7 @@ Required: ### Nested Schema for `vpc_config` -Required: +Optional: - `security_group_ids` (Set of String) - `subnets` (Set of String) diff --git a/docs/resources/comprehend_flywheel.md b/docs/resources/comprehend_flywheel.md index 3921a56a9e..9e8aa0a07c 100644 --- a/docs/resources/comprehend_flywheel.md +++ b/docs/resources/comprehend_flywheel.md @@ -47,7 +47,7 @@ Optional: ### Nested Schema for `data_security_config.vpc_config` -Required: +Optional: - `security_group_ids` (Set of String) - `subnets` (Set of String) @@ -57,7 +57,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -66,25 +66,19 @@ Required: ### Nested Schema for `task_config` -Required: - -- `language_code` (String) - Optional: - `document_classification_config` (Attributes) (see [below for nested schema](#nestedatt--task_config--document_classification_config)) - `entity_recognition_config` (Attributes) (see [below for nested schema](#nestedatt--task_config--entity_recognition_config)) +- `language_code` (String) ### Nested Schema for `task_config.document_classification_config` -Required: - -- `mode` (String) - Optional: - `labels` (Set of String) +- `mode` (String) @@ -97,7 +91,7 @@ Optional: ### Nested Schema for `task_config.entity_recognition_config.entity_types` -Required: +Optional: - `type` (String) diff --git a/docs/resources/config_aggregation_authorization.md b/docs/resources/config_aggregation_authorization.md index 6118dc5abf..e2f032f0da 100644 --- a/docs/resources/config_aggregation_authorization.md +++ b/docs/resources/config_aggregation_authorization.md @@ -32,7 +32,7 @@ Resource Type definition for AWS::Config::AggregationAuthorization ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/config_config_rule.md b/docs/resources/config_config_rule.md index 856b3816e4..27f29849e2 100644 --- a/docs/resources/config_config_rule.md +++ b/docs/resources/config_config_rule.md @@ -102,9 +102,12 @@ Optional: ### Nested Schema for `source.source_details` -Required: +Optional: - `event_source` (String) The source of the event, such as an AWS service, that triggers CC to evaluate your AWS resources. +- `maximum_execution_frequency` (String) The frequency at which you want CC to run evaluations for a custom rule with a periodic trigger. If you specify a value for ``MaximumExecutionFrequency``, then ``MessageType`` must use the ``ScheduledNotification`` value. + By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the ``MaximumExecutionFrequency`` parameter. + Based on the valid value you choose, CC runs evaluations once for each valid value. For example, if you choose ``Three_Hours``, CC runs evaluations once every three hours. In this case, ``Three_Hours`` is the frequency of this rule. - `message_type` (String) The type of notification that triggers CC to run an evaluation for a rule. You can specify the following notification types: + ``ConfigurationItemChangeNotification`` - Triggers an evaluation when CC delivers a configuration item as a result of a resource change. + ``OversizedConfigurationItemChangeNotification`` - Triggers an evaluation when CC delivers an oversized configuration item. CC may generate this notification type when a resource changes and the notification exceeds the maximum size allowed by Amazon SNS. @@ -113,12 +116,6 @@ Required: If you want your custom rule to be triggered by configuration changes, specify two SourceDetail objects, one for ``ConfigurationItemChangeNotification`` and one for ``OversizedConfigurationItemChangeNotification``. -Optional: - -- `maximum_execution_frequency` (String) The frequency at which you want CC to run evaluations for a custom rule with a periodic trigger. If you specify a value for ``MaximumExecutionFrequency``, then ``MessageType`` must use the ``ScheduledNotification`` value. - By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the ``MaximumExecutionFrequency`` parameter. - Based on the valid value you choose, CC runs evaluations once for each valid value. For example, if you choose ``Three_Hours``, CC runs evaluations once every three hours. In this case, ``Three_Hours`` is the frequency of this rule. - diff --git a/docs/resources/config_configuration_aggregator.md b/docs/resources/config_configuration_aggregator.md index 871a1082a1..e614454aea 100644 --- a/docs/resources/config_configuration_aggregator.md +++ b/docs/resources/config_configuration_aggregator.md @@ -30,12 +30,9 @@ Resource Type definition for AWS::Config::ConfigurationAggregator ### Nested Schema for `account_aggregation_sources` -Required: - -- `account_ids` (List of String) - Optional: +- `account_ids` (List of String) - `all_aws_regions` (Boolean) - `aws_regions` (List of String) @@ -43,20 +40,17 @@ Optional: ### Nested Schema for `organization_aggregation_source` -Required: - -- `role_arn` (String) - Optional: - `all_aws_regions` (Boolean) - `aws_regions` (List of String) +- `role_arn` (String) ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/config_conformance_pack.md b/docs/resources/config_conformance_pack.md index 2785eaff0c..f1bb9fdf75 100644 --- a/docs/resources/config_conformance_pack.md +++ b/docs/resources/config_conformance_pack.md @@ -35,7 +35,7 @@ A conformance pack is a collection of AWS Config rules and remediation actions t ### Nested Schema for `conformance_pack_input_parameters` -Required: +Optional: - `parameter_name` (String) Key part of key-value pair with value being parameter value - `parameter_value` (String) Value part of key-value pair with key being parameter Name diff --git a/docs/resources/config_organization_conformance_pack.md b/docs/resources/config_organization_conformance_pack.md index 01122045cd..969350fa2d 100644 --- a/docs/resources/config_organization_conformance_pack.md +++ b/docs/resources/config_organization_conformance_pack.md @@ -35,7 +35,7 @@ Resource schema for AWS::Config::OrganizationConformancePack. ### Nested Schema for `conformance_pack_input_parameters` -Required: +Optional: - `parameter_name` (String) - `parameter_value` (String) diff --git a/docs/resources/config_stored_query.md b/docs/resources/config_stored_query.md index 9ab91aa081..8c657fa9c0 100644 --- a/docs/resources/config_stored_query.md +++ b/docs/resources/config_stored_query.md @@ -34,7 +34,7 @@ Resource Type definition for AWS::Config::StoredQuery ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/connect_contact_flow.md b/docs/resources/connect_contact_flow.md index e601256b10..7504f924c9 100644 --- a/docs/resources/connect_contact_flow.md +++ b/docs/resources/connect_contact_flow.md @@ -77,7 +77,7 @@ resource "awscc_connect_contact_flow" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. . You can specify a value that is maximum of 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/connect_contact_flow_module.md b/docs/resources/connect_contact_flow_module.md index fdbfbeec5e..4ccc900c8a 100644 --- a/docs/resources/connect_contact_flow_module.md +++ b/docs/resources/connect_contact_flow_module.md @@ -92,7 +92,7 @@ resource "awscc_connect_contact_flow_module" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is maximum of 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/connect_hours_of_operation.md b/docs/resources/connect_hours_of_operation.md index 6ae6e206d8..ef7d61e24f 100644 --- a/docs/resources/connect_hours_of_operation.md +++ b/docs/resources/connect_hours_of_operation.md @@ -100,7 +100,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is maximum of 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/connect_instance.md b/docs/resources/connect_instance.md index 19fdee1d40..761791b7fa 100644 --- a/docs/resources/connect_instance.md +++ b/docs/resources/connect_instance.md @@ -93,7 +93,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/connect_instance_storage_config.md b/docs/resources/connect_instance_storage_config.md index 0913150761..84fec31356 100644 --- a/docs/resources/connect_instance_storage_config.md +++ b/docs/resources/connect_instance_storage_config.md @@ -36,7 +36,7 @@ Resource Type definition for AWS::Connect::InstanceStorageConfig ### Nested Schema for `kinesis_firehose_config` -Required: +Optional: - `firehose_arn` (String) An ARN is a unique AWS resource identifier. @@ -44,7 +44,7 @@ Required: ### Nested Schema for `kinesis_stream_config` -Required: +Optional: - `stream_arn` (String) An ARN is a unique AWS resource identifier. @@ -52,7 +52,7 @@ Required: ### Nested Schema for `kinesis_video_stream_config` -Required: +Optional: - `encryption_config` (Attributes) (see [below for nested schema](#nestedatt--kinesis_video_stream_config--encryption_config)) - `prefix` (String) Prefixes are used to infer logical hierarchy @@ -61,7 +61,7 @@ Required: ### Nested Schema for `kinesis_video_stream_config.encryption_config` -Required: +Optional: - `encryption_type` (String) Specifies default encryption using AWS KMS-Managed Keys - `key_id` (String) Specifies the encryption key id @@ -71,19 +71,16 @@ Required: ### Nested Schema for `s3_config` -Required: +Optional: - `bucket_name` (String) A name for the S3 Bucket - `bucket_prefix` (String) Prefixes are used to infer logical hierarchy - -Optional: - - `encryption_config` (Attributes) (see [below for nested schema](#nestedatt--s3_config--encryption_config)) ### Nested Schema for `s3_config.encryption_config` -Required: +Optional: - `encryption_type` (String) Specifies default encryption using AWS KMS-Managed Keys - `key_id` (String) Specifies the encryption key id diff --git a/docs/resources/connect_phone_number.md b/docs/resources/connect_phone_number.md index 3d0cbd2010..1cd803a31e 100644 --- a/docs/resources/connect_phone_number.md +++ b/docs/resources/connect_phone_number.md @@ -63,7 +63,7 @@ resource "awscc_connect_phone_number" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/connect_prompt.md b/docs/resources/connect_prompt.md index 93ce129ad8..b9d40a8597 100644 --- a/docs/resources/connect_prompt.md +++ b/docs/resources/connect_prompt.md @@ -46,7 +46,7 @@ resource "awscc_connect_prompt" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/connect_queue.md b/docs/resources/connect_queue.md index 2c32d07b7b..9266b0d7db 100644 --- a/docs/resources/connect_queue.md +++ b/docs/resources/connect_queue.md @@ -69,7 +69,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/connect_quick_connect.md b/docs/resources/connect_quick_connect.md index 4109c16550..d00d6360ae 100644 --- a/docs/resources/connect_quick_connect.md +++ b/docs/resources/connect_quick_connect.md @@ -90,7 +90,7 @@ Optional: ### Nested Schema for `quick_connect_config.phone_config` -Required: +Optional: - `phone_number` (String) The phone number in E.164 format. @@ -98,7 +98,7 @@ Required: ### Nested Schema for `quick_connect_config.queue_config` -Required: +Optional: - `contact_flow_arn` (String) The identifier of the contact flow. - `queue_arn` (String) The identifier for the queue. @@ -107,7 +107,7 @@ Required: ### Nested Schema for `quick_connect_config.user_config` -Required: +Optional: - `contact_flow_arn` (String) The identifier of the contact flow. - `user_arn` (String) The identifier of the user. @@ -117,7 +117,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is maximum of 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/connect_routing_profile.md b/docs/resources/connect_routing_profile.md index f4d7e72394..7d009821b3 100644 --- a/docs/resources/connect_routing_profile.md +++ b/docs/resources/connect_routing_profile.md @@ -49,7 +49,7 @@ Optional: ### Nested Schema for `media_concurrencies.cross_channel_behavior` -Required: +Optional: - `behavior_type` (String) Specifies the other channels that can be routed to an agent handling their current channel. @@ -58,7 +58,7 @@ Required: ### Nested Schema for `queue_configs` -Required: +Optional: - `delay` (Number) The delay, in seconds, a contact should wait in the queue before they are routed to an available agent. - `priority` (Number) The order in which contacts are to be handled for the queue. @@ -67,7 +67,7 @@ Required: ### Nested Schema for `queue_configs.queue_reference` -Required: +Optional: - `channel` (String) The channels that agents can handle in the Contact Control Panel (CCP). - `queue_arn` (String) The Amazon Resource Name (ARN) for the queue. @@ -77,7 +77,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/connect_security_profile.md b/docs/resources/connect_security_profile.md index 063fa6634d..7130825e95 100644 --- a/docs/resources/connect_security_profile.md +++ b/docs/resources/connect_security_profile.md @@ -41,7 +41,7 @@ Resource Type definition for AWS::Connect::SecurityProfile ### Nested Schema for `allowed_access_control_tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. @@ -50,7 +50,7 @@ Required: ### Nested Schema for `applications` -Required: +Optional: - `application_permissions` (Set of String) The permissions that the agent is granted on the application - `namespace` (String) Namespace of the application that you want to give access to. @@ -59,7 +59,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/connect_task_template.md b/docs/resources/connect_task_template.md index 26ac6f6d5f..dcce184d3b 100644 --- a/docs/resources/connect_task_template.md +++ b/docs/resources/connect_task_template.md @@ -48,14 +48,14 @@ Optional: ### Nested Schema for `constraints.invisible_fields` -Required: +Optional: - `id` (Attributes) the identifier (name) for the task template field (see [below for nested schema](#nestedatt--constraints--invisible_fields--id)) ### Nested Schema for `constraints.invisible_fields.id` -Required: +Optional: - `name` (String) The name of the task template field @@ -64,14 +64,14 @@ Required: ### Nested Schema for `constraints.read_only_fields` -Required: +Optional: - `id` (Attributes) the identifier (name) for the task template field (see [below for nested schema](#nestedatt--constraints--read_only_fields--id)) ### Nested Schema for `constraints.read_only_fields.id` -Required: +Optional: - `name` (String) The name of the task template field @@ -80,14 +80,14 @@ Required: ### Nested Schema for `constraints.required_fields` -Required: +Optional: - `id` (Attributes) the identifier (name) for the task template field (see [below for nested schema](#nestedatt--constraints--required_fields--id)) ### Nested Schema for `constraints.required_fields.id` -Required: +Optional: - `name` (String) The name of the task template field @@ -97,7 +97,7 @@ Required: ### Nested Schema for `defaults` -Required: +Optional: - `default_value` (String) the default value for the task template's field - `id` (Attributes) the identifier (name) for the task template field (see [below for nested schema](#nestedatt--defaults--id)) @@ -105,7 +105,7 @@ Required: ### Nested Schema for `defaults.id` -Required: +Optional: - `name` (String) The name of the task template field @@ -114,20 +114,17 @@ Required: ### Nested Schema for `fields` -Required: - -- `id` (Attributes) the identifier (name) for the task template field (see [below for nested schema](#nestedatt--fields--id)) -- `type` (String) The type of the task template's field - Optional: - `description` (String) The description of the task template's field +- `id` (Attributes) the identifier (name) for the task template field (see [below for nested schema](#nestedatt--fields--id)) - `single_select_options` (List of String) list of field options to be used with single select +- `type` (String) The type of the task template's field ### Nested Schema for `fields.id` -Required: +Optional: - `name` (String) The name of the task template field @@ -136,7 +133,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. . You can specify a value that is maximum of 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/connect_traffic_distribution_group.md b/docs/resources/connect_traffic_distribution_group.md index 4652870e00..c49578f2cb 100644 --- a/docs/resources/connect_traffic_distribution_group.md +++ b/docs/resources/connect_traffic_distribution_group.md @@ -35,7 +35,7 @@ Resource Type definition for AWS::Connect::TrafficDistributionGroup ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/connect_user.md b/docs/resources/connect_user.md index 2b7ec6c119..a432ef7d5c 100644 --- a/docs/resources/connect_user.md +++ b/docs/resources/connect_user.md @@ -66,7 +66,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is maximum of 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. @@ -75,7 +75,7 @@ Required: ### Nested Schema for `user_proficiencies` -Required: +Optional: - `attribute_name` (String) The name of user's proficiency. You must use name of predefined attribute present in the Amazon Connect instance. - `attribute_value` (String) The value of user's proficiency. You must use value of predefined attribute present in the Amazon Connect instance. diff --git a/docs/resources/connect_user_hierarchy_group.md b/docs/resources/connect_user_hierarchy_group.md index acb522686f..d5feaea2e8 100644 --- a/docs/resources/connect_user_hierarchy_group.md +++ b/docs/resources/connect_user_hierarchy_group.md @@ -33,7 +33,7 @@ Resource Type definition for AWS::Connect::UserHierarchyGroup ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is maximum of 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/connect_view.md b/docs/resources/connect_view.md index 813f50741a..c0fdafde6e 100644 --- a/docs/resources/connect_view.md +++ b/docs/resources/connect_view.md @@ -37,7 +37,7 @@ Resource Type definition for AWS::Connect::View ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters - `value` (String) The value for the tag. . You can specify a value that is maximum of 256 Unicode characters diff --git a/docs/resources/connectcampaigns_campaign.md b/docs/resources/connectcampaigns_campaign.md index 101ba9b1e1..9c8c28a449 100644 --- a/docs/resources/connectcampaigns_campaign.md +++ b/docs/resources/connectcampaigns_campaign.md @@ -51,24 +51,18 @@ Optional: ### Nested Schema for `dialer_config.predictive_dialer_config` -Required: - -- `bandwidth_allocation` (Number) The bandwidth allocation of a queue resource. - Optional: +- `bandwidth_allocation` (Number) The bandwidth allocation of a queue resource. - `dialing_capacity` (Number) Allocates dialing capacity for this campaign between multiple active campaigns. ### Nested Schema for `dialer_config.progressive_dialer_config` -Required: - -- `bandwidth_allocation` (Number) The bandwidth allocation of a queue resource. - Optional: +- `bandwidth_allocation` (Number) The bandwidth allocation of a queue resource. - `dialing_capacity` (Number) Allocates dialing capacity for this campaign between multiple active campaigns. @@ -89,20 +83,17 @@ Optional: ### Nested Schema for `outbound_call_config.answer_machine_detection_config` -Required: - -- `enable_answer_machine_detection` (Boolean) Flag to decided whether outbound calls should have answering machine detection enabled or not - Optional: - `await_answer_machine_prompt` (Boolean) Enables detection of prompts (e.g., beep after after a voicemail greeting) +- `enable_answer_machine_detection` (Boolean) Flag to decided whether outbound calls should have answering machine detection enabled or not ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that's 1 to 256 characters in length. diff --git a/docs/resources/customerprofiles_calculated_attribute_definition.md b/docs/resources/customerprofiles_calculated_attribute_definition.md index f7e8203b11..92ac2c465b 100644 --- a/docs/resources/customerprofiles_calculated_attribute_definition.md +++ b/docs/resources/customerprofiles_calculated_attribute_definition.md @@ -64,7 +64,7 @@ Optional: ### Nested Schema for `conditions.range` -Required: +Optional: - `unit` (String) The unit of time. - `value` (Number) The amount of time of the specified unit. @@ -73,7 +73,7 @@ Required: ### Nested Schema for `conditions.threshold` -Required: +Optional: - `operator` (String) The operator of the threshold. - `value` (String) The value of the threshold. @@ -83,7 +83,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/customerprofiles_domain.md b/docs/resources/customerprofiles_domain.md index c004a51e0f..ddd2e1f324 100644 --- a/docs/resources/customerprofiles_domain.md +++ b/docs/resources/customerprofiles_domain.md @@ -35,7 +35,7 @@ A domain defined for 3rd party data source in Profile Service ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/customerprofiles_event_stream.md b/docs/resources/customerprofiles_event_stream.md index 33c4dd8207..2ff4fe05ba 100644 --- a/docs/resources/customerprofiles_event_stream.md +++ b/docs/resources/customerprofiles_event_stream.md @@ -36,7 +36,7 @@ An Event Stream resource of Amazon Connect Customer Profiles ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/customerprofiles_integration.md b/docs/resources/customerprofiles_integration.md index 10b6c50683..2a90f563d0 100644 --- a/docs/resources/customerprofiles_integration.md +++ b/docs/resources/customerprofiles_integration.md @@ -36,30 +36,32 @@ The resource schema for creating an Amazon Connect Customer Profiles Integration ### Nested Schema for `flow_definition` -Required: +Optional: +- `description` (String) - `flow_name` (String) - `kms_arn` (String) - `source_flow_config` (Attributes) (see [below for nested schema](#nestedatt--flow_definition--source_flow_config)) - `tasks` (Attributes List) (see [below for nested schema](#nestedatt--flow_definition--tasks)) - `trigger_config` (Attributes) (see [below for nested schema](#nestedatt--flow_definition--trigger_config)) -Optional: - -- `description` (String) - ### Nested Schema for `flow_definition.source_flow_config` -Required: +Optional: +- `connector_profile_name` (String) - `connector_type` (String) +- `incremental_pull_config` (Attributes) (see [below for nested schema](#nestedatt--flow_definition--source_flow_config--incremental_pull_config)) - `source_connector_properties` (Attributes) (see [below for nested schema](#nestedatt--flow_definition--source_flow_config--source_connector_properties)) + +### Nested Schema for `flow_definition.source_flow_config.incremental_pull_config` + Optional: -- `connector_profile_name` (String) -- `incremental_pull_config` (Attributes) (see [below for nested schema](#nestedatt--flow_definition--source_flow_config--incremental_pull_config)) +- `datetime_type_field_name` (String) + ### Nested Schema for `flow_definition.source_flow_config.source_connector_properties` @@ -75,7 +77,7 @@ Optional: ### Nested Schema for `flow_definition.source_flow_config.source_connector_properties.marketo` -Required: +Optional: - `object` (String) @@ -83,32 +85,26 @@ Required: ### Nested Schema for `flow_definition.source_flow_config.source_connector_properties.s3` -Required: - -- `bucket_name` (String) - Optional: +- `bucket_name` (String) - `bucket_prefix` (String) ### Nested Schema for `flow_definition.source_flow_config.source_connector_properties.salesforce` -Required: - -- `object` (String) - Optional: - `enable_dynamic_field_update` (Boolean) - `include_deleted_records` (Boolean) +- `object` (String) ### Nested Schema for `flow_definition.source_flow_config.source_connector_properties.service_now` -Required: +Optional: - `object` (String) @@ -116,34 +112,23 @@ Required: ### Nested Schema for `flow_definition.source_flow_config.source_connector_properties.zendesk` -Required: +Optional: - `object` (String) - -### Nested Schema for `flow_definition.source_flow_config.incremental_pull_config` - -Optional: - -- `datetime_type_field_name` (String) - - ### Nested Schema for `flow_definition.tasks` -Required: - -- `source_fields` (List of String) -- `task_type` (String) - Optional: - `connector_operator` (Attributes) (see [below for nested schema](#nestedatt--flow_definition--tasks--connector_operator)) - `destination_field` (String) +- `source_fields` (List of String) - `task_properties` (Attributes List) (see [below for nested schema](#nestedatt--flow_definition--tasks--task_properties)) +- `task_type` (String) ### Nested Schema for `flow_definition.tasks.connector_operator` @@ -160,7 +145,7 @@ Optional: ### Nested Schema for `flow_definition.tasks.task_properties` -Required: +Optional: - `operator_property_key` (String) - `property` (String) @@ -170,13 +155,10 @@ Required: ### Nested Schema for `flow_definition.trigger_config` -Required: - -- `trigger_type` (String) - Optional: - `trigger_properties` (Attributes) (see [below for nested schema](#nestedatt--flow_definition--trigger_config--trigger_properties)) +- `trigger_type` (String) ### Nested Schema for `flow_definition.trigger_config.trigger_properties` @@ -188,15 +170,12 @@ Optional: ### Nested Schema for `flow_definition.trigger_config.trigger_properties.scheduled` -Required: - -- `schedule_expression` (String) - Optional: - `data_pull_mode` (String) - `first_execution_from` (Number) - `schedule_end_time` (Number) +- `schedule_expression` (String) - `schedule_offset` (Number) - `schedule_start_time` (Number) - `timezone` (String) @@ -208,7 +187,7 @@ Optional: ### Nested Schema for `object_type_names` -Required: +Optional: - `key` (String) - `value` (String) @@ -217,7 +196,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/customerprofiles_object_type.md b/docs/resources/customerprofiles_object_type.md index f957db1c0a..6b3abc3dc4 100644 --- a/docs/resources/customerprofiles_object_type.md +++ b/docs/resources/customerprofiles_object_type.md @@ -78,7 +78,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/databrew_dataset.md b/docs/resources/databrew_dataset.md index b6e4746ae8..ba016a6d9c 100644 --- a/docs/resources/databrew_dataset.md +++ b/docs/resources/databrew_dataset.md @@ -54,12 +54,9 @@ Optional: ### Nested Schema for `input.data_catalog_input_definition.temp_directory` -Required: - -- `bucket` (String) - Optional: +- `bucket` (String) - `key` (String) @@ -67,25 +64,19 @@ Optional: ### Nested Schema for `input.database_input_definition` -Required: - -- `glue_connection_name` (String) Glue connection name - Optional: - `database_table_name` (String) Database table name +- `glue_connection_name` (String) Glue connection name - `query_string` (String) Custom SQL to run against the provided AWS Glue connection. This SQL will be used as the input for DataBrew projects and jobs. - `temp_directory` (Attributes) Input location (see [below for nested schema](#nestedatt--input--database_input_definition--temp_directory)) ### Nested Schema for `input.database_input_definition.temp_directory` -Required: - -- `bucket` (String) - Optional: +- `bucket` (String) - `key` (String) @@ -101,12 +92,9 @@ Optional: ### Nested Schema for `input.s3_input_definition` -Required: - -- `bucket` (String) - Optional: +- `bucket` (String) - `key` (String) @@ -160,12 +148,9 @@ Optional: ### Nested Schema for `path_options.files_limit` -Required: - -- `max_files` (Number) Maximum number of files - Optional: +- `max_files` (Number) Maximum number of files - `order` (String) Order - `ordered_by` (String) Ordered by @@ -173,7 +158,7 @@ Optional: ### Nested Schema for `path_options.last_modified_date_condition` -Required: +Optional: - `expression` (String) Filtering expression for a parameter - `values_map` (Attributes List) (see [below for nested schema](#nestedatt--path_options--last_modified_date_condition--values_map)) @@ -181,7 +166,7 @@ Required: ### Nested Schema for `path_options.last_modified_date_condition.values_map` -Required: +Optional: - `value` (String) - `value_reference` (String) Variable name @@ -191,7 +176,7 @@ Required: ### Nested Schema for `path_options.parameters` -Required: +Optional: - `dataset_parameter` (Attributes) (see [below for nested schema](#nestedatt--path_options--parameters--dataset_parameter)) - `path_parameter_name` (String) Parameter name @@ -199,26 +184,20 @@ Required: ### Nested Schema for `path_options.parameters.dataset_parameter` -Required: - -- `name` (String) Parameter name -- `type` (String) Parameter type - Optional: - `create_column` (Boolean) Add the value of this parameter as a column in a dataset. - `datetime_options` (Attributes) (see [below for nested schema](#nestedatt--path_options--parameters--dataset_parameter--datetime_options)) - `filter` (Attributes) (see [below for nested schema](#nestedatt--path_options--parameters--dataset_parameter--filter)) +- `name` (String) Parameter name +- `type` (String) Parameter type ### Nested Schema for `path_options.parameters.dataset_parameter.datetime_options` -Required: - -- `format` (String) Date/time format of a date parameter - Optional: +- `format` (String) Date/time format of a date parameter - `locale_code` (String) Locale code for a date parameter - `timezone_offset` (String) Timezone offset @@ -226,7 +205,7 @@ Optional: ### Nested Schema for `path_options.parameters.dataset_parameter.filter` -Required: +Optional: - `expression` (String) Filtering expression for a parameter - `values_map` (Attributes List) (see [below for nested schema](#nestedatt--path_options--parameters--dataset_parameter--filter--values_map)) @@ -234,7 +213,7 @@ Required: ### Nested Schema for `path_options.parameters.dataset_parameter.filter.values_map` -Required: +Optional: - `value` (String) - `value_reference` (String) Variable name @@ -247,7 +226,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/databrew_job.md b/docs/resources/databrew_job.md index d766a743c0..168f5232e6 100644 --- a/docs/resources/databrew_job.md +++ b/docs/resources/databrew_job.md @@ -48,38 +48,29 @@ Resource schema for AWS::DataBrew::Job. ### Nested Schema for `data_catalog_outputs` -Required: - -- `database_name` (String) -- `table_name` (String) - Optional: - `catalog_id` (String) +- `database_name` (String) - `database_options` (Attributes) (see [below for nested schema](#nestedatt--data_catalog_outputs--database_options)) - `overwrite` (Boolean) - `s3_options` (Attributes) (see [below for nested schema](#nestedatt--data_catalog_outputs--s3_options)) +- `table_name` (String) ### Nested Schema for `data_catalog_outputs.database_options` -Required: - -- `table_name` (String) - Optional: +- `table_name` (String) - `temp_directory` (Attributes) S3 Output location (see [below for nested schema](#nestedatt--data_catalog_outputs--database_options--temp_directory)) ### Nested Schema for `data_catalog_outputs.database_options.temp_directory` -Required: - -- `bucket` (String) - Optional: +- `bucket` (String) - `bucket_owner` (String) - `key` (String) @@ -88,19 +79,16 @@ Optional: ### Nested Schema for `data_catalog_outputs.s3_options` -Required: +Optional: - `location` (Attributes) S3 Output location (see [below for nested schema](#nestedatt--data_catalog_outputs--s3_options--location)) ### Nested Schema for `data_catalog_outputs.s3_options.location` -Required: - -- `bucket` (String) - Optional: +- `bucket` (String) - `bucket_owner` (String) - `key` (String) @@ -110,35 +98,26 @@ Optional: ### Nested Schema for `database_outputs` -Required: - -- `database_options` (Attributes) (see [below for nested schema](#nestedatt--database_outputs--database_options)) -- `glue_connection_name` (String) Glue connection name - Optional: +- `database_options` (Attributes) (see [below for nested schema](#nestedatt--database_outputs--database_options)) - `database_output_mode` (String) Database table name +- `glue_connection_name` (String) Glue connection name ### Nested Schema for `database_outputs.database_options` -Required: - -- `table_name` (String) - Optional: +- `table_name` (String) - `temp_directory` (Attributes) S3 Output location (see [below for nested schema](#nestedatt--database_outputs--database_options--temp_directory)) ### Nested Schema for `database_outputs.database_options.temp_directory` -Required: - -- `bucket` (String) - Optional: +- `bucket` (String) - `bucket_owner` (String) - `key` (String) @@ -157,12 +136,9 @@ Optional: ### Nested Schema for `output_location` -Required: - -- `bucket` (String) - Optional: +- `bucket` (String) - `bucket_owner` (String) - `key` (String) @@ -170,32 +146,16 @@ Optional: ### Nested Schema for `outputs` -Required: - -- `location` (Attributes) S3 Output location (see [below for nested schema](#nestedatt--outputs--location)) - Optional: - `compression_format` (String) - `format` (String) - `format_options` (Attributes) Format options for job Output (see [below for nested schema](#nestedatt--outputs--format_options)) +- `location` (Attributes) S3 Output location (see [below for nested schema](#nestedatt--outputs--location)) - `max_output_files` (Number) - `overwrite` (Boolean) - `partition_columns` (List of String) - -### Nested Schema for `outputs.location` - -Required: - -- `bucket` (String) - -Optional: - -- `bucket_owner` (String) -- `key` (String) - - ### Nested Schema for `outputs.format_options` @@ -212,6 +172,16 @@ Optional: + +### Nested Schema for `outputs.location` + +Optional: + +- `bucket` (String) +- `bucket_owner` (String) +- `key` (String) + + ### Nested Schema for `profile_configuration` @@ -226,13 +196,19 @@ Optional: ### Nested Schema for `profile_configuration.column_statistics_configurations` -Required: +Optional: +- `selectors` (Attributes List) (see [below for nested schema](#nestedatt--profile_configuration--column_statistics_configurations--selectors)) - `statistics` (Attributes) (see [below for nested schema](#nestedatt--profile_configuration--column_statistics_configurations--statistics)) + +### Nested Schema for `profile_configuration.column_statistics_configurations.selectors` + Optional: -- `selectors` (Attributes List) (see [below for nested schema](#nestedatt--profile_configuration--column_statistics_configurations--selectors)) +- `name` (String) +- `regex` (String) + ### Nested Schema for `profile_configuration.column_statistics_configurations.statistics` @@ -245,22 +221,13 @@ Optional: ### Nested Schema for `profile_configuration.column_statistics_configurations.statistics.overrides` -Required: +Optional: - `parameters` (Map of String) - `statistic` (String) - -### Nested Schema for `profile_configuration.column_statistics_configurations.selectors` - -Optional: - -- `name` (String) -- `regex` (String) - - ### Nested Schema for `profile_configuration.dataset_statistics_configuration` @@ -273,7 +240,7 @@ Optional: ### Nested Schema for `profile_configuration.dataset_statistics_configuration.overrides` -Required: +Optional: - `parameters` (Map of String) - `statistic` (String) @@ -283,18 +250,15 @@ Required: ### Nested Schema for `profile_configuration.entity_detector_configuration` -Required: - -- `entity_types` (List of String) - Optional: - `allowed_statistics` (Attributes) (see [below for nested schema](#nestedatt--profile_configuration--entity_detector_configuration--allowed_statistics)) +- `entity_types` (List of String) ### Nested Schema for `profile_configuration.entity_detector_configuration.allowed_statistics` -Required: +Optional: - `statistics` (List of String) @@ -313,19 +277,16 @@ Optional: ### Nested Schema for `recipe` -Required: - -- `name` (String) Recipe name - Optional: +- `name` (String) Recipe name - `version` (String) Recipe version ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -334,12 +295,9 @@ Required: ### Nested Schema for `validation_configurations` -Required: - -- `ruleset_arn` (String) Arn of the Ruleset - Optional: +- `ruleset_arn` (String) Arn of the Ruleset - `validation_mode` (String) ## Import diff --git a/docs/resources/databrew_project.md b/docs/resources/databrew_project.md index a6465ef199..0dd6c190fd 100644 --- a/docs/resources/databrew_project.md +++ b/docs/resources/databrew_project.md @@ -34,19 +34,16 @@ Resource schema for AWS::DataBrew::Project. ### Nested Schema for `sample` -Required: - -- `type` (String) Sample type - Optional: - `size` (Number) Sample size +- `type` (String) Sample type ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/databrew_ruleset.md b/docs/resources/databrew_ruleset.md index 4e29922f3f..c1b8c4856a 100644 --- a/docs/resources/databrew_ruleset.md +++ b/docs/resources/databrew_ruleset.md @@ -57,7 +57,7 @@ Optional: ### Nested Schema for `rules.substitution_map` -Required: +Optional: - `value` (String) Value or column name - `value_reference` (String) Variable name @@ -66,21 +66,18 @@ Required: ### Nested Schema for `rules.threshold` -Required: - -- `value` (Number) Threshold value for a rule - Optional: - `type` (String) Threshold type for a rule - `unit` (String) Threshold unit for a rule +- `value` (Number) Threshold value for a rule ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/databrew_schedule.md b/docs/resources/databrew_schedule.md index 68833c097a..03d3db0097 100644 --- a/docs/resources/databrew_schedule.md +++ b/docs/resources/databrew_schedule.md @@ -32,7 +32,7 @@ Resource schema for AWS::DataBrew::Schedule. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/datapipeline_pipeline.md b/docs/resources/datapipeline_pipeline.md index 60f6dd0050..a1918f1aa7 100644 --- a/docs/resources/datapipeline_pipeline.md +++ b/docs/resources/datapipeline_pipeline.md @@ -36,7 +36,7 @@ An example resource schema demonstrating some basic constructs and validation ru ### Nested Schema for `parameter_objects` -Required: +Optional: - `attributes` (Attributes List) The attributes of the parameter object. (see [below for nested schema](#nestedatt--parameter_objects--attributes)) - `id` (String) The ID of the parameter object. @@ -44,7 +44,7 @@ Required: ### Nested Schema for `parameter_objects.attributes` -Required: +Optional: - `key` (String) The field identifier. - `string_value` (String) The field value, expressed as a String. @@ -54,7 +54,7 @@ Required: ### Nested Schema for `parameter_values` -Required: +Optional: - `id` (String) The ID of the parameter value. - `string_value` (String) The field value, expressed as a String. @@ -63,7 +63,7 @@ Required: ### Nested Schema for `pipeline_objects` -Required: +Optional: - `fields` (Attributes List) Key-value pairs that define the properties of the object. (see [below for nested schema](#nestedatt--pipeline_objects--fields)) - `id` (String) The ID of the object. @@ -72,12 +72,9 @@ Required: ### Nested Schema for `pipeline_objects.fields` -Required: - -- `key` (String) Specifies the name of a field for a particular object. To view valid values for a particular field, see Pipeline Object Reference in the AWS Data Pipeline Developer Guide. - Optional: +- `key` (String) Specifies the name of a field for a particular object. To view valid values for a particular field, see Pipeline Object Reference in the AWS Data Pipeline Developer Guide. - `ref_value` (String) A field value that you specify as an identifier of another object in the same pipeline definition. - `string_value` (String) A field value that you specify as a string. To view valid values for a particular field, see Pipeline Object Reference in the AWS Data Pipeline Developer Guide. @@ -86,7 +83,7 @@ Optional: ### Nested Schema for `pipeline_tags` -Required: +Optional: - `key` (String) The key name of a tag. - `value` (String) The value to associate with the key name. diff --git a/docs/resources/datasync_agent.md b/docs/resources/datasync_agent.md index 2131bbb692..8567586257 100644 --- a/docs/resources/datasync_agent.md +++ b/docs/resources/datasync_agent.md @@ -33,7 +33,7 @@ Resource schema for AWS::DataSync::Agent. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key for an AWS resource tag. - `value` (String) The value for an AWS resource tag. diff --git a/docs/resources/datasync_location_azure_blob.md b/docs/resources/datasync_location_azure_blob.md index 7b60983522..c1522ddc55 100644 --- a/docs/resources/datasync_location_azure_blob.md +++ b/docs/resources/datasync_location_azure_blob.md @@ -38,7 +38,7 @@ Resource schema for AWS::DataSync::LocationAzureBlob. ### Nested Schema for `azure_blob_sas_configuration` -Required: +Optional: - `azure_blob_sas_token` (String) Specifies the shared access signature (SAS) token, which indicates the permissions DataSync needs to access your Azure Blob Storage container. @@ -46,7 +46,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key for an AWS resource tag. - `value` (String) The value for an AWS resource tag. diff --git a/docs/resources/datasync_location_efs.md b/docs/resources/datasync_location_efs.md index c326988c85..41f40f7fe2 100644 --- a/docs/resources/datasync_location_efs.md +++ b/docs/resources/datasync_location_efs.md @@ -46,7 +46,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key for an AWS resource tag. - `value` (String) The value for an AWS resource tag. diff --git a/docs/resources/datasync_location_fsx_lustre.md b/docs/resources/datasync_location_fsx_lustre.md index 203c75ed16..ac0a7d7553 100644 --- a/docs/resources/datasync_location_fsx_lustre.md +++ b/docs/resources/datasync_location_fsx_lustre.md @@ -34,7 +34,7 @@ Resource schema for AWS::DataSync::LocationFSxLustre. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key for an AWS resource tag. - `value` (String) The value for an AWS resource tag. diff --git a/docs/resources/datasync_location_fsx_ontap.md b/docs/resources/datasync_location_fsx_ontap.md index 38fe1386ac..b36e8c2cfc 100644 --- a/docs/resources/datasync_location_fsx_ontap.md +++ b/docs/resources/datasync_location_fsx_ontap.md @@ -44,7 +44,7 @@ Optional: ### Nested Schema for `protocol.nfs` -Required: +Optional: - `mount_options` (Attributes) The NFS mount options that DataSync can use to mount your NFS share. (see [below for nested schema](#nestedatt--protocol--nfs--mount_options)) @@ -60,16 +60,13 @@ Optional: ### Nested Schema for `protocol.smb` -Required: +Optional: +- `domain` (String) The name of the Windows domain that the SMB server belongs to. - `mount_options` (Attributes) The mount options used by DataSync to access the SMB server. (see [below for nested schema](#nestedatt--protocol--smb--mount_options)) - `password` (String) The password of the user who can mount the share and has the permissions to access files and folders in the SMB share. - `user` (String) The user who can mount the share, has the permissions to access files and folders in the SMB share. -Optional: - -- `domain` (String) The name of the Windows domain that the SMB server belongs to. - ### Nested Schema for `protocol.smb.mount_options` @@ -83,7 +80,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key for an AWS resource tag. - `value` (String) The value for an AWS resource tag. diff --git a/docs/resources/datasync_location_fsx_open_zfs.md b/docs/resources/datasync_location_fsx_open_zfs.md index 6d40518e2c..dec34e2f14 100644 --- a/docs/resources/datasync_location_fsx_open_zfs.md +++ b/docs/resources/datasync_location_fsx_open_zfs.md @@ -42,7 +42,7 @@ Optional: ### Nested Schema for `protocol.nfs` -Required: +Optional: - `mount_options` (Attributes) The NFS mount options that DataSync can use to mount your NFS share. (see [below for nested schema](#nestedatt--protocol--nfs--mount_options)) @@ -59,7 +59,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key for an AWS resource tag. - `value` (String) The value for an AWS resource tag. diff --git a/docs/resources/datasync_location_fsx_windows.md b/docs/resources/datasync_location_fsx_windows.md index 5652cca713..0bc6a3d7ce 100644 --- a/docs/resources/datasync_location_fsx_windows.md +++ b/docs/resources/datasync_location_fsx_windows.md @@ -37,7 +37,7 @@ Resource schema for AWS::DataSync::LocationFSxWindows. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key for an AWS resource tag. - `value` (String) The value for an AWS resource tag. diff --git a/docs/resources/datasync_location_hdfs.md b/docs/resources/datasync_location_hdfs.md index 70c1d47e4a..3eae840989 100644 --- a/docs/resources/datasync_location_hdfs.md +++ b/docs/resources/datasync_location_hdfs.md @@ -61,7 +61,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/datasync_location_nfs.md b/docs/resources/datasync_location_nfs.md index aa63682ce8..7fd7b4f435 100644 --- a/docs/resources/datasync_location_nfs.md +++ b/docs/resources/datasync_location_nfs.md @@ -51,7 +51,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key for an AWS resource tag. - `value` (String) The value for an AWS resource tag. diff --git a/docs/resources/datasync_location_object_storage.md b/docs/resources/datasync_location_object_storage.md index a2615d8d80..3890df132f 100644 --- a/docs/resources/datasync_location_object_storage.md +++ b/docs/resources/datasync_location_object_storage.md @@ -40,7 +40,7 @@ Resource schema for AWS::DataSync::LocationObjectStorage. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key for an AWS resource tag. - `value` (String) The value for an AWS resource tag. diff --git a/docs/resources/datasync_location_s3.md b/docs/resources/datasync_location_s3.md index 809218c44a..81d740fa38 100644 --- a/docs/resources/datasync_location_s3.md +++ b/docs/resources/datasync_location_s3.md @@ -131,7 +131,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key for an AWS resource tag. - `value` (String) The value for an AWS resource tag. diff --git a/docs/resources/datasync_location_smb.md b/docs/resources/datasync_location_smb.md index 3aaee61ead..2c690c4ce0 100644 --- a/docs/resources/datasync_location_smb.md +++ b/docs/resources/datasync_location_smb.md @@ -46,7 +46,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key for an AWS resource tag. - `value` (String) The value for an AWS resource tag. diff --git a/docs/resources/datasync_storage_system.md b/docs/resources/datasync_storage_system.md index f686e475db..9986e032d6 100644 --- a/docs/resources/datasync_storage_system.md +++ b/docs/resources/datasync_storage_system.md @@ -50,7 +50,7 @@ Optional: ### Nested Schema for `server_credentials` -Required: +Optional: - `password` (String) The password for your storage system's management interface - `username` (String) The username for your storage system's management interface. @@ -59,7 +59,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key for an AWS resource tag. - `value` (String) The value for an AWS resource tag. diff --git a/docs/resources/datasync_task.md b/docs/resources/datasync_task.md index 12ad74cd8b..61b69340ba 100644 --- a/docs/resources/datasync_task.md +++ b/docs/resources/datasync_task.md @@ -61,14 +61,11 @@ Optional: ### Nested Schema for `manifest_config` -Required: - -- `source` (Attributes) Specifies the manifest that you want DataSync to use and where it's hosted. (see [below for nested schema](#nestedatt--manifest_config--source)) - Optional: - `action` (String) Specifies what DataSync uses the manifest for. - `format` (String) Specifies the file format of your manifest. +- `source` (Attributes) Specifies the manifest that you want DataSync to use and where it's hosted. (see [below for nested schema](#nestedatt--manifest_config--source)) ### Nested Schema for `manifest_config.source` @@ -124,7 +121,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key for an AWS resource tag. - `value` (String) The value for an AWS resource tag. @@ -133,14 +130,11 @@ Required: ### Nested Schema for `task_report_config` -Required: - -- `destination` (Attributes) Specifies where DataSync uploads your task report. (see [below for nested schema](#nestedatt--task_report_config--destination)) -- `output_type` (String) Specifies the type of task report that you want. - Optional: +- `destination` (Attributes) Specifies where DataSync uploads your task report. (see [below for nested schema](#nestedatt--task_report_config--destination)) - `object_version_ids` (String) Specifies whether your task report includes the new version of each object transferred into an S3 bucket, this only applies if you enable versioning on your bucket. +- `output_type` (String) Specifies the type of task report that you want. - `overrides` (Attributes) Customizes the reporting level for aspects of your task report. For example, your report might generally only include errors, but you could specify that you want a list of successes and errors just for the files that Datasync attempted to delete in your destination location. (see [below for nested schema](#nestedatt--task_report_config--overrides)) - `report_level` (String) Specifies whether you want your task report to include only what went wrong with your transfer or a list of what succeeded and didn't. diff --git a/docs/resources/datazone_data_source.md b/docs/resources/datazone_data_source.md index 4306f5cdf5..aaa04f1996 100644 --- a/docs/resources/datazone_data_source.md +++ b/docs/resources/datazone_data_source.md @@ -50,13 +50,10 @@ A data source is used to import technical metadata of assets (data) from the sou ### Nested Schema for `asset_forms_input` -Required: - -- `form_name` (String) The name of the metadata form. - Optional: - `content` (String) The content of the metadata form. +- `form_name` (String) The name of the metadata form. - `type_identifier` (String) The ID of the metadata form type. - `type_revision` (String) The revision of the metadata form type. @@ -72,31 +69,25 @@ Optional: ### Nested Schema for `configuration.glue_run_configuration` -Required: - -- `relational_filter_configurations` (Attributes List) The relational filter configurations included in the configuration details of the AWS Glue data source. (see [below for nested schema](#nestedatt--configuration--glue_run_configuration--relational_filter_configurations)) - Optional: - `auto_import_data_quality_result` (Boolean) Specifies whether to automatically import data quality metrics as part of the data source run. - `data_access_role` (String) The data access role included in the configuration details of the AWS Glue data source. +- `relational_filter_configurations` (Attributes List) The relational filter configurations included in the configuration details of the AWS Glue data source. (see [below for nested schema](#nestedatt--configuration--glue_run_configuration--relational_filter_configurations)) ### Nested Schema for `configuration.glue_run_configuration.relational_filter_configurations` -Required: - -- `database_name` (String) The database name specified in the relational filter configuration for the data source. - Optional: +- `database_name` (String) The database name specified in the relational filter configuration for the data source. - `filter_expressions` (Attributes List) The filter expressions specified in the relational filter configuration for the data source. (see [below for nested schema](#nestedatt--configuration--glue_run_configuration--relational_filter_configurations--filter_expressions)) - `schema_name` (String) The schema name specified in the relational filter configuration for the data source. ### Nested Schema for `configuration.glue_run_configuration.relational_filter_configurations.filter_expressions` -Required: +Optional: - `expression` (String) - `type` (String) The search filter expression type. @@ -107,20 +98,17 @@ Required: ### Nested Schema for `configuration.redshift_run_configuration` -Required: +Optional: +- `data_access_role` (String) The data access role included in the configuration details of the Amazon Redshift data source. - `redshift_credential_configuration` (Attributes) The details of the credentials required to access an Amazon Redshift cluster. (see [below for nested schema](#nestedatt--configuration--redshift_run_configuration--redshift_credential_configuration)) - `redshift_storage` (Attributes) The details of the Amazon Redshift storage as part of the configuration of an Amazon Redshift data source run. (see [below for nested schema](#nestedatt--configuration--redshift_run_configuration--redshift_storage)) - `relational_filter_configurations` (Attributes List) The relational filter configurations included in the configuration details of the Amazon Redshift data source. (see [below for nested schema](#nestedatt--configuration--redshift_run_configuration--relational_filter_configurations)) -Optional: - -- `data_access_role` (String) The data access role included in the configuration details of the Amazon Redshift data source. - ### Nested Schema for `configuration.redshift_run_configuration.redshift_credential_configuration` -Required: +Optional: - `secret_manager_arn` (String) The ARN of a secret manager for an Amazon Redshift cluster. @@ -136,7 +124,7 @@ Optional: ### Nested Schema for `configuration.redshift_run_configuration.redshift_storage.redshift_cluster_source` -Required: +Optional: - `cluster_name` (String) The name of an Amazon Redshift cluster. @@ -144,7 +132,7 @@ Required: ### Nested Schema for `configuration.redshift_run_configuration.redshift_storage.redshift_serverless_source` -Required: +Optional: - `workgroup_name` (String) The name of the Amazon Redshift Serverless workgroup. @@ -153,19 +141,16 @@ Required: ### Nested Schema for `configuration.redshift_run_configuration.relational_filter_configurations` -Required: - -- `database_name` (String) The database name specified in the relational filter configuration for the data source. - Optional: +- `database_name` (String) The database name specified in the relational filter configuration for the data source. - `filter_expressions` (Attributes List) The filter expressions specified in the relational filter configuration for the data source. (see [below for nested schema](#nestedatt--configuration--redshift_run_configuration--relational_filter_configurations--filter_expressions)) - `schema_name` (String) The schema name specified in the relational filter configuration for the data source. ### Nested Schema for `configuration.redshift_run_configuration.relational_filter_configurations.filter_expressions` -Required: +Optional: - `expression` (String) - `type` (String) The search filter expression type. diff --git a/docs/resources/datazone_domain.md b/docs/resources/datazone_domain.md index 802b7c0380..b463a203a5 100644 --- a/docs/resources/datazone_domain.md +++ b/docs/resources/datazone_domain.md @@ -98,7 +98,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. - `value` (String) The value for the tag. diff --git a/docs/resources/deadline_farm.md b/docs/resources/deadline_farm.md index 5fcc3d4416..59ec838cf1 100644 --- a/docs/resources/deadline_farm.md +++ b/docs/resources/deadline_farm.md @@ -34,7 +34,7 @@ Definition of AWS::Deadline::Farm Resource Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/deadline_fleet.md b/docs/resources/deadline_fleet.md index 238a6e2e2c..0b66e24071 100644 --- a/docs/resources/deadline_fleet.md +++ b/docs/resources/deadline_fleet.md @@ -49,101 +49,80 @@ Optional: ### Nested Schema for `configuration.customer_managed` -Required: - -- `mode` (String) -- `worker_capabilities` (Attributes) (see [below for nested schema](#nestedatt--configuration--customer_managed--worker_capabilities)) - Optional: +- `mode` (String) - `storage_profile_id` (String) +- `worker_capabilities` (Attributes) (see [below for nested schema](#nestedatt--configuration--customer_managed--worker_capabilities)) ### Nested Schema for `configuration.customer_managed.worker_capabilities` -Required: - -- `cpu_architecture_type` (String) -- `memory_mi_b` (Attributes) (see [below for nested schema](#nestedatt--configuration--customer_managed--worker_capabilities--memory_mi_b)) -- `os_family` (String) -- `v_cpu_count` (Attributes) (see [below for nested schema](#nestedatt--configuration--customer_managed--worker_capabilities--v_cpu_count)) - Optional: - `accelerator_count` (Attributes) (see [below for nested schema](#nestedatt--configuration--customer_managed--worker_capabilities--accelerator_count)) - `accelerator_total_memory_mi_b` (Attributes) (see [below for nested schema](#nestedatt--configuration--customer_managed--worker_capabilities--accelerator_total_memory_mi_b)) - `accelerator_types` (List of String) +- `cpu_architecture_type` (String) - `custom_amounts` (Attributes List) (see [below for nested schema](#nestedatt--configuration--customer_managed--worker_capabilities--custom_amounts)) - `custom_attributes` (Attributes List) (see [below for nested schema](#nestedatt--configuration--customer_managed--worker_capabilities--custom_attributes)) +- `memory_mi_b` (Attributes) (see [below for nested schema](#nestedatt--configuration--customer_managed--worker_capabilities--memory_mi_b)) +- `os_family` (String) +- `v_cpu_count` (Attributes) (see [below for nested schema](#nestedatt--configuration--customer_managed--worker_capabilities--v_cpu_count)) - -### Nested Schema for `configuration.customer_managed.worker_capabilities.memory_mi_b` - -Required: - -- `min` (Number) + +### Nested Schema for `configuration.customer_managed.worker_capabilities.accelerator_count` Optional: - `max` (Number) +- `min` (Number) - -### Nested Schema for `configuration.customer_managed.worker_capabilities.v_cpu_count` - -Required: - -- `min` (Number) + +### Nested Schema for `configuration.customer_managed.worker_capabilities.accelerator_total_memory_mi_b` Optional: - `max` (Number) +- `min` (Number) - -### Nested Schema for `configuration.customer_managed.worker_capabilities.accelerator_count` - -Required: - -- `min` (Number) + +### Nested Schema for `configuration.customer_managed.worker_capabilities.custom_amounts` Optional: - `max` (Number) - - - -### Nested Schema for `configuration.customer_managed.worker_capabilities.accelerator_total_memory_mi_b` - -Required: - - `min` (Number) +- `name` (String) -Optional: -- `max` (Number) + +### Nested Schema for `configuration.customer_managed.worker_capabilities.custom_attributes` +Optional: - -### Nested Schema for `configuration.customer_managed.worker_capabilities.custom_amounts` +- `name` (String) +- `values` (List of String) -Required: -- `min` (Number) -- `name` (String) + +### Nested Schema for `configuration.customer_managed.worker_capabilities.memory_mi_b` Optional: - `max` (Number) +- `min` (Number) - -### Nested Schema for `configuration.customer_managed.worker_capabilities.custom_attributes` + +### Nested Schema for `configuration.customer_managed.worker_capabilities.v_cpu_count` -Required: +Optional: -- `name` (String) -- `values` (List of String) +- `max` (Number) +- `min` (Number) @@ -151,7 +130,7 @@ Required: ### Nested Schema for `configuration.service_managed_ec_2` -Required: +Optional: - `instance_capabilities` (Attributes) (see [below for nested schema](#nestedatt--configuration--service_managed_ec_2--instance_capabilities)) - `instance_market_options` (Attributes) (see [below for nested schema](#nestedatt--configuration--service_managed_ec_2--instance_market_options)) @@ -159,65 +138,44 @@ Required: ### Nested Schema for `configuration.service_managed_ec_2.instance_capabilities` -Required: - -- `cpu_architecture_type` (String) -- `memory_mi_b` (Attributes) (see [below for nested schema](#nestedatt--configuration--service_managed_ec_2--instance_capabilities--memory_mi_b)) -- `os_family` (String) -- `v_cpu_count` (Attributes) (see [below for nested schema](#nestedatt--configuration--service_managed_ec_2--instance_capabilities--v_cpu_count)) - Optional: - `allowed_instance_types` (List of String) +- `cpu_architecture_type` (String) - `custom_amounts` (Attributes List) (see [below for nested schema](#nestedatt--configuration--service_managed_ec_2--instance_capabilities--custom_amounts)) - `custom_attributes` (Attributes List) (see [below for nested schema](#nestedatt--configuration--service_managed_ec_2--instance_capabilities--custom_attributes)) - `excluded_instance_types` (List of String) +- `memory_mi_b` (Attributes) (see [below for nested schema](#nestedatt--configuration--service_managed_ec_2--instance_capabilities--memory_mi_b)) +- `os_family` (String) - `root_ebs_volume` (Attributes) (see [below for nested schema](#nestedatt--configuration--service_managed_ec_2--instance_capabilities--root_ebs_volume)) +- `v_cpu_count` (Attributes) (see [below for nested schema](#nestedatt--configuration--service_managed_ec_2--instance_capabilities--v_cpu_count)) - -### Nested Schema for `configuration.service_managed_ec_2.instance_capabilities.memory_mi_b` - -Required: - -- `min` (Number) + +### Nested Schema for `configuration.service_managed_ec_2.instance_capabilities.custom_amounts` Optional: - `max` (Number) - - - -### Nested Schema for `configuration.service_managed_ec_2.instance_capabilities.v_cpu_count` - -Required: - - `min` (Number) +- `name` (String) -Optional: -- `max` (Number) + +### Nested Schema for `configuration.service_managed_ec_2.instance_capabilities.custom_attributes` +Optional: - -### Nested Schema for `configuration.service_managed_ec_2.instance_capabilities.custom_amounts` +- `name` (String) +- `values` (List of String) -Required: -- `min` (Number) -- `name` (String) + +### Nested Schema for `configuration.service_managed_ec_2.instance_capabilities.memory_mi_b` Optional: - `max` (Number) - - - -### Nested Schema for `configuration.service_managed_ec_2.instance_capabilities.custom_attributes` - -Required: - -- `name` (String) -- `values` (List of String) +- `min` (Number) @@ -230,11 +188,20 @@ Optional: - `throughput_mi_b` (Number) + +### Nested Schema for `configuration.service_managed_ec_2.instance_capabilities.v_cpu_count` + +Optional: + +- `max` (Number) +- `min` (Number) + + ### Nested Schema for `configuration.service_managed_ec_2.instance_market_options` -Required: +Optional: - `type` (String) @@ -244,7 +211,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/deadline_license_endpoint.md b/docs/resources/deadline_license_endpoint.md index 20c11306cc..49691e85bd 100644 --- a/docs/resources/deadline_license_endpoint.md +++ b/docs/resources/deadline_license_endpoint.md @@ -37,7 +37,7 @@ Definition of AWS::Deadline::LicenseEndpoint Resource Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/deadline_queue.md b/docs/resources/deadline_queue.md index 4ae2849c9f..7d0b6dec67 100644 --- a/docs/resources/deadline_queue.md +++ b/docs/resources/deadline_queue.md @@ -40,7 +40,7 @@ Definition of AWS::Deadline::Queue Resource Type ### Nested Schema for `job_attachment_settings` -Required: +Optional: - `root_prefix` (String) - `s3_bucket_name` (String) @@ -49,19 +49,16 @@ Required: ### Nested Schema for `job_run_as_user` -Required: - -- `run_as` (String) - Optional: - `posix` (Attributes) (see [below for nested schema](#nestedatt--job_run_as_user--posix)) +- `run_as` (String) - `windows` (Attributes) (see [below for nested schema](#nestedatt--job_run_as_user--windows)) ### Nested Schema for `job_run_as_user.posix` -Required: +Optional: - `group` (String) - `user` (String) @@ -70,7 +67,7 @@ Required: ### Nested Schema for `job_run_as_user.windows` -Required: +Optional: - `password_arn` (String) - `user` (String) @@ -80,7 +77,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/deadline_storage_profile.md b/docs/resources/deadline_storage_profile.md index 3d35cdcc37..7c3661e761 100644 --- a/docs/resources/deadline_storage_profile.md +++ b/docs/resources/deadline_storage_profile.md @@ -33,7 +33,7 @@ Definition of AWS::Deadline::StorageProfile Resource Type ### Nested Schema for `file_system_locations` -Required: +Optional: - `name` (String) - `path` (String) diff --git a/docs/resources/dms_data_provider.md b/docs/resources/dms_data_provider.md index 22e2aec384..8749108255 100644 --- a/docs/resources/dms_data_provider.md +++ b/docs/resources/dms_data_provider.md @@ -47,72 +47,60 @@ Optional: ### Nested Schema for `settings.microsoft_sql_server_settings` -Required: +Optional: +- `certificate_arn` (String) - `database_name` (String) - `port` (Number) - `server_name` (String) - `ssl_mode` (String) -Optional: - -- `certificate_arn` (String) - ### Nested Schema for `settings.my_sql_settings` -Required: +Optional: +- `certificate_arn` (String) - `port` (Number) - `server_name` (String) - `ssl_mode` (String) -Optional: - -- `certificate_arn` (String) - ### Nested Schema for `settings.oracle_settings` -Required: - -- `database_name` (String) -- `port` (Number) -- `server_name` (String) -- `ssl_mode` (String) - Optional: - `asm_server` (String) - `certificate_arn` (String) +- `database_name` (String) +- `port` (Number) - `secrets_manager_oracle_asm_access_role_arn` (String) - `secrets_manager_oracle_asm_secret_id` (String) - `secrets_manager_security_db_encryption_access_role_arn` (String) - `secrets_manager_security_db_encryption_secret_id` (String) +- `server_name` (String) +- `ssl_mode` (String) ### Nested Schema for `settings.postgre_sql_settings` -Required: +Optional: +- `certificate_arn` (String) - `database_name` (String) - `port` (Number) - `server_name` (String) - `ssl_mode` (String) -Optional: - -- `certificate_arn` (String) - ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/dms_instance_profile.md b/docs/resources/dms_instance_profile.md index 04038bce6f..b2483968df 100644 --- a/docs/resources/dms_instance_profile.md +++ b/docs/resources/dms_instance_profile.md @@ -37,7 +37,7 @@ Resource schema for AWS::DMS::InstanceProfile. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/dms_migration_project.md b/docs/resources/dms_migration_project.md index 0959d3e9ad..bb83d95104 100644 --- a/docs/resources/dms_migration_project.md +++ b/docs/resources/dms_migration_project.md @@ -59,7 +59,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, , and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, , and -. diff --git a/docs/resources/dms_replication_config.md b/docs/resources/dms_replication_config.md index 211c092be0..4dc4782289 100644 --- a/docs/resources/dms_replication_config.md +++ b/docs/resources/dms_replication_config.md @@ -58,7 +58,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String)

Tag key.

- `value` (String)

Tag value.

diff --git a/docs/resources/docdbelastic_cluster.md b/docs/resources/docdbelastic_cluster.md index 923c329fca..5a32686fad 100644 --- a/docs/resources/docdbelastic_cluster.md +++ b/docs/resources/docdbelastic_cluster.md @@ -44,7 +44,7 @@ The AWS::DocDBElastic::Cluster Amazon DocumentDB (with MongoDB compatibility) El ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/dynamodb_global_table.md b/docs/resources/dynamodb_global_table.md index 9cc67f8713..f2a4a8f951 100644 --- a/docs/resources/dynamodb_global_table.md +++ b/docs/resources/dynamodb_global_table.md @@ -83,7 +83,7 @@ Optional: ### Nested Schema for `replicas.contributor_insights_specification` -Required: +Optional: - `enabled` (Boolean) @@ -91,20 +91,17 @@ Required: ### Nested Schema for `replicas.global_secondary_indexes` -Required: - -- `index_name` (String) - Optional: - `contributor_insights_specification` (Attributes) (see [below for nested schema](#nestedatt--replicas--global_secondary_indexes--contributor_insights_specification)) +- `index_name` (String) - `read_on_demand_throughput_settings` (Attributes) (see [below for nested schema](#nestedatt--replicas--global_secondary_indexes--read_on_demand_throughput_settings)) - `read_provisioned_throughput_settings` (Attributes) (see [below for nested schema](#nestedatt--replicas--global_secondary_indexes--read_provisioned_throughput_settings)) ### Nested Schema for `replicas.global_secondary_indexes.contributor_insights_specification` -Required: +Optional: - `enabled` (Boolean) @@ -128,28 +125,22 @@ Optional: ### Nested Schema for `replicas.global_secondary_indexes.read_provisioned_throughput_settings.read_capacity_auto_scaling_settings` -Required: +Optional: - `max_capacity` (Number) - `min_capacity` (Number) -- `target_tracking_scaling_policy_configuration` (Attributes) (see [below for nested schema](#nestedatt--replicas--global_secondary_indexes--read_provisioned_throughput_settings--read_capacity_auto_scaling_settings--target_tracking_scaling_policy_configuration)) - -Optional: - - `seed_capacity` (Number) +- `target_tracking_scaling_policy_configuration` (Attributes) (see [below for nested schema](#nestedatt--replicas--global_secondary_indexes--read_provisioned_throughput_settings--read_capacity_auto_scaling_settings--target_tracking_scaling_policy_configuration)) ### Nested Schema for `replicas.global_secondary_indexes.read_provisioned_throughput_settings.read_capacity_auto_scaling_settings.target_tracking_scaling_policy_configuration` -Required: - -- `target_value` (Number) - Optional: - `disable_scale_in` (Boolean) - `scale_in_cooldown` (Number) - `scale_out_cooldown` (Number) +- `target_value` (Number) @@ -158,13 +149,10 @@ Optional: ### Nested Schema for `replicas.kinesis_stream_specification` -Required: - -- `stream_arn` (String) - Optional: - `approximate_creation_date_time_precision` (String) +- `stream_arn` (String) @@ -194,28 +182,22 @@ Optional: ### Nested Schema for `replicas.read_provisioned_throughput_settings.read_capacity_auto_scaling_settings` -Required: +Optional: - `max_capacity` (Number) - `min_capacity` (Number) -- `target_tracking_scaling_policy_configuration` (Attributes) (see [below for nested schema](#nestedatt--replicas--read_provisioned_throughput_settings--read_capacity_auto_scaling_settings--target_tracking_scaling_policy_configuration)) - -Optional: - - `seed_capacity` (Number) +- `target_tracking_scaling_policy_configuration` (Attributes) (see [below for nested schema](#nestedatt--replicas--read_provisioned_throughput_settings--read_capacity_auto_scaling_settings--target_tracking_scaling_policy_configuration)) ### Nested Schema for `replicas.read_provisioned_throughput_settings.read_capacity_auto_scaling_settings.target_tracking_scaling_policy_configuration` -Required: - -- `target_value` (Number) - Optional: - `disable_scale_in` (Boolean) - `scale_in_cooldown` (Number) - `scale_out_cooldown` (Number) +- `target_value` (Number) @@ -223,14 +205,14 @@ Optional: ### Nested Schema for `replicas.replica_stream_specification` -Required: +Optional: - `resource_policy` (Attributes) (see [below for nested schema](#nestedatt--replicas--replica_stream_specification--resource_policy)) ### Nested Schema for `replicas.replica_stream_specification.resource_policy` -Required: +Optional: - `policy_document` (String) @@ -239,7 +221,7 @@ Required: ### Nested Schema for `replicas.resource_policy` -Required: +Optional: - `policy_document` (String) @@ -247,7 +229,7 @@ Required: ### Nested Schema for `replicas.sse_specification` -Required: +Optional: - `kms_master_key_id` (String) @@ -255,7 +237,7 @@ Required: ### Nested Schema for `replicas.tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -265,21 +247,18 @@ Required: ### Nested Schema for `global_secondary_indexes` -Required: +Optional: - `index_name` (String) - `key_schema` (Attributes List) (see [below for nested schema](#nestedatt--global_secondary_indexes--key_schema)) - `projection` (Attributes) (see [below for nested schema](#nestedatt--global_secondary_indexes--projection)) - -Optional: - - `write_on_demand_throughput_settings` (Attributes) (see [below for nested schema](#nestedatt--global_secondary_indexes--write_on_demand_throughput_settings)) - `write_provisioned_throughput_settings` (Attributes) (see [below for nested schema](#nestedatt--global_secondary_indexes--write_provisioned_throughput_settings)) ### Nested Schema for `global_secondary_indexes.key_schema` -Required: +Optional: - `attribute_name` (String) - `key_type` (String) @@ -312,28 +291,22 @@ Optional: ### Nested Schema for `global_secondary_indexes.write_provisioned_throughput_settings.write_capacity_auto_scaling_settings` -Required: +Optional: - `max_capacity` (Number) - `min_capacity` (Number) -- `target_tracking_scaling_policy_configuration` (Attributes) (see [below for nested schema](#nestedatt--global_secondary_indexes--write_provisioned_throughput_settings--write_capacity_auto_scaling_settings--target_tracking_scaling_policy_configuration)) - -Optional: - - `seed_capacity` (Number) +- `target_tracking_scaling_policy_configuration` (Attributes) (see [below for nested schema](#nestedatt--global_secondary_indexes--write_provisioned_throughput_settings--write_capacity_auto_scaling_settings--target_tracking_scaling_policy_configuration)) ### Nested Schema for `global_secondary_indexes.write_provisioned_throughput_settings.write_capacity_auto_scaling_settings.target_tracking_scaling_policy_configuration` -Required: - -- `target_value` (Number) - Optional: - `disable_scale_in` (Boolean) - `scale_in_cooldown` (Number) - `scale_out_cooldown` (Number) +- `target_value` (Number) @@ -342,7 +315,7 @@ Optional: ### Nested Schema for `local_secondary_indexes` -Required: +Optional: - `index_name` (String) - `key_schema` (Attributes List) (see [below for nested schema](#nestedatt--local_secondary_indexes--key_schema)) @@ -351,7 +324,7 @@ Required: ### Nested Schema for `local_secondary_indexes.key_schema` -Required: +Optional: - `attribute_name` (String) - `key_type` (String) @@ -370,19 +343,16 @@ Optional: ### Nested Schema for `sse_specification` -Required: - -- `sse_enabled` (Boolean) - Optional: +- `sse_enabled` (Boolean) - `sse_type` (String) ### Nested Schema for `stream_specification` -Required: +Optional: - `stream_view_type` (String) @@ -390,13 +360,10 @@ Required: ### Nested Schema for `time_to_live_specification` -Required: - -- `enabled` (Boolean) - Optional: - `attribute_name` (String) +- `enabled` (Boolean) @@ -417,28 +384,22 @@ Optional: ### Nested Schema for `write_provisioned_throughput_settings.write_capacity_auto_scaling_settings` -Required: +Optional: - `max_capacity` (Number) - `min_capacity` (Number) -- `target_tracking_scaling_policy_configuration` (Attributes) (see [below for nested schema](#nestedatt--write_provisioned_throughput_settings--write_capacity_auto_scaling_settings--target_tracking_scaling_policy_configuration)) - -Optional: - - `seed_capacity` (Number) +- `target_tracking_scaling_policy_configuration` (Attributes) (see [below for nested schema](#nestedatt--write_provisioned_throughput_settings--write_capacity_auto_scaling_settings--target_tracking_scaling_policy_configuration)) ### Nested Schema for `write_provisioned_throughput_settings.write_capacity_auto_scaling_settings.target_tracking_scaling_policy_configuration` -Required: - -- `target_value` (Number) - Optional: - `disable_scale_in` (Boolean) - `scale_in_cooldown` (Number) - `scale_out_cooldown` (Number) +- `target_value` (Number) ## Import diff --git a/docs/resources/dynamodb_table.md b/docs/resources/dynamodb_table.md index dba21b9fa9..5690002bd0 100644 --- a/docs/resources/dynamodb_table.md +++ b/docs/resources/dynamodb_table.md @@ -74,7 +74,7 @@ The ``AWS::DynamoDB::Table`` resource creates a DDB table. For more information, ### Nested Schema for `attribute_definitions` -Required: +Optional: - `attribute_name` (String) A name for the attribute. - `attribute_type` (String) The data type for the attribute, where: @@ -86,7 +86,7 @@ Required: ### Nested Schema for `contributor_insights_specification` -Required: +Optional: - `enabled` (Boolean) Indicates whether CloudWatch Contributor Insights are to be enabled (true) or disabled (false). @@ -94,8 +94,9 @@ Required: ### Nested Schema for `global_secondary_indexes` -Required: +Optional: +- `contributor_insights_specification` (Attributes) The settings used to enable or disable CloudWatch Contributor Insights for the specified global secondary index. (see [below for nested schema](#nestedatt--global_secondary_indexes--contributor_insights_specification)) - `index_name` (String) The name of the global secondary index. The name must be unique among all other indexes on this table. - `key_schema` (Attributes List) The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types: + ``HASH`` - partition key @@ -103,19 +104,23 @@ Required: The partition key of an item is also known as its *hash attribute*. The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values. The sort key of an item is also known as its *range attribute*. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value. (see [below for nested schema](#nestedatt--global_secondary_indexes--key_schema)) +- `on_demand_throughput` (Attributes) The maximum number of read and write units for the specified global secondary index. If you use this parameter, you must specify ``MaxReadRequestUnits``, ``MaxWriteRequestUnits``, or both. (see [below for nested schema](#nestedatt--global_secondary_indexes--on_demand_throughput)) - `projection` (Attributes) Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. (see [below for nested schema](#nestedatt--global_secondary_indexes--projection)) +- `provisioned_throughput` (Attributes) Represents the provisioned throughput settings for the specified global secondary index. + For current minimum and maximum provisioned throughput values, see [Service, Account, and Table Quotas](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) in the *Amazon DynamoDB Developer Guide*. (see [below for nested schema](#nestedatt--global_secondary_indexes--provisioned_throughput)) + + +### Nested Schema for `global_secondary_indexes.contributor_insights_specification` Optional: -- `contributor_insights_specification` (Attributes) The settings used to enable or disable CloudWatch Contributor Insights for the specified global secondary index. (see [below for nested schema](#nestedatt--global_secondary_indexes--contributor_insights_specification)) -- `on_demand_throughput` (Attributes) The maximum number of read and write units for the specified global secondary index. If you use this parameter, you must specify ``MaxReadRequestUnits``, ``MaxWriteRequestUnits``, or both. (see [below for nested schema](#nestedatt--global_secondary_indexes--on_demand_throughput)) -- `provisioned_throughput` (Attributes) Represents the provisioned throughput settings for the specified global secondary index. - For current minimum and maximum provisioned throughput values, see [Service, Account, and Table Quotas](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) in the *Amazon DynamoDB Developer Guide*. (see [below for nested schema](#nestedatt--global_secondary_indexes--provisioned_throughput)) +- `enabled` (Boolean) Indicates whether CloudWatch Contributor Insights are to be enabled (true) or disabled (false). + ### Nested Schema for `global_secondary_indexes.key_schema` -Required: +Optional: - `attribute_name` (String) The name of a key attribute. - `key_type` (String) The role that this key attribute will assume: @@ -126,6 +131,17 @@ Required: The sort key of an item is also known as its *range attribute*. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value. + +### Nested Schema for `global_secondary_indexes.on_demand_throughput` + +Optional: + +- `max_read_request_units` (Number) Maximum number of read request units for the specified table. + To specify a maximum ``OnDemandThroughput`` on your table, set the value of ``MaxReadRequestUnits`` as greater than or equal to 1. To remove the maximum ``OnDemandThroughput`` that is currently set on your table, set the value of ``MaxReadRequestUnits`` to -1. +- `max_write_request_units` (Number) Maximum number of write request units for the specified table. + To specify a maximum ``OnDemandThroughput`` on your table, set the value of ``MaxWriteRequestUnits`` as greater than or equal to 1. To remove the maximum ``OnDemandThroughput`` that is currently set on your table, set the value of ``MaxWriteRequestUnits`` to -1. + + ### Nested Schema for `global_secondary_indexes.projection` @@ -141,29 +157,10 @@ Optional: When using the DynamoDB console, ``ALL`` is selected by default. - -### Nested Schema for `global_secondary_indexes.contributor_insights_specification` - -Required: - -- `enabled` (Boolean) Indicates whether CloudWatch Contributor Insights are to be enabled (true) or disabled (false). - - - -### Nested Schema for `global_secondary_indexes.on_demand_throughput` - -Optional: - -- `max_read_request_units` (Number) Maximum number of read request units for the specified table. - To specify a maximum ``OnDemandThroughput`` on your table, set the value of ``MaxReadRequestUnits`` as greater than or equal to 1. To remove the maximum ``OnDemandThroughput`` that is currently set on your table, set the value of ``MaxReadRequestUnits`` to -1. -- `max_write_request_units` (Number) Maximum number of write request units for the specified table. - To specify a maximum ``OnDemandThroughput`` on your table, set the value of ``MaxWriteRequestUnits`` as greater than or equal to 1. To remove the maximum ``OnDemandThroughput`` that is currently set on your table, set the value of ``MaxWriteRequestUnits`` to -1. - - ### Nested Schema for `global_secondary_indexes.provisioned_throughput` -Required: +Optional: - `read_capacity_units` (Number) The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ``ThrottlingException``. For more information, see [Specifying Read and Write Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) in the *Amazon DynamoDB Developer Guide*. If read/write capacity mode is ``PAY_PER_REQUEST`` the value is set to 0. @@ -175,28 +172,12 @@ Required: ### Nested Schema for `import_source_specification` -Required: - -- `input_format` (String) The format of the source data. Valid values for ``ImportFormat`` are ``CSV``, ``DYNAMODB_JSON`` or ``ION``. -- `s3_bucket_source` (Attributes) The S3 bucket that provides the source for the import. (see [below for nested schema](#nestedatt--import_source_specification--s3_bucket_source)) - Optional: - `input_compression_type` (String) Type of compression to be used on the input coming from the imported table. +- `input_format` (String) The format of the source data. Valid values for ``ImportFormat`` are ``CSV``, ``DYNAMODB_JSON`` or ``ION``. - `input_format_options` (Attributes) Additional properties that specify how the input is formatted, (see [below for nested schema](#nestedatt--import_source_specification--input_format_options)) - - -### Nested Schema for `import_source_specification.s3_bucket_source` - -Required: - -- `s3_bucket` (String) The S3 bucket that is being imported from. - -Optional: - -- `s3_bucket_owner` (String) The account number of the S3 bucket that is being imported from. If the bucket is owned by the requester this is optional. -- `s3_key_prefix` (String) The key prefix shared by all S3 Objects that are being imported. - +- `s3_bucket_source` (Attributes) The S3 bucket that provides the source for the import. (see [below for nested schema](#nestedatt--import_source_specification--s3_bucket_source)) ### Nested Schema for `import_source_specification.input_format_options` @@ -215,24 +196,31 @@ Optional: + +### Nested Schema for `import_source_specification.s3_bucket_source` - -### Nested Schema for `kinesis_stream_specification` +Optional: -Required: +- `s3_bucket` (String) The S3 bucket that is being imported from. +- `s3_bucket_owner` (String) The account number of the S3 bucket that is being imported from. If the bucket is owned by the requester this is optional. +- `s3_key_prefix` (String) The key prefix shared by all S3 Objects that are being imported. -- `stream_arn` (String) The ARN for a specific Kinesis data stream. - Length Constraints: Minimum length of 37. Maximum length of 1024. + + + +### Nested Schema for `kinesis_stream_specification` Optional: - `approximate_creation_date_time_precision` (String) The precision for the time and date that the stream was created. +- `stream_arn` (String) The ARN for a specific Kinesis data stream. + Length Constraints: Minimum length of 37. Maximum length of 1024. ### Nested Schema for `local_secondary_indexes` -Required: +Optional: - `index_name` (String) The name of the local secondary index. The name must be unique among all other indexes on this table. - `key_schema` (Attributes List) The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types: @@ -246,7 +234,7 @@ Required: ### Nested Schema for `local_secondary_indexes.key_schema` -Required: +Optional: - `attribute_name` (String) The name of a key attribute. - `key_type` (String) The role that this key attribute will assume: @@ -295,7 +283,7 @@ Optional: ### Nested Schema for `provisioned_throughput` -Required: +Optional: - `read_capacity_units` (Number) The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ``ThrottlingException``. For more information, see [Specifying Read and Write Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) in the *Amazon DynamoDB Developer Guide*. If read/write capacity mode is ``PAY_PER_REQUEST`` the value is set to 0. @@ -306,7 +294,7 @@ Required: ### Nested Schema for `resource_policy` -Required: +Optional: - `policy_document` (String) A resource-based policy document that contains permissions to add to the specified DDB table, index, or both. In a CFNshort template, you can provide the policy in JSON or YAML format because CFNshort converts YAML to JSON before submitting it to DDB. For more information about resource-based policies, see [Using resource-based policies for](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/access-control-resource-based.html) and [Resource-based policy examples](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-examples.html). @@ -314,13 +302,10 @@ Required: ### Nested Schema for `sse_specification` -Required: - -- `sse_enabled` (Boolean) Indicates whether server-side encryption is done using an AWS managed key or an AWS owned key. If enabled (true), server-side encryption type is set to ``KMS`` and an AWS managed key is used (KMS charges apply). If disabled (false) or not specified, server-side encryption is set to AWS owned key. - Optional: - `kms_master_key_id` (String) The KMS key that should be used for the KMS encryption. To specify a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB key ``alias/aws/dynamodb``. +- `sse_enabled` (Boolean) Indicates whether server-side encryption is done using an AWS managed key or an AWS owned key. If enabled (true), server-side encryption type is set to ``KMS`` and an AWS managed key is used (KMS charges apply). If disabled (false) or not specified, server-side encryption is set to AWS owned key. - `sse_type` (String) Server-side encryption type. The only supported value is: + ``KMS`` - Server-side encryption that uses KMSlong. The key is stored in your account and is managed by KMS (KMS charges apply). @@ -328,23 +313,20 @@ Optional: ### Nested Schema for `stream_specification` -Required: +Optional: +- `resource_policy` (Attributes) Creates or updates a resource-based policy document that contains the permissions for DDB resources, such as a table's streams. Resource-based policies let you define access permissions by specifying who has access to each resource, and the actions they are allowed to perform on each resource. + In a CFNshort template, you can provide the policy in JSON or YAML format because CFNshort converts YAML to JSON before submitting it to DDB. For more information about resource-based policies, see [Using resource-based policies for](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/access-control-resource-based.html) and [Resource-based policy examples](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-examples.html). (see [below for nested schema](#nestedatt--stream_specification--resource_policy)) - `stream_view_type` (String) When an item in the table is modified, ``StreamViewType`` determines what information is written to the stream for this table. Valid values for ``StreamViewType`` are: + ``KEYS_ONLY`` - Only the key attributes of the modified item are written to the stream. + ``NEW_IMAGE`` - The entire item, as it appears after it was modified, is written to the stream. + ``OLD_IMAGE`` - The entire item, as it appeared before it was modified, is written to the stream. + ``NEW_AND_OLD_IMAGES`` - Both the new and the old item images of the item are written to the stream. -Optional: - -- `resource_policy` (Attributes) Creates or updates a resource-based policy document that contains the permissions for DDB resources, such as a table's streams. Resource-based policies let you define access permissions by specifying who has access to each resource, and the actions they are allowed to perform on each resource. - In a CFNshort template, you can provide the policy in JSON or YAML format because CFNshort converts YAML to JSON before submitting it to DDB. For more information about resource-based policies, see [Using resource-based policies for](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/access-control-resource-based.html) and [Resource-based policy examples](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-examples.html). (see [below for nested schema](#nestedatt--stream_specification--resource_policy)) - ### Nested Schema for `stream_specification.resource_policy` -Required: +Optional: - `policy_document` (String) A resource-based policy document that contains permissions to add to the specified DDB table, index, or both. In a CFNshort template, you can provide the policy in JSON or YAML format because CFNshort converts YAML to JSON before submitting it to DDB. For more information about resource-based policies, see [Using resource-based policies for](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/access-control-resource-based.html) and [Resource-based policy examples](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-examples.html). @@ -353,7 +335,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key of the tag. Tag keys are case sensitive. Each DynamoDB table can only have up to one tag with the same key. If you try to add an existing tag (same key), the existing tag value will be updated to the new value. - `value` (String) The value of the tag. Tag values are case-sensitive and can be null. @@ -362,15 +344,12 @@ Required: ### Nested Schema for `time_to_live_specification` -Required: - -- `enabled` (Boolean) Indicates whether TTL is to be enabled (true) or disabled (false) on the table. - Optional: - `attribute_name` (String) The name of the TTL attribute used to store the expiration time for items in the table. + The ``AttributeName`` property is required when enabling the TTL, or when TTL is already enabled. + To update this property, you must first disable TTL and then enable TTL with the new attribute name. +- `enabled` (Boolean) Indicates whether TTL is to be enabled (true) or disabled (false) on the table. ## Import diff --git a/docs/resources/ec2_capacity_reservation.md b/docs/resources/ec2_capacity_reservation.md index dd4ab7773b..bf1cbad76d 100644 --- a/docs/resources/ec2_capacity_reservation.md +++ b/docs/resources/ec2_capacity_reservation.md @@ -73,7 +73,7 @@ Optional: ### Nested Schema for `tag_specifications.tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ec2_capacity_reservation_fleet.md b/docs/resources/ec2_capacity_reservation_fleet.md index 6c6177361c..b46befe3e4 100644 --- a/docs/resources/ec2_capacity_reservation_fleet.md +++ b/docs/resources/ec2_capacity_reservation_fleet.md @@ -91,7 +91,7 @@ Optional: ### Nested Schema for `tag_specifications.tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ec2_customer_gateway.md b/docs/resources/ec2_customer_gateway.md index 0f4c8928a1..d2903abccf 100644 --- a/docs/resources/ec2_customer_gateway.md +++ b/docs/resources/ec2_customer_gateway.md @@ -64,7 +64,7 @@ resource "awscc_ec2_customer_gateway" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag key. - `value` (String) The tag value. diff --git a/docs/resources/ec2_dhcp_options.md b/docs/resources/ec2_dhcp_options.md index 69965e78f7..783ff1b4e1 100644 --- a/docs/resources/ec2_dhcp_options.md +++ b/docs/resources/ec2_dhcp_options.md @@ -33,7 +33,7 @@ Resource Type definition for AWS::EC2::DHCPOptions ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ec2_ec2_fleet.md b/docs/resources/ec2_ec2_fleet.md index 35994a1611..002b922d7d 100644 --- a/docs/resources/ec2_ec2_fleet.md +++ b/docs/resources/ec2_ec2_fleet.md @@ -66,14 +66,11 @@ Optional: ### Nested Schema for `launch_template_configs.launch_template_specification` -Required: - -- `version` (String) - Optional: - `launch_template_id` (String) - `launch_template_name` (String) +- `version` (String) @@ -298,7 +295,7 @@ Optional: ### Nested Schema for `tag_specifications.tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ec2_eip.md b/docs/resources/ec2_eip.md index bf7ef7001f..1c5cd85a64 100644 --- a/docs/resources/ec2_eip.md +++ b/docs/resources/ec2_eip.md @@ -70,7 +70,7 @@ resource "awscc_ec2_eip" "main" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag key. - `value` (String) The tag value. diff --git a/docs/resources/ec2_flow_log.md b/docs/resources/ec2_flow_log.md index 3c167e34a2..b529d88f4a 100644 --- a/docs/resources/ec2_flow_log.md +++ b/docs/resources/ec2_flow_log.md @@ -252,7 +252,7 @@ resource "awscc_s3_bucket" "example" { ### Nested Schema for `destination_options` -Required: +Optional: - `file_format` (String) - `hive_compatible_partitions` (Boolean) @@ -262,7 +262,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ec2_instance.md b/docs/resources/ec2_instance.md index dc99709bb1..5d3cda9f42 100644 --- a/docs/resources/ec2_instance.md +++ b/docs/resources/ec2_instance.md @@ -72,12 +72,9 @@ Resource Type definition for AWS::EC2::Instance ### Nested Schema for `block_device_mappings` -Required: - -- `device_name` (String) The device name (for example, /dev/sdh or xvdh). - Optional: +- `device_name` (String) The device name (for example, /dev/sdh or xvdh). - `ebs` (Attributes) Parameters used to automatically set up EBS volumes when the instance is launched. (see [below for nested schema](#nestedatt--block_device_mappings--ebs)) - `no_device` (String) - `virtual_name` (String) @@ -117,7 +114,7 @@ Optional: ### Nested Schema for `elastic_gpu_specifications` -Required: +Optional: - `type` (String) The type of Elastic Graphics accelerator. @@ -125,13 +122,10 @@ Required: ### Nested Schema for `elastic_inference_accelerators` -Required: - -- `type` (String) The type of elastic inference accelerator. - Optional: - `count` (Number) The number of elastic inference accelerators to attach to the instance. +- `type` (String) The type of elastic inference accelerator. @@ -153,7 +147,7 @@ Optional: ### Nested Schema for `ipv_6_addresses` -Required: +Optional: - `ipv_6_address` (String) The IPv6 address. @@ -171,7 +165,7 @@ Optional: ### Nested Schema for `license_specifications` -Required: +Optional: - `license_configuration_arn` (String) The Amazon Resource Name (ARN) of the license configuration. @@ -179,16 +173,13 @@ Required: ### Nested Schema for `network_interfaces` -Required: - -- `device_index` (String) The position of the network interface in the attachment order. A primary network interface has a device index of 0. - Optional: - `associate_carrier_ip_address` (Boolean) Not currently supported by AWS CloudFormation. - `associate_public_ip_address` (Boolean) Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. - `delete_on_termination` (Boolean) If set to true, the interface is deleted when the instance is terminated. - `description` (String) The description of the network interface. +- `device_index` (String) The position of the network interface in the attachment order. A primary network interface has a device index of 0. - `group_set` (List of String) The IDs of the security groups for the network interface. - `ipv_6_address_count` (Number) A number of IPv6 addresses to assign to the network interface. - `ipv_6_addresses` (Attributes List) The IPv6 addresses associated with the network interface. (see [below for nested schema](#nestedatt--network_interfaces--ipv_6_addresses)) @@ -201,7 +192,7 @@ Optional: ### Nested Schema for `network_interfaces.ipv_6_addresses` -Required: +Optional: - `ipv_6_address` (String) The IPv6 address. @@ -209,7 +200,7 @@ Required: ### Nested Schema for `network_interfaces.private_ip_addresses` -Required: +Optional: - `primary` (Boolean) Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be designated as primary. - `private_ip_address` (String) The private IPv4 addresses. @@ -229,18 +220,15 @@ Optional: ### Nested Schema for `ssm_associations` -Required: - -- `document_name` (String) The name of an SSM document to associate with the instance. - Optional: - `association_parameters` (Attributes List) The input parameter values to use with the associated SSM document. (see [below for nested schema](#nestedatt--ssm_associations--association_parameters)) +- `document_name` (String) The name of an SSM document to associate with the instance. ### Nested Schema for `ssm_associations.association_parameters` -Required: +Optional: - `key` (String) The name of an input parameter that is in the associated SSM document. - `value` (List of String) The value of an input parameter. @@ -250,7 +238,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -259,7 +247,7 @@ Required: ### Nested Schema for `volumes` -Required: +Optional: - `device` (String) The device name (for example, /dev/sdh or xvdh). - `volume_id` (String) The ID of the EBS volume. The volume and instance must be within the same Availability Zone. diff --git a/docs/resources/ec2_instance_connect_endpoint.md b/docs/resources/ec2_instance_connect_endpoint.md index c0bb373126..90944c90c8 100644 --- a/docs/resources/ec2_instance_connect_endpoint.md +++ b/docs/resources/ec2_instance_connect_endpoint.md @@ -34,7 +34,7 @@ Resource Type definition for AWS::EC2::InstanceConnectEndpoint ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ec2_internet_gateway.md b/docs/resources/ec2_internet_gateway.md index 3ab74b5758..aea37d0fd7 100644 --- a/docs/resources/ec2_internet_gateway.md +++ b/docs/resources/ec2_internet_gateway.md @@ -48,7 +48,7 @@ resource "awscc_ec2_vpc_gateway_attachment" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag key. - `value` (String) The tag value. diff --git a/docs/resources/ec2_ipam.md b/docs/resources/ec2_ipam.md index ce7c57870d..7d8b74ae67 100644 --- a/docs/resources/ec2_ipam.md +++ b/docs/resources/ec2_ipam.md @@ -72,7 +72,7 @@ resource "awscc_ec2_ipam" "example" { ### Nested Schema for `operating_regions` -Required: +Optional: - `region_name` (String) The name of the region. @@ -80,7 +80,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/ec2_ipam_pool.md b/docs/resources/ec2_ipam_pool.md index dc657c3e6e..07846727a6 100644 --- a/docs/resources/ec2_ipam_pool.md +++ b/docs/resources/ec2_ipam_pool.md @@ -237,7 +237,7 @@ resource "awscc_ec2_ipam_pool" "example" { ### Nested Schema for `allocation_resource_tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. @@ -246,7 +246,7 @@ Required: ### Nested Schema for `provisioned_cidrs` -Required: +Optional: - `cidr` (String) Represents a single IPv4 or IPv6 CIDR @@ -254,7 +254,7 @@ Required: ### Nested Schema for `source_resource` -Required: +Optional: - `resource_id` (String) - `resource_owner` (String) @@ -265,7 +265,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/ec2_ipam_resource_discovery.md b/docs/resources/ec2_ipam_resource_discovery.md index b77c61987c..11fe3a3ca1 100644 --- a/docs/resources/ec2_ipam_resource_discovery.md +++ b/docs/resources/ec2_ipam_resource_discovery.md @@ -55,7 +55,7 @@ resource "awscc_ec2_ipam_resource_discovery" "example" { ### Nested Schema for `operating_regions` -Required: +Optional: - `region_name` (String) The name of the region. @@ -63,7 +63,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/ec2_ipam_resource_discovery_association.md b/docs/resources/ec2_ipam_resource_discovery_association.md index d184789449..80ca485a91 100644 --- a/docs/resources/ec2_ipam_resource_discovery_association.md +++ b/docs/resources/ec2_ipam_resource_discovery_association.md @@ -47,7 +47,7 @@ resource "awscc_ec2_ipam_resource_discovery_association" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/ec2_ipam_scope.md b/docs/resources/ec2_ipam_scope.md index 9ad825ce48..d0d1128404 100644 --- a/docs/resources/ec2_ipam_scope.md +++ b/docs/resources/ec2_ipam_scope.md @@ -49,7 +49,7 @@ resource "awscc_ec2_ipam_scope" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/ec2_key_pair.md b/docs/resources/ec2_key_pair.md index 5be9ae9b75..0224293464 100644 --- a/docs/resources/ec2_key_pair.md +++ b/docs/resources/ec2_key_pair.md @@ -60,7 +60,7 @@ resource "awscc_ec2_key_pair" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag key. - `value` (String) The tag value. diff --git a/docs/resources/ec2_launch_template.md b/docs/resources/ec2_launch_template.md index 3560356c19..453a8040e8 100644 --- a/docs/resources/ec2_launch_template.md +++ b/docs/resources/ec2_launch_template.md @@ -725,7 +725,7 @@ Optional: ### Nested Schema for `launch_template_data.tag_specifications.tags` -Required: +Optional: - `key` (String) The tag key. - `value` (String) The tag value. @@ -744,7 +744,7 @@ Optional: ### Nested Schema for `tag_specifications.tags` -Required: +Optional: - `key` (String) The tag key. - `value` (String) The tag value. diff --git a/docs/resources/ec2_nat_gateway.md b/docs/resources/ec2_nat_gateway.md index c0c242b861..e1a2bb9180 100644 --- a/docs/resources/ec2_nat_gateway.md +++ b/docs/resources/ec2_nat_gateway.md @@ -76,7 +76,7 @@ resource "awscc_ec2_nat_gateway" "main" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag key. - `value` (String) The tag value. diff --git a/docs/resources/ec2_network_acl.md b/docs/resources/ec2_network_acl.md index 1e2023f318..b2b7ff6b09 100644 --- a/docs/resources/ec2_network_acl.md +++ b/docs/resources/ec2_network_acl.md @@ -56,7 +56,7 @@ resource "awscc_ec2_network_acl" "main" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag key. - `value` (String) The tag value. diff --git a/docs/resources/ec2_network_insights_access_scope.md b/docs/resources/ec2_network_insights_access_scope.md index 271d32fd6e..74f3f34872 100644 --- a/docs/resources/ec2_network_insights_access_scope.md +++ b/docs/resources/ec2_network_insights_access_scope.md @@ -330,12 +330,9 @@ Optional: ### Nested Schema for `tags` -Required: - -- `key` (String) - Optional: +- `key` (String) - `value` (String) ## Import diff --git a/docs/resources/ec2_network_insights_access_scope_analysis.md b/docs/resources/ec2_network_insights_access_scope_analysis.md index 8a5c90696a..a63ed1c666 100644 --- a/docs/resources/ec2_network_insights_access_scope_analysis.md +++ b/docs/resources/ec2_network_insights_access_scope_analysis.md @@ -48,12 +48,9 @@ resource "awscc_ec2_network_insights_access_scope_analysis" "example" { ### Nested Schema for `tags` -Required: - -- `key` (String) - Optional: +- `key` (String) - `value` (String) ## Import diff --git a/docs/resources/ec2_network_insights_analysis.md b/docs/resources/ec2_network_insights_analysis.md index 332a0569ef..47d65779a3 100644 --- a/docs/resources/ec2_network_insights_analysis.md +++ b/docs/resources/ec2_network_insights_analysis.md @@ -41,12 +41,9 @@ Resource schema for AWS::EC2::NetworkInsightsAnalysis ### Nested Schema for `tags` -Required: - -- `key` (String) - Optional: +- `key` (String) - `value` (String) diff --git a/docs/resources/ec2_network_insights_path.md b/docs/resources/ec2_network_insights_path.md index 5343e4c165..a97720b992 100644 --- a/docs/resources/ec2_network_insights_path.md +++ b/docs/resources/ec2_network_insights_path.md @@ -100,12 +100,9 @@ Optional: ### Nested Schema for `tags` -Required: - -- `key` (String) - Optional: +- `key` (String) - `value` (String) ## Import diff --git a/docs/resources/ec2_network_interface.md b/docs/resources/ec2_network_interface.md index 7514d26bde..5d5a6efed8 100644 --- a/docs/resources/ec2_network_interface.md +++ b/docs/resources/ec2_network_interface.md @@ -60,7 +60,7 @@ Optional: ### Nested Schema for `ipv_4_prefixes` -Required: +Optional: - `ipv_4_prefix` (String) @@ -68,7 +68,7 @@ Required: ### Nested Schema for `ipv_6_addresses` -Required: +Optional: - `ipv_6_address` (String) @@ -76,7 +76,7 @@ Required: ### Nested Schema for `ipv_6_prefixes` -Required: +Optional: - `ipv_6_prefix` (String) @@ -84,7 +84,7 @@ Required: ### Nested Schema for `private_ip_addresses` -Required: +Optional: - `primary` (Boolean) - `private_ip_address` (String) @@ -93,7 +93,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ec2_placement_group.md b/docs/resources/ec2_placement_group.md index 5c1ae8881a..6f2a1f8d62 100644 --- a/docs/resources/ec2_placement_group.md +++ b/docs/resources/ec2_placement_group.md @@ -70,7 +70,7 @@ resource "awscc_ec2_placement_group" "web" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/ec2_prefix_list.md b/docs/resources/ec2_prefix_list.md index 050461ffdf..04ad067fb7 100644 --- a/docs/resources/ec2_prefix_list.md +++ b/docs/resources/ec2_prefix_list.md @@ -74,24 +74,18 @@ resource "awscc_ec2_prefix_list" "example_ipv6_prefix_list" { ### Nested Schema for `entries` -Required: - -- `cidr` (String) - Optional: +- `cidr` (String) - `description` (String) ### Nested Schema for `tags` -Required: - -- `key` (String) - Optional: +- `key` (String) - `value` (String) ## Import diff --git a/docs/resources/ec2_route_table.md b/docs/resources/ec2_route_table.md index 52bfe8c10b..2eb275457a 100644 --- a/docs/resources/ec2_route_table.md +++ b/docs/resources/ec2_route_table.md @@ -111,7 +111,7 @@ resource "aws_route_table" "public_route_table" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag key. - `value` (String) The tag value. diff --git a/docs/resources/ec2_security_group.md b/docs/resources/ec2_security_group.md index 4cefaa319d..1c209e3158 100644 --- a/docs/resources/ec2_security_group.md +++ b/docs/resources/ec2_security_group.md @@ -115,10 +115,6 @@ resource "awscc_ec2_security_group_egress" "allow_all_traffic_ipv6" { ### Nested Schema for `security_group_egress` -Required: - -- `ip_protocol` (String) - Optional: - `cidr_ip` (String) @@ -127,22 +123,20 @@ Optional: - `destination_prefix_list_id` (String) - `destination_security_group_id` (String) - `from_port` (Number) +- `ip_protocol` (String) - `to_port` (Number) ### Nested Schema for `security_group_ingress` -Required: - -- `ip_protocol` (String) - Optional: - `cidr_ip` (String) - `cidr_ipv_6` (String) - `description` (String) - `from_port` (Number) +- `ip_protocol` (String) - `source_prefix_list_id` (String) - `source_security_group_id` (String) - `source_security_group_name` (String) @@ -153,7 +147,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ec2_spot_fleet.md b/docs/resources/ec2_spot_fleet.md index bd5a24bd97..bb93053113 100644 --- a/docs/resources/ec2_spot_fleet.md +++ b/docs/resources/ec2_spot_fleet.md @@ -59,15 +59,12 @@ Optional: ### Nested Schema for `spot_fleet_request_config_data.launch_specifications` -Required: - -- `image_id` (String) - Optional: - `block_device_mappings` (Attributes List) (see [below for nested schema](#nestedatt--spot_fleet_request_config_data--launch_specifications--block_device_mappings)) - `ebs_optimized` (Boolean) - `iam_instance_profile` (Attributes) (see [below for nested schema](#nestedatt--spot_fleet_request_config_data--launch_specifications--iam_instance_profile)) +- `image_id` (String) - `instance_requirements` (Attributes) (see [below for nested schema](#nestedatt--spot_fleet_request_config_data--launch_specifications--instance_requirements)) - `instance_type` (String) - `kernel_id` (String) @@ -86,12 +83,9 @@ Optional: ### Nested Schema for `spot_fleet_request_config_data.launch_specifications.block_device_mappings` -Required: - -- `device_name` (String) - Optional: +- `device_name` (String) - `ebs` (Attributes) (see [below for nested schema](#nestedatt--spot_fleet_request_config_data--launch_specifications--block_device_mappings--ebs)) - `no_device` (String) - `virtual_name` (String) @@ -258,7 +252,7 @@ Optional: ### Nested Schema for `spot_fleet_request_config_data.launch_specifications.network_interfaces.ipv_6_addresses` -Required: +Optional: - `ipv_6_address` (String) @@ -266,13 +260,10 @@ Required: ### Nested Schema for `spot_fleet_request_config_data.launch_specifications.network_interfaces.private_ip_addresses` -Required: - -- `private_ip_address` (String) - Optional: - `primary` (Boolean) +- `private_ip_address` (String) @@ -289,7 +280,7 @@ Optional: ### Nested Schema for `spot_fleet_request_config_data.launch_specifications.security_groups` -Required: +Optional: - `group_id` (String) @@ -305,7 +296,7 @@ Optional: ### Nested Schema for `spot_fleet_request_config_data.launch_specifications.tag_specifications.tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -324,14 +315,11 @@ Optional: ### Nested Schema for `spot_fleet_request_config_data.launch_template_configs.launch_template_specification` -Required: - -- `version` (String) - Optional: - `launch_template_id` (String) - `launch_template_name` (String) +- `version` (String) @@ -472,14 +460,14 @@ Optional: ### Nested Schema for `spot_fleet_request_config_data.load_balancers_config.classic_load_balancers_config` -Required: +Optional: - `classic_load_balancers` (Attributes List) (see [below for nested schema](#nestedatt--spot_fleet_request_config_data--load_balancers_config--classic_load_balancers_config--classic_load_balancers)) ### Nested Schema for `spot_fleet_request_config_data.load_balancers_config.classic_load_balancers_config.classic_load_balancers` -Required: +Optional: - `name` (String) @@ -488,14 +476,14 @@ Required: ### Nested Schema for `spot_fleet_request_config_data.load_balancers_config.target_groups_config` -Required: +Optional: - `target_groups` (Attributes List) (see [below for nested schema](#nestedatt--spot_fleet_request_config_data--load_balancers_config--target_groups_config--target_groups)) ### Nested Schema for `spot_fleet_request_config_data.load_balancers_config.target_groups_config.target_groups` -Required: +Optional: - `arn` (String) @@ -530,7 +518,7 @@ Optional: ### Nested Schema for `spot_fleet_request_config_data.tag_specifications.tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ec2_subnet.md b/docs/resources/ec2_subnet.md index ce5a919ec1..5306f74d8f 100644 --- a/docs/resources/ec2_subnet.md +++ b/docs/resources/ec2_subnet.md @@ -90,7 +90,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag key. - `value` (String) The tag value. diff --git a/docs/resources/ec2_transit_gateway.md b/docs/resources/ec2_transit_gateway.md index 8401737065..2711340637 100644 --- a/docs/resources/ec2_transit_gateway.md +++ b/docs/resources/ec2_transit_gateway.md @@ -57,7 +57,7 @@ resource "awscc_ec2_transit_gateway" "example_transit_gateway" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ec2_transit_gateway_attachment.md b/docs/resources/ec2_transit_gateway_attachment.md index f44113bf55..4102690657 100644 --- a/docs/resources/ec2_transit_gateway_attachment.md +++ b/docs/resources/ec2_transit_gateway_attachment.md @@ -44,7 +44,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ec2_transit_gateway_route_table.md b/docs/resources/ec2_transit_gateway_route_table.md index 0a7e878735..2275a77366 100644 --- a/docs/resources/ec2_transit_gateway_route_table.md +++ b/docs/resources/ec2_transit_gateway_route_table.md @@ -31,7 +31,7 @@ Resource Type definition for AWS::EC2::TransitGatewayRouteTable ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key of the associated tag key-value pair - `value` (String) The value of the associated tag key-value pair diff --git a/docs/resources/ec2_transit_gateway_vpc_attachment.md b/docs/resources/ec2_transit_gateway_vpc_attachment.md index c20f584c52..583fabeac6 100644 --- a/docs/resources/ec2_transit_gateway_vpc_attachment.md +++ b/docs/resources/ec2_transit_gateway_vpc_attachment.md @@ -46,7 +46,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ec2_verified_access_endpoint.md b/docs/resources/ec2_verified_access_endpoint.md index 0eb07d84d4..274caa9e7f 100644 --- a/docs/resources/ec2_verified_access_endpoint.md +++ b/docs/resources/ec2_verified_access_endpoint.md @@ -79,7 +79,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/ec2_verified_access_group.md b/docs/resources/ec2_verified_access_group.md index 3237d8945f..ffa4ac90b1 100644 --- a/docs/resources/ec2_verified_access_group.md +++ b/docs/resources/ec2_verified_access_group.md @@ -48,7 +48,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/ec2_verified_access_instance.md b/docs/resources/ec2_verified_access_instance.md index 3eae1edfb7..72f930912f 100644 --- a/docs/resources/ec2_verified_access_instance.md +++ b/docs/resources/ec2_verified_access_instance.md @@ -75,7 +75,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/ec2_verified_access_trust_provider.md b/docs/resources/ec2_verified_access_trust_provider.md index 66e84ee836..7fe2e70edd 100644 --- a/docs/resources/ec2_verified_access_trust_provider.md +++ b/docs/resources/ec2_verified_access_trust_provider.md @@ -72,7 +72,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/ec2_volume.md b/docs/resources/ec2_volume.md index d444a3b833..f644fb49d0 100644 --- a/docs/resources/ec2_volume.md +++ b/docs/resources/ec2_volume.md @@ -104,7 +104,7 @@ resource "awscc_ec2_volume" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag key. - `value` (String) The tag value. diff --git a/docs/resources/ec2_vpc.md b/docs/resources/ec2_vpc.md index 661dcc4178..614dcb720e 100644 --- a/docs/resources/ec2_vpc.md +++ b/docs/resources/ec2_vpc.md @@ -109,7 +109,7 @@ resource "awscc_ec2_vpc" "main" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag key. - `value` (String) The tag value. diff --git a/docs/resources/ec2_vpc_peering_connection.md b/docs/resources/ec2_vpc_peering_connection.md index 23a811d627..bd1c41225f 100644 --- a/docs/resources/ec2_vpc_peering_connection.md +++ b/docs/resources/ec2_vpc_peering_connection.md @@ -35,7 +35,7 @@ Resource Type definition for AWS::EC2::VPCPeeringConnection ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/ec2_vpn_connection.md b/docs/resources/ec2_vpn_connection.md index a1b8d31839..52da781e8e 100644 --- a/docs/resources/ec2_vpn_connection.md +++ b/docs/resources/ec2_vpn_connection.md @@ -112,7 +112,7 @@ resource "awscc_ec2_vpn_connection" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag key. - `value` (String) The tag value. diff --git a/docs/resources/ec2_vpn_gateway.md b/docs/resources/ec2_vpn_gateway.md index 389613d63e..3e6abe9270 100644 --- a/docs/resources/ec2_vpn_gateway.md +++ b/docs/resources/ec2_vpn_gateway.md @@ -70,7 +70,7 @@ resource "awscc_ec2_vpn_gateway" "example_vpn_gateway" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag key. - `value` (String) The tag value. diff --git a/docs/resources/ecr_public_repository.md b/docs/resources/ecr_public_repository.md index 1e53cbdc73..c3cb6e7094 100644 --- a/docs/resources/ecr_public_repository.md +++ b/docs/resources/ecr_public_repository.md @@ -74,7 +74,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/ecr_replication_configuration.md b/docs/resources/ecr_replication_configuration.md index 20b80a7493..64dffe28a8 100644 --- a/docs/resources/ecr_replication_configuration.md +++ b/docs/resources/ecr_replication_configuration.md @@ -54,7 +54,7 @@ Required: ### Nested Schema for `replication_configuration.rules.repository_filters` -Required: +Optional: - `filter` (String) The repository filter to be applied for replication. - `filter_type` (String) Type of repository filter diff --git a/docs/resources/ecr_repository.md b/docs/resources/ecr_repository.md index 21518628c7..70a1d0a53e 100644 --- a/docs/resources/ecr_repository.md +++ b/docs/resources/ecr_repository.md @@ -120,14 +120,11 @@ resource "awscc_ecr_repository" "repo_policy_example" { ### Nested Schema for `encryption_configuration` -Required: +Optional: - `encryption_type` (String) The encryption type to use. If you use the ``KMS`` encryption type, the contents of the repository will be encrypted using server-side encryption with KMSlong key stored in KMS. When you use KMS to encrypt your data, you can either use the default AWS managed KMS key for Amazon ECR, or specify your own KMS key, which you already created. For more information, see [Protecting data using server-side encryption with an key stored in (SSE-KMS)](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) in the *Amazon Simple Storage Service Console Developer Guide*. If you use the ``AES256`` encryption type, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts the images in the repository using an AES-256 encryption algorithm. For more information, see [Protecting data using server-side encryption with Amazon S3-managed encryption keys (SSE-S3)](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html) in the *Amazon Simple Storage Service Console Developer Guide*. - -Optional: - - `kms_key` (String) If you use the ``KMS`` encryption type, specify the KMS key to use for encryption. The alias, key ID, or full ARN of the KMS key can be specified. The key must exist in the same Region as the repository. If no key is specified, the default AWS managed KMS key for Amazon ECR will be used. @@ -151,7 +148,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) One part of a key-value pair that make up a tag. A ``key`` is a general label that acts like a category for more specific tag values. - `value` (String) A ``value`` acts as a descriptor within a tag category (key). diff --git a/docs/resources/ecr_repository_creation_template.md b/docs/resources/ecr_repository_creation_template.md index a356507ff2..aa05a4b8b4 100644 --- a/docs/resources/ecr_repository_creation_template.md +++ b/docs/resources/ecr_repository_creation_template.md @@ -41,19 +41,16 @@ For more information, see https://docs.aws.amazon.com/AmazonECR/latest/userguide ### Nested Schema for `encryption_configuration` -Required: - -- `encryption_type` (String) The encryption type to use. - Optional: +- `encryption_type` (String) The encryption type to use. - `kms_key` (String) If you use the KMS encryption type, specify the CMK to use for encryption. The alias, key ID, or full ARN of the CMK can be specified. The key must exist in the same Region as the repository. If no key is specified, the default AWS managed CMK for Amazon ECR will be used. ### Nested Schema for `resource_tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/ecs_service.md b/docs/resources/ecs_service.md index f6963ca98a..ba0edb84ee 100644 --- a/docs/resources/ecs_service.md +++ b/docs/resources/ecs_service.md @@ -170,7 +170,7 @@ Optional: ### Nested Schema for `deployment_configuration.alarms` -Required: +Optional: - `alarm_names` (List of String) One or more CloudWatch alarm names. Use a "," to separate the alarms. - `enable` (Boolean) Determines whether to use the CloudWatch alarm option in the service deployment process. @@ -180,7 +180,7 @@ Required: ### Nested Schema for `deployment_configuration.deployment_circuit_breaker` -Required: +Optional: - `enable` (Boolean) Determines whether to use the deployment circuit breaker logic for the service. - `rollback` (Boolean) Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is on, when a service deployment fails, the service is rolled back to the last deployment that completed successfully. @@ -237,36 +237,27 @@ Optional: ### Nested Schema for `placement_constraints` -Required: - -- `type` (String) The type of constraint. Use ``distinctInstance`` to ensure that each task in a particular group is running on a different container instance. Use ``memberOf`` to restrict the selection to a group of valid candidates. - Optional: - `expression` (String) A cluster query language expression to apply to the constraint. The expression can have a maximum length of 2000 characters. You can't specify an expression if the constraint type is ``distinctInstance``. For more information, see [Cluster query language](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html) in the *Amazon Elastic Container Service Developer Guide*. +- `type` (String) The type of constraint. Use ``distinctInstance`` to ensure that each task in a particular group is running on a different container instance. Use ``memberOf`` to restrict the selection to a group of valid candidates. ### Nested Schema for `placement_strategies` -Required: - -- `type` (String) The type of placement strategy. The ``random`` placement strategy randomly places tasks on available candidates. The ``spread`` placement strategy spreads placement across available candidates evenly based on the ``field`` parameter. The ``binpack`` strategy places tasks on available candidates that have the least available amount of the resource that's specified with the ``field`` parameter. For example, if you binpack on memory, a task is placed on the instance with the least amount of remaining memory but still enough to run the task. - Optional: - `field` (String) The field to apply the placement strategy against. For the ``spread`` placement strategy, valid values are ``instanceId`` (or ``host``, which has the same effect), or any platform or custom attribute that's applied to a container instance, such as ``attribute:ecs.availability-zone``. For the ``binpack`` placement strategy, valid values are ``cpu`` and ``memory``. For the ``random`` placement strategy, this field is not used. +- `type` (String) The type of placement strategy. The ``random`` placement strategy randomly places tasks on available candidates. The ``spread`` placement strategy spreads placement across available candidates evenly based on the ``field`` parameter. The ``binpack`` strategy places tasks on available candidates that have the least available amount of the resource that's specified with the ``field`` parameter. For example, if you binpack on memory, a task is placed on the instance with the least amount of remaining memory but still enough to run the task. ### Nested Schema for `service_connect_configuration` -Required: - -- `enabled` (Boolean) Specifies whether to use Service Connect with this service. - Optional: +- `enabled` (Boolean) Specifies whether to use Service Connect with this service. - `log_configuration` (Attributes) The log configuration for the container. This parameter maps to ``LogConfig`` in the docker container create command and the ``--log-driver`` option to docker run. By default, containers use the same logging driver that the Docker daemon uses. However, the container might use a different logging driver than the Docker daemon by specifying a log driver configuration in the container definition. Understand the following when specifying a log configuration for your containers. @@ -298,7 +289,7 @@ Optional: ### Nested Schema for `service_connect_configuration.log_configuration.secret_options` -Required: +Optional: - `name` (String) The name of the secret. - `value_from` (String) The secret to expose to the container. The supported values are either the full ARN of the ASMlong secret or the full ARN of the parameter in the SSM Parameter Store. @@ -310,10 +301,6 @@ Required: ### Nested Schema for `service_connect_configuration.services` -Required: - -- `port_name` (String) The ``portName`` must match the name of one of the ``portMappings`` from all the containers in the task definition of this Amazon ECS service. - Optional: - `client_aliases` (Attributes List) The list of client aliases for this Service Connect service. You use these to assign names that can be used by client applications. The maximum number of client aliases that you can have in this list is 1. @@ -325,22 +312,20 @@ Optional: - `ingress_port_override` (Number) The port number for the Service Connect proxy to listen on. Use the value of this field to bypass the proxy for traffic on the port number specified in the named ``portMapping`` in the task definition of this application, and then use it in your VPC security groups to allow traffic into the proxy for this Amazon ECS service. In ``awsvpc`` mode and Fargate, the default value is the container port number. The container port number is in the ``portMapping`` in the task definition. In bridge mode, the default value is the ephemeral port of the Service Connect proxy. +- `port_name` (String) The ``portName`` must match the name of one of the ``portMappings`` from all the containers in the task definition of this Amazon ECS service. - `timeout` (Attributes) A reference to an object that represents the configured timeouts for Service Connect. (see [below for nested schema](#nestedatt--service_connect_configuration--services--timeout)) - `tls` (Attributes) A reference to an object that represents a Transport Layer Security (TLS) configuration. (see [below for nested schema](#nestedatt--service_connect_configuration--services--tls)) ### Nested Schema for `service_connect_configuration.services.client_aliases` -Required: - -- `port` (Number) The listening port number for the Service Connect proxy. This port is available inside of all of the tasks within the same namespace. - To avoid changing your applications in client Amazon ECS services, set this to the same port that the client application uses by default. For more information, see [Service Connect](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html) in the *Amazon Elastic Container Service Developer Guide*. - Optional: - `dns_name` (String) The ``dnsName`` is the name that you use in the applications of client tasks to connect to this service. The name must be a valid DNS name but doesn't need to be fully-qualified. The name can include up to 127 characters. The name can include lowercase letters, numbers, underscores (_), hyphens (-), and periods (.). The name can't start with a hyphen. If this parameter isn't specified, the default value of ``discoveryName.namespace`` is used. If the ``discoveryName`` isn't specified, the port mapping name from the task definition is used in ``portName.namespace``. To avoid changing your applications in client Amazon ECS services, set this to the same name that the client application uses by default. For example, a few common names are ``database``, ``db``, or the lowercase name of a database, such as ``mysql`` or ``redis``. For more information, see [Service Connect](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html) in the *Amazon Elastic Container Service Developer Guide*. +- `port` (Number) The listening port number for the Service Connect proxy. This port is available inside of all of the tasks within the same namespace. + To avoid changing your applications in client Amazon ECS services, set this to the same port that the client application uses by default. For more information, see [Service Connect](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html) in the *Amazon Elastic Container Service Developer Guide*. @@ -357,12 +342,9 @@ Optional: ### Nested Schema for `service_connect_configuration.services.tls` -Required: - -- `issuer_certificate_authority` (Attributes) The signer certificate authority. (see [below for nested schema](#nestedatt--service_connect_configuration--services--tls--issuer_certificate_authority)) - Optional: +- `issuer_certificate_authority` (Attributes) The signer certificate authority. (see [below for nested schema](#nestedatt--service_connect_configuration--services--tls--issuer_certificate_authority)) - `kms_key` (String) The AWS Key Management Service key. - `role_arn` (String) The Amazon Resource Name (ARN) of the IAM role that's associated with the Service Connect TLS. @@ -400,21 +382,14 @@ Optional: ### Nested Schema for `volume_configurations` -Required: - -- `name` (String) The name of the volume. This value must match the volume name from the ``Volume`` object in the task definition. - Optional: - `managed_ebs_volume` (Attributes) The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings are used to create each Amazon EBS volume, with one volume created for each task in the service. The Amazon EBS volumes are visible in your account in the Amazon EC2 console once they are created. (see [below for nested schema](#nestedatt--volume_configurations--managed_ebs_volume)) +- `name` (String) The name of the volume. This value must match the volume name from the ``Volume`` object in the task definition. ### Nested Schema for `volume_configurations.managed_ebs_volume` -Required: - -- `role_arn` (String) The ARN of the IAM role to associate with this volume. This is the Amazon ECS infrastructure IAM role that is used to manage your AWS infrastructure. We recommend using the Amazon ECS-managed ``AmazonECSInfrastructureRolePolicyForVolumes`` IAM policy with this role. For more information, see [Amazon ECS infrastructure IAM role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/infrastructure_IAM_role.html) in the *Amazon ECS Developer Guide*. - Optional: - `encrypted` (Boolean) Indicates whether the volume should be encrypted. If no value is specified, encryption is turned on by default. This parameter maps 1:1 with the ``Encrypted`` parameter of the [CreateVolume API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) in the *Amazon EC2 API Reference*. @@ -430,6 +405,7 @@ Optional: This parameter maps 1:1 with the ``Iops`` parameter of the [CreateVolume API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) in the *Amazon EC2 API Reference*. - `kms_key_id` (String) The Amazon Resource Name (ARN) identifier of the AWS Key Management Service key to use for Amazon EBS encryption. When encryption is turned on and no AWS Key Management Service key is specified, the default AWS managed key for Amazon EBS volumes is used. This parameter maps 1:1 with the ``KmsKeyId`` parameter of the [CreateVolume API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) in the *Amazon EC2 API Reference*. AWS authenticates the AWS Key Management Service key asynchronously. Therefore, if you specify an ID, alias, or ARN that is invalid, the action can appear to complete, but eventually fails. +- `role_arn` (String) The ARN of the IAM role to associate with this volume. This is the Amazon ECS infrastructure IAM role that is used to manage your AWS infrastructure. We recommend using the Amazon ECS-managed ``AmazonECSInfrastructureRolePolicyForVolumes`` IAM policy with this role. For more information, see [Amazon ECS infrastructure IAM role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/infrastructure_IAM_role.html) in the *Amazon ECS Developer Guide*. - `size_in_gi_b` (Number) The size of the volume in GiB. You must specify either a volume size or a snapshot ID. If you specify a snapshot ID, the snapshot size is used for the volume size by default. You can optionally specify a volume size greater than or equal to the snapshot size. This parameter maps 1:1 with the ``Size`` parameter of the [CreateVolume API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) in the *Amazon EC2 API Reference*. The following are the supported volume size values for each volume type. + ``gp2`` and ``gp3``: 1-16,384 @@ -452,13 +428,10 @@ Optional: ### Nested Schema for `volume_configurations.managed_ebs_volume.tag_specifications` -Required: - -- `resource_type` (String) The type of volume resource. - Optional: - `propagate_tags` (String) Determines whether to propagate the tags from the task definition to 
the Amazon EBS volume. Tags can only propagate to a ``SERVICE`` specified in 
``ServiceVolumeConfiguration``. If no value is specified, the tags aren't 
propagated. +- `resource_type` (String) The type of volume resource. - `tags` (Attributes List) The tags applied to this Amazon EBS volume. ``AmazonECSCreated`` and ``AmazonECSManaged`` are reserved tags that can't be used. (see [below for nested schema](#nestedatt--volume_configurations--managed_ebs_volume--tag_specifications--tags)) diff --git a/docs/resources/ecs_task_definition.md b/docs/resources/ecs_task_definition.md index 62a0b6e5bd..932754ba20 100644 --- a/docs/resources/ecs_task_definition.md +++ b/docs/resources/ecs_task_definition.md @@ -105,16 +105,6 @@ Registers a new task definition from the supplied ``family`` and ``containerDefi ### Nested Schema for `container_definitions` -Required: - -- `image` (String) The image used to start a container. This string is passed directly to the Docker daemon. By default, images in the Docker Hub registry are available. Other repositories are specified with either ``repository-url/image:tag`` or ``repository-url/image@digest``. Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to ``Image`` in the docker container create command and the ``IMAGE`` parameter of docker run. - + When a new task starts, the Amazon ECS container agent pulls the latest version of the specified image and tag for the container to use. However, subsequent updates to a repository image aren't propagated to already running tasks. - + Images in Amazon ECR repositories can be specified by either using the full ``registry/repository:tag`` or ``registry/repository@digest``. For example, ``012345678910.dkr.ecr..amazonaws.com/:latest`` or ``012345678910.dkr.ecr..amazonaws.com/@sha256:94afd1f2e64d908bc90dbca0035a5b567EXAMPLE``. - + Images in official repositories on Docker Hub use a single name (for example, ``ubuntu`` or ``mongo``). - + Images in other repositories on Docker Hub are qualified with an organization name (for example, ``amazon/amazon-ecs-agent``). - + Images in other online repositories are qualified further by a domain name (for example, ``quay.io/assemblyline/ubuntu``). -- `name` (String) The name of a container. If you're linking multiple containers together in a task definition, the ``name`` of one container can be entered in the ``links`` of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This parameter maps to ``name`` in tthe docker container create command and the ``--name`` option to docker run. - Optional: - `command` (List of String) The command that's passed to the container. This parameter maps to ``Cmd`` in the docker container create command and the ``COMMAND`` parameter to docker run. If there are multiple arguments, each argument is a separated string in the array. @@ -168,6 +158,12 @@ Optional: - `health_check` (Attributes) The container health check command and associated configuration parameters for the container. This parameter maps to ``HealthCheck`` in the docker container create command and the ``HEALTHCHECK`` parameter of docker run. (see [below for nested schema](#nestedatt--container_definitions--health_check)) - `hostname` (String) The hostname to use for your container. This parameter maps to ``Hostname`` in thethe docker container create command and the ``--hostname`` option to docker run. The ``hostname`` parameter is not supported if you're using the ``awsvpc`` network mode. +- `image` (String) The image used to start a container. This string is passed directly to the Docker daemon. By default, images in the Docker Hub registry are available. Other repositories are specified with either ``repository-url/image:tag`` or ``repository-url/image@digest``. Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to ``Image`` in the docker container create command and the ``IMAGE`` parameter of docker run. + + When a new task starts, the Amazon ECS container agent pulls the latest version of the specified image and tag for the container to use. However, subsequent updates to a repository image aren't propagated to already running tasks. + + Images in Amazon ECR repositories can be specified by either using the full ``registry/repository:tag`` or ``registry/repository@digest``. For example, ``012345678910.dkr.ecr..amazonaws.com/:latest`` or ``012345678910.dkr.ecr..amazonaws.com/@sha256:94afd1f2e64d908bc90dbca0035a5b567EXAMPLE``. + + Images in official repositories on Docker Hub use a single name (for example, ``ubuntu`` or ``mongo``). + + Images in other repositories on Docker Hub are qualified with an organization name (for example, ``amazon/amazon-ecs-agent``). + + Images in other online repositories are qualified further by a domain name (for example, ``quay.io/assemblyline/ubuntu``). - `interactive` (Boolean) When this parameter is ``true``, you can deploy containerized applications that require ``stdin`` or a ``tty`` to be allocated. This parameter maps to ``OpenStdin`` in the docker container create command and the ``--interactive`` option to docker run. - `links` (Set of String) The ``links`` parameter allows containers to communicate with each other without the need for port mappings. This parameter is only supported if the network mode of a task definition is ``bridge``. The ``name:internalName`` construct is analogous to ``name:alias`` in Docker links. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.. This parameter maps to ``Links`` in the docker container create command and the ``--link`` option to docker run. This parameter is not supported for Windows containers. @@ -192,6 +188,7 @@ Optional: - `mount_points` (Attributes List) The mount points for data volumes in your container. This parameter maps to ``Volumes`` in the docker container create command and the ``--volume`` option to docker run. Windows containers can mount whole directories on the same drive as ``$env:ProgramData``. Windows containers can't mount directories on a different drive, and mount point can't be across drives. (see [below for nested schema](#nestedatt--container_definitions--mount_points)) +- `name` (String) The name of a container. If you're linking multiple containers together in a task definition, the ``name`` of one container can be entered in the ``links`` of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This parameter maps to ``name`` in tthe docker container create command and the ``--name`` option to docker run. - `port_mappings` (Attributes Set) The list of port mappings for the container. Port mappings allow containers to access ports on the host container instance to send or receive traffic. For task definitions that use the ``awsvpc`` network mode, you should only specify the ``containerPort``. The ``hostPort`` can be left blank or it must be the same value as the ``containerPort``. Port mappings on Windows use the ``NetNAT`` gateway address rather than ``localhost``. There is no loopback for port mappings on Windows, so you cannot access a container's mapped port from the host itself. @@ -357,22 +354,19 @@ Optional: ### Nested Schema for `container_definitions.linux_parameters.tmpfs` -Required: - -- `size` (Number) The maximum size (in MiB) of the tmpfs volume. - Optional: - `container_path` (String) The absolute file path where the tmpfs volume is to be mounted. - `mount_options` (List of String) The list of tmpfs volume mount options. Valid values: ``"defaults" | "ro" | "rw" | "suid" | "nosuid" | "dev" | "nodev" | "exec" | "noexec" | "sync" | "async" | "dirsync" | "remount" | "mand" | "nomand" | "atime" | "noatime" | "diratime" | "nodiratime" | "bind" | "rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime" | "norelatime" | "strictatime" | "nostrictatime" | "mode" | "uid" | "gid" | "nr_inodes" | "nr_blocks" | "mpol"`` +- `size` (Number) The maximum size (in MiB) of the tmpfs volume. ### Nested Schema for `container_definitions.log_configuration` -Required: +Optional: - `log_driver` (String) The log driver to use for the container. For tasks on FARGATElong, the supported log drivers are ``awslogs``, ``splunk``, and ``awsfirelens``. @@ -380,16 +374,13 @@ Required: For more information about using the ``awslogs`` log driver, see [Send Amazon ECS logs to CloudWatch](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html) in the *Amazon Elastic Container Service Developer Guide*. For more information about using the ``awsfirelens`` log driver, see [Send Amazon ECS logs to an service or Partner](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html). If you have a custom driver that isn't listed, you can fork the Amazon ECS container agent project that's [available on GitHub](https://docs.aws.amazon.com/https://github.com/aws/amazon-ecs-agent) and customize it to work with that driver. We encourage you to submit pull requests for changes that you would like to have included. However, we don't currently provide support for running modified copies of this software. - -Optional: - - `options` (Map of String) The configuration options to send to the log driver. This parameter requires version 1.19 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: ``sudo docker version --format '{{.Server.APIVersion}}'`` - `secret_options` (Attributes List) The secrets to pass to the log configuration. For more information, see [Specifying sensitive data](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html) in the *Amazon Elastic Container Service Developer Guide*. (see [below for nested schema](#nestedatt--container_definitions--log_configuration--secret_options)) ### Nested Schema for `container_definitions.log_configuration.secret_options` -Required: +Optional: - `name` (String) The name of the secret. - `value_from` (String) The secret to expose to the container. The supported values are either the full ARN of the ASMlong secret or the full ARN of the parameter in the SSM Parameter Store. @@ -466,7 +457,7 @@ Optional: ### Nested Schema for `container_definitions.resource_requirements` -Required: +Optional: - `type` (String) The type of resource to assign to a container. - `value` (String) The value for the specified resource type. @@ -487,7 +478,7 @@ Optional: ### Nested Schema for `container_definitions.secrets` -Required: +Optional: - `name` (String) The name of the secret. - `value_from` (String) The secret to expose to the container. The supported values are either the full ARN of the ASMlong secret or the full ARN of the parameter in the SSM Parameter Store. @@ -510,7 +501,7 @@ Optional: ### Nested Schema for `container_definitions.ulimits` -Required: +Optional: - `hard_limit` (Number) The hard limit for the ``ulimit`` type. - `name` (String) The ``type`` of the ``ulimit``. @@ -547,24 +538,18 @@ Optional: ### Nested Schema for `placement_constraints` -Required: - -- `type` (String) The type of constraint. The ``MemberOf`` constraint restricts selection to be from a group of valid candidates. - Optional: - `expression` (String) A cluster query language expression to apply to the constraint. For more information, see [Cluster query language](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html) in the *Amazon Elastic Container Service Developer Guide*. +- `type` (String) The type of constraint. The ``MemberOf`` constraint restricts selection to be from a group of valid candidates. ### Nested Schema for `proxy_configuration` -Required: - -- `container_name` (String) The name of the container that will serve as the App Mesh proxy. - Optional: +- `container_name` (String) The name of the container that will serve as the App Mesh proxy. - `proxy_configuration_properties` (Attributes Set) The set of network configuration parameters to provide the Container Network Interface (CNI) plugin, specified as key-value pairs. + ``IgnoredUID`` - (Required) The user ID (UID) of the proxy container as defined by the ``user`` parameter in a container definition. This is used to ensure the proxy ignores its own traffic. If ``IgnoredGID`` is specified, this field can be empty. + ``IgnoredGID`` - (Required) The group ID (GID) of the proxy container as defined by the ``user`` parameter in a container definition. This is used to ensure the proxy ignores its own traffic. If ``IgnoredUID`` is specified, this field can be empty. @@ -639,13 +624,10 @@ Optional: ### Nested Schema for `volumes.efs_volume_configuration` -Required: - -- `filesystem_id` (String) The Amazon EFS file system ID to use. - Optional: - `authorization_config` (Attributes) The authorization configuration details for the Amazon EFS file system. (see [below for nested schema](#nestedatt--volumes--efs_volume_configuration--authorization_config)) +- `filesystem_id` (String) The Amazon EFS file system ID to use. - `root_directory` (String) The directory within the Amazon EFS file system to mount as the root directory inside the host. If this parameter is omitted, the root of the Amazon EFS volume will be used. Specifying ``/`` will have the same effect as omitting this parameter. If an EFS access point is specified in the ``authorizationConfig``, the root directory parameter must either be omitted or set to ``/`` which will enforce the path set on the EFS access point. - `transit_encryption` (String) Determines whether to use encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server. Transit encryption must be turned on if Amazon EFS IAM authorization is used. If this parameter is omitted, the default value of ``DISABLED`` is used. For more information, see [Encrypting data in transit](https://docs.aws.amazon.com/efs/latest/ug/encryption-in-transit.html) in the *Amazon Elastic File System User Guide*. @@ -664,19 +646,16 @@ Optional: ### Nested Schema for `volumes.fsx_windows_file_server_volume_configuration` -Required: - -- `file_system_id` (String) The Amazon FSx for Windows File Server file system ID to use. -- `root_directory` (String) The directory within the Amazon FSx for Windows File Server file system to mount as the root directory inside the host. - Optional: - `authorization_config` (Attributes) The authorization configuration details for the Amazon FSx for Windows File Server file system. (see [below for nested schema](#nestedatt--volumes--fsx_windows_file_server_volume_configuration--authorization_config)) +- `file_system_id` (String) The Amazon FSx for Windows File Server file system ID to use. +- `root_directory` (String) The directory within the Amazon FSx for Windows File Server file system to mount as the root directory inside the host. ### Nested Schema for `volumes.fsx_windows_file_server_volume_configuration.authorization_config` -Required: +Optional: - `credentials_parameter` (String) The authorization credential option to use. The authorization credential options can be provided using either the Amazon Resource Name (ARN) of an ASMlong secret or SSM Parameter Store parameter. The ARN refers to the stored credentials. - `domain` (String) A fully qualified domain name hosted by an [](https://docs.aws.amazon.com/directoryservice/latest/admin-guide/directory_microsoft_ad.html) Managed Microsoft AD (Active Directory) or self-hosted AD on Amazon EC2. diff --git a/docs/resources/ecs_task_set.md b/docs/resources/ecs_task_set.md index 9451e70e6f..318ef87949 100644 --- a/docs/resources/ecs_task_set.md +++ b/docs/resources/ecs_task_set.md @@ -57,14 +57,11 @@ Optional: ### Nested Schema for `network_configuration.aws_vpc_configuration` -Required: - -- `subnets` (List of String) The subnets associated with the task or service. There is a limit of 16 subnets that can be specified per AwsVpcConfiguration. - Optional: - `assign_public_ip` (String) Whether the task's elastic network interface receives a public IP address. The default value is DISABLED. - `security_groups` (List of String) The security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used. There is a limit of 5 security groups that can be specified per AwsVpcConfiguration. +- `subnets` (List of String) The subnets associated with the task or service. There is a limit of 16 subnets that can be specified per AwsVpcConfiguration. diff --git a/docs/resources/efs_access_point.md b/docs/resources/efs_access_point.md index 527d70930f..bd59e610df 100644 --- a/docs/resources/efs_access_point.md +++ b/docs/resources/efs_access_point.md @@ -115,14 +115,11 @@ Optional: ### Nested Schema for `posix_user` -Required: - -- `gid` (String) The POSIX group ID used for all file system operations using this access point. -- `uid` (String) The POSIX user ID used for all file system operations using this access point. - Optional: +- `gid` (String) The POSIX group ID used for all file system operations using this access point. - `secondary_gids` (List of String) Secondary POSIX group IDs used for all file system operations using this access point. +- `uid` (String) The POSIX user ID used for all file system operations using this access point. @@ -137,7 +134,7 @@ Optional: ### Nested Schema for `root_directory.creation_info` -Required: +Optional: - `owner_gid` (String) Specifies the POSIX group ID to apply to the ``RootDirectory``. Accepts values from 0 to 2^32 (4294967295). - `owner_uid` (String) Specifies the POSIX user ID to apply to the ``RootDirectory``. Accepts values from 0 to 2^32 (4294967295). diff --git a/docs/resources/efs_file_system.md b/docs/resources/efs_file_system.md index eb8a45012a..6f3d364a12 100644 --- a/docs/resources/efs_file_system.md +++ b/docs/resources/efs_file_system.md @@ -112,7 +112,7 @@ resource "awscc_efs_file_system" "this" { ### Nested Schema for `backup_policy` -Required: +Optional: - `status` (String) Set the backup policy status for the file system. + *ENABLED* - Turns automatic backups on for the file system. @@ -135,7 +135,7 @@ Optional: ### Nested Schema for `file_system_tags` -Required: +Optional: - `key` (String) The tag key (String). The key can't start with ``aws:``. - `value` (String) The value of the tag key. diff --git a/docs/resources/eks_access_entry.md b/docs/resources/eks_access_entry.md index 87bcff4b01..dabb75cfe4 100644 --- a/docs/resources/eks_access_entry.md +++ b/docs/resources/eks_access_entry.md @@ -71,7 +71,7 @@ variable "role_arn" { ### Nested Schema for `access_policies` -Required: +Optional: - `access_scope` (Attributes) The access scope of the access policy. (see [below for nested schema](#nestedatt--access_policies--access_scope)) - `policy_arn` (String) The ARN of the access policy to add to the access entry. @@ -79,20 +79,17 @@ Required: ### Nested Schema for `access_policies.access_scope` -Required: - -- `type` (String) The type of the access scope. - Optional: - `namespaces` (Set of String) The namespaces to associate with the access scope. Only specify if Type is set to 'namespace'. +- `type` (String) The type of the access scope. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/eks_addon.md b/docs/resources/eks_addon.md index 172dfa95ef..c4163325ee 100644 --- a/docs/resources/eks_addon.md +++ b/docs/resources/eks_addon.md @@ -38,7 +38,7 @@ Resource Schema for AWS::EKS::Addon ### Nested Schema for `pod_identity_associations` -Required: +Optional: - `role_arn` (String) The IAM role ARN that the pod identity association is created for. - `service_account` (String) The Kubernetes service account that the pod identity association is created for. @@ -47,7 +47,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/eks_cluster.md b/docs/resources/eks_cluster.md index 021e2b4a07..427f181ce3 100644 --- a/docs/resources/eks_cluster.md +++ b/docs/resources/eks_cluster.md @@ -316,14 +316,11 @@ Optional: ### Nested Schema for `outpost_config` -Required: - -- `control_plane_instance_type` (String) Specify the Instance type of the machines that should be used to create your cluster. -- `outpost_arns` (List of String) Specify one or more Arn(s) of Outpost(s) on which you would like to create your cluster. - Optional: +- `control_plane_instance_type` (String) Specify the Instance type of the machines that should be used to create your cluster. - `control_plane_placement` (Attributes) Specify the placement group of the control plane machines for your cluster. (see [below for nested schema](#nestedatt--outpost_config--control_plane_placement)) +- `outpost_arns` (List of String) Specify one or more Arn(s) of Outpost(s) on which you would like to create your cluster. ### Nested Schema for `outpost_config.control_plane_placement` @@ -337,7 +334,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/eks_fargate_profile.md b/docs/resources/eks_fargate_profile.md index 7c95170091..3707ead519 100644 --- a/docs/resources/eks_fargate_profile.md +++ b/docs/resources/eks_fargate_profile.md @@ -116,7 +116,7 @@ Optional: ### Nested Schema for `selectors.labels` -Required: +Optional: - `key` (String) The key name of the label. - `value` (String) The value for the label. @@ -126,7 +126,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/eks_identity_provider_config.md b/docs/resources/eks_identity_provider_config.md index 08822b77e4..1bf5ba2dc0 100644 --- a/docs/resources/eks_identity_provider_config.md +++ b/docs/resources/eks_identity_provider_config.md @@ -34,15 +34,12 @@ An object representing an Amazon EKS IdentityProviderConfig. ### Nested Schema for `oidc` -Required: - -- `client_id` (String) This is also known as audience. The ID for the client application that makes authentication requests to the OpenID identity provider. -- `issuer_url` (String) The URL of the OpenID identity provider that allows the API server to discover public signing keys for verifying tokens. - Optional: +- `client_id` (String) This is also known as audience. The ID for the client application that makes authentication requests to the OpenID identity provider. - `groups_claim` (String) The JWT claim that the provider uses to return your groups. - `groups_prefix` (String) The prefix that is prepended to group claims to prevent clashes with existing names (such as system: groups). +- `issuer_url` (String) The URL of the OpenID identity provider that allows the API server to discover public signing keys for verifying tokens. - `required_claims` (Attributes Set) (see [below for nested schema](#nestedatt--oidc--required_claims)) - `username_claim` (String) The JSON Web Token (JWT) claim to use as the username. The default is sub, which is expected to be a unique identifier of the end user. You can choose other claims, such as email or name, depending on the OpenID identity provider. Claims other than email are prefixed with the issuer URL to prevent naming clashes with other plug-ins. - `username_prefix` (String) The prefix that is prepended to username claims to prevent clashes with existing names. If you do not provide this field, and username is a value other than email, the prefix defaults to issuerurl#. You can use the value - to disable all prefixing. @@ -50,7 +47,7 @@ Optional: ### Nested Schema for `oidc.required_claims` -Required: +Optional: - `key` (String) The key of the requiredClaims. - `value` (String) The value for the requiredClaims. @@ -60,7 +57,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/eks_pod_identity_association.md b/docs/resources/eks_pod_identity_association.md index 737fc36a1c..f7ceac2974 100644 --- a/docs/resources/eks_pod_identity_association.md +++ b/docs/resources/eks_pod_identity_association.md @@ -35,7 +35,7 @@ An object representing an Amazon EKS PodIdentityAssociation. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/elasticache_parameter_group.md b/docs/resources/elasticache_parameter_group.md index 5454eff185..d737cf97fa 100644 --- a/docs/resources/elasticache_parameter_group.md +++ b/docs/resources/elasticache_parameter_group.md @@ -50,7 +50,7 @@ resource "awscc_elasticache_parameter_group" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/elasticache_serverless_cache.md b/docs/resources/elasticache_serverless_cache.md index b62272d812..6855aa67a6 100644 --- a/docs/resources/elasticache_serverless_cache.md +++ b/docs/resources/elasticache_serverless_cache.md @@ -143,14 +143,11 @@ Optional: ### Nested Schema for `cache_usage_limits.data_storage` -Required: - -- `unit` (String) The unit of cached data capacity of the Serverless Cache. - Optional: - `maximum` (Number) The maximum cached data capacity of the Serverless Cache. - `minimum` (Number) The minimum cached data capacity of the Serverless Cache. +- `unit` (String) The unit of cached data capacity of the Serverless Cache. @@ -184,12 +181,9 @@ Read-Only: ### Nested Schema for `tags` -Required: - -- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with 'aws:'. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - Optional: +- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with 'aws:'. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ## Import diff --git a/docs/resources/elasticache_subnet_group.md b/docs/resources/elasticache_subnet_group.md index 931c06024d..b33c48ddbb 100644 --- a/docs/resources/elasticache_subnet_group.md +++ b/docs/resources/elasticache_subnet_group.md @@ -70,7 +70,7 @@ resource "awscc_elasticache_subnet_group" "this" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/elasticache_user.md b/docs/resources/elasticache_user.md index b098ffc43a..c25f0a095f 100644 --- a/docs/resources/elasticache_user.md +++ b/docs/resources/elasticache_user.md @@ -96,24 +96,18 @@ resource "awscc_elasticache_user" "example" { ### Nested Schema for `authentication_mode` -Required: - -- `type` (String) Authentication Type - Optional: - `passwords` (List of String) Passwords used for this user account. You can create up to two passwords for each user. +- `type` (String) Authentication Type ### Nested Schema for `tags` -Required: - -- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with 'aws:'. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - Optional: +- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with 'aws:'. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ## Import diff --git a/docs/resources/elasticache_user_group.md b/docs/resources/elasticache_user_group.md index c79cf382c5..ddf6f27c81 100644 --- a/docs/resources/elasticache_user_group.md +++ b/docs/resources/elasticache_user_group.md @@ -83,12 +83,9 @@ resource "awscc_elasticache_user" "example2" { ### Nested Schema for `tags` -Required: - -- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with 'aws:'. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - Optional: +- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with 'aws:'. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ## Import diff --git a/docs/resources/elasticbeanstalk_configuration_template.md b/docs/resources/elasticbeanstalk_configuration_template.md index cec98a863f..39cd5b1489 100644 --- a/docs/resources/elasticbeanstalk_configuration_template.md +++ b/docs/resources/elasticbeanstalk_configuration_template.md @@ -90,13 +90,10 @@ Constraint: If both solution stack name and source configuration are specified, ### Nested Schema for `option_settings` -Required: +Optional: - `namespace` (String) A unique namespace that identifies the option's associated AWS resource. - `option_name` (String) The name of the configuration option. - -Optional: - - `resource_name` (String) A unique resource name for the option setting. Use it for a time–based scaling configuration option. - `value` (String) The current value for the configuration option. @@ -104,7 +101,7 @@ Optional: ### Nested Schema for `source_configuration` -Required: +Optional: - `application_name` (String) The name of the application associated with the configuration. - `template_name` (String) The name of the configuration template. diff --git a/docs/resources/elasticbeanstalk_environment.md b/docs/resources/elasticbeanstalk_environment.md index ea5a2c6859..94fe680188 100644 --- a/docs/resources/elasticbeanstalk_environment.md +++ b/docs/resources/elasticbeanstalk_environment.md @@ -64,13 +64,10 @@ resource "awscc_elasticbeanstalk_environment" "example-env" { ### Nested Schema for `option_settings` -Required: +Optional: - `namespace` (String) A unique namespace that identifies the option's associated AWS resource. - `option_name` (String) The name of the configuration option. - -Optional: - - `resource_name` (String) A unique resource name for the option setting. Use it for a time–based scaling configuration option. - `value` (String) The current value for the configuration option. @@ -78,7 +75,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. - `value` (String) The value for the tag. diff --git a/docs/resources/elasticloadbalancingv2_load_balancer.md b/docs/resources/elasticloadbalancingv2_load_balancer.md index 650eeee912..4bd60754fe 100644 --- a/docs/resources/elasticloadbalancingv2_load_balancer.md +++ b/docs/resources/elasticloadbalancingv2_load_balancer.md @@ -234,26 +234,20 @@ Optional: ### Nested Schema for `subnet_mappings` -Required: - -- `subnet_id` (String) The ID of the subnet. - Optional: - `allocation_id` (String) [Network Load Balancers] The allocation ID of the Elastic IP address for an internet-facing load balancer. - `i_pv_6_address` (String) [Network Load Balancers] The IPv6 address. - `private_i_pv_4_address` (String) [Network Load Balancers] The private IPv4 address for an internal load balancer. +- `subnet_id` (String) The ID of the subnet. ### Nested Schema for `tags` -Required: - -- `key` (String) The key of the tag. - Optional: +- `key` (String) The key of the tag. - `value` (String) The value of the tag. ## Import diff --git a/docs/resources/elasticloadbalancingv2_target_group.md b/docs/resources/elasticloadbalancingv2_target_group.md index 154d06d451..9d545a5f7c 100644 --- a/docs/resources/elasticloadbalancingv2_target_group.md +++ b/docs/resources/elasticloadbalancingv2_target_group.md @@ -126,7 +126,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The value for the tag. - `value` (String) The key name of the tag. @@ -144,13 +144,10 @@ Optional: ### Nested Schema for `targets` -Required: - -- `id` (String) The ID of the target. If the target type of the target group is instance, specify an instance ID. If the target type is ip, specify an IP address. If the target type is lambda, specify the ARN of the Lambda function. If the target type is alb, specify the ARN of the Application Load Balancer target. - Optional: - `availability_zone` (String) An Availability Zone or all. This determines whether the target receives traffic from the load balancer nodes in the specified Availability Zone or from all enabled Availability Zones for the load balancer. +- `id` (String) The ID of the target. If the target type of the target group is instance, specify an instance ID. If the target type is ip, specify an IP address. If the target type is lambda, specify the ARN of the Lambda function. If the target type is alb, specify the ARN of the Application Load Balancer target. - `port` (Number) The port on which the target is listening. If the target group protocol is GENEVE, the supported port is 6081. If the target type is alb, the targeted Application Load Balancer must have at least one listener whose port matches the target group port. Not used if the target is a Lambda function. ## Import diff --git a/docs/resources/elasticloadbalancingv2_trust_store.md b/docs/resources/elasticloadbalancingv2_trust_store.md index e82a5b61b1..2fca19c7ff 100644 --- a/docs/resources/elasticloadbalancingv2_trust_store.md +++ b/docs/resources/elasticloadbalancingv2_trust_store.md @@ -33,7 +33,7 @@ Resource Type definition for AWS::ElasticLoadBalancingV2::TrustStore ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/emr_studio.md b/docs/resources/emr_studio.md index 47c528bd17..2b819079cb 100644 --- a/docs/resources/emr_studio.md +++ b/docs/resources/emr_studio.md @@ -48,7 +48,7 @@ Resource schema for AWS::EMR::Studio ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 255 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/emr_wal_workspace.md b/docs/resources/emr_wal_workspace.md index 52b0c6c259..2e8f006856 100644 --- a/docs/resources/emr_wal_workspace.md +++ b/docs/resources/emr_wal_workspace.md @@ -27,7 +27,7 @@ Resource schema for AWS::EMR::WALWorkspace Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/emrserverless_application.md b/docs/resources/emrserverless_application.md index d2cda8e16b..0949fbe9fe 100644 --- a/docs/resources/emrserverless_application.md +++ b/docs/resources/emrserverless_application.md @@ -155,7 +155,7 @@ Optional: ### Nested Schema for `initial_capacity` -Required: +Optional: - `key` (String) Worker type for an analytics framework. - `value` (Attributes) (see [below for nested schema](#nestedatt--initial_capacity--value)) @@ -163,7 +163,7 @@ Required: ### Nested Schema for `initial_capacity.value` -Required: +Optional: - `worker_configuration` (Attributes) (see [below for nested schema](#nestedatt--initial_capacity--value--worker_configuration)) - `worker_count` (Number) Initial count of workers to be initialized when an Application is started. This count will be continued to be maintained until the Application is stopped @@ -171,14 +171,11 @@ Required: ### Nested Schema for `initial_capacity.value.worker_configuration` -Required: - -- `cpu` (String) Per worker CPU resource. vCPU is the only supported unit and specifying vCPU is optional. -- `memory` (String) Per worker memory resource. GB is the only supported unit and specifying GB is optional. - Optional: +- `cpu` (String) Per worker CPU resource. vCPU is the only supported unit and specifying vCPU is optional. - `disk` (String) Per worker Disk resource. GB is the only supported unit and specifying GB is optional +- `memory` (String) Per worker memory resource. GB is the only supported unit and specifying GB is optional. @@ -186,14 +183,11 @@ Optional: ### Nested Schema for `maximum_capacity` -Required: - -- `cpu` (String) Per worker CPU resource. vCPU is the only supported unit and specifying vCPU is optional. -- `memory` (String) Per worker memory resource. GB is the only supported unit and specifying GB is optional. - Optional: +- `cpu` (String) Per worker CPU resource. vCPU is the only supported unit and specifying vCPU is optional. - `disk` (String) Per worker Disk resource. GB is the only supported unit and specifying GB is optional +- `memory` (String) Per worker memory resource. GB is the only supported unit and specifying GB is optional. @@ -208,7 +202,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The value for the tag. You can specify a value that is 1 to 128 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/entityresolution_id_mapping_workflow.md b/docs/resources/entityresolution_id_mapping_workflow.md index f2b616a7a2..89f1d586f5 100644 --- a/docs/resources/entityresolution_id_mapping_workflow.md +++ b/docs/resources/entityresolution_id_mapping_workflow.md @@ -47,19 +47,16 @@ Optional: ### Nested Schema for `id_mapping_techniques.provider_properties` -Required: - -- `provider_service_arn` (String) Arn of the Provider Service being used. - Optional: - `intermediate_source_configuration` (Attributes) (see [below for nested schema](#nestedatt--id_mapping_techniques--provider_properties--intermediate_source_configuration)) - `provider_configuration` (Map of String) Additional Provider configuration that would be required for the provider service. The Configuration must be in JSON string format +- `provider_service_arn` (String) Arn of the Provider Service being used. ### Nested Schema for `id_mapping_techniques.provider_properties.intermediate_source_configuration` -Required: +Optional: - `intermediate_s3_path` (String) The s3 path that would be used to stage the intermediate data being generated during workflow execution. @@ -68,20 +65,17 @@ Required: ### Nested Schema for `id_mapping_techniques.rule_based_properties` -Required: +Optional: - `attribute_matching_model` (String) - `record_matching_model` (String) - -Optional: - - `rule_definition_type` (String) - `rules` (Attributes List) (see [below for nested schema](#nestedatt--id_mapping_techniques--rule_based_properties--rules)) ### Nested Schema for `id_mapping_techniques.rule_based_properties.rules` -Required: +Optional: - `matching_keys` (List of String) - `rule_name` (String) @@ -105,19 +99,16 @@ Optional: ### Nested Schema for `output_source_config` -Required: - -- `output_s3_path` (String) The S3 path to which Entity Resolution will write the output table - Optional: - `kms_arn` (String) +- `output_s3_path` (String) The S3 path to which Entity Resolution will write the output table ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/entityresolution_id_namespace.md b/docs/resources/entityresolution_id_namespace.md index 6cf49534e9..bac63a8454 100644 --- a/docs/resources/entityresolution_id_namespace.md +++ b/docs/resources/entityresolution_id_namespace.md @@ -38,25 +38,19 @@ IdNamespace defined in AWS Entity Resolution service ### Nested Schema for `id_mapping_workflow_properties` -Required: - -- `id_mapping_type` (String) - Optional: +- `id_mapping_type` (String) - `provider_properties` (Attributes) (see [below for nested schema](#nestedatt--id_mapping_workflow_properties--provider_properties)) - `rule_based_properties` (Attributes) (see [below for nested schema](#nestedatt--id_mapping_workflow_properties--rule_based_properties)) ### Nested Schema for `id_mapping_workflow_properties.provider_properties` -Required: - -- `provider_service_arn` (String) - Optional: - `provider_configuration` (Map of String) Additional Provider configuration that would be required for the provider service. The Configuration must be in JSON string format. +- `provider_service_arn` (String) @@ -72,7 +66,7 @@ Optional: ### Nested Schema for `id_mapping_workflow_properties.rule_based_properties.rules` -Required: +Optional: - `matching_keys` (List of String) - `rule_name` (String) @@ -83,19 +77,16 @@ Required: ### Nested Schema for `input_source_config` -Required: - -- `input_source_arn` (String) - Optional: +- `input_source_arn` (String) - `schema_name` (String) ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/entityresolution_matching_workflow.md b/docs/resources/entityresolution_matching_workflow.md index dbcf81bf74..dbf4002639 100644 --- a/docs/resources/entityresolution_matching_workflow.md +++ b/docs/resources/entityresolution_matching_workflow.md @@ -87,19 +87,16 @@ Optional: ### Nested Schema for `resolution_techniques.provider_properties` -Required: - -- `provider_service_arn` (String) Arn of the Provider service being used. - Optional: - `intermediate_source_configuration` (Attributes) (see [below for nested schema](#nestedatt--resolution_techniques--provider_properties--intermediate_source_configuration)) - `provider_configuration` (Map of String) Additional Provider configuration that would be required for the provider service. The Configuration must be in JSON string format +- `provider_service_arn` (String) Arn of the Provider service being used. ### Nested Schema for `resolution_techniques.provider_properties.intermediate_source_configuration` -Required: +Optional: - `intermediate_s3_path` (String) The s3 path that would be used to stage the intermediate data being generated during workflow execution. @@ -108,19 +105,16 @@ Required: ### Nested Schema for `resolution_techniques.rule_based_properties` -Required: - -- `attribute_matching_model` (String) -- `rules` (Attributes List) (see [below for nested schema](#nestedatt--resolution_techniques--rule_based_properties--rules)) - Optional: +- `attribute_matching_model` (String) - `match_purpose` (String) +- `rules` (Attributes List) (see [below for nested schema](#nestedatt--resolution_techniques--rule_based_properties--rules)) ### Nested Schema for `resolution_techniques.rule_based_properties.rules` -Required: +Optional: - `matching_keys` (List of String) - `rule_name` (String) @@ -131,7 +125,7 @@ Required: ### Nested Schema for `incremental_run_config` -Required: +Optional: - `incremental_run_type` (String) @@ -139,7 +133,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/entityresolution_schema_mapping.md b/docs/resources/entityresolution_schema_mapping.md index 0a4b8b1159..077ec69728 100644 --- a/docs/resources/entityresolution_schema_mapping.md +++ b/docs/resources/entityresolution_schema_mapping.md @@ -52,7 +52,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/events_endpoint.md b/docs/resources/events_endpoint.md index 902d4156a2..8446dfa118 100644 --- a/docs/resources/events_endpoint.md +++ b/docs/resources/events_endpoint.md @@ -80,7 +80,7 @@ Required: ### Nested Schema for `replication_config` -Required: +Optional: - `state` (String) diff --git a/docs/resources/events_event_bus.md b/docs/resources/events_event_bus.md index 60e4e9983d..9d9d397525 100644 --- a/docs/resources/events_event_bus.md +++ b/docs/resources/events_event_bus.md @@ -62,7 +62,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/events_rule.md b/docs/resources/events_rule.md index 00eae5c77a..5085d66959 100644 --- a/docs/resources/events_rule.md +++ b/docs/resources/events_rule.md @@ -35,18 +35,15 @@ Targets are the resources that are invoked when a rule is triggered. (see [below ### Nested Schema for `targets` -Required: - -- `arn` (String) -- `id` (String) - Optional: - `app_sync_parameters` (Attributes) (see [below for nested schema](#nestedatt--targets--app_sync_parameters)) +- `arn` (String) - `batch_parameters` (Attributes) (see [below for nested schema](#nestedatt--targets--batch_parameters)) - `dead_letter_config` (Attributes) (see [below for nested schema](#nestedatt--targets--dead_letter_config)) - `ecs_parameters` (Attributes) (see [below for nested schema](#nestedatt--targets--ecs_parameters)) - `http_parameters` (Attributes) (see [below for nested schema](#nestedatt--targets--http_parameters)) +- `id` (String) - `input` (String) - `input_path` (String) - `input_transformer` (Attributes) (see [below for nested schema](#nestedatt--targets--input_transformer)) @@ -61,7 +58,7 @@ Optional: ### Nested Schema for `targets.app_sync_parameters` -Required: +Optional: - `graph_ql_operation` (String) @@ -69,14 +66,11 @@ Required: ### Nested Schema for `targets.batch_parameters` -Required: - -- `job_definition` (String) -- `job_name` (String) - Optional: - `array_properties` (Attributes) (see [below for nested schema](#nestedatt--targets--batch_parameters--array_properties)) +- `job_definition` (String) +- `job_name` (String) - `retry_strategy` (Attributes) (see [below for nested schema](#nestedatt--targets--batch_parameters--retry_strategy)) @@ -107,10 +101,6 @@ Optional: ### Nested Schema for `targets.ecs_parameters` -Required: - -- `task_definition_arn` (String) - Optional: - `capacity_provider_strategy` (Attributes List) (see [below for nested schema](#nestedatt--targets--ecs_parameters--capacity_provider_strategy)) @@ -126,17 +116,15 @@ Optional: - `reference_id` (String) - `tag_list` (Attributes List) (see [below for nested schema](#nestedatt--targets--ecs_parameters--tag_list)) - `task_count` (Number) +- `task_definition_arn` (String) ### Nested Schema for `targets.ecs_parameters.capacity_provider_strategy` -Required: - -- `capacity_provider` (String) - Optional: - `base` (Number) +- `capacity_provider` (String) - `weight` (Number) @@ -150,14 +138,11 @@ Optional: ### Nested Schema for `targets.ecs_parameters.network_configuration.aws_vpc_configuration` -Required: - -- `subnets` (List of String) - Optional: - `assign_public_ip` (String) - `security_groups` (List of String) +- `subnets` (List of String) @@ -202,19 +187,16 @@ Optional: ### Nested Schema for `targets.input_transformer` -Required: - -- `input_template` (String) - Optional: - `input_paths_map` (Map of String) +- `input_template` (String) ### Nested Schema for `targets.kinesis_parameters` -Required: +Optional: - `partition_key_path` (String) @@ -222,12 +204,9 @@ Required: ### Nested Schema for `targets.redshift_data_parameters` -Required: - -- `database` (String) - Optional: +- `database` (String) - `db_user` (String) - `secret_manager_arn` (String) - `sql` (String) @@ -248,14 +227,14 @@ Optional: ### Nested Schema for `targets.run_command_parameters` -Required: +Optional: - `run_command_targets` (Attributes List) (see [below for nested schema](#nestedatt--targets--run_command_parameters--run_command_targets)) ### Nested Schema for `targets.run_command_parameters.run_command_targets` -Required: +Optional: - `key` (String) - `values` (List of String) @@ -272,7 +251,7 @@ Optional: ### Nested Schema for `targets.sage_maker_pipeline_parameters.pipeline_parameter_list` -Required: +Optional: - `name` (String) - `value` (String) @@ -282,7 +261,7 @@ Required: ### Nested Schema for `targets.sqs_parameters` -Required: +Optional: - `message_group_id` (String) diff --git a/docs/resources/eventschemas_discoverer.md b/docs/resources/eventschemas_discoverer.md index 2faf792b88..a0ed8b0489 100644 --- a/docs/resources/eventschemas_discoverer.md +++ b/docs/resources/eventschemas_discoverer.md @@ -35,7 +35,7 @@ Resource Type definition for AWS::EventSchemas::Discoverer ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/eventschemas_registry.md b/docs/resources/eventschemas_registry.md index 34291960cd..45e21b9ec6 100644 --- a/docs/resources/eventschemas_registry.md +++ b/docs/resources/eventschemas_registry.md @@ -29,7 +29,7 @@ Resource Type definition for AWS::EventSchemas::Registry ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/eventschemas_schema.md b/docs/resources/eventschemas_schema.md index 1373839f55..ebe65804da 100644 --- a/docs/resources/eventschemas_schema.md +++ b/docs/resources/eventschemas_schema.md @@ -38,7 +38,7 @@ Resource Type definition for AWS::EventSchemas::Schema ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/evidently_experiment.md b/docs/resources/evidently_experiment.md index 55e3672f29..c7a1a705d1 100644 --- a/docs/resources/evidently_experiment.md +++ b/docs/resources/evidently_experiment.md @@ -65,7 +65,7 @@ Optional: ### Nested Schema for `online_ab_config.treatment_weights` -Required: +Optional: - `split_weight` (Number) - `treatment` (String) @@ -100,7 +100,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/evidently_feature.md b/docs/resources/evidently_feature.md index f5fcf2d2e1..6740874cca 100644 --- a/docs/resources/evidently_feature.md +++ b/docs/resources/evidently_feature.md @@ -189,7 +189,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/evidently_launch.md b/docs/resources/evidently_launch.md index 26c597e7d4..900fd03a8f 100644 --- a/docs/resources/evidently_launch.md +++ b/docs/resources/evidently_launch.md @@ -73,7 +73,7 @@ Required: ### Nested Schema for `scheduled_splits_config.segment_overrides` -Required: +Optional: - `evaluation_order` (Number) - `segment` (String) @@ -82,7 +82,7 @@ Required: ### Nested Schema for `scheduled_splits_config.segment_overrides.weights` -Required: +Optional: - `group_name` (String) - `split_weight` (Number) @@ -93,35 +93,29 @@ Required: ### Nested Schema for `execution_status` -Required: - -- `status` (String) Provide START or STOP action to apply on a launch - Optional: - `desired_state` (String) Provide CANCELLED or COMPLETED as the launch desired state. Defaults to Completed if not provided. - `reason` (String) Provide a reason for stopping the launch. Defaults to empty if not provided. +- `status` (String) Provide START or STOP action to apply on a launch ### Nested Schema for `metric_monitors` -Required: - -- `entity_id_key` (String) The JSON path to reference the entity id in the event. -- `metric_name` (String) -- `value_key` (String) The JSON path to reference the numerical metric value in the event. - Optional: +- `entity_id_key` (String) The JSON path to reference the entity id in the event. - `event_pattern` (String) Event patterns have the same structure as the events they match. Rules use event patterns to select events. An event pattern either matches an event or it doesn't. +- `metric_name` (String) - `unit_label` (String) +- `value_key` (String) The JSON path to reference the numerical metric value in the event. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/evidently_project.md b/docs/resources/evidently_project.md index 4d1770c9f8..021b77151b 100644 --- a/docs/resources/evidently_project.md +++ b/docs/resources/evidently_project.md @@ -100,7 +100,7 @@ variable "destination_bucket_name" { ### Nested Schema for `app_config_resource` -Required: +Optional: - `application_id` (String) - `environment_id` (String) @@ -117,12 +117,9 @@ Optional: ### Nested Schema for `data_delivery.s3` -Required: - -- `bucket_name` (String) - Optional: +- `bucket_name` (String) - `prefix` (String) @@ -130,7 +127,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/evidently_segment.md b/docs/resources/evidently_segment.md index bdb96947ba..9eb2a2b70e 100644 --- a/docs/resources/evidently_segment.md +++ b/docs/resources/evidently_segment.md @@ -33,7 +33,7 @@ Resource Type definition for AWS::Evidently::Segment ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/finspace_environment.md b/docs/resources/finspace_environment.md index 1014d6e97d..071b174414 100644 --- a/docs/resources/finspace_environment.md +++ b/docs/resources/finspace_environment.md @@ -75,7 +75,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/fis_experiment_template.md b/docs/resources/fis_experiment_template.md index df6b72f1b2..f46eac7008 100644 --- a/docs/resources/fis_experiment_template.md +++ b/docs/resources/fis_experiment_template.md @@ -112,7 +112,7 @@ Optional: ### Nested Schema for `targets.filters` -Required: +Optional: - `path` (String) The attribute path for the filter. - `values` (List of String) The attribute values for the filter. @@ -143,19 +143,16 @@ Optional: ### Nested Schema for `log_configuration` -Required: - -- `log_schema_version` (Number) - Optional: - `cloudwatch_logs_configuration` (Attributes) (see [below for nested schema](#nestedatt--log_configuration--cloudwatch_logs_configuration)) +- `log_schema_version` (Number) - `s3_configuration` (Attributes) (see [below for nested schema](#nestedatt--log_configuration--s3_configuration)) ### Nested Schema for `log_configuration.cloudwatch_logs_configuration` -Required: +Optional: - `log_group_arn` (String) @@ -163,12 +160,9 @@ Required: ### Nested Schema for `log_configuration.s3_configuration` -Required: - -- `bucket_name` (String) - Optional: +- `bucket_name` (String) - `prefix` (String) ## Import diff --git a/docs/resources/fms_policy.md b/docs/resources/fms_policy.md index 66b78cd622..1a83f46110 100644 --- a/docs/resources/fms_policy.md +++ b/docs/resources/fms_policy.md @@ -65,43 +65,37 @@ Optional: ### Nested Schema for `security_service_policy_data.policy_option.network_acl_common_policy` -Required: +Optional: - `network_acl_entry_set` (Attributes) Network ACL entry set. (see [below for nested schema](#nestedatt--security_service_policy_data--policy_option--network_acl_common_policy--network_acl_entry_set)) ### Nested Schema for `security_service_policy_data.policy_option.network_acl_common_policy.network_acl_entry_set` -Required: - -- `force_remediate_for_first_entries` (Boolean) -- `force_remediate_for_last_entries` (Boolean) - Optional: - `first_entries` (Attributes List) NetworkAcl entry list. (see [below for nested schema](#nestedatt--security_service_policy_data--policy_option--network_acl_common_policy--network_acl_entry_set--first_entries)) +- `force_remediate_for_first_entries` (Boolean) +- `force_remediate_for_last_entries` (Boolean) - `last_entries` (Attributes List) NetworkAcl entry list. (see [below for nested schema](#nestedatt--security_service_policy_data--policy_option--network_acl_common_policy--network_acl_entry_set--last_entries)) ### Nested Schema for `security_service_policy_data.policy_option.network_acl_common_policy.network_acl_entry_set.first_entries` -Required: - -- `egress` (Boolean) Whether the entry is an egress entry. -- `protocol` (String) Protocol. -- `rule_action` (String) Rule Action. - Optional: - `cidr_block` (String) CIDR block. +- `egress` (Boolean) Whether the entry is an egress entry. - `icmp_type_code` (Attributes) ICMP type and code. (see [below for nested schema](#nestedatt--security_service_policy_data--policy_option--network_acl_common_policy--network_acl_entry_set--first_entries--icmp_type_code)) - `ipv_6_cidr_block` (String) IPv6 CIDR block. - `port_range` (Attributes) Port range. (see [below for nested schema](#nestedatt--security_service_policy_data--policy_option--network_acl_common_policy--network_acl_entry_set--first_entries--port_range)) +- `protocol` (String) Protocol. +- `rule_action` (String) Rule Action. ### Nested Schema for `security_service_policy_data.policy_option.network_acl_common_policy.network_acl_entry_set.first_entries.icmp_type_code` -Required: +Optional: - `code` (Number) Code. - `type` (Number) Type. @@ -110,7 +104,7 @@ Required: ### Nested Schema for `security_service_policy_data.policy_option.network_acl_common_policy.network_acl_entry_set.first_entries.port_range` -Required: +Optional: - `from` (Number) From Port. - `to` (Number) To Port. @@ -120,23 +114,20 @@ Required: ### Nested Schema for `security_service_policy_data.policy_option.network_acl_common_policy.network_acl_entry_set.last_entries` -Required: - -- `egress` (Boolean) Whether the entry is an egress entry. -- `protocol` (String) Protocol. -- `rule_action` (String) Rule Action. - Optional: - `cidr_block` (String) CIDR block. +- `egress` (Boolean) Whether the entry is an egress entry. - `icmp_type_code` (Attributes) ICMP type and code. (see [below for nested schema](#nestedatt--security_service_policy_data--policy_option--network_acl_common_policy--network_acl_entry_set--last_entries--icmp_type_code)) - `ipv_6_cidr_block` (String) IPv6 CIDR block. - `port_range` (Attributes) Port range. (see [below for nested schema](#nestedatt--security_service_policy_data--policy_option--network_acl_common_policy--network_acl_entry_set--last_entries--port_range)) +- `protocol` (String) Protocol. +- `rule_action` (String) Rule Action. ### Nested Schema for `security_service_policy_data.policy_option.network_acl_common_policy.network_acl_entry_set.last_entries.icmp_type_code` -Required: +Optional: - `code` (Number) Code. - `type` (Number) Type. @@ -145,7 +136,7 @@ Required: ### Nested Schema for `security_service_policy_data.policy_option.network_acl_common_policy.network_acl_entry_set.last_entries.port_range` -Required: +Optional: - `from` (Number) From Port. - `to` (Number) To Port. @@ -157,7 +148,7 @@ Required: ### Nested Schema for `security_service_policy_data.policy_option.network_firewall_policy` -Required: +Optional: - `firewall_deployment_model` (String) Firewall deployment mode. @@ -165,7 +156,7 @@ Required: ### Nested Schema for `security_service_policy_data.policy_option.third_party_firewall_policy` -Required: +Optional: - `firewall_deployment_model` (String) Firewall deployment mode. @@ -193,19 +184,16 @@ Optional: ### Nested Schema for `resource_tags` -Required: - -- `key` (String) - Optional: +- `key` (String) - `value` (String) ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/fms_resource_set.md b/docs/resources/fms_resource_set.md index e8c98914cf..d784e96a41 100644 --- a/docs/resources/fms_resource_set.md +++ b/docs/resources/fms_resource_set.md @@ -34,7 +34,7 @@ Creates an AWS Firewall Manager resource set. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/forecast_dataset.md b/docs/resources/forecast_dataset.md index e1e89a789a..f85f40769b 100644 --- a/docs/resources/forecast_dataset.md +++ b/docs/resources/forecast_dataset.md @@ -62,7 +62,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/forecast_dataset_group.md b/docs/resources/forecast_dataset_group.md index e3a7ed96dc..af88262206 100644 --- a/docs/resources/forecast_dataset_group.md +++ b/docs/resources/forecast_dataset_group.md @@ -33,7 +33,7 @@ Represents a dataset group that holds a collection of related datasets ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/frauddetector_detector.md b/docs/resources/frauddetector_detector.md index 09f6993fa8..482fa0d800 100644 --- a/docs/resources/frauddetector_detector.md +++ b/docs/resources/frauddetector_detector.md @@ -72,7 +72,7 @@ Optional: ### Nested Schema for `event_type.entity_types.tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -99,7 +99,7 @@ Optional: ### Nested Schema for `event_type.event_variables.tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -122,7 +122,7 @@ Optional: ### Nested Schema for `event_type.labels.tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -132,7 +132,7 @@ Required: ### Nested Schema for `event_type.tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -172,7 +172,7 @@ Optional: ### Nested Schema for `rules.outcomes.tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -182,7 +182,7 @@ Required: ### Nested Schema for `rules.tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -200,7 +200,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/frauddetector_entity_type.md b/docs/resources/frauddetector_entity_type.md index 68b1928e34..c81583ca70 100644 --- a/docs/resources/frauddetector_entity_type.md +++ b/docs/resources/frauddetector_entity_type.md @@ -34,7 +34,7 @@ An entity type for fraud detector. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/frauddetector_event_type.md b/docs/resources/frauddetector_event_type.md index a2b2b0687a..b70f37fa36 100644 --- a/docs/resources/frauddetector_event_type.md +++ b/docs/resources/frauddetector_event_type.md @@ -50,7 +50,7 @@ Optional: ### Nested Schema for `entity_types.tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -77,7 +77,7 @@ Optional: ### Nested Schema for `event_variables.tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -100,7 +100,7 @@ Optional: ### Nested Schema for `labels.tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -110,7 +110,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/frauddetector_label.md b/docs/resources/frauddetector_label.md index 056f3bacdd..e89f58a0ad 100644 --- a/docs/resources/frauddetector_label.md +++ b/docs/resources/frauddetector_label.md @@ -34,7 +34,7 @@ An label for fraud detector. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/frauddetector_list.md b/docs/resources/frauddetector_list.md index a4c5dcc2d7..65b66d54a6 100644 --- a/docs/resources/frauddetector_list.md +++ b/docs/resources/frauddetector_list.md @@ -36,7 +36,7 @@ A resource schema for a List in Amazon Fraud Detector. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/frauddetector_outcome.md b/docs/resources/frauddetector_outcome.md index ca6a5f08a2..545ad1f0e3 100644 --- a/docs/resources/frauddetector_outcome.md +++ b/docs/resources/frauddetector_outcome.md @@ -34,7 +34,7 @@ An outcome for rule evaluation. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/frauddetector_variable.md b/docs/resources/frauddetector_variable.md index 7a6f11d449..7500a4b6b1 100644 --- a/docs/resources/frauddetector_variable.md +++ b/docs/resources/frauddetector_variable.md @@ -38,7 +38,7 @@ A resource schema for a Variable in Amazon Fraud Detector. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/fsx_data_repository_association.md b/docs/resources/fsx_data_repository_association.md index b33b0b2237..e7b5c3ad95 100644 --- a/docs/resources/fsx_data_repository_association.md +++ b/docs/resources/fsx_data_repository_association.md @@ -53,7 +53,7 @@ Optional: ### Nested Schema for `s3.auto_export_policy` -Required: +Optional: - `events` (Set of String) The ``AutoExportPolicy`` can have the following event values: + ``NEW`` - New files and directories are automatically exported to the data repository as they are added to the file system. @@ -66,7 +66,7 @@ Required: ### Nested Schema for `s3.auto_import_policy` -Required: +Optional: - `events` (Set of String) The ``AutoImportPolicy`` can have the following event values: + ``NEW`` - Amazon FSx automatically imports metadata of files added to the linked S3 bucket that do not currently exist in the FSx file system. @@ -80,7 +80,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) A value that specifies the ``TagKey``, the name of the tag. Tag keys must be unique for the resource to which they are attached. - `value` (String) A value that specifies the ``TagValue``, the value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key-value pair in a tag set of ``finances : April`` and also of ``payroll : April``. diff --git a/docs/resources/gamelift_build.md b/docs/resources/gamelift_build.md index d33a4143a3..f0da5608c9 100644 --- a/docs/resources/gamelift_build.md +++ b/docs/resources/gamelift_build.md @@ -93,15 +93,12 @@ resource "aws_iam_policy" "example" { ### Nested Schema for `storage_location` -Required: +Optional: - `bucket` (String) An Amazon S3 bucket identifier. This is the name of the S3 bucket. - `key` (String) The name of the zip file that contains the build files or script files. -- `role_arn` (String) The Amazon Resource Name (ARN) for an IAM role that allows Amazon GameLift to access the S3 bucket. - -Optional: - - `object_version` (String) The version of the file, if object versioning is turned on for the bucket. Amazon GameLift uses this information when retrieving files from your S3 bucket. To retrieve a specific version of the file, provide an object version. To retrieve the latest version of the file, do not set this parameter. +- `role_arn` (String) The Amazon Resource Name (ARN) for an IAM role that allows Amazon GameLift to access the S3 bucket. ## Import diff --git a/docs/resources/gamelift_container_group_definition.md b/docs/resources/gamelift_container_group_definition.md index 9068378042..260dd87129 100644 --- a/docs/resources/gamelift_container_group_definition.md +++ b/docs/resources/gamelift_container_group_definition.md @@ -59,7 +59,7 @@ Optional: ### Nested Schema for `container_definitions.depends_on` -Required: +Optional: - `condition` (String) The type of dependency. - `container_name` (String) A descriptive label for the container definition. The container being defined depends on this container's condition. @@ -68,7 +68,7 @@ Required: ### Nested Schema for `container_definitions.environment` -Required: +Optional: - `name` (String) The environment variable name. - `value` (String) The environment variable value. @@ -77,12 +77,9 @@ Required: ### Nested Schema for `container_definitions.health_check` -Required: - -- `command` (List of String) A string array representing the command that the container runs to determine if it is healthy. - Optional: +- `command` (List of String) A string array representing the command that the container runs to determine if it is healthy. - `interval` (Number) How often (in seconds) the health is checked. - `retries` (Number) How many times the process manager will retry the command after a timeout. (The first run of the command does not count as a retry.) - `start_period` (Number) The optional grace period (in seconds) to give a container time to boostrap before teh health check is declared failed. @@ -101,14 +98,14 @@ Optional: ### Nested Schema for `container_definitions.port_configuration` -Required: +Optional: - `container_port_ranges` (Attributes Set) Specifies one or more ranges of ports on a container. (see [below for nested schema](#nestedatt--container_definitions--port_configuration--container_port_ranges)) ### Nested Schema for `container_definitions.port_configuration.container_port_ranges` -Required: +Optional: - `from_port` (Number) A starting value for the range of allowed port numbers. - `protocol` (String) Defines the protocol of these ports. @@ -120,7 +117,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. diff --git a/docs/resources/gamelift_fleet.md b/docs/resources/gamelift_fleet.md index 1aac1e33df..1d0e9d5535 100644 --- a/docs/resources/gamelift_fleet.md +++ b/docs/resources/gamelift_fleet.md @@ -146,7 +146,7 @@ Note: It is not currently possible to use the !Ref command to reference a script ### Nested Schema for `anywhere_configuration` -Required: +Optional: - `cost` (String) Cost of compute can be specified on Anywhere Fleets to prioritize placement across Queue destinations based on Cost. @@ -154,7 +154,7 @@ Required: ### Nested Schema for `certificate_configuration` -Required: +Optional: - `certificate_type` (String) @@ -162,19 +162,16 @@ Required: ### Nested Schema for `container_groups_configuration` -Required: +Optional: - `connection_port_range` (Attributes) Defines the range of ports on the instance that allow inbound traffic to connect with containers in a fleet. (see [below for nested schema](#nestedatt--container_groups_configuration--connection_port_range)) - `container_group_definition_names` (List of String) The names of the container group definitions that will be created in an instance. You must specify exactly one REPLICA container group. You have the option to also specify one DAEMON container group. - -Optional: - - `container_groups_per_instance` (Attributes) The number of container groups per instance. (see [below for nested schema](#nestedatt--container_groups_configuration--container_groups_per_instance)) ### Nested Schema for `container_groups_configuration.connection_port_range` -Required: +Optional: - `from_port` (Number) A starting value for a range of allowed port numbers. - `to_port` (Number) An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than FromPort. @@ -196,7 +193,7 @@ Read-Only: ### Nested Schema for `ec2_inbound_permissions` -Required: +Optional: - `from_port` (Number) A starting value for a range of allowed port numbers. - `ip_range` (String) A range of allowed IP addresses. This value must be expressed in CIDR notation. Example: "000.000.000.000/[subnet mask]" or optionally the shortened version "0.0.0.0/[subnet mask]". @@ -207,18 +204,15 @@ Required: ### Nested Schema for `locations` -Required: - -- `location` (String) - Optional: +- `location` (String) - `location_capacity` (Attributes) Current resource capacity settings in a specified fleet or location. The location value might refer to a fleet's remote location or its home Region. (see [below for nested schema](#nestedatt--locations--location_capacity)) ### Nested Schema for `locations.location_capacity` -Required: +Optional: - `desired_ec2_instances` (Number) The number of EC2 instances you want to maintain in the specified fleet location. This value must fall between the minimum and maximum size limits. - `max_size` (Number) The maximum value that is allowed for the fleet's instance count for a location. When creating a new fleet, GameLift automatically sets this value to "1". Once the fleet is active, you can change this value. @@ -247,7 +241,7 @@ Optional: ### Nested Schema for `runtime_configuration.server_processes` -Required: +Optional: - `concurrent_executions` (Number) The number of server processes that use this configuration to run concurrently on an instance. - `launch_path` (String) The location of the server executable in a custom game build or the name of the Realtime script file that contains the Init() function. Game builds and Realtime scripts are installed on instances at the root: @@ -255,9 +249,6 @@ Required: Windows (for custom game builds only): C:\game. Example: "C:\game\MyGame\server.exe" Linux: /local/game. Examples: "/local/game/MyGame/server.exe" or "/local/game/MyRealtimeScript.js" - -Optional: - - `parameters` (String) An optional list of parameters to pass to the server executable or Realtime script on launch. @@ -265,16 +256,13 @@ Optional: ### Nested Schema for `scaling_policies` -Required: - -- `metric_name` (String) Name of the Amazon GameLift-defined metric that is used to trigger a scaling adjustment. -- `name` (String) A descriptive label that is associated with a fleet's scaling policy. Policy names do not need to be unique. - Optional: - `comparison_operator` (String) Comparison operator to use when measuring a metric against the threshold value. - `evaluation_periods` (Number) Length of time (in minutes) the metric must be at or beyond the threshold before a scaling event is triggered. - `location` (String) +- `metric_name` (String) Name of the Amazon GameLift-defined metric that is used to trigger a scaling adjustment. +- `name` (String) A descriptive label that is associated with a fleet's scaling policy. Policy names do not need to be unique. - `policy_type` (String) The type of scaling policy to create. For a target-based policy, set the parameter MetricName to 'PercentAvailableGameSessions' and specify a TargetConfiguration. For a rule-based policy set the following parameters: MetricName, ComparisonOperator, Threshold, EvaluationPeriods, ScalingAdjustmentType, and ScalingAdjustment. - `scaling_adjustment` (Number) Amount of adjustment to make, based on the scaling adjustment type. - `scaling_adjustment_type` (String) The type of adjustment to make to a fleet's instance count. @@ -286,7 +274,7 @@ Optional: ### Nested Schema for `scaling_policies.target_configuration` -Required: +Optional: - `target_value` (Number) Desired value to use with a target-based scaling policy. The value must be relevant for whatever metric the scaling policy is using. For example, in a policy using the metric PercentAvailableGameSessions, the target value should be the preferred size of the fleet's buffer (the percent of capacity that should be idle and ready for new game sessions). diff --git a/docs/resources/gamelift_game_server_group.md b/docs/resources/gamelift_game_server_group.md index 32a3f65bd3..83bca72fff 100644 --- a/docs/resources/gamelift_game_server_group.md +++ b/docs/resources/gamelift_game_server_group.md @@ -132,18 +132,15 @@ Optional: ### Nested Schema for `auto_scaling_policy` -Required: - -- `target_tracking_configuration` (Attributes) Settings for a target-based scaling policy applied to Auto Scaling group. (see [below for nested schema](#nestedatt--auto_scaling_policy--target_tracking_configuration)) - Optional: - `estimated_instance_warmup` (Number) Length of time, in seconds, it takes for a new instance to start new game server processes and register with GameLift FleetIQ. +- `target_tracking_configuration` (Attributes) Settings for a target-based scaling policy applied to Auto Scaling group. (see [below for nested schema](#nestedatt--auto_scaling_policy--target_tracking_configuration)) ### Nested Schema for `auto_scaling_policy.target_tracking_configuration` -Required: +Optional: - `target_value` (Number) Desired value to use with a game server group target-based scaling policy. diff --git a/docs/resources/gamelift_game_session_queue.md b/docs/resources/gamelift_game_session_queue.md index 2e76ac309c..783b836efe 100644 --- a/docs/resources/gamelift_game_session_queue.md +++ b/docs/resources/gamelift_game_session_queue.md @@ -86,7 +86,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length. - `value` (String) The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length. diff --git a/docs/resources/gamelift_location.md b/docs/resources/gamelift_location.md index 895f99d495..cf2fdd4259 100644 --- a/docs/resources/gamelift_location.md +++ b/docs/resources/gamelift_location.md @@ -43,7 +43,7 @@ resource "awscc_gamelift_location" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. diff --git a/docs/resources/gamelift_matchmaking_configuration.md b/docs/resources/gamelift_matchmaking_configuration.md index 1cb35a8626..11ceceef37 100644 --- a/docs/resources/gamelift_matchmaking_configuration.md +++ b/docs/resources/gamelift_matchmaking_configuration.md @@ -122,7 +122,7 @@ resource "awscc_gamelift_matchmaking_configuration" "example" { ### Nested Schema for `game_properties` -Required: +Optional: - `key` (String) The game property identifier. - `value` (String) The game property value. @@ -131,7 +131,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. diff --git a/docs/resources/gamelift_matchmaking_rule_set.md b/docs/resources/gamelift_matchmaking_rule_set.md index c90049c9f4..3c4dbe86a1 100644 --- a/docs/resources/gamelift_matchmaking_rule_set.md +++ b/docs/resources/gamelift_matchmaking_rule_set.md @@ -84,7 +84,7 @@ resource "awscc_gamelift_matchmaking_rule_set" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length. - `value` (String) The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length. diff --git a/docs/resources/gamelift_script.md b/docs/resources/gamelift_script.md index c4b379921d..168b214fe4 100644 --- a/docs/resources/gamelift_script.md +++ b/docs/resources/gamelift_script.md @@ -111,7 +111,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. diff --git a/docs/resources/globalaccelerator_accelerator.md b/docs/resources/globalaccelerator_accelerator.md index 5615e46d27..541a140496 100644 --- a/docs/resources/globalaccelerator_accelerator.md +++ b/docs/resources/globalaccelerator_accelerator.md @@ -50,7 +50,7 @@ resource "awscc_globalaccelerator_accelerator" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) Key of the tag. Value can be 1 to 127 characters. - `value` (String) Value for the tag. Value can be 1 to 255 characters. diff --git a/docs/resources/globalaccelerator_cross_account_attachment.md b/docs/resources/globalaccelerator_cross_account_attachment.md index 1404fbd425..d4d113f3dc 100644 --- a/docs/resources/globalaccelerator_cross_account_attachment.md +++ b/docs/resources/globalaccelerator_cross_account_attachment.md @@ -43,7 +43,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) Key of the tag. Value can be 1 to 127 characters. - `value` (String) Value for the tag. Value can be 1 to 255 characters. diff --git a/docs/resources/globalaccelerator_endpoint_group.md b/docs/resources/globalaccelerator_endpoint_group.md index 687e94721b..9066bf7937 100644 --- a/docs/resources/globalaccelerator_endpoint_group.md +++ b/docs/resources/globalaccelerator_endpoint_group.md @@ -79,21 +79,18 @@ resource "awscc_globalaccelerator_endpoint_group" "example" { ### Nested Schema for `endpoint_configurations` -Required: - -- `endpoint_id` (String) Id of the endpoint. For Network/Application Load Balancer this value is the ARN. For EIP, this value is the allocation ID. For EC2 instances, this is the EC2 instance ID - Optional: - `attachment_arn` (String) Attachment ARN that provides access control to the cross account endpoint. Not required for resources hosted in the same account as the endpoint group. - `client_ip_preservation_enabled` (Boolean) true if client ip should be preserved +- `endpoint_id` (String) Id of the endpoint. For Network/Application Load Balancer this value is the ARN. For EIP, this value is the allocation ID. For EC2 instances, this is the EC2 instance ID - `weight` (Number) The weight for the endpoint. ### Nested Schema for `port_overrides` -Required: +Optional: - `endpoint_port` (Number) A network port number - `listener_port` (Number) A network port number diff --git a/docs/resources/glue_registry.md b/docs/resources/glue_registry.md index fa7225fd41..bc4bb19810 100644 --- a/docs/resources/glue_registry.md +++ b/docs/resources/glue_registry.md @@ -46,7 +46,7 @@ resource "awscc_glue_registry" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) A key to identify the tag. - `value` (String) Corresponding tag value for the key. diff --git a/docs/resources/glue_schema.md b/docs/resources/glue_schema.md index 0c3bd48e8f..2a6eced120 100644 --- a/docs/resources/glue_schema.md +++ b/docs/resources/glue_schema.md @@ -86,7 +86,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) A key to identify the tag. - `value` (String) Corresponding tag value for the key. diff --git a/docs/resources/glue_trigger.md b/docs/resources/glue_trigger.md index 56591fd020..9a3e44e433 100644 --- a/docs/resources/glue_trigger.md +++ b/docs/resources/glue_trigger.md @@ -94,12 +94,9 @@ Optional: ### Nested Schema for `event_batching_condition` -Required: - -- `batch_size` (Number) Number of events that must be received from Amazon EventBridge before EventBridge event trigger fires. - Optional: +- `batch_size` (Number) Number of events that must be received from Amazon EventBridge before EventBridge event trigger fires. - `batch_window` (Number) Window of time in seconds after which EventBridge event trigger fires. Window starts when first event is received. diff --git a/docs/resources/grafana_workspace.md b/docs/resources/grafana_workspace.md index 073e8bf791..36f0141902 100644 --- a/docs/resources/grafana_workspace.md +++ b/docs/resources/grafana_workspace.md @@ -156,26 +156,14 @@ Optional: ### Nested Schema for `saml_configuration` -Required: - -- `idp_metadata` (Attributes) IdP Metadata used to configure SAML authentication in Grafana. (see [below for nested schema](#nestedatt--saml_configuration--idp_metadata)) - Optional: - `allowed_organizations` (List of String) List of SAML organizations allowed to access Grafana. - `assertion_attributes` (Attributes) Maps Grafana friendly names to the IdPs SAML attributes. (see [below for nested schema](#nestedatt--saml_configuration--assertion_attributes)) +- `idp_metadata` (Attributes) IdP Metadata used to configure SAML authentication in Grafana. (see [below for nested schema](#nestedatt--saml_configuration--idp_metadata)) - `login_validity_duration` (Number) The maximum lifetime an authenticated user can be logged in (in minutes) before being required to re-authenticate. - `role_values` (Attributes) Maps SAML roles to the Grafana Editor and Admin roles. (see [below for nested schema](#nestedatt--saml_configuration--role_values)) - -### Nested Schema for `saml_configuration.idp_metadata` - -Optional: - -- `url` (String) URL that vends the IdPs metadata. -- `xml` (String) XML blob of the IdPs metadata. - - ### Nested Schema for `saml_configuration.assertion_attributes` @@ -189,6 +177,15 @@ Optional: - `role` (String) Name of the attribute within the SAML assert to use as the users roles in Grafana. + +### Nested Schema for `saml_configuration.idp_metadata` + +Optional: + +- `url` (String) URL that vends the IdPs metadata. +- `xml` (String) XML blob of the IdPs metadata. + + ### Nested Schema for `saml_configuration.role_values` @@ -202,7 +199,7 @@ Optional: ### Nested Schema for `vpc_configuration` -Required: +Optional: - `security_group_ids` (Set of String) The list of Amazon EC2 security group IDs attached to the Amazon VPC for your Grafana workspace to connect. - `subnet_ids` (Set of String) The list of Amazon EC2 subnet IDs created in the Amazon VPC for your Grafana workspace to connect. diff --git a/docs/resources/greengrassv2_deployment.md b/docs/resources/greengrassv2_deployment.md index b09cfba41b..6bc285d2fb 100644 --- a/docs/resources/greengrassv2_deployment.md +++ b/docs/resources/greengrassv2_deployment.md @@ -110,14 +110,14 @@ Optional: ### Nested Schema for `iot_job_configuration.abort_config` -Required: +Optional: - `criteria_list` (Attributes List) (see [below for nested schema](#nestedatt--iot_job_configuration--abort_config--criteria_list)) ### Nested Schema for `iot_job_configuration.abort_config.criteria_list` -Required: +Optional: - `action` (String) - `failure_type` (String) @@ -137,7 +137,7 @@ Optional: ### Nested Schema for `iot_job_configuration.job_executions_rollout_config.exponential_rate` -Required: +Optional: - `base_rate_per_minute` (Number) - `increment_factor` (Number) diff --git a/docs/resources/groundstation_dataflow_endpoint_group.md b/docs/resources/groundstation_dataflow_endpoint_group.md index 95980cee91..76da89e3b2 100644 --- a/docs/resources/groundstation_dataflow_endpoint_group.md +++ b/docs/resources/groundstation_dataflow_endpoint_group.md @@ -130,7 +130,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/groundstation_mission_profile.md b/docs/resources/groundstation_mission_profile.md index a625d6b59a..facf7ce88a 100644 --- a/docs/resources/groundstation_mission_profile.md +++ b/docs/resources/groundstation_mission_profile.md @@ -58,7 +58,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/guardduty_detector.md b/docs/resources/guardduty_detector.md index e2051e48e2..c51fbc9ee7 100644 --- a/docs/resources/guardduty_detector.md +++ b/docs/resources/guardduty_detector.md @@ -74,14 +74,14 @@ Optional: ### Nested Schema for `data_sources.kubernetes` -Required: +Optional: - `audit_logs` (Attributes) (see [below for nested schema](#nestedatt--data_sources--kubernetes--audit_logs)) ### Nested Schema for `data_sources.kubernetes.audit_logs` -Required: +Optional: - `enable` (Boolean) @@ -106,7 +106,7 @@ Optional: ### Nested Schema for `data_sources.s3_logs` -Required: +Optional: - `enable` (Boolean) @@ -115,14 +115,11 @@ Required: ### Nested Schema for `features` -Required: - -- `name` (String) -- `status` (String) - Optional: - `additional_configuration` (Attributes List) (see [below for nested schema](#nestedatt--features--additional_configuration)) +- `name` (String) +- `status` (String) ### Nested Schema for `features.additional_configuration` @@ -137,7 +134,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/guardduty_filter.md b/docs/resources/guardduty_filter.md index 64d85b6f7d..d26b22583e 100644 --- a/docs/resources/guardduty_filter.md +++ b/docs/resources/guardduty_filter.md @@ -62,7 +62,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/guardduty_ip_set.md b/docs/resources/guardduty_ip_set.md index ad92d5d339..d9c4d9868a 100644 --- a/docs/resources/guardduty_ip_set.md +++ b/docs/resources/guardduty_ip_set.md @@ -35,7 +35,7 @@ Resource Type definition for AWS::GuardDuty::IPSet ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/guardduty_malware_protection_plan.md b/docs/resources/guardduty_malware_protection_plan.md index fa2ea5cd20..b16a7f4a5e 100644 --- a/docs/resources/guardduty_malware_protection_plan.md +++ b/docs/resources/guardduty_malware_protection_plan.md @@ -70,7 +70,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/guardduty_threat_intel_set.md b/docs/resources/guardduty_threat_intel_set.md index ad29aec328..38bd389e2e 100644 --- a/docs/resources/guardduty_threat_intel_set.md +++ b/docs/resources/guardduty_threat_intel_set.md @@ -35,7 +35,7 @@ Resource Type definition for AWS::GuardDuty::ThreatIntelSet ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/healthlake_fhir_datastore.md b/docs/resources/healthlake_fhir_datastore.md index 0bc0448b8f..62d81ccaf5 100644 --- a/docs/resources/healthlake_fhir_datastore.md +++ b/docs/resources/healthlake_fhir_datastore.md @@ -59,12 +59,9 @@ resource "awscc_healthlake_fhir_datastore" "example" { ### Nested Schema for `identity_provider_configuration` -Required: - -- `authorization_strategy` (String) Type of Authorization Strategy. The two types of supported Authorization strategies are SMART_ON_FHIR_V1 and AWS_AUTH. - Optional: +- `authorization_strategy` (String) Type of Authorization Strategy. The two types of supported Authorization strategies are SMART_ON_FHIR_V1 and AWS_AUTH. - `fine_grained_authorization_enabled` (Boolean) Flag to indicate if fine-grained authorization will be enabled for the datastore - `idp_lambda_arn` (String) The Amazon Resource Name (ARN) of the Lambda function that will be used to decode the access token created by the authorization server. - `metadata` (String) The JSON metadata elements for identity provider configuration. @@ -73,7 +70,7 @@ Optional: ### Nested Schema for `preload_data_config` -Required: +Optional: - `preload_data_type` (String) The type of preloaded data. Only Synthea preloaded data is supported. @@ -81,19 +78,16 @@ Required: ### Nested Schema for `sse_configuration` -Required: +Optional: - `kms_encryption_config` (Attributes) The customer-managed-key (CMK) used when creating a Data Store. If a customer owned key is not specified, an AWS owned key will be used for encryption. (see [below for nested schema](#nestedatt--sse_configuration--kms_encryption_config)) ### Nested Schema for `sse_configuration.kms_encryption_config` -Required: - -- `cmk_type` (String) The type of customer-managed-key (CMK) used for encryption. The two types of supported CMKs are customer owned CMKs and AWS owned CMKs. - Optional: +- `cmk_type` (String) The type of customer-managed-key (CMK) used for encryption. The two types of supported CMKs are customer owned CMKs and AWS owned CMKs. - `kms_key_id` (String) The KMS encryption key id/alias used to encrypt the Data Store contents at rest. @@ -101,7 +95,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key of the tag. - `value` (String) The value of the tag. diff --git a/docs/resources/iam_group.md b/docs/resources/iam_group.md index a9e585b716..534f615924 100644 --- a/docs/resources/iam_group.md +++ b/docs/resources/iam_group.md @@ -50,7 +50,7 @@ resource "awscc_iam_group" "example" { ### Nested Schema for `policies` -Required: +Optional: - `policy_document` (String) The policy document. - `policy_name` (String) The friendly name (not ARN) identifying the policy. diff --git a/docs/resources/iam_oidc_provider.md b/docs/resources/iam_oidc_provider.md index 74309febfc..ff3fb071fa 100644 --- a/docs/resources/iam_oidc_provider.md +++ b/docs/resources/iam_oidc_provider.md @@ -53,7 +53,7 @@ resource "awscc_iam_oidc_provider" "this" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/iam_role.md b/docs/resources/iam_role.md index cf03a2ffee..78e49b3c18 100644 --- a/docs/resources/iam_role.md +++ b/docs/resources/iam_role.md @@ -334,7 +334,7 @@ resource "awscc_iam_role" "main" { ### Nested Schema for `policies` -Required: +Optional: - `policy_document` (String) The entire contents of the policy that defines permissions. For more information, see [Overview of JSON policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#access_policies-json). - `policy_name` (String) The friendly name (not ARN) identifying the policy. @@ -343,7 +343,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name that can be used to look up or retrieve the associated value. For example, ``Department`` or ``Cost Center`` are common choices. - `value` (String) The value associated with this tag. For example, tags with a key name of ``Department`` could have values such as ``Human Resources``, ``Accounting``, and ``Support``. Tags with a key name of ``Cost Center`` might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values. diff --git a/docs/resources/iam_saml_provider.md b/docs/resources/iam_saml_provider.md index c4d2d3873a..3703698dc5 100644 --- a/docs/resources/iam_saml_provider.md +++ b/docs/resources/iam_saml_provider.md @@ -43,7 +43,7 @@ resource "awscc_iam_saml_provider" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/iam_server_certificate.md b/docs/resources/iam_server_certificate.md index 312c5a9b05..81afe58e33 100644 --- a/docs/resources/iam_server_certificate.md +++ b/docs/resources/iam_server_certificate.md @@ -32,7 +32,7 @@ Resource Type definition for AWS::IAM::ServerCertificate ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/iam_user.md b/docs/resources/iam_user.md index ab0e3ae4cb..40a356ff8c 100644 --- a/docs/resources/iam_user.md +++ b/docs/resources/iam_user.md @@ -93,19 +93,16 @@ resource "awscc_iam_user" "sample_user" { ### Nested Schema for `login_profile` -Required: - -- `password` (String) The user's password. - Optional: +- `password` (String) The user's password. - `password_reset_required` (Boolean) Specifies whether the user is required to set a new password on next sign-in. ### Nested Schema for `policies` -Required: +Optional: - `policy_document` (String) The entire contents of the policy that defines permissions. For more information, see [Overview of JSON policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#access_policies-json). - `policy_name` (String) The friendly name (not ARN) identifying the policy. @@ -114,7 +111,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name that can be used to look up or retrieve the associated value. For example, ``Department`` or ``Cost Center`` are common choices. - `value` (String) The value associated with this tag. For example, tags with a key name of ``Department`` could have values such as ``Human Resources``, ``Accounting``, and ``Support``. Tags with a key name of ``Cost Center`` might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values. diff --git a/docs/resources/iam_virtual_mfa_device.md b/docs/resources/iam_virtual_mfa_device.md index 2bbae8461a..8718ca06fd 100644 --- a/docs/resources/iam_virtual_mfa_device.md +++ b/docs/resources/iam_virtual_mfa_device.md @@ -33,7 +33,7 @@ Resource Type definition for AWS::IAM::VirtualMFADevice ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/imagebuilder_container_recipe.md b/docs/resources/imagebuilder_container_recipe.md index f3d6824c0e..9739ab5d9a 100644 --- a/docs/resources/imagebuilder_container_recipe.md +++ b/docs/resources/imagebuilder_container_recipe.md @@ -49,7 +49,7 @@ Optional: ### Nested Schema for `components.parameters` -Required: +Optional: - `name` (String) The name of the component parameter to set. - `value` (List of String) Sets the value for the named component parameter. diff --git a/docs/resources/imagebuilder_image_recipe.md b/docs/resources/imagebuilder_image_recipe.md index 0ff4c1e253..585dae169a 100644 --- a/docs/resources/imagebuilder_image_recipe.md +++ b/docs/resources/imagebuilder_image_recipe.md @@ -46,7 +46,7 @@ Optional: ### Nested Schema for `components.parameters` -Required: +Optional: - `name` (String) The name of the component parameter to set. - `value` (List of String) Sets the value for the named component parameter. diff --git a/docs/resources/imagebuilder_lifecycle_policy.md b/docs/resources/imagebuilder_lifecycle_policy.md index a8b3bc32f7..81d97180e3 100644 --- a/docs/resources/imagebuilder_lifecycle_policy.md +++ b/docs/resources/imagebuilder_lifecycle_policy.md @@ -104,7 +104,7 @@ Optional: ### Nested Schema for `policy_details.exclusion_rules.amis.last_launched` -Required: +Optional: - `unit` (String) The value's time unit. - `value` (Number) The last launched value. @@ -124,7 +124,7 @@ Optional: ### Nested Schema for `resource_selection.recipes` -Required: +Optional: - `name` (String) The recipe name. - `semantic_version` (String) The recipe version. diff --git a/docs/resources/inspector_assessment_template.md b/docs/resources/inspector_assessment_template.md index 56bcdf0a7f..07a09cbc93 100644 --- a/docs/resources/inspector_assessment_template.md +++ b/docs/resources/inspector_assessment_template.md @@ -34,7 +34,7 @@ Resource Type definition for AWS::Inspector::AssessmentTemplate ### Nested Schema for `user_attributes_for_findings` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/inspectorv2_cis_scan_configuration.md b/docs/resources/inspectorv2_cis_scan_configuration.md index 5e9face692..3c0bff6f3f 100644 --- a/docs/resources/inspectorv2_cis_scan_configuration.md +++ b/docs/resources/inspectorv2_cis_scan_configuration.md @@ -73,14 +73,14 @@ Optional: ### Nested Schema for `schedule.daily` -Required: +Optional: - `start_time` (Attributes) (see [below for nested schema](#nestedatt--schedule--daily--start_time)) ### Nested Schema for `schedule.daily.start_time` -Required: +Optional: - `time_of_day` (String) - `time_zone` (String) @@ -90,7 +90,7 @@ Required: ### Nested Schema for `schedule.monthly` -Required: +Optional: - `day` (String) - `start_time` (Attributes) (see [below for nested schema](#nestedatt--schedule--monthly--start_time)) @@ -98,7 +98,7 @@ Required: ### Nested Schema for `schedule.monthly.start_time` -Required: +Optional: - `time_of_day` (String) - `time_zone` (String) @@ -108,7 +108,7 @@ Required: ### Nested Schema for `schedule.weekly` -Required: +Optional: - `days` (List of String) - `start_time` (Attributes) (see [below for nested schema](#nestedatt--schedule--weekly--start_time)) @@ -116,7 +116,7 @@ Required: ### Nested Schema for `schedule.weekly.start_time` -Required: +Optional: - `time_of_day` (String) - `time_zone` (String) diff --git a/docs/resources/inspectorv2_filter.md b/docs/resources/inspectorv2_filter.md index 72d01ae9ef..a7bfb2360d 100644 --- a/docs/resources/inspectorv2_filter.md +++ b/docs/resources/inspectorv2_filter.md @@ -209,7 +209,7 @@ Optional: ### Nested Schema for `filter_criteria.aws_account_id` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -218,7 +218,7 @@ Required: ### Nested Schema for `filter_criteria.component_id` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -227,7 +227,7 @@ Required: ### Nested Schema for `filter_criteria.component_type` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -236,7 +236,7 @@ Required: ### Nested Schema for `filter_criteria.ec_2_instance_image_id` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -245,7 +245,7 @@ Required: ### Nested Schema for `filter_criteria.ec_2_instance_subnet_id` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -254,7 +254,7 @@ Required: ### Nested Schema for `filter_criteria.ec_2_instance_vpc_id` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -263,7 +263,7 @@ Required: ### Nested Schema for `filter_criteria.ecr_image_architecture` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -272,7 +272,7 @@ Required: ### Nested Schema for `filter_criteria.ecr_image_hash` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -290,7 +290,7 @@ Optional: ### Nested Schema for `filter_criteria.ecr_image_registry` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -299,7 +299,7 @@ Required: ### Nested Schema for `filter_criteria.ecr_image_repository_name` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -308,7 +308,7 @@ Required: ### Nested Schema for `filter_criteria.ecr_image_tags` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -317,7 +317,7 @@ Required: ### Nested Schema for `filter_criteria.finding_arn` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -326,7 +326,7 @@ Required: ### Nested Schema for `filter_criteria.finding_status` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -335,7 +335,7 @@ Required: ### Nested Schema for `filter_criteria.finding_type` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -371,7 +371,7 @@ Optional: ### Nested Schema for `filter_criteria.network_protocol` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -389,7 +389,7 @@ Optional: ### Nested Schema for `filter_criteria.related_vulnerabilities` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -398,7 +398,7 @@ Required: ### Nested Schema for `filter_criteria.resource_id` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -407,12 +407,9 @@ Required: ### Nested Schema for `filter_criteria.resource_tags` -Required: - -- `comparison` (String) - Optional: +- `comparison` (String) - `key` (String) - `value` (String) @@ -420,7 +417,7 @@ Optional: ### Nested Schema for `filter_criteria.resource_type` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -429,7 +426,7 @@ Required: ### Nested Schema for `filter_criteria.severity` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -438,7 +435,7 @@ Required: ### Nested Schema for `filter_criteria.title` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -456,7 +453,7 @@ Optional: ### Nested Schema for `filter_criteria.vendor_severity` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -465,7 +462,7 @@ Required: ### Nested Schema for `filter_criteria.vulnerability_id` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -474,7 +471,7 @@ Required: ### Nested Schema for `filter_criteria.vulnerability_source` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -495,7 +492,7 @@ Optional: ### Nested Schema for `filter_criteria.vulnerable_packages.architecture` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -513,7 +510,7 @@ Optional: ### Nested Schema for `filter_criteria.vulnerable_packages.name` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -522,7 +519,7 @@ Required: ### Nested Schema for `filter_criteria.vulnerable_packages.release` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -531,7 +528,7 @@ Required: ### Nested Schema for `filter_criteria.vulnerable_packages.source_layer_hash` -Required: +Optional: - `comparison` (String) - `value` (String) @@ -540,7 +537,7 @@ Required: ### Nested Schema for `filter_criteria.vulnerable_packages.version` -Required: +Optional: - `comparison` (String) - `value` (String) diff --git a/docs/resources/iot_authorizer.md b/docs/resources/iot_authorizer.md index 8af978e1ff..7cd2c63f8b 100644 --- a/docs/resources/iot_authorizer.md +++ b/docs/resources/iot_authorizer.md @@ -37,7 +37,7 @@ Creates an authorizer. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/iot_billing_group.md b/docs/resources/iot_billing_group.md index b3aef34873..e6d5afaa7d 100644 --- a/docs/resources/iot_billing_group.md +++ b/docs/resources/iot_billing_group.md @@ -51,7 +51,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/iot_ca_certificate.md b/docs/resources/iot_ca_certificate.md index 87dce4959a..45080ed92a 100644 --- a/docs/resources/iot_ca_certificate.md +++ b/docs/resources/iot_ca_certificate.md @@ -48,7 +48,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/iot_certificate_provider.md b/docs/resources/iot_certificate_provider.md index 41439e01bf..40242a40c5 100644 --- a/docs/resources/iot_certificate_provider.md +++ b/docs/resources/iot_certificate_provider.md @@ -33,7 +33,7 @@ Use the AWS::IoT::CertificateProvider resource to declare an AWS IoT Certificate ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/iot_custom_metric.md b/docs/resources/iot_custom_metric.md index f55003ca3f..6812b6d43a 100644 --- a/docs/resources/iot_custom_metric.md +++ b/docs/resources/iot_custom_metric.md @@ -45,7 +45,7 @@ resource "awscc_iot_custom_metric" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag's key. - `value` (String) The tag's value. diff --git a/docs/resources/iot_dimension.md b/docs/resources/iot_dimension.md index c997d45b96..72ee0735a8 100644 --- a/docs/resources/iot_dimension.md +++ b/docs/resources/iot_dimension.md @@ -45,7 +45,7 @@ resource "awscc_iot_dimension" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag's key. - `value` (String) The tag's value. diff --git a/docs/resources/iot_domain_configuration.md b/docs/resources/iot_domain_configuration.md index ba25156d8d..67b1759812 100644 --- a/docs/resources/iot_domain_configuration.md +++ b/docs/resources/iot_domain_configuration.md @@ -55,7 +55,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/iot_fleet_metric.md b/docs/resources/iot_fleet_metric.md index 5fc291ff80..a7165158e8 100644 --- a/docs/resources/iot_fleet_metric.md +++ b/docs/resources/iot_fleet_metric.md @@ -42,7 +42,7 @@ An aggregated metric of certain devices in your fleet ### Nested Schema for `aggregation_type` -Required: +Optional: - `name` (String) Fleet Indexing aggregation type names such as Statistics, Percentiles and Cardinality - `values` (List of String) Fleet Indexing aggregation type values @@ -51,7 +51,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag's key - `value` (String) The tag's value diff --git a/docs/resources/iot_job_template.md b/docs/resources/iot_job_template.md index 5f35ff1fcf..777ec0985e 100644 --- a/docs/resources/iot_job_template.md +++ b/docs/resources/iot_job_template.md @@ -42,14 +42,14 @@ Job templates enable you to preconfigure jobs so that you can deploy them to mul ### Nested Schema for `abort_config` -Required: +Optional: - `criteria_list` (Attributes List) (see [below for nested schema](#nestedatt--abort_config--criteria_list)) ### Nested Schema for `abort_config.criteria_list` -Required: +Optional: - `action` (String) The type of job action to take to initiate the job abort. - `failure_type` (String) The type of job execution failures that can initiate a job abort. @@ -86,7 +86,7 @@ Optional: ### Nested Schema for `job_executions_rollout_config.exponential_rollout_rate` -Required: +Optional: - `base_rate_per_minute` (Number) The minimum number of things that will be notified of a pending job, per minute at the start of job rollout. This parameter allows you to define the initial rate of rollout. - `increment_factor` (Number) The exponential factor to increase the rate of rollout for a job. @@ -115,19 +115,16 @@ Optional: ### Nested Schema for `presigned_url_config` -Required: - -- `role_arn` (String) The ARN of an IAM role that grants grants permission to download files from the S3 bucket where the job data/updates are stored. The role must also grant permission for IoT to download the files. - Optional: - `expires_in_sec` (Number) How number (in seconds) pre-signed URLs are valid. +- `role_arn` (String) The ARN of an IAM role that grants grants permission to download files from the S3 bucket where the job data/updates are stored. The role must also grant permission for IoT to download the files. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag's key. - `value` (String) The tag's value. @@ -136,7 +133,7 @@ Required: ### Nested Schema for `timeout_config` -Required: +Optional: - `in_progress_timeout_in_minutes` (Number) Specifies the amount of time, in minutes, this device has to finish execution of this job. diff --git a/docs/resources/iot_mitigation_action.md b/docs/resources/iot_mitigation_action.md index 875a83a15a..97f909aa67 100644 --- a/docs/resources/iot_mitigation_action.md +++ b/docs/resources/iot_mitigation_action.md @@ -46,19 +46,16 @@ Optional: ### Nested Schema for `action_params.add_things_to_thing_group_params` -Required: - -- `thing_group_names` (Set of String) The list of groups to which you want to add the things that triggered the mitigation action. - Optional: - `override_dynamic_groups` (Boolean) Specifies if this mitigation action can move the things that triggered the mitigation action out of one or more dynamic thing groups. +- `thing_group_names` (Set of String) The list of groups to which you want to add the things that triggered the mitigation action. ### Nested Schema for `action_params.enable_io_t_logging_params` -Required: +Optional: - `log_level` (String) Specifies which types of information are logged. - `role_arn_for_logging` (String) The ARN of the IAM role used for logging. @@ -67,7 +64,7 @@ Required: ### Nested Schema for `action_params.publish_finding_to_sns_params` -Required: +Optional: - `topic_arn` (String) The ARN of the topic to which you want to publish the findings. @@ -75,7 +72,7 @@ Required: ### Nested Schema for `action_params.replace_default_policy_version_params` -Required: +Optional: - `template_name` (String) @@ -83,7 +80,7 @@ Required: ### Nested Schema for `action_params.update_ca_certificate_params` -Required: +Optional: - `action` (String) @@ -91,7 +88,7 @@ Required: ### Nested Schema for `action_params.update_device_certificate_params` -Required: +Optional: - `action` (String) @@ -100,7 +97,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag's key. - `value` (String) The tag's value. diff --git a/docs/resources/iot_policy.md b/docs/resources/iot_policy.md index 1c002bf63b..634d76c6f8 100644 --- a/docs/resources/iot_policy.md +++ b/docs/resources/iot_policy.md @@ -59,7 +59,7 @@ resource "awscc_iot_policy" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/iot_provisioning_template.md b/docs/resources/iot_provisioning_template.md index 8c09adc773..d871149c56 100644 --- a/docs/resources/iot_provisioning_template.md +++ b/docs/resources/iot_provisioning_template.md @@ -46,7 +46,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/iot_role_alias.md b/docs/resources/iot_role_alias.md index cc2589dea5..75e4fb5a19 100644 --- a/docs/resources/iot_role_alias.md +++ b/docs/resources/iot_role_alias.md @@ -70,7 +70,7 @@ resource "awscc_iam_role" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/iot_scheduled_audit.md b/docs/resources/iot_scheduled_audit.md index 18ad5e0c4d..efec8f8cfb 100644 --- a/docs/resources/iot_scheduled_audit.md +++ b/docs/resources/iot_scheduled_audit.md @@ -35,7 +35,7 @@ Scheduled audits can be used to specify the checks you want to perform during an ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag's key. - `value` (String) The tag's value. diff --git a/docs/resources/iot_security_profile.md b/docs/resources/iot_security_profile.md index 44293ddf4a..012e2b91e8 100644 --- a/docs/resources/iot_security_profile.md +++ b/docs/resources/iot_security_profile.md @@ -34,24 +34,18 @@ A security profile defines a set of expected behaviors for devices in your accou ### Nested Schema for `additional_metrics_to_retain_v2` -Required: - -- `metric` (String) What is measured by the behavior. - Optional: - `export_metric` (Boolean) Flag to enable/disable metrics export for metric to be retained. +- `metric` (String) What is measured by the behavior. - `metric_dimension` (Attributes) The dimension of a metric. (see [below for nested schema](#nestedatt--additional_metrics_to_retain_v2--metric_dimension)) ### Nested Schema for `additional_metrics_to_retain_v2.metric_dimension` -Required: - -- `dimension_name` (String) A unique identifier for the dimension. - Optional: +- `dimension_name` (String) A unique identifier for the dimension. - `operator` (String) Defines how the dimensionValues of a dimension are interpreted. @@ -68,16 +62,13 @@ Optional: ### Nested Schema for `behaviors` -Required: - -- `name` (String) The name for the behavior. - Optional: - `criteria` (Attributes) The criteria by which the behavior is determined to be normal. (see [below for nested schema](#nestedatt--behaviors--criteria)) - `export_metric` (Boolean) Flag to enable/disable metrics export for metric to be retained. - `metric` (String) What is measured by the behavior. - `metric_dimension` (Attributes) The dimension of a metric. (see [below for nested schema](#nestedatt--behaviors--metric_dimension)) +- `name` (String) The name for the behavior. - `suppress_alerts` (Boolean) Manage Detect alarm SNS notifications by setting behavior notification to on or suppressed. Detect will continue to performing device behavior evaluations. However, suppressed alarms wouldn't be forwarded for SNS notification. @@ -126,12 +117,9 @@ Optional: ### Nested Schema for `behaviors.metric_dimension` -Required: - -- `dimension_name` (String) A unique identifier for the dimension. - Optional: +- `dimension_name` (String) A unique identifier for the dimension. - `operator` (String) Defines how the dimensionValues of a dimension are interpreted. @@ -139,7 +127,7 @@ Optional: ### Nested Schema for `metrics_export_config` -Required: +Optional: - `mqtt_topic` (String) The topic for metrics export. - `role_arn` (String) The ARN of the role that grants permission to publish to mqtt topic. @@ -148,7 +136,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag's key. - `value` (String) The tag's value. diff --git a/docs/resources/iot_software_package.md b/docs/resources/iot_software_package.md index 9551e46d88..bfec54e88c 100644 --- a/docs/resources/iot_software_package.md +++ b/docs/resources/iot_software_package.md @@ -29,7 +29,7 @@ resource definition ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/iot_software_package_version.md b/docs/resources/iot_software_package_version.md index 83ab060b77..10396e4bf3 100644 --- a/docs/resources/iot_software_package_version.md +++ b/docs/resources/iot_software_package_version.md @@ -36,7 +36,7 @@ resource definition ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/iot_thing_group.md b/docs/resources/iot_thing_group.md index df290797d8..6762155633 100644 --- a/docs/resources/iot_thing_group.md +++ b/docs/resources/iot_thing_group.md @@ -32,7 +32,7 @@ Resource Type definition for AWS::IoT::ThingGroup ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/iot_thing_type.md b/docs/resources/iot_thing_type.md index 4c1337e511..acfd039965 100644 --- a/docs/resources/iot_thing_type.md +++ b/docs/resources/iot_thing_type.md @@ -31,7 +31,7 @@ Resource Type definition for AWS::IoT::ThingType ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/iot_topic_rule.md b/docs/resources/iot_topic_rule.md index aedec5b05a..8a6f28e359 100644 --- a/docs/resources/iot_topic_rule.md +++ b/docs/resources/iot_topic_rule.md @@ -97,7 +97,7 @@ Optional: ### Nested Schema for `topic_rule_payload.actions.cloudwatch_alarm` -Required: +Optional: - `alarm_name` (String) - `role_arn` (String) @@ -108,31 +108,25 @@ Required: ### Nested Schema for `topic_rule_payload.actions.cloudwatch_logs` -Required: - -- `log_group_name` (String) -- `role_arn` (String) - Optional: - `batch_mode` (Boolean) +- `log_group_name` (String) +- `role_arn` (String) ### Nested Schema for `topic_rule_payload.actions.cloudwatch_metric` -Required: +Optional: - `metric_name` (String) - `metric_namespace` (String) +- `metric_timestamp` (String) - `metric_unit` (String) - `metric_value` (String) - `role_arn` (String) -Optional: - -- `metric_timestamp` (String) - ### Nested Schema for `topic_rule_payload.actions.dynamo_d_bv_2` @@ -145,7 +139,7 @@ Optional: ### Nested Schema for `topic_rule_payload.actions.dynamo_d_bv_2.put_item` -Required: +Optional: - `table_name` (String) @@ -154,26 +148,23 @@ Required: ### Nested Schema for `topic_rule_payload.actions.dynamo_db` -Required: - -- `hash_key_field` (String) -- `hash_key_value` (String) -- `role_arn` (String) -- `table_name` (String) - Optional: +- `hash_key_field` (String) - `hash_key_type` (String) +- `hash_key_value` (String) - `payload_field` (String) - `range_key_field` (String) - `range_key_type` (String) - `range_key_value` (String) +- `role_arn` (String) +- `table_name` (String) ### Nested Schema for `topic_rule_payload.actions.elasticsearch` -Required: +Optional: - `endpoint` (String) - `id` (String) @@ -185,29 +176,23 @@ Required: ### Nested Schema for `topic_rule_payload.actions.firehose` -Required: - -- `delivery_stream_name` (String) -- `role_arn` (String) - Optional: - `batch_mode` (Boolean) +- `delivery_stream_name` (String) +- `role_arn` (String) - `separator` (String) ### Nested Schema for `topic_rule_payload.actions.http` -Required: - -- `url` (String) - Optional: - `auth` (Attributes) (see [below for nested schema](#nestedatt--topic_rule_payload--actions--http--auth)) - `confirmation_url` (String) - `headers` (Attributes List) (see [below for nested schema](#nestedatt--topic_rule_payload--actions--http--headers)) +- `url` (String) ### Nested Schema for `topic_rule_payload.actions.http.auth` @@ -219,7 +204,7 @@ Optional: ### Nested Schema for `topic_rule_payload.actions.http.auth.sigv_4` -Required: +Optional: - `role_arn` (String) - `service_name` (String) @@ -230,7 +215,7 @@ Required: ### Nested Schema for `topic_rule_payload.actions.http.headers` -Required: +Optional: - `key` (String) - `value` (String) @@ -240,34 +225,28 @@ Required: ### Nested Schema for `topic_rule_payload.actions.iot_analytics` -Required: - -- `channel_name` (String) -- `role_arn` (String) - Optional: - `batch_mode` (Boolean) +- `channel_name` (String) +- `role_arn` (String) ### Nested Schema for `topic_rule_payload.actions.iot_events` -Required: - -- `input_name` (String) -- `role_arn` (String) - Optional: - `batch_mode` (Boolean) +- `input_name` (String) - `message_id` (String) +- `role_arn` (String) ### Nested Schema for `topic_rule_payload.actions.iot_site_wise` -Required: +Optional: - `put_asset_property_value_entries` (Attributes List) (see [below for nested schema](#nestedatt--topic_rule_payload--actions--iot_site_wise--put_asset_property_value_entries)) - `role_arn` (String) @@ -275,39 +254,30 @@ Required: ### Nested Schema for `topic_rule_payload.actions.iot_site_wise.put_asset_property_value_entries` -Required: - -- `property_values` (Attributes List) (see [below for nested schema](#nestedatt--topic_rule_payload--actions--iot_site_wise--put_asset_property_value_entries--property_values)) - Optional: - `asset_id` (String) - `entry_id` (String) - `property_alias` (String) - `property_id` (String) +- `property_values` (Attributes List) (see [below for nested schema](#nestedatt--topic_rule_payload--actions--iot_site_wise--put_asset_property_value_entries--property_values)) ### Nested Schema for `topic_rule_payload.actions.iot_site_wise.put_asset_property_value_entries.property_values` -Required: - -- `timestamp` (Attributes) (see [below for nested schema](#nestedatt--topic_rule_payload--actions--iot_site_wise--put_asset_property_value_entries--property_values--timestamp)) -- `value` (Attributes) (see [below for nested schema](#nestedatt--topic_rule_payload--actions--iot_site_wise--put_asset_property_value_entries--property_values--value)) - Optional: - `quality` (String) +- `timestamp` (Attributes) (see [below for nested schema](#nestedatt--topic_rule_payload--actions--iot_site_wise--put_asset_property_value_entries--property_values--timestamp)) +- `value` (Attributes) (see [below for nested schema](#nestedatt--topic_rule_payload--actions--iot_site_wise--put_asset_property_value_entries--property_values--value)) ### Nested Schema for `topic_rule_payload.actions.iot_site_wise.put_asset_property_value_entries.property_values.timestamp` -Required: - -- `time_in_seconds` (String) - Optional: - `offset_in_nanos` (String) +- `time_in_seconds` (String) @@ -327,22 +297,19 @@ Optional: ### Nested Schema for `topic_rule_payload.actions.kafka` -Required: +Optional: - `client_properties` (Map of String) - `destination_arn` (String) -- `topic` (String) - -Optional: - - `headers` (Attributes List) (see [below for nested schema](#nestedatt--topic_rule_payload--actions--kafka--headers)) - `key` (String) - `partition` (String) +- `topic` (String) ### Nested Schema for `topic_rule_payload.actions.kafka.headers` -Required: +Optional: - `key` (String) - `value` (String) @@ -352,14 +319,11 @@ Required: ### Nested Schema for `topic_rule_payload.actions.kinesis` -Required: - -- `role_arn` (String) -- `stream_name` (String) - Optional: - `partition_key` (String) +- `role_arn` (String) +- `stream_name` (String) @@ -373,35 +337,29 @@ Optional: ### Nested Schema for `topic_rule_payload.actions.location` -Required: +Optional: - `device_id` (String) - `latitude` (String) - `longitude` (String) - `role_arn` (String) -- `tracker_name` (String) - -Optional: - - `timestamp` (Attributes) (see [below for nested schema](#nestedatt--topic_rule_payload--actions--location--timestamp)) +- `tracker_name` (String) ### Nested Schema for `topic_rule_payload.actions.location.timestamp` -Required: - -- `value` (String) - Optional: - `unit` (String) +- `value` (String) ### Nested Schema for `topic_rule_payload.actions.open_search` -Required: +Optional: - `endpoint` (String) - `id` (String) @@ -413,15 +371,12 @@ Required: ### Nested Schema for `topic_rule_payload.actions.republish` -Required: - -- `role_arn` (String) -- `topic` (String) - Optional: - `headers` (Attributes) (see [below for nested schema](#nestedatt--topic_rule_payload--actions--republish--headers)) - `qos` (Number) +- `role_arn` (String) +- `topic` (String) ### Nested Schema for `topic_rule_payload.actions.republish.headers` @@ -438,7 +393,7 @@ Optional: ### Nested Schema for `topic_rule_payload.actions.republish.headers.user_properties` -Required: +Optional: - `key` (String) - `value` (String) @@ -449,74 +404,59 @@ Required: ### Nested Schema for `topic_rule_payload.actions.s3` -Required: +Optional: - `bucket_name` (String) +- `canned_acl` (String) - `key` (String) - `role_arn` (String) -Optional: - -- `canned_acl` (String) - ### Nested Schema for `topic_rule_payload.actions.sns` -Required: - -- `role_arn` (String) -- `target_arn` (String) - Optional: - `message_format` (String) +- `role_arn` (String) +- `target_arn` (String) ### Nested Schema for `topic_rule_payload.actions.sqs` -Required: +Optional: - `queue_url` (String) - `role_arn` (String) - -Optional: - - `use_base_64` (Boolean) ### Nested Schema for `topic_rule_payload.actions.step_functions` -Required: - -- `role_arn` (String) -- `state_machine_name` (String) - Optional: - `execution_name_prefix` (String) +- `role_arn` (String) +- `state_machine_name` (String) ### Nested Schema for `topic_rule_payload.actions.timestream` -Required: +Optional: - `database_name` (String) - `dimensions` (Attributes List) (see [below for nested schema](#nestedatt--topic_rule_payload--actions--timestream--dimensions)) - `role_arn` (String) - `table_name` (String) - -Optional: - - `timestamp` (Attributes) (see [below for nested schema](#nestedatt--topic_rule_payload--actions--timestream--timestamp)) ### Nested Schema for `topic_rule_payload.actions.timestream.dimensions` -Required: +Optional: - `name` (String) - `value` (String) @@ -525,7 +465,7 @@ Required: ### Nested Schema for `topic_rule_payload.actions.timestream.timestamp` -Required: +Optional: - `unit` (String) - `value` (String) @@ -564,7 +504,7 @@ Optional: ### Nested Schema for `topic_rule_payload.error_action.cloudwatch_alarm` -Required: +Optional: - `alarm_name` (String) - `role_arn` (String) @@ -575,31 +515,25 @@ Required: ### Nested Schema for `topic_rule_payload.error_action.cloudwatch_logs` -Required: - -- `log_group_name` (String) -- `role_arn` (String) - Optional: - `batch_mode` (Boolean) +- `log_group_name` (String) +- `role_arn` (String) ### Nested Schema for `topic_rule_payload.error_action.cloudwatch_metric` -Required: +Optional: - `metric_name` (String) - `metric_namespace` (String) +- `metric_timestamp` (String) - `metric_unit` (String) - `metric_value` (String) - `role_arn` (String) -Optional: - -- `metric_timestamp` (String) - ### Nested Schema for `topic_rule_payload.error_action.dynamo_d_bv_2` @@ -612,7 +546,7 @@ Optional: ### Nested Schema for `topic_rule_payload.error_action.dynamo_d_bv_2.put_item` -Required: +Optional: - `table_name` (String) @@ -621,26 +555,23 @@ Required: ### Nested Schema for `topic_rule_payload.error_action.dynamo_db` -Required: - -- `hash_key_field` (String) -- `hash_key_value` (String) -- `role_arn` (String) -- `table_name` (String) - Optional: +- `hash_key_field` (String) - `hash_key_type` (String) +- `hash_key_value` (String) - `payload_field` (String) - `range_key_field` (String) - `range_key_type` (String) - `range_key_value` (String) +- `role_arn` (String) +- `table_name` (String) ### Nested Schema for `topic_rule_payload.error_action.elasticsearch` -Required: +Optional: - `endpoint` (String) - `id` (String) @@ -652,29 +583,23 @@ Required: ### Nested Schema for `topic_rule_payload.error_action.firehose` -Required: - -- `delivery_stream_name` (String) -- `role_arn` (String) - Optional: - `batch_mode` (Boolean) +- `delivery_stream_name` (String) +- `role_arn` (String) - `separator` (String) ### Nested Schema for `topic_rule_payload.error_action.http` -Required: - -- `url` (String) - Optional: - `auth` (Attributes) (see [below for nested schema](#nestedatt--topic_rule_payload--error_action--http--auth)) - `confirmation_url` (String) - `headers` (Attributes List) (see [below for nested schema](#nestedatt--topic_rule_payload--error_action--http--headers)) +- `url` (String) ### Nested Schema for `topic_rule_payload.error_action.http.auth` @@ -686,7 +611,7 @@ Optional: ### Nested Schema for `topic_rule_payload.error_action.http.auth.sigv_4` -Required: +Optional: - `role_arn` (String) - `service_name` (String) @@ -697,7 +622,7 @@ Required: ### Nested Schema for `topic_rule_payload.error_action.http.headers` -Required: +Optional: - `key` (String) - `value` (String) @@ -707,34 +632,28 @@ Required: ### Nested Schema for `topic_rule_payload.error_action.iot_analytics` -Required: - -- `channel_name` (String) -- `role_arn` (String) - Optional: - `batch_mode` (Boolean) +- `channel_name` (String) +- `role_arn` (String) ### Nested Schema for `topic_rule_payload.error_action.iot_events` -Required: - -- `input_name` (String) -- `role_arn` (String) - Optional: - `batch_mode` (Boolean) +- `input_name` (String) - `message_id` (String) +- `role_arn` (String) ### Nested Schema for `topic_rule_payload.error_action.iot_site_wise` -Required: +Optional: - `put_asset_property_value_entries` (Attributes List) (see [below for nested schema](#nestedatt--topic_rule_payload--error_action--iot_site_wise--put_asset_property_value_entries)) - `role_arn` (String) @@ -742,39 +661,30 @@ Required: ### Nested Schema for `topic_rule_payload.error_action.iot_site_wise.put_asset_property_value_entries` -Required: - -- `property_values` (Attributes List) (see [below for nested schema](#nestedatt--topic_rule_payload--error_action--iot_site_wise--put_asset_property_value_entries--property_values)) - Optional: - `asset_id` (String) - `entry_id` (String) - `property_alias` (String) - `property_id` (String) +- `property_values` (Attributes List) (see [below for nested schema](#nestedatt--topic_rule_payload--error_action--iot_site_wise--put_asset_property_value_entries--property_values)) ### Nested Schema for `topic_rule_payload.error_action.iot_site_wise.put_asset_property_value_entries.property_values` -Required: - -- `timestamp` (Attributes) (see [below for nested schema](#nestedatt--topic_rule_payload--error_action--iot_site_wise--put_asset_property_value_entries--property_values--timestamp)) -- `value` (Attributes) (see [below for nested schema](#nestedatt--topic_rule_payload--error_action--iot_site_wise--put_asset_property_value_entries--property_values--value)) - Optional: - `quality` (String) +- `timestamp` (Attributes) (see [below for nested schema](#nestedatt--topic_rule_payload--error_action--iot_site_wise--put_asset_property_value_entries--property_values--timestamp)) +- `value` (Attributes) (see [below for nested schema](#nestedatt--topic_rule_payload--error_action--iot_site_wise--put_asset_property_value_entries--property_values--value)) ### Nested Schema for `topic_rule_payload.error_action.iot_site_wise.put_asset_property_value_entries.property_values.timestamp` -Required: - -- `time_in_seconds` (String) - Optional: - `offset_in_nanos` (String) +- `time_in_seconds` (String) @@ -794,22 +704,19 @@ Optional: ### Nested Schema for `topic_rule_payload.error_action.kafka` -Required: +Optional: - `client_properties` (Map of String) - `destination_arn` (String) -- `topic` (String) - -Optional: - - `headers` (Attributes List) (see [below for nested schema](#nestedatt--topic_rule_payload--error_action--kafka--headers)) - `key` (String) - `partition` (String) +- `topic` (String) ### Nested Schema for `topic_rule_payload.error_action.kafka.headers` -Required: +Optional: - `key` (String) - `value` (String) @@ -819,14 +726,11 @@ Required: ### Nested Schema for `topic_rule_payload.error_action.kinesis` -Required: - -- `role_arn` (String) -- `stream_name` (String) - Optional: - `partition_key` (String) +- `role_arn` (String) +- `stream_name` (String) @@ -840,35 +744,29 @@ Optional: ### Nested Schema for `topic_rule_payload.error_action.location` -Required: +Optional: - `device_id` (String) - `latitude` (String) - `longitude` (String) - `role_arn` (String) -- `tracker_name` (String) - -Optional: - - `timestamp` (Attributes) (see [below for nested schema](#nestedatt--topic_rule_payload--error_action--location--timestamp)) +- `tracker_name` (String) ### Nested Schema for `topic_rule_payload.error_action.location.timestamp` -Required: - -- `value` (String) - Optional: - `unit` (String) +- `value` (String) ### Nested Schema for `topic_rule_payload.error_action.open_search` -Required: +Optional: - `endpoint` (String) - `id` (String) @@ -880,15 +778,12 @@ Required: ### Nested Schema for `topic_rule_payload.error_action.republish` -Required: - -- `role_arn` (String) -- `topic` (String) - Optional: - `headers` (Attributes) (see [below for nested schema](#nestedatt--topic_rule_payload--error_action--republish--headers)) - `qos` (Number) +- `role_arn` (String) +- `topic` (String) ### Nested Schema for `topic_rule_payload.error_action.republish.headers` @@ -905,7 +800,7 @@ Optional: ### Nested Schema for `topic_rule_payload.error_action.republish.headers.user_properties` -Required: +Optional: - `key` (String) - `value` (String) @@ -916,74 +811,59 @@ Required: ### Nested Schema for `topic_rule_payload.error_action.s3` -Required: +Optional: - `bucket_name` (String) +- `canned_acl` (String) - `key` (String) - `role_arn` (String) -Optional: - -- `canned_acl` (String) - ### Nested Schema for `topic_rule_payload.error_action.sns` -Required: - -- `role_arn` (String) -- `target_arn` (String) - Optional: - `message_format` (String) +- `role_arn` (String) +- `target_arn` (String) ### Nested Schema for `topic_rule_payload.error_action.sqs` -Required: +Optional: - `queue_url` (String) - `role_arn` (String) - -Optional: - - `use_base_64` (Boolean) ### Nested Schema for `topic_rule_payload.error_action.step_functions` -Required: - -- `role_arn` (String) -- `state_machine_name` (String) - Optional: - `execution_name_prefix` (String) +- `role_arn` (String) +- `state_machine_name` (String) ### Nested Schema for `topic_rule_payload.error_action.timestream` -Required: +Optional: - `database_name` (String) - `dimensions` (Attributes List) (see [below for nested schema](#nestedatt--topic_rule_payload--error_action--timestream--dimensions)) - `role_arn` (String) - `table_name` (String) - -Optional: - - `timestamp` (Attributes) (see [below for nested schema](#nestedatt--topic_rule_payload--error_action--timestream--timestamp)) ### Nested Schema for `topic_rule_payload.error_action.timestream.dimensions` -Required: +Optional: - `name` (String) - `value` (String) @@ -992,7 +872,7 @@ Required: ### Nested Schema for `topic_rule_payload.error_action.timestream.timestamp` -Required: +Optional: - `unit` (String) - `value` (String) @@ -1004,7 +884,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/iotanalytics_channel.md b/docs/resources/iotanalytics_channel.md index 7515159863..7de3717c9d 100644 --- a/docs/resources/iotanalytics_channel.md +++ b/docs/resources/iotanalytics_channel.md @@ -38,14 +38,11 @@ Optional: ### Nested Schema for `channel_storage.customer_managed_s3` -Required: - -- `bucket` (String) -- `role_arn` (String) - Optional: +- `bucket` (String) - `key_prefix` (String) +- `role_arn` (String) @@ -61,7 +58,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/iotanalytics_dataset.md b/docs/resources/iotanalytics_dataset.md index 7819dc2f22..e16a69ff60 100644 --- a/docs/resources/iotanalytics_dataset.md +++ b/docs/resources/iotanalytics_dataset.md @@ -49,20 +49,17 @@ Optional: ### Nested Schema for `actions.container_action` -Required: +Optional: - `execution_role_arn` (String) - `image` (String) - `resource_configuration` (Attributes) (see [below for nested schema](#nestedatt--actions--container_action--resource_configuration)) - -Optional: - - `variables` (Attributes List) (see [below for nested schema](#nestedatt--actions--container_action--variables)) ### Nested Schema for `actions.container_action.resource_configuration` -Required: +Optional: - `compute_type` (String) - `volume_size_in_gb` (Number) @@ -71,21 +68,18 @@ Required: ### Nested Schema for `actions.container_action.variables` -Required: - -- `variable_name` (String) - Optional: - `dataset_content_version_value` (Attributes) (see [below for nested schema](#nestedatt--actions--container_action--variables--dataset_content_version_value)) - `double_value` (Number) - `output_file_uri_value` (Attributes) (see [below for nested schema](#nestedatt--actions--container_action--variables--output_file_uri_value)) - `string_value` (String) +- `variable_name` (String) ### Nested Schema for `actions.container_action.variables.dataset_content_version_value` -Required: +Optional: - `dataset_name` (String) @@ -93,7 +87,7 @@ Required: ### Nested Schema for `actions.container_action.variables.output_file_uri_value` -Required: +Optional: - `file_name` (String) @@ -103,13 +97,10 @@ Required: ### Nested Schema for `actions.query_action` -Required: - -- `sql_query` (String) - Optional: - `filters` (Attributes List) (see [below for nested schema](#nestedatt--actions--query_action--filters)) +- `sql_query` (String) ### Nested Schema for `actions.query_action.filters` @@ -121,7 +112,7 @@ Optional: ### Nested Schema for `actions.query_action.filters.delta_time` -Required: +Optional: - `offset_seconds` (Number) - `time_expression` (String) @@ -133,12 +124,9 @@ Required: ### Nested Schema for `content_delivery_rules` -Required: - -- `destination` (Attributes) (see [below for nested schema](#nestedatt--content_delivery_rules--destination)) - Optional: +- `destination` (Attributes) (see [below for nested schema](#nestedatt--content_delivery_rules--destination)) - `entry_name` (String) @@ -152,7 +140,7 @@ Optional: ### Nested Schema for `content_delivery_rules.destination.iot_events_destination_configuration` -Required: +Optional: - `input_name` (String) - `role_arn` (String) @@ -161,20 +149,17 @@ Required: ### Nested Schema for `content_delivery_rules.destination.s3_destination_configuration` -Required: +Optional: - `bucket` (String) +- `glue_configuration` (Attributes) (see [below for nested schema](#nestedatt--content_delivery_rules--destination--s3_destination_configuration--glue_configuration)) - `key` (String) - `role_arn` (String) -Optional: - -- `glue_configuration` (Attributes) (see [below for nested schema](#nestedatt--content_delivery_rules--destination--s3_destination_configuration--glue_configuration)) - ### Nested Schema for `content_delivery_rules.destination.s3_destination_configuration.glue_configuration` -Required: +Optional: - `database_name` (String) - `table_name` (String) @@ -186,12 +171,9 @@ Required: ### Nested Schema for `late_data_rules` -Required: - -- `rule_configuration` (Attributes) (see [below for nested schema](#nestedatt--late_data_rules--rule_configuration)) - Optional: +- `rule_configuration` (Attributes) (see [below for nested schema](#nestedatt--late_data_rules--rule_configuration)) - `rule_name` (String) @@ -204,7 +186,7 @@ Optional: ### Nested Schema for `late_data_rules.rule_configuration.delta_time_session_window_configuration` -Required: +Optional: - `timeout_in_minutes` (Number) @@ -223,7 +205,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -240,7 +222,7 @@ Optional: ### Nested Schema for `triggers.schedule` -Required: +Optional: - `schedule_expression` (String) @@ -248,7 +230,7 @@ Required: ### Nested Schema for `triggers.triggering_dataset` -Required: +Optional: - `dataset_name` (String) diff --git a/docs/resources/iotanalytics_datastore.md b/docs/resources/iotanalytics_datastore.md index 812a22ab29..86cebdcc35 100644 --- a/docs/resources/iotanalytics_datastore.md +++ b/docs/resources/iotanalytics_datastore.md @@ -47,7 +47,7 @@ Optional: ### Nested Schema for `datastore_partitions.partitions.partition` -Required: +Optional: - `attribute_name` (String) @@ -55,12 +55,9 @@ Required: ### Nested Schema for `datastore_partitions.partitions.timestamp_partition` -Required: - -- `attribute_name` (String) - Optional: +- `attribute_name` (String) - `timestamp_format` (String) @@ -78,14 +75,11 @@ Optional: ### Nested Schema for `datastore_storage.customer_managed_s3` -Required: - -- `bucket` (String) -- `role_arn` (String) - Optional: +- `bucket` (String) - `key_prefix` (String) +- `role_arn` (String) @@ -98,12 +92,9 @@ Optional: ### Nested Schema for `datastore_storage.iot_site_wise_multi_layer_storage.customer_managed_s3_storage` -Required: - -- `bucket` (String) - Optional: +- `bucket` (String) - `key_prefix` (String) @@ -134,7 +125,7 @@ Optional: ### Nested Schema for `file_format_configuration.parquet_configuration.schema_definition.columns` -Required: +Optional: - `name` (String) - `type` (String) @@ -155,7 +146,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/iotanalytics_pipeline.md b/docs/resources/iotanalytics_pipeline.md index 878e7e0233..4462e8ed82 100644 --- a/docs/resources/iotanalytics_pipeline.md +++ b/docs/resources/iotanalytics_pipeline.md @@ -48,33 +48,27 @@ Optional: ### Nested Schema for `pipeline_activities.add_attributes` -Required: +Optional: - `attributes` (Map of String) - `name` (String) - -Optional: - - `next` (String) ### Nested Schema for `pipeline_activities.channel` -Required: +Optional: - `channel_name` (String) - `name` (String) - -Optional: - - `next` (String) ### Nested Schema for `pipeline_activities.datastore` -Required: +Optional: - `datastore_name` (String) - `name` (String) @@ -83,97 +77,76 @@ Required: ### Nested Schema for `pipeline_activities.device_registry_enrich` -Required: +Optional: - `attribute` (String) - `name` (String) +- `next` (String) - `role_arn` (String) - `thing_name` (String) -Optional: - -- `next` (String) - ### Nested Schema for `pipeline_activities.device_shadow_enrich` -Required: +Optional: - `attribute` (String) - `name` (String) +- `next` (String) - `role_arn` (String) - `thing_name` (String) -Optional: - -- `next` (String) - ### Nested Schema for `pipeline_activities.filter` -Required: +Optional: - `filter` (String) - `name` (String) - -Optional: - - `next` (String) ### Nested Schema for `pipeline_activities.lambda` -Required: +Optional: - `batch_size` (Number) - `lambda_name` (String) - `name` (String) - -Optional: - - `next` (String) ### Nested Schema for `pipeline_activities.math` -Required: +Optional: - `attribute` (String) - `math` (String) - `name` (String) - -Optional: - - `next` (String) ### Nested Schema for `pipeline_activities.remove_attributes` -Required: +Optional: - `attributes` (List of String) - `name` (String) - -Optional: - - `next` (String) ### Nested Schema for `pipeline_activities.select_attributes` -Required: +Optional: - `attributes` (List of String) - `name` (String) - -Optional: - - `next` (String) @@ -181,7 +154,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/iotcoredeviceadvisor_suite_definition.md b/docs/resources/iotcoredeviceadvisor_suite_definition.md index 708b71ce7c..36a109f22c 100644 --- a/docs/resources/iotcoredeviceadvisor_suite_definition.md +++ b/docs/resources/iotcoredeviceadvisor_suite_definition.md @@ -57,7 +57,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/iotevents_alarm_model.md b/docs/resources/iotevents_alarm_model.md index f58e9e91fe..49264e3735 100644 --- a/docs/resources/iotevents_alarm_model.md +++ b/docs/resources/iotevents_alarm_model.md @@ -51,7 +51,7 @@ Optional: ### Nested Schema for `alarm_rule.simple_rule` -Required: +Optional: - `comparison_operator` (String) The comparison operator. - `input_property` (String) The value on the left side of the comparison operator. You can specify an AWS IoT Events input attribute as an input property. @@ -111,20 +111,17 @@ You can use expressions for parameters that are strings. For more information, s ### Nested Schema for `alarm_event_actions.alarm_actions.dynamo_d_bv_2` -Required: - -- `table_name` (String) The name of the DynamoDB table. - Optional: - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the alarm model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--alarm_event_actions--alarm_actions--dynamo_d_bv_2--payload)) +- `table_name` (String) The name of the DynamoDB table. ### Nested Schema for `alarm_event_actions.alarm_actions.dynamo_d_bv_2.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -134,14 +131,9 @@ Required: ### Nested Schema for `alarm_event_actions.alarm_actions.dynamo_db` -Required: - -- `hash_key_field` (String) The name of the hash key (also called the partition key). -- `hash_key_value` (String) The value of the hash key (also called the partition key). -- `table_name` (String) The name of the DynamoDB table. - Optional: +- `hash_key_field` (String) The name of the hash key (also called the partition key). - `hash_key_type` (String) The data type for the hash key (also called the partition key). You can specify the following values: * `STRING` - The hash key is a string. @@ -149,6 +141,7 @@ Optional: * `NUMBER` - The hash key is a number. If you don't specify `hashKeyType`, the default value is `STRING`. +- `hash_key_value` (String) The value of the hash key (also called the partition key). - `operation` (String) The type of operation to perform. You can specify the following values: * `INSERT` - Insert data as a new item into the DynamoDB table. This item uses the specified hash key as a partition key. If you specified a range key, the item uses the range key as a sort key. @@ -173,11 +166,12 @@ If you don't specify this parameter, the name of the DynamoDB column is `payload If you don't specify `rangeKeyField`, the default value is `STRING`. - `range_key_value` (String) The value of the range key (also called the sort key). +- `table_name` (String) The name of the DynamoDB table. ### Nested Schema for `alarm_event_actions.alarm_actions.dynamo_db.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -187,12 +181,9 @@ Required: ### Nested Schema for `alarm_event_actions.alarm_actions.firehose` -Required: - -- `delivery_stream_name` (String) The name of the Kinesis Data Firehose delivery stream where the data is written. - Optional: +- `delivery_stream_name` (String) The name of the Kinesis Data Firehose delivery stream where the data is written. - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the alarm model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--alarm_event_actions--alarm_actions--firehose--payload)) @@ -201,7 +192,7 @@ By default, AWS IoT Events generates a standard payload in JSON for any action. ### Nested Schema for `alarm_event_actions.alarm_actions.firehose.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -211,12 +202,9 @@ Required: ### Nested Schema for `alarm_event_actions.alarm_actions.iot_events` -Required: - -- `input_name` (String) The name of the AWS IoT Events input where the data is sent. - Optional: +- `input_name` (String) The name of the AWS IoT Events input where the data is sent. - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the alarm model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--alarm_event_actions--alarm_actions--iot_events--payload)) @@ -224,7 +212,7 @@ By default, AWS IoT Events generates a standard payload in JSON for any action. ### Nested Schema for `alarm_event_actions.alarm_actions.iot_events.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -245,14 +233,20 @@ Optional: ### Nested Schema for `alarm_event_actions.alarm_actions.iot_site_wise.property_value` -Required: +Optional: +- `quality` (String) The quality of the asset property value. The value must be `GOOD`, `BAD`, or `UNCERTAIN`. You can also specify an expression. +- `timestamp` (Attributes) A structure that contains timestamp information. For more information, see [TimeInNanos](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_TimeInNanos.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--alarm_event_actions--alarm_actions--iot_site_wise--property_value--timestamp)) - `value` (Attributes) A structure that contains an asset property value. For more information, see [Variant](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_Variant.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--alarm_event_actions--alarm_actions--iot_site_wise--property_value--value)) + +### Nested Schema for `alarm_event_actions.alarm_actions.iot_site_wise.property_value.timestamp` + Optional: -- `quality` (String) The quality of the asset property value. The value must be `GOOD`, `BAD`, or `UNCERTAIN`. You can also specify an expression. -- `timestamp` (Attributes) A structure that contains timestamp information. For more information, see [TimeInNanos](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_TimeInNanos.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--alarm_event_actions--alarm_actions--iot_site_wise--property_value--timestamp)) +- `offset_in_nanos` (String) The timestamp, in seconds, in the Unix epoch format. The valid range is between `1-31556889864403199`. You can also specify an expression. +- `time_in_seconds` (String) The nanosecond offset converted from `timeInSeconds`. The valid range is between `0-999999999`. You can also specify an expression. + ### Nested Schema for `alarm_event_actions.alarm_actions.iot_site_wise.property_value.value` @@ -265,29 +259,14 @@ Optional: - `string_value` (String) The asset property value is a string. You can also specify an expression. If you use an expression, the evaluated result should be a string. - -### Nested Schema for `alarm_event_actions.alarm_actions.iot_site_wise.property_value.timestamp` - -Required: - -- `time_in_seconds` (String) The nanosecond offset converted from `timeInSeconds`. The valid range is between `0-999999999`. You can also specify an expression. - -Optional: - -- `offset_in_nanos` (String) The timestamp, in seconds, in the Unix epoch format. The valid range is between `1-31556889864403199`. You can also specify an expression. - - ### Nested Schema for `alarm_event_actions.alarm_actions.iot_topic_publish` -Required: - -- `mqtt_topic` (String) The MQTT topic of the message. You can use a string expression that includes variables (`$variable.`) and input values (`$input..`) as the topic string. - Optional: +- `mqtt_topic` (String) The MQTT topic of the message. You can use a string expression that includes variables (`$variable.`) and input values (`$input..`) as the topic string. - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the alarm model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--alarm_event_actions--alarm_actions--iot_topic_publish--payload)) @@ -295,7 +274,7 @@ By default, AWS IoT Events generates a standard payload in JSON for any action. ### Nested Schema for `alarm_event_actions.alarm_actions.iot_topic_publish.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -305,12 +284,9 @@ Required: ### Nested Schema for `alarm_event_actions.alarm_actions.lambda` -Required: - -- `function_arn` (String) The ARN of the Lambda function that is executed. - Optional: +- `function_arn` (String) The ARN of the Lambda function that is executed. - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the alarm model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--alarm_event_actions--alarm_actions--lambda--payload)) @@ -318,7 +294,7 @@ By default, AWS IoT Events generates a standard payload in JSON for any action. ### Nested Schema for `alarm_event_actions.alarm_actions.lambda.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -328,20 +304,17 @@ Required: ### Nested Schema for `alarm_event_actions.alarm_actions.sns` -Required: - -- `target_arn` (String) The ARN of the Amazon SNS target where the message is sent. - Optional: - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the alarm model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--alarm_event_actions--alarm_actions--sns--payload)) +- `target_arn` (String) The ARN of the Amazon SNS target where the message is sent. ### Nested Schema for `alarm_event_actions.alarm_actions.sns.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -351,21 +324,18 @@ Required: ### Nested Schema for `alarm_event_actions.alarm_actions.sqs` -Required: - -- `queue_url` (String) The URL of the SQS queue where the data is written. - Optional: - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the alarm model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--alarm_event_actions--alarm_actions--sqs--payload)) +- `queue_url` (String) The URL of the SQS queue where the data is written. - `use_base_64` (Boolean) Set this to `TRUE` if you want the data to be base-64 encoded before it is written to the queue. Otherwise, set this to `FALSE`. ### Nested Schema for `alarm_event_actions.alarm_actions.sqs.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -377,7 +347,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) Key of the Tag. - `value` (String) Value of the Tag. diff --git a/docs/resources/iotevents_detector_model.md b/docs/resources/iotevents_detector_model.md index 0437bad31f..c1a270455a 100644 --- a/docs/resources/iotevents_detector_model.md +++ b/docs/resources/iotevents_detector_model.md @@ -67,14 +67,11 @@ Optional: ### Nested Schema for `detector_model_definition.states.on_enter.events` -Required: - -- `event_name` (String) The name of the event. - Optional: - `actions` (Attributes List) The actions to be performed. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_enter--events--actions)) - `condition` (String) The Boolean expression that, when `TRUE`, causes the `actions` to be performed. If not present, the `actions` are performed (=`TRUE`). If the expression result is not a `Boolean` value, the `actions` are not performed (=`FALSE`). +- `event_name` (String) The name of the event. ### Nested Schema for `detector_model_definition.states.on_enter.events.actions` @@ -100,7 +97,7 @@ You can use expressions for parameters that are strings. For more information, s ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.clear_timer` -Required: +Optional: - `timer_name` (String) @@ -108,20 +105,17 @@ Required: ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.dynamo_d_bv_2` -Required: - -- `table_name` (String) The name of the DynamoDB table. - Optional: - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_enter--events--actions--dynamo_d_bv_2--payload)) +- `table_name` (String) The name of the DynamoDB table. ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.dynamo_d_bv_2.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -131,14 +125,9 @@ Required: ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.dynamo_db` -Required: - -- `hash_key_field` (String) The name of the hash key (also called the partition key). -- `hash_key_value` (String) The value of the hash key (also called the partition key). -- `table_name` (String) The name of the DynamoDB table. - Optional: +- `hash_key_field` (String) The name of the hash key (also called the partition key). - `hash_key_type` (String) The data type for the hash key (also called the partition key). You can specify the following values: * `STRING` - The hash key is a string. @@ -146,6 +135,7 @@ Optional: * `NUMBER` - The hash key is a number. If you don't specify `hashKeyType`, the default value is `STRING`. +- `hash_key_value` (String) The value of the hash key (also called the partition key). - `operation` (String) The type of operation to perform. You can specify the following values: * `INSERT` - Insert data as a new item into the DynamoDB table. This item uses the specified hash key as a partition key. If you specified a range key, the item uses the range key as a sort key. @@ -170,11 +160,12 @@ If you don't specify this parameter, the name of the DynamoDB column is `payload If you don't specify `rangeKeyField`, the default value is `STRING`. - `range_key_value` (String) The value of the range key (also called the sort key). +- `table_name` (String) The name of the DynamoDB table. ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.dynamo_db.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -184,12 +175,9 @@ Required: ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.firehose` -Required: - -- `delivery_stream_name` (String) The name of the Kinesis Data Firehose delivery stream where the data is written. - Optional: +- `delivery_stream_name` (String) The name of the Kinesis Data Firehose delivery stream where the data is written. - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_enter--events--actions--firehose--payload)) @@ -198,7 +186,7 @@ By default, AWS IoT Events generates a standard payload in JSON for any action. ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.firehose.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -208,12 +196,9 @@ Required: ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.iot_events` -Required: - -- `input_name` (String) The name of the AWS IoT Events input where the data is sent. - Optional: +- `input_name` (String) The name of the AWS IoT Events input where the data is sent. - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_enter--events--actions--iot_events--payload)) @@ -221,7 +206,7 @@ By default, AWS IoT Events generates a standard payload in JSON for any action. ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.iot_events.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -231,28 +216,31 @@ Required: ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.iot_site_wise` -Required: - -- `property_value` (Attributes) A structure that contains value information. For more information, see [AssetPropertyValue](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetPropertyValue.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_enter--events--actions--iot_site_wise--property_value)) - Optional: - `asset_id` (String) The ID of the asset that has the specified property. You can specify an expression. - `entry_id` (String) A unique identifier for this entry. You can use the entry ID to track which data entry causes an error in case of failure. The default is a new unique identifier. You can also specify an expression. - `property_alias` (String) The alias of the asset property. You can also specify an expression. - `property_id` (String) The ID of the asset property. You can specify an expression. +- `property_value` (Attributes) A structure that contains value information. For more information, see [AssetPropertyValue](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetPropertyValue.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_enter--events--actions--iot_site_wise--property_value)) ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.iot_site_wise.property_value` -Required: +Optional: +- `quality` (String) The quality of the asset property value. The value must be `GOOD`, `BAD`, or `UNCERTAIN`. You can also specify an expression. +- `timestamp` (Attributes) A structure that contains timestamp information. For more information, see [TimeInNanos](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_TimeInNanos.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_enter--events--actions--iot_site_wise--property_value--timestamp)) - `value` (Attributes) A structure that contains an asset property value. For more information, see [Variant](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_Variant.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_enter--events--actions--iot_site_wise--property_value--value)) + +### Nested Schema for `detector_model_definition.states.on_enter.events.actions.iot_site_wise.property_value.timestamp` + Optional: -- `quality` (String) The quality of the asset property value. The value must be `GOOD`, `BAD`, or `UNCERTAIN`. You can also specify an expression. -- `timestamp` (Attributes) A structure that contains timestamp information. For more information, see [TimeInNanos](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_TimeInNanos.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_enter--events--actions--iot_site_wise--property_value--timestamp)) +- `offset_in_nanos` (String) The timestamp, in seconds, in the Unix epoch format. The valid range is between `1-31556889864403199`. You can also specify an expression. +- `time_in_seconds` (String) The nanosecond offset converted from `timeInSeconds`. The valid range is between `0-999999999`. You can also specify an expression. + ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.iot_site_wise.property_value.value` @@ -265,29 +253,14 @@ Optional: - `string_value` (String) The asset property value is a string. You can also specify an expression. If you use an expression, the evaluated result should be a string. - -### Nested Schema for `detector_model_definition.states.on_enter.events.actions.iot_site_wise.property_value.timestamp` - -Required: - -- `time_in_seconds` (String) The nanosecond offset converted from `timeInSeconds`. The valid range is between `0-999999999`. You can also specify an expression. - -Optional: - -- `offset_in_nanos` (String) The timestamp, in seconds, in the Unix epoch format. The valid range is between `1-31556889864403199`. You can also specify an expression. - - ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.iot_topic_publish` -Required: - -- `mqtt_topic` (String) The MQTT topic of the message. You can use a string expression that includes variables (`$variable.`) and input values (`$input..`) as the topic string. - Optional: +- `mqtt_topic` (String) The MQTT topic of the message. You can use a string expression that includes variables (`$variable.`) and input values (`$input..`) as the topic string. - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_enter--events--actions--iot_topic_publish--payload)) @@ -295,7 +268,7 @@ By default, AWS IoT Events generates a standard payload in JSON for any action. ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.iot_topic_publish.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -305,12 +278,9 @@ Required: ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.lambda` -Required: - -- `function_arn` (String) The ARN of the Lambda function that is executed. - Optional: +- `function_arn` (String) The ARN of the Lambda function that is executed. - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_enter--events--actions--lambda--payload)) @@ -318,7 +288,7 @@ By default, AWS IoT Events generates a standard payload in JSON for any action. ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.lambda.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -328,7 +298,7 @@ Required: ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.reset_timer` -Required: +Optional: - `timer_name` (String) The name of the timer to reset. @@ -336,20 +306,17 @@ Required: ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.set_timer` -Required: - -- `timer_name` (String) The name of the timer. - Optional: - `duration_expression` (String) The duration of the timer, in seconds. You can use a string expression that includes numbers, variables (`$variable.`), and input values (`$input..`) as the duration. The range of the duration is `1-31622400` seconds. To ensure accuracy, the minimum duration is `60` seconds. The evaluated result of the duration is rounded down to the nearest whole number. - `seconds` (Number) The number of seconds until the timer expires. The minimum value is `60` seconds to ensure accuracy. The maximum value is `31622400` seconds. +- `timer_name` (String) The name of the timer. ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.set_variable` -Required: +Optional: - `value` (String) The new value of the variable. - `variable_name` (String) The name of the variable. @@ -358,20 +325,17 @@ Required: ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.sns` -Required: - -- `target_arn` (String) The ARN of the Amazon SNS target where the message is sent. - Optional: - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_enter--events--actions--sns--payload)) +- `target_arn` (String) The ARN of the Amazon SNS target where the message is sent. ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.sns.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -381,21 +345,18 @@ Required: ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.sqs` -Required: - -- `queue_url` (String) The URL of the SQS queue where the data is written. - Optional: - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_enter--events--actions--sqs--payload)) +- `queue_url` (String) The URL of the SQS queue where the data is written. - `use_base_64` (Boolean) Set this to `TRUE` if you want the data to be base-64 encoded before it is written to the queue. Otherwise, set this to `FALSE`. ### Nested Schema for `detector_model_definition.states.on_enter.events.actions.sqs.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -415,14 +376,11 @@ Optional: ### Nested Schema for `detector_model_definition.states.on_exit.events` -Required: - -- `event_name` (String) The name of the event. - Optional: - `actions` (Attributes List) The actions to be performed. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_exit--events--actions)) - `condition` (String) The Boolean expression that, when `TRUE`, causes the `actions` to be performed. If not present, the `actions` are performed (=`TRUE`). If the expression result is not a `Boolean` value, the `actions` are not performed (=`FALSE`). +- `event_name` (String) The name of the event. ### Nested Schema for `detector_model_definition.states.on_exit.events.actions` @@ -448,7 +406,7 @@ You can use expressions for parameters that are strings. For more information, s ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.clear_timer` -Required: +Optional: - `timer_name` (String) @@ -456,20 +414,17 @@ Required: ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.dynamo_d_bv_2` -Required: - -- `table_name` (String) The name of the DynamoDB table. - Optional: - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_exit--events--actions--dynamo_d_bv_2--payload)) +- `table_name` (String) The name of the DynamoDB table. ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.dynamo_d_bv_2.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -479,14 +434,9 @@ Required: ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.dynamo_db` -Required: - -- `hash_key_field` (String) The name of the hash key (also called the partition key). -- `hash_key_value` (String) The value of the hash key (also called the partition key). -- `table_name` (String) The name of the DynamoDB table. - Optional: +- `hash_key_field` (String) The name of the hash key (also called the partition key). - `hash_key_type` (String) The data type for the hash key (also called the partition key). You can specify the following values: * `STRING` - The hash key is a string. @@ -494,6 +444,7 @@ Optional: * `NUMBER` - The hash key is a number. If you don't specify `hashKeyType`, the default value is `STRING`. +- `hash_key_value` (String) The value of the hash key (also called the partition key). - `operation` (String) The type of operation to perform. You can specify the following values: * `INSERT` - Insert data as a new item into the DynamoDB table. This item uses the specified hash key as a partition key. If you specified a range key, the item uses the range key as a sort key. @@ -518,11 +469,12 @@ If you don't specify this parameter, the name of the DynamoDB column is `payload If you don't specify `rangeKeyField`, the default value is `STRING`. - `range_key_value` (String) The value of the range key (also called the sort key). +- `table_name` (String) The name of the DynamoDB table. ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.dynamo_db.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -532,12 +484,9 @@ Required: ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.firehose` -Required: - -- `delivery_stream_name` (String) The name of the Kinesis Data Firehose delivery stream where the data is written. - Optional: +- `delivery_stream_name` (String) The name of the Kinesis Data Firehose delivery stream where the data is written. - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_exit--events--actions--firehose--payload)) @@ -546,7 +495,7 @@ By default, AWS IoT Events generates a standard payload in JSON for any action. ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.firehose.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -556,12 +505,9 @@ Required: ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.iot_events` -Required: - -- `input_name` (String) The name of the AWS IoT Events input where the data is sent. - Optional: +- `input_name` (String) The name of the AWS IoT Events input where the data is sent. - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_exit--events--actions--iot_events--payload)) @@ -569,7 +515,7 @@ By default, AWS IoT Events generates a standard payload in JSON for any action. ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.iot_events.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -579,28 +525,31 @@ Required: ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.iot_site_wise` -Required: - -- `property_value` (Attributes) A structure that contains value information. For more information, see [AssetPropertyValue](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetPropertyValue.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_exit--events--actions--iot_site_wise--property_value)) - Optional: - `asset_id` (String) The ID of the asset that has the specified property. You can specify an expression. - `entry_id` (String) A unique identifier for this entry. You can use the entry ID to track which data entry causes an error in case of failure. The default is a new unique identifier. You can also specify an expression. - `property_alias` (String) The alias of the asset property. You can also specify an expression. - `property_id` (String) The ID of the asset property. You can specify an expression. +- `property_value` (Attributes) A structure that contains value information. For more information, see [AssetPropertyValue](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetPropertyValue.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_exit--events--actions--iot_site_wise--property_value)) ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.iot_site_wise.property_value` -Required: +Optional: +- `quality` (String) The quality of the asset property value. The value must be `GOOD`, `BAD`, or `UNCERTAIN`. You can also specify an expression. +- `timestamp` (Attributes) A structure that contains timestamp information. For more information, see [TimeInNanos](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_TimeInNanos.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_exit--events--actions--iot_site_wise--property_value--timestamp)) - `value` (Attributes) A structure that contains an asset property value. For more information, see [Variant](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_Variant.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_exit--events--actions--iot_site_wise--property_value--value)) + +### Nested Schema for `detector_model_definition.states.on_exit.events.actions.iot_site_wise.property_value.timestamp` + Optional: -- `quality` (String) The quality of the asset property value. The value must be `GOOD`, `BAD`, or `UNCERTAIN`. You can also specify an expression. -- `timestamp` (Attributes) A structure that contains timestamp information. For more information, see [TimeInNanos](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_TimeInNanos.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_exit--events--actions--iot_site_wise--property_value--timestamp)) +- `offset_in_nanos` (String) The timestamp, in seconds, in the Unix epoch format. The valid range is between `1-31556889864403199`. You can also specify an expression. +- `time_in_seconds` (String) The nanosecond offset converted from `timeInSeconds`. The valid range is between `0-999999999`. You can also specify an expression. + ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.iot_site_wise.property_value.value` @@ -613,29 +562,14 @@ Optional: - `string_value` (String) The asset property value is a string. You can also specify an expression. If you use an expression, the evaluated result should be a string. - -### Nested Schema for `detector_model_definition.states.on_exit.events.actions.iot_site_wise.property_value.timestamp` - -Required: - -- `time_in_seconds` (String) The nanosecond offset converted from `timeInSeconds`. The valid range is between `0-999999999`. You can also specify an expression. - -Optional: - -- `offset_in_nanos` (String) The timestamp, in seconds, in the Unix epoch format. The valid range is between `1-31556889864403199`. You can also specify an expression. - - ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.iot_topic_publish` -Required: - -- `mqtt_topic` (String) The MQTT topic of the message. You can use a string expression that includes variables (`$variable.`) and input values (`$input..`) as the topic string. - Optional: +- `mqtt_topic` (String) The MQTT topic of the message. You can use a string expression that includes variables (`$variable.`) and input values (`$input..`) as the topic string. - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_exit--events--actions--iot_topic_publish--payload)) @@ -643,7 +577,7 @@ By default, AWS IoT Events generates a standard payload in JSON for any action. ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.iot_topic_publish.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -653,12 +587,9 @@ Required: ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.lambda` -Required: - -- `function_arn` (String) The ARN of the Lambda function that is executed. - Optional: +- `function_arn` (String) The ARN of the Lambda function that is executed. - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_exit--events--actions--lambda--payload)) @@ -666,7 +597,7 @@ By default, AWS IoT Events generates a standard payload in JSON for any action. ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.lambda.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -676,7 +607,7 @@ Required: ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.reset_timer` -Required: +Optional: - `timer_name` (String) The name of the timer to reset. @@ -684,20 +615,17 @@ Required: ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.set_timer` -Required: - -- `timer_name` (String) The name of the timer. - Optional: - `duration_expression` (String) The duration of the timer, in seconds. You can use a string expression that includes numbers, variables (`$variable.`), and input values (`$input..`) as the duration. The range of the duration is `1-31622400` seconds. To ensure accuracy, the minimum duration is `60` seconds. The evaluated result of the duration is rounded down to the nearest whole number. - `seconds` (Number) The number of seconds until the timer expires. The minimum value is `60` seconds to ensure accuracy. The maximum value is `31622400` seconds. +- `timer_name` (String) The name of the timer. ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.set_variable` -Required: +Optional: - `value` (String) The new value of the variable. - `variable_name` (String) The name of the variable. @@ -706,20 +634,17 @@ Required: ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.sns` -Required: - -- `target_arn` (String) The ARN of the Amazon SNS target where the message is sent. - Optional: - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_exit--events--actions--sns--payload)) +- `target_arn` (String) The ARN of the Amazon SNS target where the message is sent. ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.sns.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -729,21 +654,18 @@ Required: ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.sqs` -Required: - -- `queue_url` (String) The URL of the SQS queue where the data is written. - Optional: - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_exit--events--actions--sqs--payload)) +- `queue_url` (String) The URL of the SQS queue where the data is written. - `use_base_64` (Boolean) Set this to `TRUE` if you want the data to be base-64 encoded before it is written to the queue. Otherwise, set this to `FALSE`. ### Nested Schema for `detector_model_definition.states.on_exit.events.actions.sqs.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -764,14 +686,11 @@ Optional: ### Nested Schema for `detector_model_definition.states.on_input.events` -Required: - -- `event_name` (String) The name of the event. - Optional: - `actions` (Attributes List) The actions to be performed. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--events--actions)) - `condition` (String) The Boolean expression that, when `TRUE`, causes the `actions` to be performed. If not present, the `actions` are performed (=`TRUE`). If the expression result is not a `Boolean` value, the `actions` are not performed (=`FALSE`). +- `event_name` (String) The name of the event. ### Nested Schema for `detector_model_definition.states.on_input.events.actions` @@ -797,7 +716,7 @@ You can use expressions for parameters that are strings. For more information, s ### Nested Schema for `detector_model_definition.states.on_input.events.actions.clear_timer` -Required: +Optional: - `timer_name` (String) @@ -805,20 +724,17 @@ Required: ### Nested Schema for `detector_model_definition.states.on_input.events.actions.dynamo_d_bv_2` -Required: - -- `table_name` (String) The name of the DynamoDB table. - Optional: - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--events--actions--dynamo_d_bv_2--payload)) +- `table_name` (String) The name of the DynamoDB table. ### Nested Schema for `detector_model_definition.states.on_input.events.actions.dynamo_d_bv_2.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -828,14 +744,9 @@ Required: ### Nested Schema for `detector_model_definition.states.on_input.events.actions.dynamo_db` -Required: - -- `hash_key_field` (String) The name of the hash key (also called the partition key). -- `hash_key_value` (String) The value of the hash key (also called the partition key). -- `table_name` (String) The name of the DynamoDB table. - Optional: +- `hash_key_field` (String) The name of the hash key (also called the partition key). - `hash_key_type` (String) The data type for the hash key (also called the partition key). You can specify the following values: * `STRING` - The hash key is a string. @@ -843,6 +754,7 @@ Optional: * `NUMBER` - The hash key is a number. If you don't specify `hashKeyType`, the default value is `STRING`. +- `hash_key_value` (String) The value of the hash key (also called the partition key). - `operation` (String) The type of operation to perform. You can specify the following values: * `INSERT` - Insert data as a new item into the DynamoDB table. This item uses the specified hash key as a partition key. If you specified a range key, the item uses the range key as a sort key. @@ -867,11 +779,12 @@ If you don't specify this parameter, the name of the DynamoDB column is `payload If you don't specify `rangeKeyField`, the default value is `STRING`. - `range_key_value` (String) The value of the range key (also called the sort key). +- `table_name` (String) The name of the DynamoDB table. ### Nested Schema for `detector_model_definition.states.on_input.events.actions.dynamo_db.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -881,12 +794,9 @@ Required: ### Nested Schema for `detector_model_definition.states.on_input.events.actions.firehose` -Required: - -- `delivery_stream_name` (String) The name of the Kinesis Data Firehose delivery stream where the data is written. - Optional: +- `delivery_stream_name` (String) The name of the Kinesis Data Firehose delivery stream where the data is written. - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--events--actions--firehose--payload)) @@ -895,7 +805,7 @@ By default, AWS IoT Events generates a standard payload in JSON for any action. ### Nested Schema for `detector_model_definition.states.on_input.events.actions.firehose.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -905,12 +815,9 @@ Required: ### Nested Schema for `detector_model_definition.states.on_input.events.actions.iot_events` -Required: - -- `input_name` (String) The name of the AWS IoT Events input where the data is sent. - Optional: +- `input_name` (String) The name of the AWS IoT Events input where the data is sent. - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--events--actions--iot_events--payload)) @@ -918,7 +825,7 @@ By default, AWS IoT Events generates a standard payload in JSON for any action. ### Nested Schema for `detector_model_definition.states.on_input.events.actions.iot_events.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -928,28 +835,31 @@ Required: ### Nested Schema for `detector_model_definition.states.on_input.events.actions.iot_site_wise` -Required: - -- `property_value` (Attributes) A structure that contains value information. For more information, see [AssetPropertyValue](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetPropertyValue.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--events--actions--iot_site_wise--property_value)) - Optional: - `asset_id` (String) The ID of the asset that has the specified property. You can specify an expression. - `entry_id` (String) A unique identifier for this entry. You can use the entry ID to track which data entry causes an error in case of failure. The default is a new unique identifier. You can also specify an expression. - `property_alias` (String) The alias of the asset property. You can also specify an expression. - `property_id` (String) The ID of the asset property. You can specify an expression. +- `property_value` (Attributes) A structure that contains value information. For more information, see [AssetPropertyValue](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetPropertyValue.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--events--actions--iot_site_wise--property_value)) ### Nested Schema for `detector_model_definition.states.on_input.events.actions.iot_site_wise.property_value` -Required: +Optional: +- `quality` (String) The quality of the asset property value. The value must be `GOOD`, `BAD`, or `UNCERTAIN`. You can also specify an expression. +- `timestamp` (Attributes) A structure that contains timestamp information. For more information, see [TimeInNanos](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_TimeInNanos.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--events--actions--iot_site_wise--property_value--timestamp)) - `value` (Attributes) A structure that contains an asset property value. For more information, see [Variant](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_Variant.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--events--actions--iot_site_wise--property_value--value)) + +### Nested Schema for `detector_model_definition.states.on_input.events.actions.iot_site_wise.property_value.timestamp` + Optional: -- `quality` (String) The quality of the asset property value. The value must be `GOOD`, `BAD`, or `UNCERTAIN`. You can also specify an expression. -- `timestamp` (Attributes) A structure that contains timestamp information. For more information, see [TimeInNanos](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_TimeInNanos.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--events--actions--iot_site_wise--property_value--timestamp)) +- `offset_in_nanos` (String) The timestamp, in seconds, in the Unix epoch format. The valid range is between `1-31556889864403199`. You can also specify an expression. +- `time_in_seconds` (String) The nanosecond offset converted from `timeInSeconds`. The valid range is between `0-999999999`. You can also specify an expression. + ### Nested Schema for `detector_model_definition.states.on_input.events.actions.iot_site_wise.property_value.value` @@ -962,29 +872,14 @@ Optional: - `string_value` (String) The asset property value is a string. You can also specify an expression. If you use an expression, the evaluated result should be a string. - -### Nested Schema for `detector_model_definition.states.on_input.events.actions.iot_site_wise.property_value.timestamp` - -Required: - -- `time_in_seconds` (String) The nanosecond offset converted from `timeInSeconds`. The valid range is between `0-999999999`. You can also specify an expression. - -Optional: - -- `offset_in_nanos` (String) The timestamp, in seconds, in the Unix epoch format. The valid range is between `1-31556889864403199`. You can also specify an expression. - - ### Nested Schema for `detector_model_definition.states.on_input.events.actions.iot_topic_publish` -Required: - -- `mqtt_topic` (String) The MQTT topic of the message. You can use a string expression that includes variables (`$variable.`) and input values (`$input..`) as the topic string. - Optional: +- `mqtt_topic` (String) The MQTT topic of the message. You can use a string expression that includes variables (`$variable.`) and input values (`$input..`) as the topic string. - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--events--actions--iot_topic_publish--payload)) @@ -992,7 +887,7 @@ By default, AWS IoT Events generates a standard payload in JSON for any action. ### Nested Schema for `detector_model_definition.states.on_input.events.actions.iot_topic_publish.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -1002,12 +897,9 @@ Required: ### Nested Schema for `detector_model_definition.states.on_input.events.actions.lambda` -Required: - -- `function_arn` (String) The ARN of the Lambda function that is executed. - Optional: +- `function_arn` (String) The ARN of the Lambda function that is executed. - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--events--actions--lambda--payload)) @@ -1015,7 +907,7 @@ By default, AWS IoT Events generates a standard payload in JSON for any action. ### Nested Schema for `detector_model_definition.states.on_input.events.actions.lambda.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -1025,7 +917,7 @@ Required: ### Nested Schema for `detector_model_definition.states.on_input.events.actions.reset_timer` -Required: +Optional: - `timer_name` (String) The name of the timer to reset. @@ -1033,20 +925,17 @@ Required: ### Nested Schema for `detector_model_definition.states.on_input.events.actions.set_timer` -Required: - -- `timer_name` (String) The name of the timer. - Optional: - `duration_expression` (String) The duration of the timer, in seconds. You can use a string expression that includes numbers, variables (`$variable.`), and input values (`$input..`) as the duration. The range of the duration is `1-31622400` seconds. To ensure accuracy, the minimum duration is `60` seconds. The evaluated result of the duration is rounded down to the nearest whole number. - `seconds` (Number) The number of seconds until the timer expires. The minimum value is `60` seconds to ensure accuracy. The maximum value is `31622400` seconds. +- `timer_name` (String) The name of the timer. ### Nested Schema for `detector_model_definition.states.on_input.events.actions.set_variable` -Required: +Optional: - `value` (String) The new value of the variable. - `variable_name` (String) The name of the variable. @@ -1055,20 +944,17 @@ Required: ### Nested Schema for `detector_model_definition.states.on_input.events.actions.sns` -Required: - -- `target_arn` (String) The ARN of the Amazon SNS target where the message is sent. - Optional: - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--events--actions--sns--payload)) +- `target_arn` (String) The ARN of the Amazon SNS target where the message is sent. ### Nested Schema for `detector_model_definition.states.on_input.events.actions.sns.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -1078,21 +964,18 @@ Required: ### Nested Schema for `detector_model_definition.states.on_input.events.actions.sqs` -Required: - -- `queue_url` (String) The URL of the SQS queue where the data is written. - Optional: - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--events--actions--sqs--payload)) +- `queue_url` (String) The URL of the SQS queue where the data is written. - `use_base_64` (Boolean) Set this to `TRUE` if you want the data to be base-64 encoded before it is written to the queue. Otherwise, set this to `FALSE`. ### Nested Schema for `detector_model_definition.states.on_input.events.actions.sqs.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -1104,16 +987,13 @@ Required: ### Nested Schema for `detector_model_definition.states.on_input.transition_events` -Required: +Optional: +- `actions` (Attributes List) The actions to be performed. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--transition_events--actions)) - `condition` (String) A Boolean expression that when `TRUE` causes the `actions` to be performed and the `nextState` to be entered. - `event_name` (String) The name of the event. - `next_state` (String) The next state to enter. -Optional: - -- `actions` (Attributes List) The actions to be performed. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--transition_events--actions)) - ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions` @@ -1138,7 +1018,7 @@ You can use expressions for parameters that are strings. For more information, s ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.clear_timer` -Required: +Optional: - `timer_name` (String) @@ -1146,20 +1026,17 @@ Required: ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.dynamo_d_bv_2` -Required: - -- `table_name` (String) The name of the DynamoDB table. - Optional: - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--transition_events--actions--dynamo_d_bv_2--payload)) +- `table_name` (String) The name of the DynamoDB table. ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.dynamo_d_bv_2.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -1169,14 +1046,9 @@ Required: ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.dynamo_db` -Required: - -- `hash_key_field` (String) The name of the hash key (also called the partition key). -- `hash_key_value` (String) The value of the hash key (also called the partition key). -- `table_name` (String) The name of the DynamoDB table. - Optional: +- `hash_key_field` (String) The name of the hash key (also called the partition key). - `hash_key_type` (String) The data type for the hash key (also called the partition key). You can specify the following values: * `STRING` - The hash key is a string. @@ -1184,6 +1056,7 @@ Optional: * `NUMBER` - The hash key is a number. If you don't specify `hashKeyType`, the default value is `STRING`. +- `hash_key_value` (String) The value of the hash key (also called the partition key). - `operation` (String) The type of operation to perform. You can specify the following values: * `INSERT` - Insert data as a new item into the DynamoDB table. This item uses the specified hash key as a partition key. If you specified a range key, the item uses the range key as a sort key. @@ -1208,11 +1081,12 @@ If you don't specify this parameter, the name of the DynamoDB column is `payload If you don't specify `rangeKeyField`, the default value is `STRING`. - `range_key_value` (String) The value of the range key (also called the sort key). +- `table_name` (String) The name of the DynamoDB table. ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.dynamo_db.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -1222,12 +1096,9 @@ Required: ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.firehose` -Required: - -- `delivery_stream_name` (String) The name of the Kinesis Data Firehose delivery stream where the data is written. - Optional: +- `delivery_stream_name` (String) The name of the Kinesis Data Firehose delivery stream where the data is written. - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--transition_events--actions--firehose--payload)) @@ -1236,7 +1107,7 @@ By default, AWS IoT Events generates a standard payload in JSON for any action. ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.firehose.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -1246,12 +1117,9 @@ Required: ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.iot_events` -Required: - -- `input_name` (String) The name of the AWS IoT Events input where the data is sent. - Optional: +- `input_name` (String) The name of the AWS IoT Events input where the data is sent. - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--transition_events--actions--iot_events--payload)) @@ -1259,7 +1127,7 @@ By default, AWS IoT Events generates a standard payload in JSON for any action. ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.iot_events.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -1269,28 +1137,31 @@ Required: ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.iot_site_wise` -Required: - -- `property_value` (Attributes) A structure that contains value information. For more information, see [AssetPropertyValue](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetPropertyValue.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--transition_events--actions--iot_site_wise--property_value)) - Optional: - `asset_id` (String) The ID of the asset that has the specified property. You can specify an expression. - `entry_id` (String) A unique identifier for this entry. You can use the entry ID to track which data entry causes an error in case of failure. The default is a new unique identifier. You can also specify an expression. - `property_alias` (String) The alias of the asset property. You can also specify an expression. - `property_id` (String) The ID of the asset property. You can specify an expression. +- `property_value` (Attributes) A structure that contains value information. For more information, see [AssetPropertyValue](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetPropertyValue.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--transition_events--actions--iot_site_wise--property_value)) ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.iot_site_wise.property_value` -Required: +Optional: +- `quality` (String) The quality of the asset property value. The value must be `GOOD`, `BAD`, or `UNCERTAIN`. You can also specify an expression. +- `timestamp` (Attributes) A structure that contains timestamp information. For more information, see [TimeInNanos](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_TimeInNanos.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--transition_events--actions--iot_site_wise--property_value--timestamp)) - `value` (Attributes) A structure that contains an asset property value. For more information, see [Variant](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_Variant.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--transition_events--actions--iot_site_wise--property_value--value)) + +### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.iot_site_wise.property_value.timestamp` + Optional: -- `quality` (String) The quality of the asset property value. The value must be `GOOD`, `BAD`, or `UNCERTAIN`. You can also specify an expression. -- `timestamp` (Attributes) A structure that contains timestamp information. For more information, see [TimeInNanos](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_TimeInNanos.html) in the *AWS IoT SiteWise API Reference*. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--transition_events--actions--iot_site_wise--property_value--timestamp)) +- `offset_in_nanos` (String) The timestamp, in seconds, in the Unix epoch format. The valid range is between `1-31556889864403199`. You can also specify an expression. +- `time_in_seconds` (String) The nanosecond offset converted from `timeInSeconds`. The valid range is between `0-999999999`. You can also specify an expression. + ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.iot_site_wise.property_value.value` @@ -1303,29 +1174,14 @@ Optional: - `string_value` (String) The asset property value is a string. You can also specify an expression. If you use an expression, the evaluated result should be a string. - -### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.iot_site_wise.property_value.timestamp` - -Required: - -- `time_in_seconds` (String) The nanosecond offset converted from `timeInSeconds`. The valid range is between `0-999999999`. You can also specify an expression. - -Optional: - -- `offset_in_nanos` (String) The timestamp, in seconds, in the Unix epoch format. The valid range is between `1-31556889864403199`. You can also specify an expression. - - ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.iot_topic_publish` -Required: - -- `mqtt_topic` (String) The MQTT topic of the message. You can use a string expression that includes variables (`$variable.`) and input values (`$input..`) as the topic string. - Optional: +- `mqtt_topic` (String) The MQTT topic of the message. You can use a string expression that includes variables (`$variable.`) and input values (`$input..`) as the topic string. - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--transition_events--actions--iot_topic_publish--payload)) @@ -1333,7 +1189,7 @@ By default, AWS IoT Events generates a standard payload in JSON for any action. ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.iot_topic_publish.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -1343,12 +1199,9 @@ Required: ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.lambda` -Required: - -- `function_arn` (String) The ARN of the Lambda function that is executed. - Optional: +- `function_arn` (String) The ARN of the Lambda function that is executed. - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--transition_events--actions--lambda--payload)) @@ -1356,7 +1209,7 @@ By default, AWS IoT Events generates a standard payload in JSON for any action. ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.lambda.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -1366,7 +1219,7 @@ Required: ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.reset_timer` -Required: +Optional: - `timer_name` (String) The name of the timer to reset. @@ -1374,20 +1227,17 @@ Required: ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.set_timer` -Required: - -- `timer_name` (String) The name of the timer. - Optional: - `duration_expression` (String) The duration of the timer, in seconds. You can use a string expression that includes numbers, variables (`$variable.`), and input values (`$input..`) as the duration. The range of the duration is `1-31622400` seconds. To ensure accuracy, the minimum duration is `60` seconds. The evaluated result of the duration is rounded down to the nearest whole number. - `seconds` (Number) The number of seconds until the timer expires. The minimum value is `60` seconds to ensure accuracy. The maximum value is `31622400` seconds. +- `timer_name` (String) The name of the timer. ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.set_variable` -Required: +Optional: - `value` (String) The new value of the variable. - `variable_name` (String) The name of the variable. @@ -1396,20 +1246,17 @@ Required: ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.sns` -Required: - -- `target_arn` (String) The ARN of the Amazon SNS target where the message is sent. - Optional: - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--transition_events--actions--sns--payload)) +- `target_arn` (String) The ARN of the Amazon SNS target where the message is sent. ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.sns.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -1419,21 +1266,18 @@ Required: ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.sqs` -Required: - -- `queue_url` (String) The URL of the SQS queue where the data is written. - Optional: - `payload` (Attributes) Information needed to configure the payload. By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`. (see [below for nested schema](#nestedatt--detector_model_definition--states--on_input--transition_events--actions--sqs--payload)) +- `queue_url` (String) The URL of the SQS queue where the data is written. - `use_base_64` (Boolean) Set this to `TRUE` if you want the data to be base-64 encoded before it is written to the queue. Otherwise, set this to `FALSE`. ### Nested Schema for `detector_model_definition.states.on_input.transition_events.actions.sqs.payload` -Required: +Optional: - `content_expression` (String) The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB. - `type` (String) The value of the payload type can be either `STRING` or `JSON`. @@ -1448,7 +1292,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) Key of the Tag. - `value` (String) Value of the Tag. diff --git a/docs/resources/iotevents_input.md b/docs/resources/iotevents_input.md index f18244a3f8..76df0bebe6 100644 --- a/docs/resources/iotevents_input.md +++ b/docs/resources/iotevents_input.md @@ -72,7 +72,7 @@ _Syntax_: `....` ### Nested Schema for `tags` -Required: +Optional: - `key` (String) Key of the Tag. - `value` (String) Value of the Tag. diff --git a/docs/resources/iotfleethub_application.md b/docs/resources/iotfleethub_application.md index 3dbf95d2b0..f2d858dd2b 100644 --- a/docs/resources/iotfleethub_application.md +++ b/docs/resources/iotfleethub_application.md @@ -40,7 +40,7 @@ Resource schema for AWS::IoTFleetHub::Application ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/iotfleetwise_campaign.md b/docs/resources/iotfleetwise_campaign.md index fb1cb03e0b..5dbccada05 100644 --- a/docs/resources/iotfleetwise_campaign.md +++ b/docs/resources/iotfleetwise_campaign.md @@ -57,13 +57,10 @@ Optional: ### Nested Schema for `collection_scheme.condition_based_collection_scheme` -Required: - -- `expression` (String) - Optional: - `condition_language_version` (Number) +- `expression` (String) - `minimum_trigger_interval_ms` (Number) - `trigger_mode` (String) @@ -71,7 +68,7 @@ Optional: ### Nested Schema for `collection_scheme.time_based_collection_scheme` -Required: +Optional: - `period_ms` (Number) @@ -89,7 +86,7 @@ Optional: ### Nested Schema for `data_destination_configs.mqtt_topic_config` -Required: +Optional: - `execution_role_arn` (String) - `mqtt_topic_arn` (String) @@ -98,12 +95,9 @@ Required: ### Nested Schema for `data_destination_configs.s3_config` -Required: - -- `bucket_arn` (String) - Optional: +- `bucket_arn` (String) - `data_format` (String) - `prefix` (String) - `storage_compression_format` (String) @@ -112,7 +106,7 @@ Optional: ### Nested Schema for `data_destination_configs.timestream_config` -Required: +Optional: - `execution_role_arn` (String) - `timestream_table_arn` (String) @@ -122,20 +116,17 @@ Required: ### Nested Schema for `signals_to_collect` -Required: - -- `name` (String) - Optional: - `max_sample_count` (Number) - `minimum_sampling_interval_ms` (Number) +- `name` (String) ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/iotfleetwise_fleet.md b/docs/resources/iotfleetwise_fleet.md index 1f33f37c9e..a37d0a298e 100644 --- a/docs/resources/iotfleetwise_fleet.md +++ b/docs/resources/iotfleetwise_fleet.md @@ -35,7 +35,7 @@ Definition of AWS::IoTFleetWise::Fleet Resource Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/iotfleetwise_model_manifest.md b/docs/resources/iotfleetwise_model_manifest.md index 245ef643c6..f085309dcd 100644 --- a/docs/resources/iotfleetwise_model_manifest.md +++ b/docs/resources/iotfleetwise_model_manifest.md @@ -37,7 +37,7 @@ Definition of AWS::IoTFleetWise::ModelManifest Resource Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/iotfleetwise_signal_catalog.md b/docs/resources/iotfleetwise_signal_catalog.md index 7bc1d4383e..b86a850d0f 100644 --- a/docs/resources/iotfleetwise_signal_catalog.md +++ b/docs/resources/iotfleetwise_signal_catalog.md @@ -55,16 +55,13 @@ Optional: ### Nested Schema for `nodes.actuator` -Required: - -- `data_type` (String) -- `fully_qualified_name` (String) - Optional: - `allowed_values` (List of String) - `assigned_value` (String) +- `data_type` (String) - `description` (String) +- `fully_qualified_name` (String) - `max` (Number) - `min` (Number) - `unit` (String) @@ -73,17 +70,14 @@ Optional: ### Nested Schema for `nodes.attribute` -Required: - -- `data_type` (String) -- `fully_qualified_name` (String) - Optional: - `allowed_values` (List of String) - `assigned_value` (String) +- `data_type` (String) - `default_value` (String) - `description` (String) +- `fully_qualified_name` (String) - `max` (Number) - `min` (Number) - `unit` (String) @@ -92,27 +86,21 @@ Optional: ### Nested Schema for `nodes.branch` -Required: - -- `fully_qualified_name` (String) - Optional: - `description` (String) +- `fully_qualified_name` (String) ### Nested Schema for `nodes.sensor` -Required: - -- `data_type` (String) -- `fully_qualified_name` (String) - Optional: - `allowed_values` (List of String) +- `data_type` (String) - `description` (String) +- `fully_qualified_name` (String) - `max` (Number) - `min` (Number) - `unit` (String) @@ -122,7 +110,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/iotfleetwise_vehicle.md b/docs/resources/iotfleetwise_vehicle.md index ed79d7646c..cb592ae66b 100644 --- a/docs/resources/iotfleetwise_vehicle.md +++ b/docs/resources/iotfleetwise_vehicle.md @@ -37,7 +37,7 @@ Definition of AWS::IoTFleetWise::Vehicle Resource Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/iotsitewise_asset.md b/docs/resources/iotsitewise_asset.md index 5ed03d4886..db58f1a75d 100644 --- a/docs/resources/iotsitewise_asset.md +++ b/docs/resources/iotsitewise_asset.md @@ -37,12 +37,9 @@ Resource schema for AWS::IoTSiteWise::Asset ### Nested Schema for `asset_hierarchies` -Required: - -- `child_asset_id` (String) The ID of the child asset to be associated. - Optional: +- `child_asset_id` (String) The ID of the child asset to be associated. - `external_id` (String) String-friendly customer provided external ID - `id` (String) Customer provided actual UUID for property - `logical_id` (String) The LogicalID of a hierarchy in the parent asset's model. @@ -64,7 +61,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/iotsitewise_asset_model.md b/docs/resources/iotsitewise_asset_model.md index ad6c95192f..ce61962ba4 100644 --- a/docs/resources/iotsitewise_asset_model.md +++ b/docs/resources/iotsitewise_asset_model.md @@ -38,11 +38,6 @@ Resource schema for AWS::IoTSiteWise::AssetModel ### Nested Schema for `asset_model_composite_models` -Required: - -- `name` (String) A unique, friendly name for the asset composite model. -- `type` (String) The type of the composite model. For alarm composite models, this type is AWS/ALARM - Optional: - `composed_asset_model_id` (String) The component model ID for which the composite model is composed of @@ -50,38 +45,34 @@ Optional: - `description` (String) A description for the asset composite model. - `external_id` (String) The External ID of the composite model - `id` (String) The Actual ID of the composite model +- `name` (String) A unique, friendly name for the asset composite model. - `parent_asset_model_composite_model_external_id` (String) The parent composite model External ID - `path` (List of String) The path of the composite model. This is only for derived composite models +- `type` (String) The type of the composite model. For alarm composite models, this type is AWS/ALARM ### Nested Schema for `asset_model_composite_models.composite_model_properties` -Required: - -- `data_type` (String) The data type of the asset model property. -- `name` (String) The name of the asset model property. -- `type` (Attributes) The property type (see [below for nested schema](#nestedatt--asset_model_composite_models--composite_model_properties--type)) - Optional: +- `data_type` (String) The data type of the asset model property. - `data_type_spec` (String) The data type of the structure for this property. - `external_id` (String) The External ID of the Asset Model Property - `id` (String) The ID of the Asset Model Property - `logical_id` (String) Customer provided Logical ID for property. +- `name` (String) The name of the asset model property. +- `type` (Attributes) The property type (see [below for nested schema](#nestedatt--asset_model_composite_models--composite_model_properties--type)) - `unit` (String) The unit of the asset model property, such as Newtons or RPM. ### Nested Schema for `asset_model_composite_models.composite_model_properties.type` -Required: - -- `type_name` (String) - Optional: - `attribute` (Attributes) (see [below for nested schema](#nestedatt--asset_model_composite_models--composite_model_properties--type--attribute)) - `metric` (Attributes) (see [below for nested schema](#nestedatt--asset_model_composite_models--composite_model_properties--type--metric)) - `transform` (Attributes) (see [below for nested schema](#nestedatt--asset_model_composite_models--composite_model_properties--type--transform)) +- `type_name` (String) ### Nested Schema for `asset_model_composite_models.composite_model_properties.type.attribute` @@ -94,7 +85,7 @@ Optional: ### Nested Schema for `asset_model_composite_models.composite_model_properties.type.metric` -Required: +Optional: - `expression` (String) The mathematical expression that defines the metric aggregation function. You can specify up to 10 functions per expression. - `variables` (Attributes List) The list of variables used in the expression. (see [below for nested schema](#nestedatt--asset_model_composite_models--composite_model_properties--type--metric--variables)) @@ -103,7 +94,7 @@ Required: ### Nested Schema for `asset_model_composite_models.composite_model_properties.type.metric.variables` -Required: +Optional: - `name` (String) The friendly name of the variable to be used in the expression. - `value` (Attributes) The variable that identifies an asset property from which to use values. (see [below for nested schema](#nestedatt--asset_model_composite_models--composite_model_properties--type--metric--variables--value)) @@ -124,7 +115,7 @@ Optional: ### Nested Schema for `asset_model_composite_models.composite_model_properties.type.metric.variables.value.property_path` -Required: +Optional: - `name` (String) The name of the property @@ -141,12 +132,9 @@ Optional: ### Nested Schema for `asset_model_composite_models.composite_model_properties.type.metric.window.tumbling` -Required: - -- `interval` (String) The time interval for the tumbling window. - Optional: +- `interval` (String) The time interval for the tumbling window. - `offset` (String) The shift or reference point on timeline for the contiguous time intervals. @@ -155,7 +143,7 @@ Optional: ### Nested Schema for `asset_model_composite_models.composite_model_properties.type.transform` -Required: +Optional: - `expression` (String) The mathematical expression that defines the transformation function. You can specify up to 10 functions per expression. - `variables` (Attributes List) The list of variables used in the expression. (see [below for nested schema](#nestedatt--asset_model_composite_models--composite_model_properties--type--transform--variables)) @@ -163,7 +151,7 @@ Required: ### Nested Schema for `asset_model_composite_models.composite_model_properties.type.transform.variables` -Required: +Optional: - `name` (String) The friendly name of the variable to be used in the expression. - `value` (Attributes) The variable that identifies an asset property from which to use values. (see [below for nested schema](#nestedatt--asset_model_composite_models--composite_model_properties--type--transform--variables--value)) @@ -184,7 +172,7 @@ Optional: ### Nested Schema for `asset_model_composite_models.composite_model_properties.type.transform.variables.value.property_path` -Required: +Optional: - `name` (String) The name of the property @@ -198,47 +186,38 @@ Required: ### Nested Schema for `asset_model_hierarchies` -Required: - -- `child_asset_model_id` (String) The ID of the asset model. All assets in this hierarchy must be instances of the child AssetModelId asset model. -- `name` (String) The name of the asset model hierarchy. - Optional: +- `child_asset_model_id` (String) The ID of the asset model. All assets in this hierarchy must be instances of the child AssetModelId asset model. - `external_id` (String) Customer provided external ID for hierarchy - `id` (String) Customer provided actual ID for hierarchy - `logical_id` (String) Customer provided logical ID for hierarchy. +- `name` (String) The name of the asset model hierarchy. ### Nested Schema for `asset_model_properties` -Required: - -- `data_type` (String) The data type of the asset model property. -- `name` (String) The name of the asset model property. -- `type` (Attributes) The property type (see [below for nested schema](#nestedatt--asset_model_properties--type)) - Optional: +- `data_type` (String) The data type of the asset model property. - `data_type_spec` (String) The data type of the structure for this property. - `external_id` (String) The External ID of the Asset Model Property - `id` (String) The ID of the Asset Model Property - `logical_id` (String) Customer provided Logical ID for property. +- `name` (String) The name of the asset model property. +- `type` (Attributes) The property type (see [below for nested schema](#nestedatt--asset_model_properties--type)) - `unit` (String) The unit of the asset model property, such as Newtons or RPM. ### Nested Schema for `asset_model_properties.type` -Required: - -- `type_name` (String) - Optional: - `attribute` (Attributes) (see [below for nested schema](#nestedatt--asset_model_properties--type--attribute)) - `metric` (Attributes) (see [below for nested schema](#nestedatt--asset_model_properties--type--metric)) - `transform` (Attributes) (see [below for nested schema](#nestedatt--asset_model_properties--type--transform)) +- `type_name` (String) ### Nested Schema for `asset_model_properties.type.attribute` @@ -251,7 +230,7 @@ Optional: ### Nested Schema for `asset_model_properties.type.metric` -Required: +Optional: - `expression` (String) The mathematical expression that defines the metric aggregation function. You can specify up to 10 functions per expression. - `variables` (Attributes List) The list of variables used in the expression. (see [below for nested schema](#nestedatt--asset_model_properties--type--metric--variables)) @@ -260,7 +239,7 @@ Required: ### Nested Schema for `asset_model_properties.type.metric.variables` -Required: +Optional: - `name` (String) The friendly name of the variable to be used in the expression. - `value` (Attributes) The variable that identifies an asset property from which to use values. (see [below for nested schema](#nestedatt--asset_model_properties--type--metric--variables--value)) @@ -281,7 +260,7 @@ Optional: ### Nested Schema for `asset_model_properties.type.metric.variables.value.property_path` -Required: +Optional: - `name` (String) The name of the property @@ -298,12 +277,9 @@ Optional: ### Nested Schema for `asset_model_properties.type.metric.window.tumbling` -Required: - -- `interval` (String) The time interval for the tumbling window. - Optional: +- `interval` (String) The time interval for the tumbling window. - `offset` (String) The shift or reference point on timeline for the contiguous time intervals. @@ -312,7 +288,7 @@ Optional: ### Nested Schema for `asset_model_properties.type.transform` -Required: +Optional: - `expression` (String) The mathematical expression that defines the transformation function. You can specify up to 10 functions per expression. - `variables` (Attributes List) The list of variables used in the expression. (see [below for nested schema](#nestedatt--asset_model_properties--type--transform--variables)) @@ -320,7 +296,7 @@ Required: ### Nested Schema for `asset_model_properties.type.transform.variables` -Required: +Optional: - `name` (String) The friendly name of the variable to be used in the expression. - `value` (Attributes) The variable that identifies an asset property from which to use values. (see [below for nested schema](#nestedatt--asset_model_properties--type--transform--variables--value)) @@ -341,7 +317,7 @@ Optional: ### Nested Schema for `asset_model_properties.type.transform.variables.value.property_path` -Required: +Optional: - `name` (String) The name of the property @@ -354,7 +330,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/iotsitewise_dashboard.md b/docs/resources/iotsitewise_dashboard.md index e87f117f63..f6c22d5333 100644 --- a/docs/resources/iotsitewise_dashboard.md +++ b/docs/resources/iotsitewise_dashboard.md @@ -35,7 +35,7 @@ Resource schema for AWS::IoTSiteWise::Dashboard ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/iotsitewise_gateway.md b/docs/resources/iotsitewise_gateway.md index f116f76204..54ddde5f94 100644 --- a/docs/resources/iotsitewise_gateway.md +++ b/docs/resources/iotsitewise_gateway.md @@ -42,7 +42,7 @@ Optional: ### Nested Schema for `gateway_platform.greengrass` -Required: +Optional: - `group_arn` (String) The ARN of the Greengrass group. @@ -50,7 +50,7 @@ Required: ### Nested Schema for `gateway_platform.greengrass_v2` -Required: +Optional: - `core_device_thing_name` (String) The name of the CoreDevice in GreenGrass V2. @@ -58,7 +58,7 @@ Required: ### Nested Schema for `gateway_platform.siemens_ie` -Required: +Optional: - `iot_core_thing_name` (String) The name of the IoT Core Thing. @@ -67,19 +67,16 @@ Required: ### Nested Schema for `gateway_capability_summaries` -Required: - -- `capability_namespace` (String) The namespace of the capability configuration. - Optional: - `capability_configuration` (String) The JSON document that defines the gateway capability's configuration. +- `capability_namespace` (String) The namespace of the capability configuration. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/iotsitewise_portal.md b/docs/resources/iotsitewise_portal.md index 01dc152bf3..2395017686 100644 --- a/docs/resources/iotsitewise_portal.md +++ b/docs/resources/iotsitewise_portal.md @@ -49,7 +49,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/iotsitewise_project.md b/docs/resources/iotsitewise_project.md index df8ef533f3..4c2a65b00c 100644 --- a/docs/resources/iotsitewise_project.md +++ b/docs/resources/iotsitewise_project.md @@ -35,7 +35,7 @@ Resource schema for AWS::IoTSiteWise::Project ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/iotwireless_network_analyzer_configuration.md b/docs/resources/iotwireless_network_analyzer_configuration.md index 488962152b..57d2450a1f 100644 --- a/docs/resources/iotwireless_network_analyzer_configuration.md +++ b/docs/resources/iotwireless_network_analyzer_configuration.md @@ -35,7 +35,7 @@ Create and manage NetworkAnalyzerConfiguration resource. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/iotwireless_partner_account.md b/docs/resources/iotwireless_partner_account.md index 64a60f1199..c26520ac8c 100644 --- a/docs/resources/iotwireless_partner_account.md +++ b/docs/resources/iotwireless_partner_account.md @@ -34,7 +34,7 @@ Create and manage partner account ### Nested Schema for `sidewalk` -Required: +Optional: - `app_server_private_key` (String) diff --git a/docs/resources/iotwireless_wireless_device.md b/docs/resources/iotwireless_wireless_device.md index 6a735f5e7b..fdcdaae9b3 100644 --- a/docs/resources/iotwireless_wireless_device.md +++ b/docs/resources/iotwireless_wireless_device.md @@ -54,7 +54,7 @@ Optional: ### Nested Schema for `lo_ra_wan.abp_v10_x` -Required: +Optional: - `dev_addr` (String) - `session_keys` (Attributes) (see [below for nested schema](#nestedatt--lo_ra_wan--abp_v10_x--session_keys)) @@ -62,7 +62,7 @@ Required: ### Nested Schema for `lo_ra_wan.abp_v10_x.session_keys` -Required: +Optional: - `app_s_key` (String) - `nwk_s_key` (String) @@ -72,7 +72,7 @@ Required: ### Nested Schema for `lo_ra_wan.abp_v11` -Required: +Optional: - `dev_addr` (String) - `session_keys` (Attributes) (see [below for nested schema](#nestedatt--lo_ra_wan--abp_v11--session_keys)) @@ -80,7 +80,7 @@ Required: ### Nested Schema for `lo_ra_wan.abp_v11.session_keys` -Required: +Optional: - `app_s_key` (String) - `f_nwk_s_int_key` (String) @@ -110,7 +110,7 @@ Optional: ### Nested Schema for `lo_ra_wan.otaa_v10_x` -Required: +Optional: - `app_eui` (String) - `app_key` (String) @@ -119,7 +119,7 @@ Required: ### Nested Schema for `lo_ra_wan.otaa_v11` -Required: +Optional: - `app_key` (String) - `join_eui` (String) diff --git a/docs/resources/iotwireless_wireless_device_import_task.md b/docs/resources/iotwireless_wireless_device_import_task.md index 1c88fa7bf8..938abbfee6 100644 --- a/docs/resources/iotwireless_wireless_device_import_task.md +++ b/docs/resources/iotwireless_wireless_device_import_task.md @@ -54,7 +54,7 @@ Read-Only: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/ivs_channel.md b/docs/resources/ivs_channel.md index ae0d400c28..ec993148f0 100644 --- a/docs/resources/ivs_channel.md +++ b/docs/resources/ivs_channel.md @@ -36,7 +36,7 @@ Resource Type definition for AWS::IVS::Channel ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ivs_encoder_configuration.md b/docs/resources/ivs_encoder_configuration.md index 6722178518..22aea243c7 100644 --- a/docs/resources/ivs_encoder_configuration.md +++ b/docs/resources/ivs_encoder_configuration.md @@ -29,7 +29,7 @@ Resource Type definition for AWS::IVS::EncoderConfiguration. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/ivs_playback_key_pair.md b/docs/resources/ivs_playback_key_pair.md index 61c398dc3a..f75e4ea9cf 100644 --- a/docs/resources/ivs_playback_key_pair.md +++ b/docs/resources/ivs_playback_key_pair.md @@ -30,7 +30,7 @@ Resource Type definition for AWS::IVS::PlaybackKeyPair ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ivs_playback_restriction_policy.md b/docs/resources/ivs_playback_restriction_policy.md index a4027ee5d3..f38f944927 100644 --- a/docs/resources/ivs_playback_restriction_policy.md +++ b/docs/resources/ivs_playback_restriction_policy.md @@ -31,7 +31,7 @@ Resource Type definition for AWS::IVS::PlaybackRestrictionPolicy. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/ivs_public_key.md b/docs/resources/ivs_public_key.md index 87be2b6085..33d61b675d 100644 --- a/docs/resources/ivs_public_key.md +++ b/docs/resources/ivs_public_key.md @@ -30,7 +30,7 @@ Resource Type definition for AWS::IVS::PublicKey ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ivs_recording_configuration.md b/docs/resources/ivs_recording_configuration.md index b901d0d1b2..6f8ab3e23c 100644 --- a/docs/resources/ivs_recording_configuration.md +++ b/docs/resources/ivs_recording_configuration.md @@ -43,7 +43,7 @@ Optional: ### Nested Schema for `destination_configuration.s3` -Required: +Optional: - `bucket_name` (String) @@ -61,7 +61,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ivs_stage.md b/docs/resources/ivs_stage.md index 020af4c965..80c0f09ac8 100644 --- a/docs/resources/ivs_stage.md +++ b/docs/resources/ivs_stage.md @@ -30,19 +30,16 @@ Resource Definition for type AWS::IVS::Stage. ### Nested Schema for `auto_participant_recording_configuration` -Required: - -- `storage_configuration_arn` (String) ARN of the StorageConfiguration resource to use for individual participant recording. - Optional: - `media_types` (Set of String) Types of media to be recorded. Default: AUDIO_VIDEO. +- `storage_configuration_arn` (String) ARN of the StorageConfiguration resource to use for individual participant recording. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ivs_storage_configuration.md b/docs/resources/ivs_storage_configuration.md index 63117b034d..951217ecd1 100644 --- a/docs/resources/ivs_storage_configuration.md +++ b/docs/resources/ivs_storage_configuration.md @@ -40,7 +40,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ivs_stream_key.md b/docs/resources/ivs_stream_key.md index 40314672fe..1863a1e93c 100644 --- a/docs/resources/ivs_stream_key.md +++ b/docs/resources/ivs_stream_key.md @@ -32,7 +32,7 @@ Resource Type definition for AWS::IVS::StreamKey ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ivschat_logging_configuration.md b/docs/resources/ivschat_logging_configuration.md index 6d14a9231f..c33d022e01 100644 --- a/docs/resources/ivschat_logging_configuration.md +++ b/docs/resources/ivschat_logging_configuration.md @@ -43,7 +43,7 @@ Optional: ### Nested Schema for `destination_configuration.cloudwatch_logs` -Required: +Optional: - `log_group_name` (String) Name of the Amazon CloudWatch Logs log group where chat activity will be logged. @@ -51,7 +51,7 @@ Required: ### Nested Schema for `destination_configuration.firehose` -Required: +Optional: - `delivery_stream_name` (String) Name of the Amazon Kinesis Firehose delivery stream where chat activity will be logged. @@ -59,7 +59,7 @@ Required: ### Nested Schema for `destination_configuration.s3` -Required: +Optional: - `bucket_name` (String) Name of the Amazon S3 bucket where chat activity will be logged. @@ -68,7 +68,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/ivschat_room.md b/docs/resources/ivschat_room.md index bc7c89149d..1db4540ba6 100644 --- a/docs/resources/ivschat_room.md +++ b/docs/resources/ivschat_room.md @@ -42,7 +42,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/kafkaconnect_connector.md b/docs/resources/kafkaconnect_connector.md index 849b9be2e4..b534dd4357 100644 --- a/docs/resources/kafkaconnect_connector.md +++ b/docs/resources/kafkaconnect_connector.md @@ -50,7 +50,7 @@ Optional: ### Nested Schema for `capacity.auto_scaling` -Required: +Optional: - `max_worker_count` (Number) The maximum number of workers for a connector. - `mcu_count` (Number) Specifies how many MSK Connect Units (MCU) as the minimum scaling unit. @@ -61,7 +61,7 @@ Required: ### Nested Schema for `capacity.auto_scaling.scale_in_policy` -Required: +Optional: - `cpu_utilization_percentage` (Number) Specifies the CPU utilization percentage threshold at which connector scale in should trigger. @@ -69,7 +69,7 @@ Required: ### Nested Schema for `capacity.auto_scaling.scale_out_policy` -Required: +Optional: - `cpu_utilization_percentage` (Number) Specifies the CPU utilization percentage threshold at which connector scale out should trigger. @@ -78,13 +78,10 @@ Required: ### Nested Schema for `capacity.provisioned_capacity` -Required: - -- `worker_count` (Number) Number of workers for a connector. - Optional: - `mcu_count` (Number) Specifies how many MSK Connect Units (MCU) are allocated to the connector. +- `worker_count` (Number) Number of workers for a connector. @@ -150,7 +147,7 @@ Required: ### Nested Schema for `log_delivery` -Required: +Optional: - `worker_log_delivery` (Attributes) Specifies where worker logs are delivered. (see [below for nested schema](#nestedatt--log_delivery--worker_log_delivery)) @@ -166,37 +163,28 @@ Optional: ### Nested Schema for `log_delivery.worker_log_delivery.cloudwatch_logs` -Required: - -- `enabled` (Boolean) Specifies whether the logs get sent to the specified CloudWatch Logs destination. - Optional: +- `enabled` (Boolean) Specifies whether the logs get sent to the specified CloudWatch Logs destination. - `log_group` (String) The CloudWatch log group that is the destination for log delivery. ### Nested Schema for `log_delivery.worker_log_delivery.firehose` -Required: - -- `enabled` (Boolean) Specifies whether the logs get sent to the specified Kinesis Data Firehose delivery stream. - Optional: - `delivery_stream` (String) The Kinesis Data Firehose delivery stream that is the destination for log delivery. +- `enabled` (Boolean) Specifies whether the logs get sent to the specified Kinesis Data Firehose delivery stream. ### Nested Schema for `log_delivery.worker_log_delivery.s3` -Required: - -- `enabled` (Boolean) Specifies whether the logs get sent to the specified Amazon S3 destination. - Optional: - `bucket` (String) The name of the S3 bucket that is the destination for log delivery. +- `enabled` (Boolean) Specifies whether the logs get sent to the specified Amazon S3 destination. - `prefix` (String) The S3 prefix that is the destination for log delivery. @@ -205,7 +193,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -214,7 +202,7 @@ Required: ### Nested Schema for `worker_configuration` -Required: +Optional: - `revision` (Number) The revision of the worker configuration to use. - `worker_configuration_arn` (String) The Amazon Resource Name (ARN) of the worker configuration to use. diff --git a/docs/resources/kafkaconnect_custom_plugin.md b/docs/resources/kafkaconnect_custom_plugin.md index b8a845f97c..f1e341af16 100644 --- a/docs/resources/kafkaconnect_custom_plugin.md +++ b/docs/resources/kafkaconnect_custom_plugin.md @@ -57,7 +57,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/kafkaconnect_worker_configuration.md b/docs/resources/kafkaconnect_worker_configuration.md index e087ec277d..d628c433c0 100644 --- a/docs/resources/kafkaconnect_worker_configuration.md +++ b/docs/resources/kafkaconnect_worker_configuration.md @@ -34,7 +34,7 @@ The configuration of the workers, which are the processes that run the connector ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/kendra_data_source.md b/docs/resources/kendra_data_source.md index ed49a332cb..601f25e95f 100644 --- a/docs/resources/kendra_data_source.md +++ b/docs/resources/kendra_data_source.md @@ -59,14 +59,11 @@ Optional: ### Nested Schema for `custom_document_enrichment_configuration.inline_configurations.condition` -Required: - -- `condition_document_attribute_key` (String) -- `operator` (String) - Optional: +- `condition_document_attribute_key` (String) - `condition_on_value` (Attributes) (see [below for nested schema](#nestedatt--custom_document_enrichment_configuration--inline_configurations--condition--condition_on_value)) +- `operator` (String) ### Nested Schema for `custom_document_enrichment_configuration.inline_configurations.condition.condition_on_value` @@ -83,12 +80,9 @@ Optional: ### Nested Schema for `custom_document_enrichment_configuration.inline_configurations.target` -Required: - -- `target_document_attribute_key` (String) - Optional: +- `target_document_attribute_key` (String) - `target_document_attribute_value` (Attributes) (see [below for nested schema](#nestedatt--custom_document_enrichment_configuration--inline_configurations--target--target_document_attribute_value)) - `target_document_attribute_value_deletion` (Boolean) @@ -108,26 +102,20 @@ Optional: ### Nested Schema for `custom_document_enrichment_configuration.post_extraction_hook_configuration` -Required: - -- `lambda_arn` (String) -- `s3_bucket` (String) - Optional: - `invocation_condition` (Attributes) (see [below for nested schema](#nestedatt--custom_document_enrichment_configuration--post_extraction_hook_configuration--invocation_condition)) +- `lambda_arn` (String) +- `s3_bucket` (String) ### Nested Schema for `custom_document_enrichment_configuration.post_extraction_hook_configuration.invocation_condition` -Required: - -- `condition_document_attribute_key` (String) -- `operator` (String) - Optional: +- `condition_document_attribute_key` (String) - `condition_on_value` (Attributes) (see [below for nested schema](#nestedatt--custom_document_enrichment_configuration--post_extraction_hook_configuration--invocation_condition--condition_on_value)) +- `operator` (String) ### Nested Schema for `custom_document_enrichment_configuration.post_extraction_hook_configuration.invocation_condition.condition_on_value` @@ -145,26 +133,20 @@ Optional: ### Nested Schema for `custom_document_enrichment_configuration.pre_extraction_hook_configuration` -Required: - -- `lambda_arn` (String) -- `s3_bucket` (String) - Optional: - `invocation_condition` (Attributes) (see [below for nested schema](#nestedatt--custom_document_enrichment_configuration--pre_extraction_hook_configuration--invocation_condition)) +- `lambda_arn` (String) +- `s3_bucket` (String) ### Nested Schema for `custom_document_enrichment_configuration.pre_extraction_hook_configuration.invocation_condition` -Required: - -- `condition_document_attribute_key` (String) -- `operator` (String) - Optional: +- `condition_document_attribute_key` (String) - `condition_on_value` (Attributes) (see [below for nested schema](#nestedatt--custom_document_enrichment_configuration--pre_extraction_hook_configuration--invocation_condition--condition_on_value)) +- `operator` (String) ### Nested Schema for `custom_document_enrichment_configuration.pre_extraction_hook_configuration.invocation_condition.condition_on_value` @@ -199,12 +181,6 @@ Optional: ### Nested Schema for `data_source_configuration.confluence_configuration` -Required: - -- `secret_arn` (String) -- `server_url` (String) -- `version` (String) - Optional: - `attachment_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--confluence_configuration--attachment_configuration)) @@ -212,7 +188,10 @@ Optional: - `exclusion_patterns` (List of String) - `inclusion_patterns` (List of String) - `page_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--confluence_configuration--page_configuration)) +- `secret_arn` (String) +- `server_url` (String) - `space_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--confluence_configuration--space_configuration)) +- `version` (String) - `vpc_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--confluence_configuration--vpc_configuration)) @@ -226,14 +205,11 @@ Optional: ### Nested Schema for `data_source_configuration.confluence_configuration.attachment_configuration.attachment_field_mappings` -Required: - -- `data_source_field_name` (String) -- `index_field_name` (String) - Optional: +- `data_source_field_name` (String) - `date_field_format` (String) +- `index_field_name` (String) @@ -247,14 +223,11 @@ Optional: ### Nested Schema for `data_source_configuration.confluence_configuration.blog_configuration.blog_field_mappings` -Required: - -- `data_source_field_name` (String) -- `index_field_name` (String) - Optional: +- `data_source_field_name` (String) - `date_field_format` (String) +- `index_field_name` (String) @@ -268,14 +241,11 @@ Optional: ### Nested Schema for `data_source_configuration.confluence_configuration.page_configuration.page_field_mappings` -Required: - -- `data_source_field_name` (String) -- `index_field_name` (String) - Optional: +- `data_source_field_name` (String) - `date_field_format` (String) +- `index_field_name` (String) @@ -293,21 +263,18 @@ Optional: ### Nested Schema for `data_source_configuration.confluence_configuration.space_configuration.space_field_mappings` -Required: - -- `data_source_field_name` (String) -- `index_field_name` (String) - Optional: +- `data_source_field_name` (String) - `date_field_format` (String) +- `index_field_name` (String) ### Nested Schema for `data_source_configuration.confluence_configuration.vpc_configuration` -Required: +Optional: - `security_group_ids` (List of String) - `subnet_ids` (List of String) @@ -317,50 +284,49 @@ Required: ### Nested Schema for `data_source_configuration.database_configuration` -Required: +Optional: +- `acl_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--database_configuration--acl_configuration)) - `column_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--database_configuration--column_configuration)) - `connection_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--database_configuration--connection_configuration)) - `database_engine_type` (String) +- `sql_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--database_configuration--sql_configuration)) +- `vpc_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--database_configuration--vpc_configuration)) + + +### Nested Schema for `data_source_configuration.database_configuration.acl_configuration` Optional: -- `acl_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--database_configuration--acl_configuration)) -- `sql_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--database_configuration--sql_configuration)) -- `vpc_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--database_configuration--vpc_configuration)) +- `allowed_groups_column_name` (String) + ### Nested Schema for `data_source_configuration.database_configuration.column_configuration` -Required: +Optional: - `change_detecting_columns` (List of String) - `document_data_column_name` (String) - `document_id_column_name` (String) - -Optional: - - `document_title_column_name` (String) - `field_mappings` (Attributes List) (see [below for nested schema](#nestedatt--data_source_configuration--database_configuration--column_configuration--field_mappings)) ### Nested Schema for `data_source_configuration.database_configuration.column_configuration.field_mappings` -Required: - -- `data_source_field_name` (String) -- `index_field_name` (String) - Optional: +- `data_source_field_name` (String) - `date_field_format` (String) +- `index_field_name` (String) ### Nested Schema for `data_source_configuration.database_configuration.connection_configuration` -Required: +Optional: - `database_host` (String) - `database_name` (String) @@ -369,14 +335,6 @@ Required: - `table_name` (String) - -### Nested Schema for `data_source_configuration.database_configuration.acl_configuration` - -Required: - -- `allowed_groups_column_name` (String) - - ### Nested Schema for `data_source_configuration.database_configuration.sql_configuration` @@ -388,7 +346,7 @@ Optional: ### Nested Schema for `data_source_configuration.database_configuration.vpc_configuration` -Required: +Optional: - `security_group_ids` (List of String) - `subnet_ids` (List of String) @@ -398,10 +356,6 @@ Required: ### Nested Schema for `data_source_configuration.google_drive_configuration` -Required: - -- `secret_arn` (String) - Optional: - `exclude_mime_types` (List of String) @@ -410,36 +364,41 @@ Optional: - `exclusion_patterns` (List of String) - `field_mappings` (Attributes List) (see [below for nested schema](#nestedatt--data_source_configuration--google_drive_configuration--field_mappings)) - `inclusion_patterns` (List of String) +- `secret_arn` (String) ### Nested Schema for `data_source_configuration.google_drive_configuration.field_mappings` -Required: - -- `data_source_field_name` (String) -- `index_field_name` (String) - Optional: +- `data_source_field_name` (String) - `date_field_format` (String) +- `index_field_name` (String) ### Nested Schema for `data_source_configuration.one_drive_configuration` -Required: +Optional: +- `disable_local_groups` (Boolean) +- `exclusion_patterns` (List of String) +- `field_mappings` (Attributes List) (see [below for nested schema](#nestedatt--data_source_configuration--one_drive_configuration--field_mappings)) +- `inclusion_patterns` (List of String) - `one_drive_users` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--one_drive_configuration--one_drive_users)) - `secret_arn` (String) - `tenant_domain` (String) + +### Nested Schema for `data_source_configuration.one_drive_configuration.field_mappings` + Optional: -- `disable_local_groups` (Boolean) -- `exclusion_patterns` (List of String) -- `field_mappings` (Attributes List) (see [below for nested schema](#nestedatt--data_source_configuration--one_drive_configuration--field_mappings)) -- `inclusion_patterns` (List of String) +- `data_source_field_name` (String) +- `date_field_format` (String) +- `index_field_name` (String) + ### Nested Schema for `data_source_configuration.one_drive_configuration.one_drive_users` @@ -452,37 +411,21 @@ Optional: ### Nested Schema for `data_source_configuration.one_drive_configuration.one_drive_users.one_drive_user_s3_path` -Required: +Optional: - `bucket` (String) - `key` (String) - -### Nested Schema for `data_source_configuration.one_drive_configuration.field_mappings` - -Required: - -- `data_source_field_name` (String) -- `index_field_name` (String) - -Optional: - -- `date_field_format` (String) - - ### Nested Schema for `data_source_configuration.s3_configuration` -Required: - -- `bucket_name` (String) - Optional: - `access_control_list_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--s3_configuration--access_control_list_configuration)) +- `bucket_name` (String) - `documents_metadata_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--s3_configuration--documents_metadata_configuration)) - `exclusion_patterns` (List of String) - `inclusion_patterns` (List of String) @@ -508,11 +451,6 @@ Optional: ### Nested Schema for `data_source_configuration.salesforce_configuration` -Required: - -- `secret_arn` (String) -- `server_url` (String) - Optional: - `chatter_feed_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--salesforce_configuration--chatter_feed_configuration)) @@ -520,18 +458,17 @@ Optional: - `exclude_attachment_file_patterns` (List of String) - `include_attachment_file_patterns` (List of String) - `knowledge_article_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--salesforce_configuration--knowledge_article_configuration)) +- `secret_arn` (String) +- `server_url` (String) - `standard_object_attachment_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--salesforce_configuration--standard_object_attachment_configuration)) - `standard_object_configurations` (Attributes List) (see [below for nested schema](#nestedatt--data_source_configuration--salesforce_configuration--standard_object_configurations)) ### Nested Schema for `data_source_configuration.salesforce_configuration.chatter_feed_configuration` -Required: - -- `document_data_field_name` (String) - Optional: +- `document_data_field_name` (String) - `document_title_field_name` (String) - `field_mappings` (Attributes List) (see [below for nested schema](#nestedatt--data_source_configuration--salesforce_configuration--chatter_feed_configuration--field_mappings)) - `include_filter_types` (List of String) @@ -539,79 +476,61 @@ Optional: ### Nested Schema for `data_source_configuration.salesforce_configuration.chatter_feed_configuration.field_mappings` -Required: - -- `data_source_field_name` (String) -- `index_field_name` (String) - Optional: +- `data_source_field_name` (String) - `date_field_format` (String) +- `index_field_name` (String) ### Nested Schema for `data_source_configuration.salesforce_configuration.knowledge_article_configuration` -Required: - -- `included_states` (List of String) - Optional: - `custom_knowledge_article_type_configurations` (Attributes List) (see [below for nested schema](#nestedatt--data_source_configuration--salesforce_configuration--knowledge_article_configuration--custom_knowledge_article_type_configurations)) +- `included_states` (List of String) - `standard_knowledge_article_type_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--salesforce_configuration--knowledge_article_configuration--standard_knowledge_article_type_configuration)) ### Nested Schema for `data_source_configuration.salesforce_configuration.knowledge_article_configuration.custom_knowledge_article_type_configurations` -Required: - -- `document_data_field_name` (String) -- `name` (String) - Optional: +- `document_data_field_name` (String) - `document_title_field_name` (String) - `field_mappings` (Attributes List) (see [below for nested schema](#nestedatt--data_source_configuration--salesforce_configuration--knowledge_article_configuration--custom_knowledge_article_type_configurations--field_mappings)) +- `name` (String) ### Nested Schema for `data_source_configuration.salesforce_configuration.knowledge_article_configuration.custom_knowledge_article_type_configurations.field_mappings` -Required: - -- `data_source_field_name` (String) -- `index_field_name` (String) - Optional: +- `data_source_field_name` (String) - `date_field_format` (String) +- `index_field_name` (String) ### Nested Schema for `data_source_configuration.salesforce_configuration.knowledge_article_configuration.standard_knowledge_article_type_configuration` -Required: - -- `document_data_field_name` (String) - Optional: +- `document_data_field_name` (String) - `document_title_field_name` (String) - `field_mappings` (Attributes List) (see [below for nested schema](#nestedatt--data_source_configuration--salesforce_configuration--knowledge_article_configuration--standard_knowledge_article_type_configuration--field_mappings)) ### Nested Schema for `data_source_configuration.salesforce_configuration.knowledge_article_configuration.standard_knowledge_article_type_configuration.field_mappings` -Required: - -- `data_source_field_name` (String) -- `index_field_name` (String) - Optional: +- `data_source_field_name` (String) - `date_field_format` (String) +- `index_field_name` (String) @@ -627,41 +546,32 @@ Optional: ### Nested Schema for `data_source_configuration.salesforce_configuration.standard_object_attachment_configuration.field_mappings` -Required: - -- `data_source_field_name` (String) -- `index_field_name` (String) - Optional: +- `data_source_field_name` (String) - `date_field_format` (String) +- `index_field_name` (String) ### Nested Schema for `data_source_configuration.salesforce_configuration.standard_object_configurations` -Required: - -- `document_data_field_name` (String) -- `name` (String) - Optional: +- `document_data_field_name` (String) - `document_title_field_name` (String) - `field_mappings` (Attributes List) (see [below for nested schema](#nestedatt--data_source_configuration--salesforce_configuration--standard_object_configurations--field_mappings)) +- `name` (String) ### Nested Schema for `data_source_configuration.salesforce_configuration.standard_object_configurations.field_mappings` -Required: - -- `data_source_field_name` (String) -- `index_field_name` (String) - Optional: +- `data_source_field_name` (String) - `date_field_format` (String) +- `index_field_name` (String) @@ -669,28 +579,22 @@ Optional: ### Nested Schema for `data_source_configuration.service_now_configuration` -Required: - -- `host_url` (String) -- `secret_arn` (String) -- `service_now_build_version` (String) - Optional: - `authentication_type` (String) +- `host_url` (String) - `knowledge_article_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--service_now_configuration--knowledge_article_configuration)) +- `secret_arn` (String) - `service_catalog_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--service_now_configuration--service_catalog_configuration)) +- `service_now_build_version` (String) ### Nested Schema for `data_source_configuration.service_now_configuration.knowledge_article_configuration` -Required: - -- `document_data_field_name` (String) - Optional: - `crawl_attachments` (Boolean) +- `document_data_field_name` (String) - `document_title_field_name` (String) - `exclude_attachment_file_patterns` (List of String) - `field_mappings` (Attributes List) (see [below for nested schema](#nestedatt--data_source_configuration--service_now_configuration--knowledge_article_configuration--field_mappings)) @@ -700,27 +604,21 @@ Optional: ### Nested Schema for `data_source_configuration.service_now_configuration.knowledge_article_configuration.field_mappings` -Required: - -- `data_source_field_name` (String) -- `index_field_name` (String) - Optional: +- `data_source_field_name` (String) - `date_field_format` (String) +- `index_field_name` (String) ### Nested Schema for `data_source_configuration.service_now_configuration.service_catalog_configuration` -Required: - -- `document_data_field_name` (String) - Optional: - `crawl_attachments` (Boolean) +- `document_data_field_name` (String) - `document_title_field_name` (String) - `exclude_attachment_file_patterns` (List of String) - `field_mappings` (Attributes List) (see [below for nested schema](#nestedatt--data_source_configuration--service_now_configuration--service_catalog_configuration--field_mappings)) @@ -729,14 +627,11 @@ Optional: ### Nested Schema for `data_source_configuration.service_now_configuration.service_catalog_configuration.field_mappings` -Required: - -- `data_source_field_name` (String) -- `index_field_name` (String) - Optional: +- `data_source_field_name` (String) - `date_field_format` (String) +- `index_field_name` (String) @@ -744,12 +639,6 @@ Optional: ### Nested Schema for `data_source_configuration.share_point_configuration` -Required: - -- `secret_arn` (String) -- `share_point_version` (String) -- `urls` (List of String) - Optional: - `crawl_attachments` (Boolean) @@ -758,27 +647,27 @@ Optional: - `exclusion_patterns` (List of String) - `field_mappings` (Attributes List) (see [below for nested schema](#nestedatt--data_source_configuration--share_point_configuration--field_mappings)) - `inclusion_patterns` (List of String) +- `secret_arn` (String) +- `share_point_version` (String) - `ssl_certificate_s3_path` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--share_point_configuration--ssl_certificate_s3_path)) +- `urls` (List of String) - `use_change_log` (Boolean) - `vpc_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--share_point_configuration--vpc_configuration)) ### Nested Schema for `data_source_configuration.share_point_configuration.field_mappings` -Required: - -- `data_source_field_name` (String) -- `index_field_name` (String) - Optional: +- `data_source_field_name` (String) - `date_field_format` (String) +- `index_field_name` (String) ### Nested Schema for `data_source_configuration.share_point_configuration.ssl_certificate_s3_path` -Required: +Optional: - `bucket` (String) - `key` (String) @@ -787,7 +676,7 @@ Required: ### Nested Schema for `data_source_configuration.share_point_configuration.vpc_configuration` -Required: +Optional: - `security_group_ids` (List of String) - `subnet_ids` (List of String) @@ -797,10 +686,6 @@ Required: ### Nested Schema for `data_source_configuration.web_crawler_configuration` -Required: - -- `urls` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--web_crawler_configuration--urls)) - Optional: - `authentication_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--web_crawler_configuration--authentication_configuration)) @@ -811,35 +696,7 @@ Optional: - `proxy_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--web_crawler_configuration--proxy_configuration)) - `url_exclusion_patterns` (List of String) - `url_inclusion_patterns` (List of String) - - -### Nested Schema for `data_source_configuration.web_crawler_configuration.urls` - -Optional: - -- `seed_url_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--web_crawler_configuration--urls--seed_url_configuration)) -- `site_maps_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--web_crawler_configuration--urls--site_maps_configuration)) - - -### Nested Schema for `data_source_configuration.web_crawler_configuration.urls.seed_url_configuration` - -Required: - -- `seed_urls` (List of String) - -Optional: - -- `web_crawler_mode` (String) - - - -### Nested Schema for `data_source_configuration.web_crawler_configuration.urls.site_maps_configuration` - -Required: - -- `site_maps` (List of String) - - +- `urls` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--web_crawler_configuration--urls)) ### Nested Schema for `data_source_configuration.web_crawler_configuration.authentication_configuration` @@ -851,7 +708,7 @@ Optional: ### Nested Schema for `data_source_configuration.web_crawler_configuration.authentication_configuration.basic_authentication` -Required: +Optional: - `credentials` (String) - `host` (String) @@ -862,23 +719,42 @@ Required: ### Nested Schema for `data_source_configuration.web_crawler_configuration.proxy_configuration` -Required: +Optional: +- `credentials` (String) - `host` (String) - `port` (Number) + + +### Nested Schema for `data_source_configuration.web_crawler_configuration.urls` + Optional: -- `credentials` (String) +- `seed_url_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--web_crawler_configuration--urls--seed_url_configuration)) +- `site_maps_configuration` (Attributes) (see [below for nested schema](#nestedatt--data_source_configuration--web_crawler_configuration--urls--site_maps_configuration)) + +### Nested Schema for `data_source_configuration.web_crawler_configuration.urls.seed_url_configuration` +Optional: - -### Nested Schema for `data_source_configuration.work_docs_configuration` +- `seed_urls` (List of String) +- `web_crawler_mode` (String) -Required: -- `organization_id` (String) + +### Nested Schema for `data_source_configuration.web_crawler_configuration.urls.site_maps_configuration` + +Optional: + +- `site_maps` (List of String) + + + + + +### Nested Schema for `data_source_configuration.work_docs_configuration` Optional: @@ -886,19 +762,17 @@ Optional: - `exclusion_patterns` (List of String) - `field_mappings` (Attributes List) (see [below for nested schema](#nestedatt--data_source_configuration--work_docs_configuration--field_mappings)) - `inclusion_patterns` (List of String) +- `organization_id` (String) - `use_change_log` (Boolean) ### Nested Schema for `data_source_configuration.work_docs_configuration.field_mappings` -Required: - -- `data_source_field_name` (String) -- `index_field_name` (String) - Optional: +- `data_source_field_name` (String) - `date_field_format` (String) +- `index_field_name` (String) @@ -906,7 +780,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) A string used to identify this tag - `value` (String) A string containing the value for the tag diff --git a/docs/resources/kendra_faq.md b/docs/resources/kendra_faq.md index 4dabdc3457..231f613f04 100644 --- a/docs/resources/kendra_faq.md +++ b/docs/resources/kendra_faq.md @@ -47,7 +47,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) A string used to identify this tag - `value` (String) A string containing the value for the tag diff --git a/docs/resources/kendra_index.md b/docs/resources/kendra_index.md index b1895c59af..6d38487872 100644 --- a/docs/resources/kendra_index.md +++ b/docs/resources/kendra_index.md @@ -128,7 +128,7 @@ data "aws_caller_identity" "current" {} ### Nested Schema for `capacity_units` -Required: +Optional: - `query_capacity_units` (Number) - `storage_capacity_units` (Number) @@ -137,15 +137,12 @@ Required: ### Nested Schema for `document_metadata_configurations` -Required: - -- `name` (String) -- `type` (String) - Optional: +- `name` (String) - `relevance` (Attributes) (see [below for nested schema](#nestedatt--document_metadata_configurations--relevance)) - `search` (Attributes) (see [below for nested schema](#nestedatt--document_metadata_configurations--search)) +- `type` (String) ### Nested Schema for `document_metadata_configurations.relevance` @@ -191,7 +188,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) A string used to identify this tag - `value` (String) A string containing the value for the tag @@ -208,7 +205,7 @@ Optional: ### Nested Schema for `user_token_configurations.json_token_type_configuration` -Required: +Optional: - `group_attribute_field` (String) - `user_name_attribute_field` (String) @@ -217,15 +214,12 @@ Required: ### Nested Schema for `user_token_configurations.jwt_token_type_configuration` -Required: - -- `key_location` (String) - Optional: - `claim_regex` (String) - `group_attribute_field` (String) - `issuer` (String) +- `key_location` (String) - `secret_manager_arn` (String) Role Arn - `url` (String) - `user_name_attribute_field` (String) diff --git a/docs/resources/kendraranking_execution_plan.md b/docs/resources/kendraranking_execution_plan.md index 82a4328d49..369b107425 100644 --- a/docs/resources/kendraranking_execution_plan.md +++ b/docs/resources/kendraranking_execution_plan.md @@ -34,7 +34,7 @@ A KendraRanking Rescore execution plan ### Nested Schema for `capacity_units` -Required: +Optional: - `rescore_capacity_units` (Number) @@ -42,7 +42,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) A string used to identify this tag - `value` (String) A string containing the value for the tag diff --git a/docs/resources/kinesis_stream.md b/docs/resources/kinesis_stream.md index 9a7143a2a5..674e946fc7 100644 --- a/docs/resources/kinesis_stream.md +++ b/docs/resources/kinesis_stream.md @@ -32,7 +32,7 @@ Resource Type definition for AWS::Kinesis::Stream ### Nested Schema for `stream_encryption` -Required: +Optional: - `encryption_type` (String) The encryption type to use. The only valid value is KMS. - `key_id` (String) The GUID for the customer-managed AWS KMS key to use for encryption. This value can be a globally unique identifier, a fully specified Amazon Resource Name (ARN) to either an alias or a key, or an alias name prefixed by "alias/".You can also use a master key owned by Kinesis Data Streams by specifying the alias aws/kinesis. @@ -41,7 +41,7 @@ Required: ### Nested Schema for `stream_mode_details` -Required: +Optional: - `stream_mode` (String) The mode of the stream @@ -49,7 +49,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/kinesisanalyticsv2_application.md b/docs/resources/kinesisanalyticsv2_application.md index 74afe3d377..f6b6a8d465 100644 --- a/docs/resources/kinesisanalyticsv2_application.md +++ b/docs/resources/kinesisanalyticsv2_application.md @@ -51,7 +51,7 @@ Optional: ### Nested Schema for `application_configuration.application_code_configuration` -Required: +Optional: - `code_content` (Attributes) The location and type of the application code. (see [below for nested schema](#nestedatt--application_configuration--application_code_configuration--code_content)) - `code_content_type` (String) Specifies whether the code content is in text or zip format. @@ -68,13 +68,10 @@ Optional: ### Nested Schema for `application_configuration.application_code_configuration.code_content.s3_content_location` -Required: +Optional: - `bucket_arn` (String) The Amazon Resource Name (ARN) for the S3 bucket containing the application code. - `file_key` (String) The file key for the object containing the application code. - -Optional: - - `object_version` (String) The version of the object containing the application code. @@ -83,7 +80,7 @@ Optional: ### Nested Schema for `application_configuration.application_snapshot_configuration` -Required: +Optional: - `snapshots_enabled` (Boolean) Describes whether snapshots are enabled for a Flink-based Kinesis Data Analytics application. @@ -91,7 +88,7 @@ Required: ### Nested Schema for `application_configuration.application_system_rollback_configuration` -Required: +Optional: - `rollback_enabled` (Boolean) Describes whether system initiated rollbacks are enabled for a Flink-based Kinesis Data Analytics application. @@ -125,26 +122,20 @@ Optional: ### Nested Schema for `application_configuration.flink_application_configuration.checkpoint_configuration` -Required: - -- `configuration_type` (String) Describes whether the application uses Kinesis Data Analytics' default checkpointing behavior. You must set this property to `CUSTOM` in order to set the `CheckpointingEnabled`, `CheckpointInterval`, or `MinPauseBetweenCheckpoints` parameters. - Optional: - `checkpoint_interval` (Number) Describes the interval in milliseconds between checkpoint operations. - `checkpointing_enabled` (Boolean) Describes whether checkpointing is enabled for a Flink-based Kinesis Data Analytics application. +- `configuration_type` (String) Describes whether the application uses Kinesis Data Analytics' default checkpointing behavior. You must set this property to `CUSTOM` in order to set the `CheckpointingEnabled`, `CheckpointInterval`, or `MinPauseBetweenCheckpoints` parameters. - `min_pause_between_checkpoints` (Number) Describes the minimum time in milliseconds after a checkpoint operation completes that a new checkpoint operation can start. If a checkpoint operation takes longer than the CheckpointInterval, the application otherwise performs continual checkpoint operations. For more information, see Tuning Checkpointing in the Apache Flink Documentation. ### Nested Schema for `application_configuration.flink_application_configuration.monitoring_configuration` -Required: - -- `configuration_type` (String) Describes whether to use the default CloudWatch logging configuration for an application. You must set this property to CUSTOM in order to set the LogLevel or MetricsLevel parameters. - Optional: +- `configuration_type` (String) Describes whether to use the default CloudWatch logging configuration for an application. You must set this property to CUSTOM in order to set the LogLevel or MetricsLevel parameters. - `log_level` (String) Describes the verbosity of the CloudWatch Logs for an application. - `metrics_level` (String) Describes the granularity of the CloudWatch Logs for an application. The Parallelism level is not recommended for applications with a Parallelism over 64 due to excessive costs. @@ -152,13 +143,10 @@ Optional: ### Nested Schema for `application_configuration.flink_application_configuration.parallelism_configuration` -Required: - -- `configuration_type` (String) Describes whether the application uses the default parallelism for the Kinesis Data Analytics service. You must set this property to `CUSTOM` in order to change your application's `AutoScalingEnabled`, `Parallelism`, or `ParallelismPerKPU` properties. - Optional: - `auto_scaling_enabled` (Boolean) Describes whether the Kinesis Data Analytics service can increase the parallelism of the application in response to increased throughput. +- `configuration_type` (String) Describes whether the application uses the default parallelism for the Kinesis Data Analytics service. You must set this property to `CUSTOM` in order to change your application's `AutoScalingEnabled`, `Parallelism`, or `ParallelismPerKPU` properties. - `parallelism` (Number) Describes the initial number of parallel tasks that a Java-based Kinesis Data Analytics application can perform. The Kinesis Data Analytics service can increase this number automatically if ParallelismConfiguration:AutoScalingEnabled is set to true. - `parallelism_per_kpu` (Number) Describes the number of parallel tasks that a Java-based Kinesis Data Analytics application can perform per Kinesis Processing Unit (KPU) used by the application. For more information about KPUs, see Amazon Kinesis Data Analytics Pricing. @@ -174,53 +162,65 @@ Optional: ### Nested Schema for `application_configuration.sql_application_configuration.inputs` -Required: - -- `input_schema` (Attributes) Describes the format of the data in the streaming source, and how each data element maps to corresponding columns in the in-application stream that is being created. (see [below for nested schema](#nestedatt--application_configuration--sql_application_configuration--inputs--input_schema)) -- `name_prefix` (String) The name prefix to use when creating an in-application stream. Suppose that you specify a prefix `"MyInApplicationStream"`. Kinesis Data Analytics then creates one or more (as per the InputParallelism count you specified) in-application streams with the names `"MyInApplicationStream_001"`, `"MyInApplicationStream_002"`, and so on. - Optional: - `input_parallelism` (Attributes) Describes the number of in-application streams to create. (see [below for nested schema](#nestedatt--application_configuration--sql_application_configuration--inputs--input_parallelism)) - `input_processing_configuration` (Attributes) The InputProcessingConfiguration for the input. An input processor transforms records as they are received from the stream, before the application's SQL code executes. Currently, the only input processing configuration available is InputLambdaProcessor. (see [below for nested schema](#nestedatt--application_configuration--sql_application_configuration--inputs--input_processing_configuration)) +- `input_schema` (Attributes) Describes the format of the data in the streaming source, and how each data element maps to corresponding columns in the in-application stream that is being created. (see [below for nested schema](#nestedatt--application_configuration--sql_application_configuration--inputs--input_schema)) - `kinesis_firehose_input` (Attributes) If the streaming source is an Amazon Kinesis Data Firehose delivery stream, identifies the delivery stream's ARN. (see [below for nested schema](#nestedatt--application_configuration--sql_application_configuration--inputs--kinesis_firehose_input)) - `kinesis_streams_input` (Attributes) If the streaming source is an Amazon Kinesis data stream, identifies the stream's Amazon Resource Name (ARN). (see [below for nested schema](#nestedatt--application_configuration--sql_application_configuration--inputs--kinesis_streams_input)) +- `name_prefix` (String) The name prefix to use when creating an in-application stream. Suppose that you specify a prefix `"MyInApplicationStream"`. Kinesis Data Analytics then creates one or more (as per the InputParallelism count you specified) in-application streams with the names `"MyInApplicationStream_001"`, `"MyInApplicationStream_002"`, and so on. - -### Nested Schema for `application_configuration.sql_application_configuration.inputs.input_schema` + +### Nested Schema for `application_configuration.sql_application_configuration.inputs.input_parallelism` + +Optional: + +- `count` (Number) The number of in-application streams to create. + + + +### Nested Schema for `application_configuration.sql_application_configuration.inputs.input_processing_configuration` + +Optional: + +- `input_lambda_processor` (Attributes) The InputLambdaProcessor that is used to preprocess the records in the stream before being processed by your application code. (see [below for nested schema](#nestedatt--application_configuration--sql_application_configuration--inputs--input_processing_configuration--input_lambda_processor)) + + +### Nested Schema for `application_configuration.sql_application_configuration.inputs.input_processing_configuration.input_lambda_processor` + +Optional: + +- `resource_arn` (String) The ARN of the Amazon Lambda function that operates on records in the stream. -Required: -- `record_columns` (Attributes List) A list of `RecordColumn` objects. (see [below for nested schema](#nestedatt--application_configuration--sql_application_configuration--inputs--input_schema--record_columns)) -- `record_format` (Attributes) Specifies the format of the records on the streaming source. (see [below for nested schema](#nestedatt--application_configuration--sql_application_configuration--inputs--input_schema--record_format)) + + +### Nested Schema for `application_configuration.sql_application_configuration.inputs.input_schema` Optional: +- `record_columns` (Attributes List) A list of `RecordColumn` objects. (see [below for nested schema](#nestedatt--application_configuration--sql_application_configuration--inputs--input_schema--record_columns)) - `record_encoding` (String) Specifies the encoding of the records in the streaming source. For example, UTF-8. +- `record_format` (Attributes) Specifies the format of the records on the streaming source. (see [below for nested schema](#nestedatt--application_configuration--sql_application_configuration--inputs--input_schema--record_format)) ### Nested Schema for `application_configuration.sql_application_configuration.inputs.input_schema.record_columns` -Required: - -- `name` (String) The name of the column that is created in the in-application input stream or reference table. -- `sql_type` (String) The type of column created in the in-application input stream or reference table. - Optional: - `mapping` (String) A reference to the data element in the streaming input or the reference data source. +- `name` (String) The name of the column that is created in the in-application input stream or reference table. +- `sql_type` (String) The type of column created in the in-application input stream or reference table. ### Nested Schema for `application_configuration.sql_application_configuration.inputs.input_schema.record_format` -Required: - -- `record_format_type` (String) The type of record format. - Optional: - `mapping_parameters` (Attributes) When you configure application input at the time of creating or updating an application, provides additional mapping information specific to the record format (such as JSON, CSV, or record fields delimited by some delimiter) on the streaming source. (see [below for nested schema](#nestedatt--application_configuration--sql_application_configuration--inputs--input_schema--record_format--mapping_parameters)) +- `record_format_type` (String) The type of record format. ### Nested Schema for `application_configuration.sql_application_configuration.inputs.input_schema.record_format.mapping_parameters` @@ -233,7 +233,7 @@ Optional: ### Nested Schema for `application_configuration.sql_application_configuration.inputs.input_schema.record_format.mapping_parameters.csv_mapping_parameters` -Required: +Optional: - `record_column_delimiter` (String) The column delimiter. For example, in a CSV format, a comma (",") is the typical column delimiter. - `record_row_delimiter` (String) The row delimiter. For example, in a CSV format, '\n' is the typical row delimiter. @@ -242,42 +242,18 @@ Required: ### Nested Schema for `application_configuration.sql_application_configuration.inputs.input_schema.record_format.mapping_parameters.json_mapping_parameters` -Required: - -- `record_row_path` (String) The path to the top-level parent that contains the records. - - - - - - -### Nested Schema for `application_configuration.sql_application_configuration.inputs.input_parallelism` - -Optional: - -- `count` (Number) The number of in-application streams to create. - - - -### Nested Schema for `application_configuration.sql_application_configuration.inputs.input_processing_configuration` - Optional: -- `input_lambda_processor` (Attributes) The InputLambdaProcessor that is used to preprocess the records in the stream before being processed by your application code. (see [below for nested schema](#nestedatt--application_configuration--sql_application_configuration--inputs--input_processing_configuration--input_lambda_processor)) - - -### Nested Schema for `application_configuration.sql_application_configuration.inputs.input_processing_configuration.input_lambda_processor` +- `record_row_path` (String) The path to the top-level parent that contains the records. -Required: -- `resource_arn` (String) The ARN of the Amazon Lambda function that operates on records in the stream. ### Nested Schema for `application_configuration.sql_application_configuration.inputs.kinesis_firehose_input` -Required: +Optional: - `resource_arn` (String) The Amazon Resource Name (ARN) of the delivery stream. @@ -285,7 +261,7 @@ Required: ### Nested Schema for `application_configuration.sql_application_configuration.inputs.kinesis_streams_input` -Required: +Optional: - `resource_arn` (String) The ARN of the input Kinesis data stream to read. @@ -295,7 +271,7 @@ Required: ### Nested Schema for `application_configuration.vpc_configurations` -Required: +Optional: - `security_group_ids` (List of String) The array of SecurityGroup IDs used by the VPC configuration. - `subnet_ids` (List of String) The array of Subnet IDs used by the VPC configuration. @@ -330,19 +306,16 @@ Optional: ### Nested Schema for `application_configuration.zeppelin_application_configuration.custom_artifacts_configuration` -Required: - -- `artifact_type` (String) Set this to either `UDF` or `DEPENDENCY_JAR`. `UDF` stands for user-defined functions. This type of artifact must be in an S3 bucket. A `DEPENDENCY_JAR` can be in either Maven or an S3 bucket. - Optional: +- `artifact_type` (String) Set this to either `UDF` or `DEPENDENCY_JAR`. `UDF` stands for user-defined functions. This type of artifact must be in an S3 bucket. A `DEPENDENCY_JAR` can be in either Maven or an S3 bucket. - `maven_reference` (Attributes) The parameters required to fully specify a Maven reference. (see [below for nested schema](#nestedatt--application_configuration--zeppelin_application_configuration--custom_artifacts_configuration--maven_reference)) - `s3_content_location` (Attributes) The location of the custom artifacts. (see [below for nested schema](#nestedatt--application_configuration--zeppelin_application_configuration--custom_artifacts_configuration--s3_content_location)) ### Nested Schema for `application_configuration.zeppelin_application_configuration.custom_artifacts_configuration.maven_reference` -Required: +Optional: - `artifact_id` (String) The artifact ID of the Maven reference. - `group_id` (String) The group ID of the Maven reference. @@ -352,13 +325,10 @@ Required: ### Nested Schema for `application_configuration.zeppelin_application_configuration.custom_artifacts_configuration.s3_content_location` -Required: +Optional: - `bucket_arn` (String) The Amazon Resource Name (ARN) for the S3 bucket containing the application code. - `file_key` (String) The file key for the object containing the application code. - -Optional: - - `object_version` (String) The version of the object containing the application code. @@ -366,20 +336,17 @@ Optional: ### Nested Schema for `application_configuration.zeppelin_application_configuration.deploy_as_application_configuration` -Required: +Optional: - `s3_content_location` (Attributes) The description of an Amazon S3 object that contains the Amazon Data Analytics application, including the Amazon Resource Name (ARN) of the S3 bucket, the name of the Amazon S3 object that contains the data, and the version number of the Amazon S3 object that contains the data. (see [below for nested schema](#nestedatt--application_configuration--zeppelin_application_configuration--deploy_as_application_configuration--s3_content_location)) ### Nested Schema for `application_configuration.zeppelin_application_configuration.deploy_as_application_configuration.s3_content_location` -Required: - -- `bucket_arn` (String) The Amazon Resource Name (ARN) of the S3 bucket. - Optional: - `base_path` (String) The base path for the S3 bucket. +- `bucket_arn` (String) The Amazon Resource Name (ARN) of the S3 bucket. @@ -396,7 +363,7 @@ Optional: ### Nested Schema for `application_maintenance_configuration` -Required: +Optional: - `application_maintenance_window_start_time` (String) The start time for the maintenance window. @@ -412,12 +379,9 @@ Optional: ### Nested Schema for `run_configuration.application_restore_configuration` -Required: - -- `application_restore_type` (String) Specifies how the application should be restored. - Optional: +- `application_restore_type` (String) Specifies how the application should be restored. - `snapshot_name` (String) The identifier of an existing snapshot of application state to use to restart an application. The application uses this value if RESTORE_FROM_CUSTOM_SNAPSHOT is specified for the ApplicationRestoreType. @@ -433,7 +397,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that's 1 to 128 Unicode characters in length and can't be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that's 0 to 256 characters in length. diff --git a/docs/resources/kinesisfirehose_delivery_stream.md b/docs/resources/kinesisfirehose_delivery_stream.md index bdeb6a3aa9..6c1b4f05f1 100644 --- a/docs/resources/kinesisfirehose_delivery_stream.md +++ b/docs/resources/kinesisfirehose_delivery_stream.md @@ -42,76 +42,19 @@ Resource Type definition for AWS::KinesisFirehose::DeliveryStream ### Nested Schema for `amazon_open_search_serverless_destination_configuration` -Required: - -- `index_name` (String) -- `role_arn` (String) -- `s3_configuration` (Attributes) (see [below for nested schema](#nestedatt--amazon_open_search_serverless_destination_configuration--s3_configuration)) - Optional: - `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--amazon_open_search_serverless_destination_configuration--buffering_hints)) - `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--amazon_open_search_serverless_destination_configuration--cloudwatch_logging_options)) - `collection_endpoint` (String) +- `index_name` (String) - `processing_configuration` (Attributes) (see [below for nested schema](#nestedatt--amazon_open_search_serverless_destination_configuration--processing_configuration)) - `retry_options` (Attributes) (see [below for nested schema](#nestedatt--amazon_open_search_serverless_destination_configuration--retry_options)) +- `role_arn` (String) - `s3_backup_mode` (String) +- `s3_configuration` (Attributes) (see [below for nested schema](#nestedatt--amazon_open_search_serverless_destination_configuration--s3_configuration)) - `vpc_configuration` (Attributes) (see [below for nested schema](#nestedatt--amazon_open_search_serverless_destination_configuration--vpc_configuration)) - -### Nested Schema for `amazon_open_search_serverless_destination_configuration.s3_configuration` - -Required: - -- `bucket_arn` (String) -- `role_arn` (String) - -Optional: - -- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--amazon_open_search_serverless_destination_configuration--s3_configuration--buffering_hints)) -- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--amazon_open_search_serverless_destination_configuration--s3_configuration--cloudwatch_logging_options)) -- `compression_format` (String) -- `encryption_configuration` (Attributes) (see [below for nested schema](#nestedatt--amazon_open_search_serverless_destination_configuration--s3_configuration--encryption_configuration)) -- `error_output_prefix` (String) -- `prefix` (String) - - -### Nested Schema for `amazon_open_search_serverless_destination_configuration.s3_configuration.buffering_hints` - -Optional: - -- `interval_in_seconds` (Number) -- `size_in_m_bs` (Number) - - - -### Nested Schema for `amazon_open_search_serverless_destination_configuration.s3_configuration.cloudwatch_logging_options` - -Optional: - -- `enabled` (Boolean) -- `log_group_name` (String) -- `log_stream_name` (String) - - - -### Nested Schema for `amazon_open_search_serverless_destination_configuration.s3_configuration.encryption_configuration` - -Optional: - -- `kms_encryption_config` (Attributes) (see [below for nested schema](#nestedatt--amazon_open_search_serverless_destination_configuration--s3_configuration--encryption_configuration--kms_encryption_config)) -- `no_encryption_config` (String) - - -### Nested Schema for `amazon_open_search_serverless_destination_configuration.s3_configuration.encryption_configuration.kms_encryption_config` - -Required: - -- `awskms_key_arn` (String) - - - - ### Nested Schema for `amazon_open_search_serverless_destination_configuration.buffering_hints` @@ -142,18 +85,15 @@ Optional: ### Nested Schema for `amazon_open_search_serverless_destination_configuration.processing_configuration.processors` -Required: - -- `type` (String) - Optional: - `parameters` (Attributes List) (see [below for nested schema](#nestedatt--amazon_open_search_serverless_destination_configuration--processing_configuration--processors--parameters)) +- `type` (String) ### Nested Schema for `amazon_open_search_serverless_destination_configuration.processing_configuration.processors.parameters` -Required: +Optional: - `parameter_name` (String) - `parameter_value` (String) @@ -169,59 +109,22 @@ Optional: - `duration_in_seconds` (Number) - -### Nested Schema for `amazon_open_search_serverless_destination_configuration.vpc_configuration` - -Required: - -- `role_arn` (String) -- `security_group_ids` (List of String) -- `subnet_ids` (List of String) - - - - -### Nested Schema for `amazonopensearchservice_destination_configuration` - -Required: - -- `index_name` (String) -- `role_arn` (String) -- `s3_configuration` (Attributes) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--s3_configuration)) + +### Nested Schema for `amazon_open_search_serverless_destination_configuration.s3_configuration` Optional: -- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--buffering_hints)) -- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--cloudwatch_logging_options)) -- `cluster_endpoint` (String) -- `document_id_options` (Attributes) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--document_id_options)) -- `domain_arn` (String) -- `index_rotation_period` (String) -- `processing_configuration` (Attributes) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--processing_configuration)) -- `retry_options` (Attributes) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--retry_options)) -- `s3_backup_mode` (String) -- `type_name` (String) -- `vpc_configuration` (Attributes) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--vpc_configuration)) - - -### Nested Schema for `amazonopensearchservice_destination_configuration.s3_configuration` - -Required: - - `bucket_arn` (String) -- `role_arn` (String) - -Optional: - -- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--s3_configuration--buffering_hints)) -- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--s3_configuration--cloudwatch_logging_options)) +- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--amazon_open_search_serverless_destination_configuration--s3_configuration--buffering_hints)) +- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--amazon_open_search_serverless_destination_configuration--s3_configuration--cloudwatch_logging_options)) - `compression_format` (String) -- `encryption_configuration` (Attributes) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--s3_configuration--encryption_configuration)) +- `encryption_configuration` (Attributes) (see [below for nested schema](#nestedatt--amazon_open_search_serverless_destination_configuration--s3_configuration--encryption_configuration)) - `error_output_prefix` (String) - `prefix` (String) +- `role_arn` (String) - -### Nested Schema for `amazonopensearchservice_destination_configuration.s3_configuration.buffering_hints` + +### Nested Schema for `amazon_open_search_serverless_destination_configuration.s3_configuration.buffering_hints` Optional: @@ -229,8 +132,8 @@ Optional: - `size_in_m_bs` (Number) - -### Nested Schema for `amazonopensearchservice_destination_configuration.s3_configuration.cloudwatch_logging_options` + +### Nested Schema for `amazon_open_search_serverless_destination_configuration.s3_configuration.cloudwatch_logging_options` Optional: @@ -239,24 +142,55 @@ Optional: - `log_stream_name` (String) - -### Nested Schema for `amazonopensearchservice_destination_configuration.s3_configuration.encryption_configuration` + +### Nested Schema for `amazon_open_search_serverless_destination_configuration.s3_configuration.encryption_configuration` Optional: -- `kms_encryption_config` (Attributes) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--s3_configuration--encryption_configuration--kms_encryption_config)) +- `kms_encryption_config` (Attributes) (see [below for nested schema](#nestedatt--amazon_open_search_serverless_destination_configuration--s3_configuration--encryption_configuration--kms_encryption_config)) - `no_encryption_config` (String) - -### Nested Schema for `amazonopensearchservice_destination_configuration.s3_configuration.encryption_configuration.kms_encryption_config` + +### Nested Schema for `amazon_open_search_serverless_destination_configuration.s3_configuration.encryption_configuration.kms_encryption_config` -Required: +Optional: - `awskms_key_arn` (String) + +### Nested Schema for `amazon_open_search_serverless_destination_configuration.vpc_configuration` + +Optional: + +- `role_arn` (String) +- `security_group_ids` (List of String) +- `subnet_ids` (List of String) + + + + +### Nested Schema for `amazonopensearchservice_destination_configuration` + +Optional: + +- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--buffering_hints)) +- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--cloudwatch_logging_options)) +- `cluster_endpoint` (String) +- `document_id_options` (Attributes) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--document_id_options)) +- `domain_arn` (String) +- `index_name` (String) +- `index_rotation_period` (String) +- `processing_configuration` (Attributes) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--processing_configuration)) +- `retry_options` (Attributes) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--retry_options)) +- `role_arn` (String) +- `s3_backup_mode` (String) +- `s3_configuration` (Attributes) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--s3_configuration)) +- `type_name` (String) +- `vpc_configuration` (Attributes) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--vpc_configuration)) + ### Nested Schema for `amazonopensearchservice_destination_configuration.buffering_hints` @@ -279,7 +213,7 @@ Optional: ### Nested Schema for `amazonopensearchservice_destination_configuration.document_id_options` -Required: +Optional: - `default_document_id_format` (String) @@ -295,18 +229,15 @@ Optional: ### Nested Schema for `amazonopensearchservice_destination_configuration.processing_configuration.processors` -Required: - -- `type` (String) - Optional: - `parameters` (Attributes List) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--processing_configuration--processors--parameters)) +- `type` (String) ### Nested Schema for `amazonopensearchservice_destination_configuration.processing_configuration.processors.parameters` -Required: +Optional: - `parameter_name` (String) - `parameter_value` (String) @@ -322,105 +253,96 @@ Optional: - `duration_in_seconds` (Number) - -### Nested Schema for `amazonopensearchservice_destination_configuration.vpc_configuration` + +### Nested Schema for `amazonopensearchservice_destination_configuration.s3_configuration` -Required: +Optional: +- `bucket_arn` (String) +- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--s3_configuration--buffering_hints)) +- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--s3_configuration--cloudwatch_logging_options)) +- `compression_format` (String) +- `encryption_configuration` (Attributes) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--s3_configuration--encryption_configuration)) +- `error_output_prefix` (String) +- `prefix` (String) - `role_arn` (String) -- `security_group_ids` (List of String) -- `subnet_ids` (List of String) + +### Nested Schema for `amazonopensearchservice_destination_configuration.s3_configuration.buffering_hints` +Optional: - -### Nested Schema for `delivery_stream_encryption_configuration_input` +- `interval_in_seconds` (Number) +- `size_in_m_bs` (Number) -Required: -- `key_type` (String) + +### Nested Schema for `amazonopensearchservice_destination_configuration.s3_configuration.cloudwatch_logging_options` Optional: -- `key_arn` (String) - - - -### Nested Schema for `elasticsearch_destination_configuration` +- `enabled` (Boolean) +- `log_group_name` (String) +- `log_stream_name` (String) -Required: -- `index_name` (String) -- `role_arn` (String) -- `s3_configuration` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--s3_configuration)) + +### Nested Schema for `amazonopensearchservice_destination_configuration.s3_configuration.encryption_configuration` Optional: -- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--buffering_hints)) -- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--cloudwatch_logging_options)) -- `cluster_endpoint` (String) -- `document_id_options` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--document_id_options)) -- `domain_arn` (String) -- `index_rotation_period` (String) -- `processing_configuration` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--processing_configuration)) -- `retry_options` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--retry_options)) -- `s3_backup_mode` (String) -- `type_name` (String) -- `vpc_configuration` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--vpc_configuration)) - - -### Nested Schema for `elasticsearch_destination_configuration.s3_configuration` - -Required: +- `kms_encryption_config` (Attributes) (see [below for nested schema](#nestedatt--amazonopensearchservice_destination_configuration--s3_configuration--encryption_configuration--kms_encryption_config)) +- `no_encryption_config` (String) -- `bucket_arn` (String) -- `role_arn` (String) + +### Nested Schema for `amazonopensearchservice_destination_configuration.s3_configuration.encryption_configuration.kms_encryption_config` Optional: -- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--s3_configuration--buffering_hints)) -- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--s3_configuration--cloudwatch_logging_options)) -- `compression_format` (String) -- `encryption_configuration` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--s3_configuration--encryption_configuration)) -- `error_output_prefix` (String) -- `prefix` (String) - - -### Nested Schema for `elasticsearch_destination_configuration.s3_configuration.buffering_hints` +- `awskms_key_arn` (String) -Optional: -- `interval_in_seconds` (Number) -- `size_in_m_bs` (Number) - -### Nested Schema for `elasticsearch_destination_configuration.s3_configuration.cloudwatch_logging_options` + +### Nested Schema for `amazonopensearchservice_destination_configuration.vpc_configuration` Optional: -- `enabled` (Boolean) -- `log_group_name` (String) -- `log_stream_name` (String) - +- `role_arn` (String) +- `security_group_ids` (List of String) +- `subnet_ids` (List of String) - -### Nested Schema for `elasticsearch_destination_configuration.s3_configuration.encryption_configuration` -Optional: -- `kms_encryption_config` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--s3_configuration--encryption_configuration--kms_encryption_config)) -- `no_encryption_config` (String) + +### Nested Schema for `delivery_stream_encryption_configuration_input` - -### Nested Schema for `elasticsearch_destination_configuration.s3_configuration.encryption_configuration.kms_encryption_config` +Optional: -Required: +- `key_arn` (String) +- `key_type` (String) -- `awskms_key_arn` (String) + +### Nested Schema for `elasticsearch_destination_configuration` +Optional: +- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--buffering_hints)) +- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--cloudwatch_logging_options)) +- `cluster_endpoint` (String) +- `document_id_options` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--document_id_options)) +- `domain_arn` (String) +- `index_name` (String) +- `index_rotation_period` (String) +- `processing_configuration` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--processing_configuration)) +- `retry_options` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--retry_options)) +- `role_arn` (String) +- `s3_backup_mode` (String) +- `s3_configuration` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--s3_configuration)) +- `type_name` (String) +- `vpc_configuration` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--vpc_configuration)) ### Nested Schema for `elasticsearch_destination_configuration.buffering_hints` @@ -444,7 +366,7 @@ Optional: ### Nested Schema for `elasticsearch_destination_configuration.document_id_options` -Required: +Optional: - `default_document_id_format` (String) @@ -460,18 +382,15 @@ Optional: ### Nested Schema for `elasticsearch_destination_configuration.processing_configuration.processors` -Required: - -- `type` (String) - Optional: - `parameters` (Attributes List) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--processing_configuration--processors--parameters)) +- `type` (String) ### Nested Schema for `elasticsearch_destination_configuration.processing_configuration.processors.parameters` -Required: +Optional: - `parameter_name` (String) - `parameter_value` (String) @@ -487,10 +406,61 @@ Optional: - `duration_in_seconds` (Number) + +### Nested Schema for `elasticsearch_destination_configuration.s3_configuration` + +Optional: + +- `bucket_arn` (String) +- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--s3_configuration--buffering_hints)) +- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--s3_configuration--cloudwatch_logging_options)) +- `compression_format` (String) +- `encryption_configuration` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--s3_configuration--encryption_configuration)) +- `error_output_prefix` (String) +- `prefix` (String) +- `role_arn` (String) + + +### Nested Schema for `elasticsearch_destination_configuration.s3_configuration.buffering_hints` + +Optional: + +- `interval_in_seconds` (Number) +- `size_in_m_bs` (Number) + + + +### Nested Schema for `elasticsearch_destination_configuration.s3_configuration.cloudwatch_logging_options` + +Optional: + +- `enabled` (Boolean) +- `log_group_name` (String) +- `log_stream_name` (String) + + + +### Nested Schema for `elasticsearch_destination_configuration.s3_configuration.encryption_configuration` + +Optional: + +- `kms_encryption_config` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch_destination_configuration--s3_configuration--encryption_configuration--kms_encryption_config)) +- `no_encryption_config` (String) + + +### Nested Schema for `elasticsearch_destination_configuration.s3_configuration.encryption_configuration.kms_encryption_config` + +Optional: + +- `awskms_key_arn` (String) + + + + ### Nested Schema for `elasticsearch_destination_configuration.vpc_configuration` -Required: +Optional: - `role_arn` (String) - `security_group_ids` (List of String) @@ -501,13 +471,9 @@ Required: ### Nested Schema for `extended_s3_destination_configuration` -Required: - -- `bucket_arn` (String) -- `role_arn` (String) - Optional: +- `bucket_arn` (String) - `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--extended_s3_destination_configuration--buffering_hints)) - `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--extended_s3_destination_configuration--cloudwatch_logging_options)) - `compression_format` (String) @@ -519,6 +485,7 @@ Optional: - `file_extension` (String) - `prefix` (String) - `processing_configuration` (Attributes) (see [below for nested schema](#nestedatt--extended_s3_destination_configuration--processing_configuration)) +- `role_arn` (String) - `s3_backup_configuration` (Attributes) (see [below for nested schema](#nestedatt--extended_s3_destination_configuration--s3_backup_configuration)) - `s3_backup_mode` (String) @@ -675,7 +642,7 @@ Optional: ### Nested Schema for `extended_s3_destination_configuration.encryption_configuration.kms_encryption_config` -Required: +Optional: - `awskms_key_arn` (String) @@ -692,18 +659,15 @@ Optional: ### Nested Schema for `extended_s3_destination_configuration.processing_configuration.processors` -Required: - -- `type` (String) - Optional: - `parameters` (Attributes List) (see [below for nested schema](#nestedatt--extended_s3_destination_configuration--processing_configuration--processors--parameters)) +- `type` (String) ### Nested Schema for `extended_s3_destination_configuration.processing_configuration.processors.parameters` -Required: +Optional: - `parameter_name` (String) - `parameter_value` (String) @@ -714,19 +678,16 @@ Required: ### Nested Schema for `extended_s3_destination_configuration.s3_backup_configuration` -Required: - -- `bucket_arn` (String) -- `role_arn` (String) - Optional: +- `bucket_arn` (String) - `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--extended_s3_destination_configuration--s3_backup_configuration--buffering_hints)) - `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--extended_s3_destination_configuration--s3_backup_configuration--cloudwatch_logging_options)) - `compression_format` (String) - `encryption_configuration` (Attributes) (see [below for nested schema](#nestedatt--extended_s3_destination_configuration--s3_backup_configuration--encryption_configuration)) - `error_output_prefix` (String) - `prefix` (String) +- `role_arn` (String) ### Nested Schema for `extended_s3_destination_configuration.s3_backup_configuration.buffering_hints` @@ -758,7 +719,7 @@ Optional: ### Nested Schema for `extended_s3_destination_configuration.s3_backup_configuration.encryption_configuration.kms_encryption_config` -Required: +Optional: - `awskms_key_arn` (String) @@ -769,54 +730,21 @@ Required: ### Nested Schema for `http_endpoint_destination_configuration` -Required: - -- `endpoint_configuration` (Attributes) (see [below for nested schema](#nestedatt--http_endpoint_destination_configuration--endpoint_configuration)) -- `s3_configuration` (Attributes) (see [below for nested schema](#nestedatt--http_endpoint_destination_configuration--s3_configuration)) - Optional: - `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--http_endpoint_destination_configuration--buffering_hints)) - `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--http_endpoint_destination_configuration--cloudwatch_logging_options)) +- `endpoint_configuration` (Attributes) (see [below for nested schema](#nestedatt--http_endpoint_destination_configuration--endpoint_configuration)) - `processing_configuration` (Attributes) (see [below for nested schema](#nestedatt--http_endpoint_destination_configuration--processing_configuration)) - `request_configuration` (Attributes) (see [below for nested schema](#nestedatt--http_endpoint_destination_configuration--request_configuration)) - `retry_options` (Attributes) (see [below for nested schema](#nestedatt--http_endpoint_destination_configuration--retry_options)) - `role_arn` (String) - `s3_backup_mode` (String) +- `s3_configuration` (Attributes) (see [below for nested schema](#nestedatt--http_endpoint_destination_configuration--s3_configuration)) - `secrets_manager_configuration` (Attributes) (see [below for nested schema](#nestedatt--http_endpoint_destination_configuration--secrets_manager_configuration)) - -### Nested Schema for `http_endpoint_destination_configuration.endpoint_configuration` - -Required: - -- `url` (String) - -Optional: - -- `access_key` (String) -- `name` (String) - - - -### Nested Schema for `http_endpoint_destination_configuration.s3_configuration` - -Required: - -- `bucket_arn` (String) -- `role_arn` (String) - -Optional: - -- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--http_endpoint_destination_configuration--s3_configuration--buffering_hints)) -- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--http_endpoint_destination_configuration--s3_configuration--cloudwatch_logging_options)) -- `compression_format` (String) -- `encryption_configuration` (Attributes) (see [below for nested schema](#nestedatt--http_endpoint_destination_configuration--s3_configuration--encryption_configuration)) -- `error_output_prefix` (String) -- `prefix` (String) - - -### Nested Schema for `http_endpoint_destination_configuration.s3_configuration.buffering_hints` + +### Nested Schema for `http_endpoint_destination_configuration.buffering_hints` Optional: @@ -824,8 +752,8 @@ Optional: - `size_in_m_bs` (Number) - -### Nested Schema for `http_endpoint_destination_configuration.s3_configuration.cloudwatch_logging_options` + +### Nested Schema for `http_endpoint_destination_configuration.cloudwatch_logging_options` Optional: @@ -834,41 +762,14 @@ Optional: - `log_stream_name` (String) - -### Nested Schema for `http_endpoint_destination_configuration.s3_configuration.encryption_configuration` - -Optional: - -- `kms_encryption_config` (Attributes) (see [below for nested schema](#nestedatt--http_endpoint_destination_configuration--s3_configuration--encryption_configuration--kms_encryption_config)) -- `no_encryption_config` (String) - - -### Nested Schema for `http_endpoint_destination_configuration.s3_configuration.encryption_configuration.kms_encryption_config` - -Required: - -- `awskms_key_arn` (String) - - - - - -### Nested Schema for `http_endpoint_destination_configuration.buffering_hints` - -Optional: - -- `interval_in_seconds` (Number) -- `size_in_m_bs` (Number) - - - -### Nested Schema for `http_endpoint_destination_configuration.cloudwatch_logging_options` + +### Nested Schema for `http_endpoint_destination_configuration.endpoint_configuration` Optional: -- `enabled` (Boolean) -- `log_group_name` (String) -- `log_stream_name` (String) +- `access_key` (String) +- `name` (String) +- `url` (String) @@ -882,18 +783,15 @@ Optional: ### Nested Schema for `http_endpoint_destination_configuration.processing_configuration.processors` -Required: - -- `type` (String) - Optional: - `parameters` (Attributes List) (see [below for nested schema](#nestedatt--http_endpoint_destination_configuration--processing_configuration--processors--parameters)) +- `type` (String) ### Nested Schema for `http_endpoint_destination_configuration.processing_configuration.processors.parameters` -Required: +Optional: - `parameter_name` (String) - `parameter_value` (String) @@ -912,7 +810,7 @@ Optional: ### Nested Schema for `http_endpoint_destination_configuration.request_configuration.common_attributes` -Required: +Optional: - `attribute_name` (String) - `attribute_value` (String) @@ -927,65 +825,22 @@ Optional: - `duration_in_seconds` (Number) - -### Nested Schema for `http_endpoint_destination_configuration.secrets_manager_configuration` - -Required: - -- `enabled` (Boolean) - -Optional: - -- `role_arn` (String) -- `secret_arn` (String) - - - - -### Nested Schema for `iceberg_destination_configuration` - -Required: - -- `catalog_configuration` (Attributes) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--catalog_configuration)) -- `role_arn` (String) -- `s3_configuration` (Attributes) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--s3_configuration)) - -Optional: - -- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--buffering_hints)) -- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--cloudwatch_logging_options)) -- `destination_table_configuration_list` (Attributes List) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--destination_table_configuration_list)) -- `processing_configuration` (Attributes) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--processing_configuration)) -- `retry_options` (Attributes) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--retry_options)) -- `s_3_backup_mode` (String) - - -### Nested Schema for `iceberg_destination_configuration.catalog_configuration` + +### Nested Schema for `http_endpoint_destination_configuration.s3_configuration` Optional: -- `catalog_arn` (String) - - - -### Nested Schema for `iceberg_destination_configuration.s3_configuration` - -Required: - - `bucket_arn` (String) -- `role_arn` (String) - -Optional: - -- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--s3_configuration--buffering_hints)) -- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--s3_configuration--cloudwatch_logging_options)) +- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--http_endpoint_destination_configuration--s3_configuration--buffering_hints)) +- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--http_endpoint_destination_configuration--s3_configuration--cloudwatch_logging_options)) - `compression_format` (String) -- `encryption_configuration` (Attributes) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--s3_configuration--encryption_configuration)) +- `encryption_configuration` (Attributes) (see [below for nested schema](#nestedatt--http_endpoint_destination_configuration--s3_configuration--encryption_configuration)) - `error_output_prefix` (String) - `prefix` (String) +- `role_arn` (String) - -### Nested Schema for `iceberg_destination_configuration.s3_configuration.buffering_hints` + +### Nested Schema for `http_endpoint_destination_configuration.s3_configuration.buffering_hints` Optional: @@ -993,8 +848,8 @@ Optional: - `size_in_m_bs` (Number) - -### Nested Schema for `iceberg_destination_configuration.s3_configuration.cloudwatch_logging_options` + +### Nested Schema for `http_endpoint_destination_configuration.s3_configuration.cloudwatch_logging_options` Optional: @@ -1003,24 +858,50 @@ Optional: - `log_stream_name` (String) - -### Nested Schema for `iceberg_destination_configuration.s3_configuration.encryption_configuration` + +### Nested Schema for `http_endpoint_destination_configuration.s3_configuration.encryption_configuration` Optional: -- `kms_encryption_config` (Attributes) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--s3_configuration--encryption_configuration--kms_encryption_config)) +- `kms_encryption_config` (Attributes) (see [below for nested schema](#nestedatt--http_endpoint_destination_configuration--s3_configuration--encryption_configuration--kms_encryption_config)) - `no_encryption_config` (String) - -### Nested Schema for `iceberg_destination_configuration.s3_configuration.encryption_configuration.kms_encryption_config` + +### Nested Schema for `http_endpoint_destination_configuration.s3_configuration.encryption_configuration.kms_encryption_config` -Required: +Optional: - `awskms_key_arn` (String) + +### Nested Schema for `http_endpoint_destination_configuration.secrets_manager_configuration` + +Optional: + +- `enabled` (Boolean) +- `role_arn` (String) +- `secret_arn` (String) + + + + +### Nested Schema for `iceberg_destination_configuration` + +Optional: + +- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--buffering_hints)) +- `catalog_configuration` (Attributes) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--catalog_configuration)) +- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--cloudwatch_logging_options)) +- `destination_table_configuration_list` (Attributes List) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--destination_table_configuration_list)) +- `processing_configuration` (Attributes) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--processing_configuration)) +- `retry_options` (Attributes) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--retry_options)) +- `role_arn` (String) +- `s3_configuration` (Attributes) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--s3_configuration)) +- `s_3_backup_mode` (String) + ### Nested Schema for `iceberg_destination_configuration.buffering_hints` @@ -1030,6 +911,14 @@ Optional: - `size_in_m_bs` (Number) + +### Nested Schema for `iceberg_destination_configuration.catalog_configuration` + +Optional: + +- `catalog_arn` (String) + + ### Nested Schema for `iceberg_destination_configuration.cloudwatch_logging_options` @@ -1043,13 +932,10 @@ Optional: ### Nested Schema for `iceberg_destination_configuration.destination_table_configuration_list` -Required: +Optional: - `destination_database_name` (String) - `destination_table_name` (String) - -Optional: - - `s3_error_output_prefix` (String) - `unique_keys` (List of String) @@ -1065,18 +951,15 @@ Optional: ### Nested Schema for `iceberg_destination_configuration.processing_configuration.processors` -Required: - -- `type` (String) - Optional: - `parameters` (Attributes List) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--processing_configuration--processors--parameters)) +- `type` (String) ### Nested Schema for `iceberg_destination_configuration.processing_configuration.processors.parameters` -Required: +Optional: - `parameter_name` (String) - `parameter_value` (String) @@ -1092,126 +975,104 @@ Optional: - `duration_in_seconds` (Number) + +### Nested Schema for `iceberg_destination_configuration.s3_configuration` - -### Nested Schema for `kinesis_stream_source_configuration` - -Required: +Optional: -- `kinesis_stream_arn` (String) +- `bucket_arn` (String) +- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--s3_configuration--buffering_hints)) +- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--s3_configuration--cloudwatch_logging_options)) +- `compression_format` (String) +- `encryption_configuration` (Attributes) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--s3_configuration--encryption_configuration)) +- `error_output_prefix` (String) +- `prefix` (String) - `role_arn` (String) - - -### Nested Schema for `msk_source_configuration` - -Required: - -- `authentication_configuration` (Attributes) (see [below for nested schema](#nestedatt--msk_source_configuration--authentication_configuration)) -- `msk_cluster_arn` (String) -- `topic_name` (String) + +### Nested Schema for `iceberg_destination_configuration.s3_configuration.buffering_hints` Optional: -- `read_from_timestamp` (String) - - -### Nested Schema for `msk_source_configuration.authentication_configuration` - -Required: +- `interval_in_seconds` (Number) +- `size_in_m_bs` (Number) -- `connectivity` (String) -- `role_arn` (String) + +### Nested Schema for `iceberg_destination_configuration.s3_configuration.cloudwatch_logging_options` +Optional: - -### Nested Schema for `redshift_destination_configuration` +- `enabled` (Boolean) +- `log_group_name` (String) +- `log_stream_name` (String) -Required: -- `cluster_jdbcurl` (String) -- `copy_command` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--copy_command)) -- `role_arn` (String) -- `s3_configuration` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--s3_configuration)) + +### Nested Schema for `iceberg_destination_configuration.s3_configuration.encryption_configuration` Optional: -- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--cloudwatch_logging_options)) -- `password` (String) -- `processing_configuration` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--processing_configuration)) -- `retry_options` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--retry_options)) -- `s3_backup_configuration` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--s3_backup_configuration)) -- `s3_backup_mode` (String) -- `secrets_manager_configuration` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--secrets_manager_configuration)) -- `username` (String) - - -### Nested Schema for `redshift_destination_configuration.copy_command` - -Required: +- `kms_encryption_config` (Attributes) (see [below for nested schema](#nestedatt--iceberg_destination_configuration--s3_configuration--encryption_configuration--kms_encryption_config)) +- `no_encryption_config` (String) -- `data_table_name` (String) + +### Nested Schema for `iceberg_destination_configuration.s3_configuration.encryption_configuration.kms_encryption_config` Optional: -- `copy_options` (String) -- `data_table_columns` (String) - - - -### Nested Schema for `redshift_destination_configuration.s3_configuration` +- `awskms_key_arn` (String) -Required: -- `bucket_arn` (String) -- `role_arn` (String) -Optional: -- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--s3_configuration--buffering_hints)) -- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--s3_configuration--cloudwatch_logging_options)) -- `compression_format` (String) -- `encryption_configuration` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--s3_configuration--encryption_configuration)) -- `error_output_prefix` (String) -- `prefix` (String) - -### Nested Schema for `redshift_destination_configuration.s3_configuration.buffering_hints` + +### Nested Schema for `kinesis_stream_source_configuration` Optional: -- `interval_in_seconds` (Number) -- `size_in_m_bs` (Number) +- `kinesis_stream_arn` (String) +- `role_arn` (String) - -### Nested Schema for `redshift_destination_configuration.s3_configuration.cloudwatch_logging_options` + +### Nested Schema for `msk_source_configuration` Optional: -- `enabled` (Boolean) -- `log_group_name` (String) -- `log_stream_name` (String) - +- `authentication_configuration` (Attributes) (see [below for nested schema](#nestedatt--msk_source_configuration--authentication_configuration)) +- `msk_cluster_arn` (String) +- `read_from_timestamp` (String) +- `topic_name` (String) - -### Nested Schema for `redshift_destination_configuration.s3_configuration.encryption_configuration` + +### Nested Schema for `msk_source_configuration.authentication_configuration` Optional: -- `kms_encryption_config` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--s3_configuration--encryption_configuration--kms_encryption_config)) -- `no_encryption_config` (String) - - -### Nested Schema for `redshift_destination_configuration.s3_configuration.encryption_configuration.kms_encryption_config` +- `connectivity` (String) +- `role_arn` (String) -Required: -- `awskms_key_arn` (String) + +### Nested Schema for `redshift_destination_configuration` +Optional: +- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--cloudwatch_logging_options)) +- `cluster_jdbcurl` (String) +- `copy_command` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--copy_command)) +- `password` (String) +- `processing_configuration` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--processing_configuration)) +- `retry_options` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--retry_options)) +- `role_arn` (String) +- `s3_backup_configuration` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--s3_backup_configuration)) +- `s3_backup_mode` (String) +- `s3_configuration` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--s3_configuration)) +- `secrets_manager_configuration` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--secrets_manager_configuration)) +- `username` (String) ### Nested Schema for `redshift_destination_configuration.cloudwatch_logging_options` @@ -1223,6 +1084,16 @@ Optional: - `log_stream_name` (String) + +### Nested Schema for `redshift_destination_configuration.copy_command` + +Optional: + +- `copy_options` (String) +- `data_table_columns` (String) +- `data_table_name` (String) + + ### Nested Schema for `redshift_destination_configuration.processing_configuration` @@ -1234,18 +1105,15 @@ Optional: ### Nested Schema for `redshift_destination_configuration.processing_configuration.processors` -Required: - -- `type` (String) - Optional: - `parameters` (Attributes List) (see [below for nested schema](#nestedatt--redshift_destination_configuration--processing_configuration--processors--parameters)) +- `type` (String) ### Nested Schema for `redshift_destination_configuration.processing_configuration.processors.parameters` -Required: +Optional: - `parameter_name` (String) - `parameter_value` (String) @@ -1264,19 +1132,16 @@ Optional: ### Nested Schema for `redshift_destination_configuration.s3_backup_configuration` -Required: - -- `bucket_arn` (String) -- `role_arn` (String) - Optional: +- `bucket_arn` (String) - `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--s3_backup_configuration--buffering_hints)) - `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--s3_backup_configuration--cloudwatch_logging_options)) - `compression_format` (String) - `encryption_configuration` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--s3_backup_configuration--encryption_configuration)) - `error_output_prefix` (String) - `prefix` (String) +- `role_arn` (String) ### Nested Schema for `redshift_destination_configuration.s3_backup_configuration.buffering_hints` @@ -1308,7 +1173,58 @@ Optional: ### Nested Schema for `redshift_destination_configuration.s3_backup_configuration.encryption_configuration.kms_encryption_config` -Required: +Optional: + +- `awskms_key_arn` (String) + + + + + +### Nested Schema for `redshift_destination_configuration.s3_configuration` + +Optional: + +- `bucket_arn` (String) +- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--s3_configuration--buffering_hints)) +- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--s3_configuration--cloudwatch_logging_options)) +- `compression_format` (String) +- `encryption_configuration` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--s3_configuration--encryption_configuration)) +- `error_output_prefix` (String) +- `prefix` (String) +- `role_arn` (String) + + +### Nested Schema for `redshift_destination_configuration.s3_configuration.buffering_hints` + +Optional: + +- `interval_in_seconds` (Number) +- `size_in_m_bs` (Number) + + + +### Nested Schema for `redshift_destination_configuration.s3_configuration.cloudwatch_logging_options` + +Optional: + +- `enabled` (Boolean) +- `log_group_name` (String) +- `log_stream_name` (String) + + + +### Nested Schema for `redshift_destination_configuration.s3_configuration.encryption_configuration` + +Optional: + +- `kms_encryption_config` (Attributes) (see [below for nested schema](#nestedatt--redshift_destination_configuration--s3_configuration--encryption_configuration--kms_encryption_config)) +- `no_encryption_config` (String) + + +### Nested Schema for `redshift_destination_configuration.s3_configuration.encryption_configuration.kms_encryption_config` + +Optional: - `awskms_key_arn` (String) @@ -1318,12 +1234,9 @@ Required: ### Nested Schema for `redshift_destination_configuration.secrets_manager_configuration` -Required: - -- `enabled` (Boolean) - Optional: +- `enabled` (Boolean) - `role_arn` (String) - `secret_arn` (String) @@ -1332,19 +1245,16 @@ Optional: ### Nested Schema for `s3_destination_configuration` -Required: - -- `bucket_arn` (String) -- `role_arn` (String) - Optional: +- `bucket_arn` (String) - `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--s3_destination_configuration--buffering_hints)) - `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--s3_destination_configuration--cloudwatch_logging_options)) - `compression_format` (String) - `encryption_configuration` (Attributes) (see [below for nested schema](#nestedatt--s3_destination_configuration--encryption_configuration)) - `error_output_prefix` (String) - `prefix` (String) +- `role_arn` (String) ### Nested Schema for `s3_destination_configuration.buffering_hints` @@ -1376,7 +1286,7 @@ Optional: ### Nested Schema for `s3_destination_configuration.encryption_configuration.kms_encryption_config` -Required: +Optional: - `awskms_key_arn` (String) @@ -1386,86 +1296,29 @@ Required: ### Nested Schema for `snowflake_destination_configuration` -Required: - -- `account_url` (String) -- `database` (String) -- `role_arn` (String) -- `s3_configuration` (Attributes) (see [below for nested schema](#nestedatt--snowflake_destination_configuration--s3_configuration)) -- `schema` (String) -- `table` (String) - Optional: +- `account_url` (String) - `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--snowflake_destination_configuration--buffering_hints)) - `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--snowflake_destination_configuration--cloudwatch_logging_options)) - `content_column_name` (String) - `data_loading_option` (String) +- `database` (String) - `key_passphrase` (String) - `meta_data_column_name` (String) - `private_key` (String) - `processing_configuration` (Attributes) (see [below for nested schema](#nestedatt--snowflake_destination_configuration--processing_configuration)) - `retry_options` (Attributes) (see [below for nested schema](#nestedatt--snowflake_destination_configuration--retry_options)) +- `role_arn` (String) - `s3_backup_mode` (String) +- `s3_configuration` (Attributes) (see [below for nested schema](#nestedatt--snowflake_destination_configuration--s3_configuration)) +- `schema` (String) - `secrets_manager_configuration` (Attributes) (see [below for nested schema](#nestedatt--snowflake_destination_configuration--secrets_manager_configuration)) - `snowflake_role_configuration` (Attributes) (see [below for nested schema](#nestedatt--snowflake_destination_configuration--snowflake_role_configuration)) - `snowflake_vpc_configuration` (Attributes) (see [below for nested schema](#nestedatt--snowflake_destination_configuration--snowflake_vpc_configuration)) +- `table` (String) - `user` (String) - -### Nested Schema for `snowflake_destination_configuration.s3_configuration` - -Required: - -- `bucket_arn` (String) -- `role_arn` (String) - -Optional: - -- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--snowflake_destination_configuration--s3_configuration--buffering_hints)) -- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--snowflake_destination_configuration--s3_configuration--cloudwatch_logging_options)) -- `compression_format` (String) -- `encryption_configuration` (Attributes) (see [below for nested schema](#nestedatt--snowflake_destination_configuration--s3_configuration--encryption_configuration)) -- `error_output_prefix` (String) -- `prefix` (String) - - -### Nested Schema for `snowflake_destination_configuration.s3_configuration.buffering_hints` - -Optional: - -- `interval_in_seconds` (Number) -- `size_in_m_bs` (Number) - - - -### Nested Schema for `snowflake_destination_configuration.s3_configuration.cloudwatch_logging_options` - -Optional: - -- `enabled` (Boolean) -- `log_group_name` (String) -- `log_stream_name` (String) - - - -### Nested Schema for `snowflake_destination_configuration.s3_configuration.encryption_configuration` - -Optional: - -- `kms_encryption_config` (Attributes) (see [below for nested schema](#nestedatt--snowflake_destination_configuration--s3_configuration--encryption_configuration--kms_encryption_config)) -- `no_encryption_config` (String) - - -### Nested Schema for `snowflake_destination_configuration.s3_configuration.encryption_configuration.kms_encryption_config` - -Required: - -- `awskms_key_arn` (String) - - - - ### Nested Schema for `snowflake_destination_configuration.buffering_hints` @@ -1496,18 +1349,15 @@ Optional: ### Nested Schema for `snowflake_destination_configuration.processing_configuration.processors` -Required: - -- `type` (String) - Optional: - `parameters` (Attributes List) (see [below for nested schema](#nestedatt--snowflake_destination_configuration--processing_configuration--processors--parameters)) +- `type` (String) ### Nested Schema for `snowflake_destination_configuration.processing_configuration.processors.parameters` -Required: +Optional: - `parameter_name` (String) - `parameter_value` (String) @@ -1523,110 +1373,101 @@ Optional: - `duration_in_seconds` (Number) - -### Nested Schema for `snowflake_destination_configuration.secrets_manager_configuration` - -Required: - -- `enabled` (Boolean) + +### Nested Schema for `snowflake_destination_configuration.s3_configuration` Optional: +- `bucket_arn` (String) +- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--snowflake_destination_configuration--s3_configuration--buffering_hints)) +- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--snowflake_destination_configuration--s3_configuration--cloudwatch_logging_options)) +- `compression_format` (String) +- `encryption_configuration` (Attributes) (see [below for nested schema](#nestedatt--snowflake_destination_configuration--s3_configuration--encryption_configuration)) +- `error_output_prefix` (String) +- `prefix` (String) - `role_arn` (String) -- `secret_arn` (String) - - -### Nested Schema for `snowflake_destination_configuration.snowflake_role_configuration` + +### Nested Schema for `snowflake_destination_configuration.s3_configuration.buffering_hints` Optional: -- `enabled` (Boolean) -- `snowflake_role` (String) +- `interval_in_seconds` (Number) +- `size_in_m_bs` (Number) - -### Nested Schema for `snowflake_destination_configuration.snowflake_vpc_configuration` + +### Nested Schema for `snowflake_destination_configuration.s3_configuration.cloudwatch_logging_options` -Required: +Optional: -- `private_link_vpce_id` (String) +- `enabled` (Boolean) +- `log_group_name` (String) +- `log_stream_name` (String) + +### Nested Schema for `snowflake_destination_configuration.s3_configuration.encryption_configuration` - -### Nested Schema for `splunk_destination_configuration` +Optional: -Required: +- `kms_encryption_config` (Attributes) (see [below for nested schema](#nestedatt--snowflake_destination_configuration--s3_configuration--encryption_configuration--kms_encryption_config)) +- `no_encryption_config` (String) -- `hec_endpoint` (String) -- `hec_endpoint_type` (String) -- `s3_configuration` (Attributes) (see [below for nested schema](#nestedatt--splunk_destination_configuration--s3_configuration)) + +### Nested Schema for `snowflake_destination_configuration.s3_configuration.encryption_configuration.kms_encryption_config` Optional: -- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--splunk_destination_configuration--buffering_hints)) -- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--splunk_destination_configuration--cloudwatch_logging_options)) -- `hec_acknowledgment_timeout_in_seconds` (Number) -- `hec_token` (String) -- `processing_configuration` (Attributes) (see [below for nested schema](#nestedatt--splunk_destination_configuration--processing_configuration)) -- `retry_options` (Attributes) (see [below for nested schema](#nestedatt--splunk_destination_configuration--retry_options)) -- `s3_backup_mode` (String) -- `secrets_manager_configuration` (Attributes) (see [below for nested schema](#nestedatt--splunk_destination_configuration--secrets_manager_configuration)) - - -### Nested Schema for `splunk_destination_configuration.s3_configuration` - -Required: +- `awskms_key_arn` (String) -- `bucket_arn` (String) -- `role_arn` (String) -Optional: -- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--splunk_destination_configuration--s3_configuration--buffering_hints)) -- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--splunk_destination_configuration--s3_configuration--cloudwatch_logging_options)) -- `compression_format` (String) -- `encryption_configuration` (Attributes) (see [below for nested schema](#nestedatt--splunk_destination_configuration--s3_configuration--encryption_configuration)) -- `error_output_prefix` (String) -- `prefix` (String) - -### Nested Schema for `splunk_destination_configuration.s3_configuration.buffering_hints` + +### Nested Schema for `snowflake_destination_configuration.secrets_manager_configuration` Optional: -- `interval_in_seconds` (Number) -- `size_in_m_bs` (Number) +- `enabled` (Boolean) +- `role_arn` (String) +- `secret_arn` (String) - -### Nested Schema for `splunk_destination_configuration.s3_configuration.cloudwatch_logging_options` + +### Nested Schema for `snowflake_destination_configuration.snowflake_role_configuration` Optional: - `enabled` (Boolean) -- `log_group_name` (String) -- `log_stream_name` (String) +- `snowflake_role` (String) - -### Nested Schema for `splunk_destination_configuration.s3_configuration.encryption_configuration` + +### Nested Schema for `snowflake_destination_configuration.snowflake_vpc_configuration` Optional: -- `kms_encryption_config` (Attributes) (see [below for nested schema](#nestedatt--splunk_destination_configuration--s3_configuration--encryption_configuration--kms_encryption_config)) -- `no_encryption_config` (String) - - -### Nested Schema for `splunk_destination_configuration.s3_configuration.encryption_configuration.kms_encryption_config` +- `private_link_vpce_id` (String) -Required: -- `awskms_key_arn` (String) + +### Nested Schema for `splunk_destination_configuration` +Optional: +- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--splunk_destination_configuration--buffering_hints)) +- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--splunk_destination_configuration--cloudwatch_logging_options)) +- `hec_acknowledgment_timeout_in_seconds` (Number) +- `hec_endpoint` (String) +- `hec_endpoint_type` (String) +- `hec_token` (String) +- `processing_configuration` (Attributes) (see [below for nested schema](#nestedatt--splunk_destination_configuration--processing_configuration)) +- `retry_options` (Attributes) (see [below for nested schema](#nestedatt--splunk_destination_configuration--retry_options)) +- `s3_backup_mode` (String) +- `s3_configuration` (Attributes) (see [below for nested schema](#nestedatt--splunk_destination_configuration--s3_configuration)) +- `secrets_manager_configuration` (Attributes) (see [below for nested schema](#nestedatt--splunk_destination_configuration--secrets_manager_configuration)) ### Nested Schema for `splunk_destination_configuration.buffering_hints` @@ -1658,18 +1499,15 @@ Optional: ### Nested Schema for `splunk_destination_configuration.processing_configuration.processors` -Required: - -- `type` (String) - Optional: - `parameters` (Attributes List) (see [below for nested schema](#nestedatt--splunk_destination_configuration--processing_configuration--processors--parameters)) +- `type` (String) ### Nested Schema for `splunk_destination_configuration.processing_configuration.processors.parameters` -Required: +Optional: - `parameter_name` (String) - `parameter_value` (String) @@ -1685,15 +1523,63 @@ Optional: - `duration_in_seconds` (Number) - -### Nested Schema for `splunk_destination_configuration.secrets_manager_configuration` + +### Nested Schema for `splunk_destination_configuration.s3_configuration` + +Optional: + +- `bucket_arn` (String) +- `buffering_hints` (Attributes) (see [below for nested schema](#nestedatt--splunk_destination_configuration--s3_configuration--buffering_hints)) +- `cloudwatch_logging_options` (Attributes) (see [below for nested schema](#nestedatt--splunk_destination_configuration--s3_configuration--cloudwatch_logging_options)) +- `compression_format` (String) +- `encryption_configuration` (Attributes) (see [below for nested schema](#nestedatt--splunk_destination_configuration--s3_configuration--encryption_configuration)) +- `error_output_prefix` (String) +- `prefix` (String) +- `role_arn` (String) + + +### Nested Schema for `splunk_destination_configuration.s3_configuration.buffering_hints` + +Optional: + +- `interval_in_seconds` (Number) +- `size_in_m_bs` (Number) + + + +### Nested Schema for `splunk_destination_configuration.s3_configuration.cloudwatch_logging_options` -Required: +Optional: - `enabled` (Boolean) +- `log_group_name` (String) +- `log_stream_name` (String) + + + +### Nested Schema for `splunk_destination_configuration.s3_configuration.encryption_configuration` + +Optional: + +- `kms_encryption_config` (Attributes) (see [below for nested schema](#nestedatt--splunk_destination_configuration--s3_configuration--encryption_configuration--kms_encryption_config)) +- `no_encryption_config` (String) + + +### Nested Schema for `splunk_destination_configuration.s3_configuration.encryption_configuration.kms_encryption_config` + +Optional: + +- `awskms_key_arn` (String) + + + + + +### Nested Schema for `splunk_destination_configuration.secrets_manager_configuration` Optional: +- `enabled` (Boolean) - `role_arn` (String) - `secret_arn` (String) @@ -1702,12 +1588,9 @@ Optional: ### Nested Schema for `tags` -Required: - -- `key` (String) - Optional: +- `key` (String) - `value` (String) ## Import diff --git a/docs/resources/kinesisvideo_signaling_channel.md b/docs/resources/kinesisvideo_signaling_channel.md index dc2cef8f6c..d19d1a7505 100644 --- a/docs/resources/kinesisvideo_signaling_channel.md +++ b/docs/resources/kinesisvideo_signaling_channel.md @@ -30,7 +30,7 @@ Resource Type Definition for AWS::KinesisVideo::SignalingChannel ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. Specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. The following characters can be used: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. Specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. The following characters can be used: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/kinesisvideo_stream.md b/docs/resources/kinesisvideo_stream.md index 5a68c4e5dd..0facaaa674 100644 --- a/docs/resources/kinesisvideo_stream.md +++ b/docs/resources/kinesisvideo_stream.md @@ -32,7 +32,7 @@ Resource Type Definition for AWS::KinesisVideo::Stream ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. Specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. The following characters can be used: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. Specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. The following characters can be used: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/kms_key.md b/docs/resources/kms_key.md index 905853f4de..34de0cfaf4 100644 --- a/docs/resources/kms_key.md +++ b/docs/resources/kms_key.md @@ -303,7 +303,7 @@ resource "awscc_kms_key" "this" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that's 1 to 128 Unicode characters in length and can't be prefixed with ``aws:``. digits, whitespace, ``_``, ``.``, ``:``, ``/``, ``=``, ``+``, ``@``, ``-``, and ``"``. For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html). diff --git a/docs/resources/kms_replica_key.md b/docs/resources/kms_replica_key.md index 3438826e78..0eb3a8a92e 100644 --- a/docs/resources/kms_replica_key.md +++ b/docs/resources/kms_replica_key.md @@ -118,7 +118,7 @@ resource "awscc_kms_key" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/lakeformation_principal_permissions.md b/docs/resources/lakeformation_principal_permissions.md index c92010a3dd..a5f808e2c8 100644 --- a/docs/resources/lakeformation_principal_permissions.md +++ b/docs/resources/lakeformation_principal_permissions.md @@ -57,7 +57,7 @@ Optional: ### Nested Schema for `resource.data_cells_filter` -Required: +Optional: - `database_name` (String) A database in the GLUDC. - `name` (String) The name given by the user to the data filter cell. @@ -68,7 +68,7 @@ Required: ### Nested Schema for `resource.data_location` -Required: +Optional: - `catalog_id` (String) The identifier for the GLUDC where the location is registered with LFlong. - `resource_arn` (String) The Amazon Resource Name (ARN) that uniquely identifies the data location resource. @@ -77,7 +77,7 @@ Required: ### Nested Schema for `resource.database` -Required: +Optional: - `catalog_id` (String) The identifier for the Data Catalog. By default, it is the account ID of the caller. - `name` (String) The name of the database resource. Unique to the Data Catalog. @@ -86,7 +86,7 @@ Required: ### Nested Schema for `resource.lf_tag` -Required: +Optional: - `catalog_id` (String) The identifier for the GLUDC where the location is registered with GLUDC. - `tag_key` (String) The key-name for the LF-tag. @@ -96,7 +96,7 @@ Required: ### Nested Schema for `resource.lf_tag_policy` -Required: +Optional: - `catalog_id` (String) The identifier for the GLUDC. The GLUDC is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your LFlong environment. - `expression` (Attributes List) A list of LF-tag conditions that apply to the resource's LF-tag policy. (see [below for nested schema](#nestedatt--resource--lf_tag_policy--expression)) @@ -115,13 +115,10 @@ Optional: ### Nested Schema for `resource.table` -Required: +Optional: - `catalog_id` (String) The identifier for the Data Catalog. By default, it is the account ID of the caller. - `database_name` (String) The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal. - -Optional: - - `name` (String) The name of the table. - `table_wildcard` (String) A wildcard object representing every table under a database. At least one of ``TableResource$Name`` or ``TableResource$TableWildcard`` is required. @@ -130,16 +127,13 @@ Optional: ### Nested Schema for `resource.table_with_columns` -Required: - -- `catalog_id` (String) The identifier for the GLUDC where the location is registered with LFlong. -- `database_name` (String) The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal. -- `name` (String) The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal. - Optional: +- `catalog_id` (String) The identifier for the GLUDC where the location is registered with LFlong. - `column_names` (List of String) The list of column names for the table. At least one of ``ColumnNames`` or ``ColumnWildcard`` is required. - `column_wildcard` (Attributes) A wildcard specified by a ``ColumnWildcard`` object. At least one of ``ColumnNames`` or ``ColumnWildcard`` is required. (see [below for nested schema](#nestedatt--resource--table_with_columns--column_wildcard)) +- `database_name` (String) The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal. +- `name` (String) The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal. ### Nested Schema for `resource.table_with_columns.column_wildcard` diff --git a/docs/resources/lakeformation_tag_association.md b/docs/resources/lakeformation_tag_association.md index 77309f5dad..a79376626a 100644 --- a/docs/resources/lakeformation_tag_association.md +++ b/docs/resources/lakeformation_tag_association.md @@ -49,7 +49,7 @@ Optional: ### Nested Schema for `resource.database` -Required: +Optional: - `catalog_id` (String) - `name` (String) @@ -58,13 +58,10 @@ Required: ### Nested Schema for `resource.table` -Required: +Optional: - `catalog_id` (String) - `database_name` (String) - -Optional: - - `name` (String) - `table_wildcard` (String) @@ -72,7 +69,7 @@ Optional: ### Nested Schema for `resource.table_with_columns` -Required: +Optional: - `catalog_id` (String) - `column_names` (List of String) diff --git a/docs/resources/lambda_alias.md b/docs/resources/lambda_alias.md index 34fddd285d..4b9351ee5f 100644 --- a/docs/resources/lambda_alias.md +++ b/docs/resources/lambda_alias.md @@ -64,7 +64,7 @@ resource "awscc_lambda_alias" "example" { ### Nested Schema for `provisioned_concurrency_config` -Required: +Optional: - `provisioned_concurrent_executions` (Number) The amount of provisioned concurrency to allocate for the alias. @@ -79,7 +79,7 @@ Optional: ### Nested Schema for `routing_config.additional_version_weights` -Required: +Optional: - `function_version` (String) The qualifier of the second version. - `function_weight` (Number) The percentage of traffic that the alias routes to the second version. diff --git a/docs/resources/lambda_event_invoke_config.md b/docs/resources/lambda_event_invoke_config.md index f2e843d8f1..8e605304b9 100644 --- a/docs/resources/lambda_event_invoke_config.md +++ b/docs/resources/lambda_event_invoke_config.md @@ -41,7 +41,7 @@ Optional: ### Nested Schema for `destination_config.on_failure` -Required: +Optional: - `destination` (String) The Amazon Resource Name (ARN) of the destination resource. @@ -49,7 +49,7 @@ Required: ### Nested Schema for `destination_config.on_success` -Required: +Optional: - `destination` (String) The Amazon Resource Name (ARN) of the destination resource. diff --git a/docs/resources/lambda_function.md b/docs/resources/lambda_function.md index cb7d7a7c52..2ba4b6e0aa 100644 --- a/docs/resources/lambda_function.md +++ b/docs/resources/lambda_function.md @@ -253,7 +253,7 @@ Optional: ### Nested Schema for `ephemeral_storage` -Required: +Optional: - `size` (Number) The size of the function's ``/tmp`` directory. @@ -261,7 +261,7 @@ Required: ### Nested Schema for `file_system_configs` -Required: +Optional: - `arn` (String) The Amazon Resource Name (ARN) of the Amazon EFS access point that provides access to the file system. - `local_mount_path` (String) The path where the function can access the file system, starting with ``/mnt/``. @@ -291,8 +291,10 @@ Optional: ### Nested Schema for `runtime_management_config` -Required: +Optional: +- `runtime_version_arn` (String) The ARN of the runtime version you want the function to use. + This is only required if you're using the *Manual* runtime update mode. - `update_runtime_on` (String) Specify the runtime update mode. + *Auto (default)* - Automatically update to the most recent and secure runtime version using a [Two-phase runtime version rollout](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-two-phase). This is the best choice for most customers to ensure they always benefit from runtime updates. + *FunctionUpdate* - LAM updates the runtime of you function to the most recent and secure runtime version when you update your function. This approach synchronizes runtime updates with function deployments, giving you control over when runtime updates are applied and allowing you to detect and mitigate rare runtime update incompatibilities early. When using this setting, you need to regularly update your functions to keep their runtime up-to-date. @@ -300,16 +302,11 @@ Required: *Valid Values*: ``Auto`` | ``FunctionUpdate`` | ``Manual`` -Optional: - -- `runtime_version_arn` (String) The ARN of the runtime version you want the function to use. - This is only required if you're using the *Manual* runtime update mode. - ### Nested Schema for `snap_start` -Required: +Optional: - `apply_on` (String) Set ``ApplyOn`` to ``PublishedVersions`` to create a snapshot of the initialized execution environment when you publish a function version. @@ -317,12 +314,9 @@ Required: ### Nested Schema for `tags` -Required: - -- `key` (String) - Optional: +- `key` (String) - `value` (String) diff --git a/docs/resources/lambda_version.md b/docs/resources/lambda_version.md index df7a02f775..9aaee93cbe 100644 --- a/docs/resources/lambda_version.md +++ b/docs/resources/lambda_version.md @@ -36,7 +36,7 @@ Resource Type definition for AWS::Lambda::Version ### Nested Schema for `provisioned_concurrency_config` -Required: +Optional: - `provisioned_concurrent_executions` (Number) The amount of provisioned concurrency to allocate for the version. @@ -44,13 +44,10 @@ Required: ### Nested Schema for `runtime_policy` -Required: - -- `update_runtime_on` (String) The runtime update mode. - Optional: - `runtime_version_arn` (String) The ARN of the runtime the function is configured to use. If the runtime update mode is manual, the ARN is returned, otherwise null is returned. +- `update_runtime_on` (String) The runtime update mode. ## Import diff --git a/docs/resources/launchwizard_deployment.md b/docs/resources/launchwizard_deployment.md index 0e6aefed75..1722397190 100644 --- a/docs/resources/launchwizard_deployment.md +++ b/docs/resources/launchwizard_deployment.md @@ -39,12 +39,9 @@ Definition of AWS::LaunchWizard::Deployment Resource Type ### Nested Schema for `tags` -Required: - -- `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - Optional: +- `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ## Import diff --git a/docs/resources/lex_bot.md b/docs/resources/lex_bot.md index 0ced2a5bb5..30113d678b 100644 --- a/docs/resources/lex_bot.md +++ b/docs/resources/lex_bot.md @@ -49,48 +49,39 @@ Required: ### Nested Schema for `bot_file_s3_location` -Required: +Optional: - `s3_bucket` (String) An Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account. - `s3_object_key` (String) The Amazon S3 key of the deployment package. - -Optional: - - `s3_object_version` (String) For versioned objects, the version of the deployment package object to use. If not specified, the current object version will be used. ### Nested Schema for `bot_locales` -Required: - -- `locale_id` (String) The identifier of the language and locale that the bot will be used in. -- `nlu_confidence_threshold` (Number) The specified confidence threshold for inserting the AMAZON.FallbackIntent and AMAZON.KendraSearchIntent intents. - Optional: - `custom_vocabulary` (Attributes) A custom vocabulary is a list of specific phrases that you want Amazon Lex V2 to recognize in the audio input. (see [below for nested schema](#nestedatt--bot_locales--custom_vocabulary)) - `description` (String) A description of the resource - `intents` (Attributes Set) List of intents (see [below for nested schema](#nestedatt--bot_locales--intents)) +- `locale_id` (String) The identifier of the language and locale that the bot will be used in. +- `nlu_confidence_threshold` (Number) The specified confidence threshold for inserting the AMAZON.FallbackIntent and AMAZON.KendraSearchIntent intents. - `slot_types` (Attributes Set) List of SlotTypes (see [below for nested schema](#nestedatt--bot_locales--slot_types)) - `voice_settings` (Attributes) Settings for using an Amazon Polly voice to communicate with a user. (see [below for nested schema](#nestedatt--bot_locales--voice_settings)) ### Nested Schema for `bot_locales.custom_vocabulary` -Required: +Optional: - `custom_vocabulary_items` (Attributes Set) (see [below for nested schema](#nestedatt--bot_locales--custom_vocabulary--custom_vocabulary_items)) ### Nested Schema for `bot_locales.custom_vocabulary.custom_vocabulary_items` -Required: - -- `phrase` (String) Phrase that should be recognized. - Optional: +- `phrase` (String) Phrase that should be recognized. - `weight` (Number) The degree to which the phrase recognition is boosted. @@ -98,10 +89,6 @@ Optional: ### Nested Schema for `bot_locales.intents` -Required: - -- `name` (String) Unique name for a resource. - Optional: - `description` (String) A description of the resource @@ -111,6 +98,7 @@ Optional: - `intent_closing_setting` (Attributes) Response that Amazon Lex sends to the user when the intent is closed. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_closing_setting)) - `intent_confirmation_setting` (Attributes) Prompts that Amazon Lex sends to the user to confirm the completion of an intent. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_confirmation_setting)) - `kendra_configuration` (Attributes) Configuration for searching a Amazon Kendra index specified for the intent. (see [below for nested schema](#nestedatt--bot_locales--intents--kendra_configuration)) +- `name` (String) Unique name for a resource. - `output_contexts` (Attributes List) A list of contexts that the intent activates when it is fulfilled. (see [below for nested schema](#nestedatt--bot_locales--intents--output_contexts)) - `parent_intent_signature` (String) A unique identifier for the built-in intent to base this intent on. - `sample_utterances` (Attributes List) An array of sample utterances (see [below for nested schema](#nestedatt--bot_locales--intents--sample_utterances)) @@ -120,7 +108,7 @@ Optional: ### Nested Schema for `bot_locales.intents.dialog_code_hook` -Required: +Optional: - `enabled` (Boolean) @@ -128,24 +116,18 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook` -Required: - -- `enabled` (Boolean) - Optional: +- `enabled` (Boolean) - `fulfillment_updates_specification` (Attributes) Provides information for updating the user on the progress of fulfilling an intent. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--fulfillment_updates_specification)) - `post_fulfillment_status_specification` (Attributes) Provides information for updating the user on the progress of fulfilling an intent. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--post_fulfillment_status_specification)) ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification` -Required: - -- `active` (Boolean) Determines whether fulfillment updates are sent to the user. When this field is true, updates are sent. - Optional: +- `active` (Boolean) Determines whether fulfillment updates are sent to the user. When this field is true, updates are sent. - `start_response` (Attributes) Provides settings for a message that is sent to the user when a fulfillment Lambda function starts running. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--fulfillment_updates_specification--start_response)) - `timeout_in_seconds` (Number) The length of time that the fulfillment Lambda function should run before it times out. - `update_response` (Attributes) Provides settings for a message that is sent periodically to the user while a fulfillment Lambda function is running. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--fulfillment_updates_specification--update_response)) @@ -153,24 +135,18 @@ Optional: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.start_response` -Required: - -- `delay_in_seconds` (Number) The delay between when the Lambda fulfillment function starts running and the start message is played. If the Lambda function returns before the delay is over, the start message isn't played. -- `message_groups` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--fulfillment_updates_specification--start_response--message_groups)) - Optional: - `allow_interrupt` (Boolean) Determines whether the user can interrupt the start message while it is playing. +- `delay_in_seconds` (Number) The delay between when the Lambda fulfillment function starts running and the start message is played. If the Lambda function returns before the delay is over, the start message isn't played. +- `message_groups` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--fulfillment_updates_specification--start_response--message_groups)) ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.start_response.message_groups` -Required: - -- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--fulfillment_updates_specification--start_response--message_groups--message)) - Optional: +- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--fulfillment_updates_specification--start_response--message_groups--message)) - `variations` (Attributes List) Message variations to send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--fulfillment_updates_specification--start_response--message_groups--variations)) @@ -186,7 +162,7 @@ Optional: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.start_response.message_groups.message.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. @@ -194,20 +170,17 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.start_response.message_groups.message.image_response_card` -Required: - -- `title` (String) The title to display on the response card. - Optional: - `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--fulfillment_updates_specification--start_response--message_groups--message--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.start_response.message_groups.message.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. @@ -217,7 +190,7 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.start_response.message_groups.message.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. @@ -225,7 +198,7 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.start_response.message_groups.message.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. @@ -244,7 +217,7 @@ Optional: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.start_response.message_groups.variations.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. @@ -252,20 +225,17 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.start_response.message_groups.variations.image_response_card` -Required: - -- `title` (String) The title to display on the response card. - Optional: - `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--fulfillment_updates_specification--start_response--message_groups--variations--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.start_response.message_groups.variations.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. @@ -275,7 +245,7 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.start_response.message_groups.variations.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. @@ -283,7 +253,7 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.start_response.message_groups.variations.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. @@ -294,24 +264,18 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.update_response` -Required: - -- `frequency_in_seconds` (Number) The frequency that a message is sent to the user. When the period ends, Amazon Lex chooses a message from the message groups and plays it to the user. If the fulfillment Lambda returns before the first period ends, an update message is not played to the user. -- `message_groups` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--fulfillment_updates_specification--update_response--message_groups)) - Optional: - `allow_interrupt` (Boolean) Determines whether the user can interrupt an update message while it is playing. +- `frequency_in_seconds` (Number) The frequency that a message is sent to the user. When the period ends, Amazon Lex chooses a message from the message groups and plays it to the user. If the fulfillment Lambda returns before the first period ends, an update message is not played to the user. +- `message_groups` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--fulfillment_updates_specification--update_response--message_groups)) ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.update_response.message_groups` -Required: - -- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--fulfillment_updates_specification--update_response--message_groups--message)) - Optional: +- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--fulfillment_updates_specification--update_response--message_groups--message)) - `variations` (Attributes List) Message variations to send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--fulfillment_updates_specification--update_response--message_groups--variations)) @@ -327,7 +291,7 @@ Optional: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.update_response.message_groups.message.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. @@ -335,20 +299,17 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.update_response.message_groups.message.image_response_card` -Required: - -- `title` (String) The title to display on the response card. - Optional: - `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--fulfillment_updates_specification--update_response--message_groups--message--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.update_response.message_groups.message.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. @@ -358,7 +319,7 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.update_response.message_groups.message.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. @@ -366,7 +327,7 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.update_response.message_groups.message.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. @@ -385,7 +346,7 @@ Optional: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.update_response.message_groups.variations.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. @@ -393,20 +354,17 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.update_response.message_groups.variations.image_response_card` -Required: - -- `title` (String) The title to display on the response card. - Optional: - `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--fulfillment_updates_specification--update_response--message_groups--variations--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.update_response.message_groups.variations.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. @@ -416,7 +374,7 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.update_response.message_groups.variations.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. @@ -424,7 +382,7 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.fulfillment_updates_specification.update_response.message_groups.variations.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. @@ -445,23 +403,17 @@ Optional: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.failure_response` -Required: - -- `message_groups_list` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--post_fulfillment_status_specification--failure_response--message_groups_list)) - Optional: - `allow_interrupt` (Boolean) Indicates whether the user can interrupt a speech prompt from the bot. +- `message_groups_list` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--post_fulfillment_status_specification--failure_response--message_groups_list)) ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.failure_response.message_groups_list` -Required: - -- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--post_fulfillment_status_specification--failure_response--message_groups_list--message)) - Optional: +- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--post_fulfillment_status_specification--failure_response--message_groups_list--message)) - `variations` (Attributes List) Message variations to send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--post_fulfillment_status_specification--failure_response--message_groups_list--variations)) @@ -477,7 +429,7 @@ Optional: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.failure_response.message_groups_list.message.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. @@ -485,20 +437,17 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.failure_response.message_groups_list.message.image_response_card` -Required: - -- `title` (String) The title to display on the response card. - Optional: - `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--post_fulfillment_status_specification--failure_response--message_groups_list--message--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.failure_response.message_groups_list.message.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. @@ -508,7 +457,7 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.failure_response.message_groups_list.message.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. @@ -516,7 +465,7 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.failure_response.message_groups_list.message.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. @@ -535,7 +484,7 @@ Optional: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.failure_response.message_groups_list.variations.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. @@ -543,20 +492,17 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.failure_response.message_groups_list.variations.image_response_card` -Required: - -- `title` (String) The title to display on the response card. - Optional: - `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--post_fulfillment_status_specification--failure_response--message_groups_list--variations--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.failure_response.message_groups_list.variations.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. @@ -566,7 +512,7 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.failure_response.message_groups_list.variations.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. @@ -574,7 +520,7 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.failure_response.message_groups_list.variations.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. @@ -585,23 +531,17 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.success_response` -Required: - -- `message_groups_list` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--post_fulfillment_status_specification--success_response--message_groups_list)) - Optional: - `allow_interrupt` (Boolean) Indicates whether the user can interrupt a speech prompt from the bot. +- `message_groups_list` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--post_fulfillment_status_specification--success_response--message_groups_list)) ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.success_response.message_groups_list` -Required: - -- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--post_fulfillment_status_specification--success_response--message_groups_list--message)) - Optional: +- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--post_fulfillment_status_specification--success_response--message_groups_list--message)) - `variations` (Attributes List) Message variations to send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--post_fulfillment_status_specification--success_response--message_groups_list--variations)) @@ -617,7 +557,7 @@ Optional: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.success_response.message_groups_list.message.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. @@ -625,20 +565,17 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.success_response.message_groups_list.message.image_response_card` -Required: - -- `title` (String) The title to display on the response card. - Optional: - `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--post_fulfillment_status_specification--success_response--message_groups_list--message--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.success_response.message_groups_list.message.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. @@ -648,7 +585,7 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.success_response.message_groups_list.message.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. @@ -656,7 +593,7 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.success_response.message_groups_list.message.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. @@ -675,7 +612,7 @@ Optional: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.success_response.message_groups_list.variations.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. @@ -683,20 +620,17 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.success_response.message_groups_list.variations.image_response_card` -Required: - -- `title` (String) The title to display on the response card. - Optional: - `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--post_fulfillment_status_specification--success_response--message_groups_list--variations--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.success_response.message_groups_list.variations.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. @@ -706,7 +640,7 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.success_response.message_groups_list.variations.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. @@ -714,7 +648,7 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.success_response.message_groups_list.variations.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. @@ -725,23 +659,17 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.timeout_response` -Required: - -- `message_groups_list` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--post_fulfillment_status_specification--timeout_response--message_groups_list)) - Optional: - `allow_interrupt` (Boolean) Indicates whether the user can interrupt a speech prompt from the bot. +- `message_groups_list` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--post_fulfillment_status_specification--timeout_response--message_groups_list)) ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.timeout_response.message_groups_list` -Required: - -- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--post_fulfillment_status_specification--timeout_response--message_groups_list--message)) - Optional: +- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--post_fulfillment_status_specification--timeout_response--message_groups_list--message)) - `variations` (Attributes List) Message variations to send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--post_fulfillment_status_specification--timeout_response--message_groups_list--variations)) @@ -757,7 +685,7 @@ Optional: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.timeout_response.message_groups_list.message.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. @@ -765,20 +693,17 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.timeout_response.message_groups_list.message.image_response_card` -Required: - -- `title` (String) The title to display on the response card. - Optional: - `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--post_fulfillment_status_specification--timeout_response--message_groups_list--message--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.timeout_response.message_groups_list.message.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. @@ -788,7 +713,7 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.timeout_response.message_groups_list.message.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. @@ -796,7 +721,7 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.timeout_response.message_groups_list.message.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. @@ -815,7 +740,7 @@ Optional: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.timeout_response.message_groups_list.variations.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. @@ -823,20 +748,17 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.timeout_response.message_groups_list.variations.image_response_card` -Required: - -- `title` (String) The title to display on the response card. - Optional: - `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--fulfillment_code_hook--post_fulfillment_status_specification--timeout_response--message_groups_list--variations--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.timeout_response.message_groups_list.variations.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. @@ -846,7 +768,7 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.timeout_response.message_groups_list.variations.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. @@ -854,7 +776,7 @@ Required: ### Nested Schema for `bot_locales.intents.fulfillment_code_hook.post_fulfillment_status_specification.timeout_response.message_groups_list.variations.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. @@ -867,7 +789,7 @@ Required: ### Nested Schema for `bot_locales.intents.input_contexts` -Required: +Optional: - `name` (String) The name of the context. @@ -875,34 +797,25 @@ Required: ### Nested Schema for `bot_locales.intents.intent_closing_setting` -Required: - -- `closing_response` (Attributes) A list of message groups that Amazon Lex uses to respond the user input. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_closing_setting--closing_response)) - Optional: +- `closing_response` (Attributes) A list of message groups that Amazon Lex uses to respond the user input. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_closing_setting--closing_response)) - `is_active` (Boolean) ### Nested Schema for `bot_locales.intents.intent_closing_setting.closing_response` -Required: - -- `message_groups_list` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_closing_setting--closing_response--message_groups_list)) - Optional: - `allow_interrupt` (Boolean) Indicates whether the user can interrupt a speech prompt from the bot. +- `message_groups_list` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_closing_setting--closing_response--message_groups_list)) ### Nested Schema for `bot_locales.intents.intent_closing_setting.closing_response.message_groups_list` -Required: - -- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_closing_setting--closing_response--message_groups_list--message)) - Optional: +- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_closing_setting--closing_response--message_groups_list--message)) - `variations` (Attributes List) Message variations to send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_closing_setting--closing_response--message_groups_list--variations)) @@ -918,7 +831,7 @@ Optional: ### Nested Schema for `bot_locales.intents.intent_closing_setting.closing_response.message_groups_list.message.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. @@ -926,20 +839,17 @@ Required: ### Nested Schema for `bot_locales.intents.intent_closing_setting.closing_response.message_groups_list.message.image_response_card` -Required: - -- `title` (String) The title to display on the response card. - Optional: - `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_closing_setting--closing_response--message_groups_list--message--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. ### Nested Schema for `bot_locales.intents.intent_closing_setting.closing_response.message_groups_list.message.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. @@ -949,7 +859,7 @@ Required: ### Nested Schema for `bot_locales.intents.intent_closing_setting.closing_response.message_groups_list.message.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. @@ -957,7 +867,7 @@ Required: ### Nested Schema for `bot_locales.intents.intent_closing_setting.closing_response.message_groups_list.message.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. @@ -976,7 +886,7 @@ Optional: ### Nested Schema for `bot_locales.intents.intent_closing_setting.closing_response.message_groups_list.variations.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. @@ -984,20 +894,17 @@ Required: ### Nested Schema for `bot_locales.intents.intent_closing_setting.closing_response.message_groups_list.variations.image_response_card` -Required: - -- `title` (String) The title to display on the response card. - Optional: - `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_closing_setting--closing_response--message_groups_list--variations--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. ### Nested Schema for `bot_locales.intents.intent_closing_setting.closing_response.message_groups_list.variations.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. @@ -1007,7 +914,7 @@ Required: ### Nested Schema for `bot_locales.intents.intent_closing_setting.closing_response.message_groups_list.variations.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. @@ -1015,7 +922,7 @@ Required: ### Nested Schema for `bot_locales.intents.intent_closing_setting.closing_response.message_groups_list.variations.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. @@ -1027,35 +934,26 @@ Required: ### Nested Schema for `bot_locales.intents.intent_confirmation_setting` -Required: - -- `declination_response` (Attributes) A list of message groups that Amazon Lex uses to respond the user input. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_confirmation_setting--declination_response)) -- `prompt_specification` (Attributes) Prompts the user to confirm the intent. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_confirmation_setting--prompt_specification)) - Optional: +- `declination_response` (Attributes) A list of message groups that Amazon Lex uses to respond the user input. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_confirmation_setting--declination_response)) - `is_active` (Boolean) +- `prompt_specification` (Attributes) Prompts the user to confirm the intent. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_confirmation_setting--prompt_specification)) ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.declination_response` -Required: - -- `message_groups_list` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_confirmation_setting--declination_response--message_groups_list)) - Optional: - `allow_interrupt` (Boolean) Indicates whether the user can interrupt a speech prompt from the bot. +- `message_groups_list` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_confirmation_setting--declination_response--message_groups_list)) ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.declination_response.message_groups_list` -Required: - -- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_confirmation_setting--declination_response--message_groups_list--message)) - Optional: +- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_confirmation_setting--declination_response--message_groups_list--message)) - `variations` (Attributes List) Message variations to send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_confirmation_setting--declination_response--message_groups_list--variations)) @@ -1071,7 +969,7 @@ Optional: ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.declination_response.message_groups_list.message.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. @@ -1079,20 +977,17 @@ Required: ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.declination_response.message_groups_list.message.image_response_card` -Required: - -- `title` (String) The title to display on the response card. - Optional: - `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_confirmation_setting--declination_response--message_groups_list--message--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.declination_response.message_groups_list.message.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. @@ -1102,7 +997,7 @@ Required: ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.declination_response.message_groups_list.message.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. @@ -1110,7 +1005,7 @@ Required: ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.declination_response.message_groups_list.message.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. @@ -1129,7 +1024,7 @@ Optional: ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.declination_response.message_groups_list.variations.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. @@ -1137,20 +1032,17 @@ Required: ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.declination_response.message_groups_list.variations.image_response_card` -Required: - -- `title` (String) The title to display on the response card. - Optional: - `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_confirmation_setting--declination_response--message_groups_list--variations--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.declination_response.message_groups_list.variations.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. @@ -1160,7 +1052,7 @@ Required: ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.declination_response.message_groups_list.variations.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. @@ -1168,7 +1060,7 @@ Required: ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.declination_response.message_groups_list.variations.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. @@ -1179,26 +1071,20 @@ Required: ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.prompt_specification` -Required: - -- `max_retries` (Number) The maximum number of times the bot tries to elicit a resonse from the user using this prompt. -- `message_groups_list` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_confirmation_setting--prompt_specification--message_groups_list)) - Optional: - `allow_interrupt` (Boolean) Indicates whether the user can interrupt a speech prompt from the bot. +- `max_retries` (Number) The maximum number of times the bot tries to elicit a resonse from the user using this prompt. +- `message_groups_list` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_confirmation_setting--prompt_specification--message_groups_list)) - `message_selection_strategy` (String) Indicates how a message is selected from a message group among retries. - `prompt_attempts_specification` (Attributes Map) Specifies the advanced settings on each attempt of the prompt. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_confirmation_setting--prompt_specification--prompt_attempts_specification)) ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.prompt_specification.message_groups_list` -Required: - -- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_confirmation_setting--prompt_specification--message_groups_list--message)) - Optional: +- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_confirmation_setting--prompt_specification--message_groups_list--message)) - `variations` (Attributes List) Message variations to send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_confirmation_setting--prompt_specification--message_groups_list--variations)) @@ -1214,7 +1100,7 @@ Optional: ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.prompt_specification.message_groups_list.message.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. @@ -1222,20 +1108,17 @@ Required: ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.prompt_specification.message_groups_list.message.image_response_card` -Required: - -- `title` (String) The title to display on the response card. - Optional: - `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_confirmation_setting--prompt_specification--message_groups_list--message--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.prompt_specification.message_groups_list.message.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. @@ -1245,7 +1128,7 @@ Required: ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.prompt_specification.message_groups_list.message.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. @@ -1253,7 +1136,7 @@ Required: ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.prompt_specification.message_groups_list.message.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. @@ -1272,7 +1155,7 @@ Optional: ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.prompt_specification.message_groups_list.variations.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. @@ -1280,20 +1163,17 @@ Required: ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.prompt_specification.message_groups_list.variations.image_response_card` -Required: - -- `title` (String) The title to display on the response card. - Optional: - `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_confirmation_setting--prompt_specification--message_groups_list--variations--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.prompt_specification.message_groups_list.variations.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. @@ -1303,7 +1183,7 @@ Required: ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.prompt_specification.message_groups_list.variations.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. @@ -1311,7 +1191,7 @@ Required: ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.prompt_specification.message_groups_list.variations.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. @@ -1331,7 +1211,7 @@ Optional: ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.prompt_specification.prompt_attempts_specification.allowed_input_types` -Required: +Optional: - `allow_audio_input` (Boolean) Indicates whether audio input is allowed. - `allow_dtmf_input` (Boolean) Indicates whether DTMF input is allowed. @@ -1340,19 +1220,16 @@ Required: ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.prompt_specification.prompt_attempts_specification.audio_and_dtmf_input_specification` -Required: - -- `start_timeout_ms` (Number) Time for which a bot waits before assuming that the customer isn't going to speak or press a key. This timeout is shared between Audio and DTMF inputs. - Optional: - `audio_specification` (Attributes) Specifies the audio input specifications. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_confirmation_setting--prompt_specification--prompt_attempts_specification--audio_and_dtmf_input_specification--audio_specification)) - `dtmf_specification` (Attributes) Specifies the settings on DTMF input. (see [below for nested schema](#nestedatt--bot_locales--intents--intent_confirmation_setting--prompt_specification--prompt_attempts_specification--audio_and_dtmf_input_specification--dtmf_specification)) +- `start_timeout_ms` (Number) Time for which a bot waits before assuming that the customer isn't going to speak or press a key. This timeout is shared between Audio and DTMF inputs. ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.prompt_specification.prompt_attempts_specification.audio_and_dtmf_input_specification.audio_specification` -Required: +Optional: - `end_timeout_ms` (Number) Time for which a bot waits after the customer stops speaking to assume the utterance is finished. - `max_length_ms` (Number) Time for how long Amazon Lex waits before speech input is truncated and the speech is returned to application. @@ -1361,7 +1238,7 @@ Required: ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.prompt_specification.prompt_attempts_specification.audio_and_dtmf_input_specification.dtmf_specification` -Required: +Optional: - `deletion_character` (String) The DTMF character that clears the accumulated DTMF digits and immediately ends the input. - `end_character` (String) The DTMF character that immediately ends input. If the user does not press this character, the input ends after the end timeout. @@ -1373,7 +1250,7 @@ Required: ### Nested Schema for `bot_locales.intents.intent_confirmation_setting.prompt_specification.prompt_attempts_specification.text_input_specification` -Required: +Optional: - `start_timeout_ms` (Number) Time for which a bot waits before re-prompting a customer for text input. @@ -1384,12 +1261,9 @@ Required: ### Nested Schema for `bot_locales.intents.kendra_configuration` -Required: - -- `kendra_index` (String) The Amazon Resource Name (ARN) of the Amazon Kendra index that you want the AMAZON.KendraSearchIntent intent to search. - Optional: +- `kendra_index` (String) The Amazon Resource Name (ARN) of the Amazon Kendra index that you want the AMAZON.KendraSearchIntent intent to search. - `query_filter_string` (String) A query filter that Amazon Lex sends to Amazon Kendra to filter the response from a query. - `query_filter_string_enabled` (Boolean) Determines whether the AMAZON.KendraSearchIntent intent uses a custom query string to query the Amazon Kendra index. @@ -1397,7 +1271,7 @@ Optional: ### Nested Schema for `bot_locales.intents.output_contexts` -Required: +Optional: - `name` (String) Unique name for a resource. - `time_to_live_in_seconds` (Number) The amount of time, in seconds, that the output context should remain active. @@ -1407,7 +1281,7 @@ Required: ### Nested Schema for `bot_locales.intents.sample_utterances` -Required: +Optional: - `utterance` (String) The sample utterance that Amazon Lex uses to build its machine-learning model to recognize intents/slots. @@ -1415,7 +1289,7 @@ Required: ### Nested Schema for `bot_locales.intents.slot_priorities` -Required: +Optional: - `priority` (Number) The priority that a slot should be elicited. - `slot_name` (String) The name of the slot. @@ -1424,43 +1298,53 @@ Required: ### Nested Schema for `bot_locales.intents.slots` -Required: +Optional: +- `description` (String) A description of the resource +- `multiple_values_setting` (Attributes) Indicates whether a slot can return multiple values. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--multiple_values_setting)) - `name` (String) Unique name for a resource. +- `obfuscation_setting` (Attributes) Determines whether Amazon Lex obscures slot values in conversation logs. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--obfuscation_setting)) - `slot_type_name` (String) The slot type name that is used in the slot. Allows for custom and built-in slot type names - `value_elicitation_setting` (Attributes) Settings that you can use for eliciting a slot value. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting)) + +### Nested Schema for `bot_locales.intents.slots.multiple_values_setting` + Optional: -- `description` (String) A description of the resource -- `multiple_values_setting` (Attributes) Indicates whether a slot can return multiple values. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--multiple_values_setting)) -- `obfuscation_setting` (Attributes) Determines whether Amazon Lex obscures slot values in conversation logs. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--obfuscation_setting)) +- `allow_multiple_values` (Boolean) - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting` -Required: + +### Nested Schema for `bot_locales.intents.slots.obfuscation_setting` -- `slot_constraint` (String) Specifies whether the slot is required or optional. +Optional: + +- `obfuscation_setting_type` (String) Value that determines whether Amazon Lex obscures slot values in conversation logs. The default is to obscure the values. + + + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting` Optional: - `default_value_specification` (Attributes) A list of default values for a slot. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--default_value_specification)) - `prompt_specification` (Attributes) The prompt that Amazon Lex uses to elicit the slot value from the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--prompt_specification)) - `sample_utterances` (Attributes List) If you know a specific pattern that users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--sample_utterances)) +- `slot_constraint` (String) Specifies whether the slot is required or optional. - `wait_and_continue_specification` (Attributes) Specifies the prompts that Amazon Lex uses while a bot is waiting for customer input. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification)) ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.default_value_specification` -Required: +Optional: - `default_value_list` (Attributes List) A list of slot default values (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--default_value_specification--default_value_list)) ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.default_value_specification.default_value_list` -Required: +Optional: - `default_value` (String) The default value to use when a user doesn't provide a value for a slot. @@ -1469,26 +1353,20 @@ Required: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.prompt_specification` -Required: - -- `max_retries` (Number) The maximum number of times the bot tries to elicit a resonse from the user using this prompt. -- `message_groups_list` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--prompt_specification--message_groups_list)) - Optional: - `allow_interrupt` (Boolean) Indicates whether the user can interrupt a speech prompt from the bot. +- `max_retries` (Number) The maximum number of times the bot tries to elicit a resonse from the user using this prompt. +- `message_groups_list` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--prompt_specification--message_groups_list)) - `message_selection_strategy` (String) Indicates how a message is selected from a message group among retries. - `prompt_attempts_specification` (Attributes Map) Specifies the advanced settings on each attempt of the prompt. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--prompt_specification--prompt_attempts_specification)) ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.prompt_specification.message_groups_list` -Required: - -- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--prompt_specification--message_groups_list--message)) - Optional: +- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--prompt_specification--message_groups_list--message)) - `variations` (Attributes List) Message variations to send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--prompt_specification--message_groups_list--variations)) @@ -1504,7 +1382,7 @@ Optional: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.prompt_specification.message_groups_list.message.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. @@ -1512,20 +1390,17 @@ Required: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.prompt_specification.message_groups_list.message.image_response_card` -Required: - -- `title` (String) The title to display on the response card. - Optional: - `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--prompt_specification--message_groups_list--message--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.prompt_specification.message_groups_list.message.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. @@ -1535,7 +1410,7 @@ Required: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.prompt_specification.message_groups_list.message.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. @@ -1543,7 +1418,7 @@ Required: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.prompt_specification.message_groups_list.message.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. @@ -1562,7 +1437,7 @@ Optional: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.prompt_specification.message_groups_list.variations.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. @@ -1570,20 +1445,17 @@ Required: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.prompt_specification.message_groups_list.variations.image_response_card` -Required: - -- `title` (String) The title to display on the response card. - Optional: - `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--prompt_specification--message_groups_list--variations--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.prompt_specification.message_groups_list.variations.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. @@ -1593,7 +1465,7 @@ Required: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.prompt_specification.message_groups_list.variations.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. @@ -1601,7 +1473,7 @@ Required: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.prompt_specification.message_groups_list.variations.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. @@ -1621,7 +1493,7 @@ Optional: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.prompt_specification.prompt_attempts_specification.allowed_input_types` -Required: +Optional: - `allow_audio_input` (Boolean) Indicates whether audio input is allowed. - `allow_dtmf_input` (Boolean) Indicates whether DTMF input is allowed. @@ -1630,19 +1502,16 @@ Required: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.prompt_specification.prompt_attempts_specification.audio_and_dtmf_input_specification` -Required: - -- `start_timeout_ms` (Number) Time for which a bot waits before assuming that the customer isn't going to speak or press a key. This timeout is shared between Audio and DTMF inputs. - Optional: - `audio_specification` (Attributes) Specifies the audio input specifications. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--prompt_specification--prompt_attempts_specification--audio_and_dtmf_input_specification--audio_specification)) - `dtmf_specification` (Attributes) Specifies the settings on DTMF input. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--prompt_specification--prompt_attempts_specification--audio_and_dtmf_input_specification--dtmf_specification)) +- `start_timeout_ms` (Number) Time for which a bot waits before assuming that the customer isn't going to speak or press a key. This timeout is shared between Audio and DTMF inputs. ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.prompt_specification.prompt_attempts_specification.audio_and_dtmf_input_specification.audio_specification` -Required: +Optional: - `end_timeout_ms` (Number) Time for which a bot waits after the customer stops speaking to assume the utterance is finished. - `max_length_ms` (Number) Time for how long Amazon Lex waits before speech input is truncated and the speech is returned to application. @@ -1651,7 +1520,7 @@ Required: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.prompt_specification.prompt_attempts_specification.audio_and_dtmf_input_specification.dtmf_specification` -Required: +Optional: - `deletion_character` (String) The DTMF character that clears the accumulated DTMF digits and immediately ends the input. - `end_character` (String) The DTMF character that immediately ends input. If the user does not press this character, the input ends after the end timeout. @@ -1663,7 +1532,7 @@ Required: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.prompt_specification.prompt_attempts_specification.text_input_specification` -Required: +Optional: - `start_timeout_ms` (Number) Time for which a bot waits before re-prompting a customer for text input. @@ -1673,7 +1542,7 @@ Required: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.sample_utterances` -Required: +Optional: - `utterance` (String) The sample utterance that Amazon Lex uses to build its machine-learning model to recognize intents/slots. @@ -1681,36 +1550,27 @@ Required: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification` -Required: - -- `continue_response` (Attributes) The response that Amazon Lex sends to indicate that the bot is ready to continue the conversation. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--continue_response)) -- `waiting_response` (Attributes) The response that Amazon Lex sends to indicate that the bot is waiting for the conversation to continue. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response)) - Optional: +- `continue_response` (Attributes) The response that Amazon Lex sends to indicate that the bot is ready to continue the conversation. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--continue_response)) - `is_active` (Boolean) Specifies whether the bot will wait for a user to respond. - `still_waiting_response` (Attributes) The response that Amazon Lex sends periodically to the user to indicate that the bot is still waiting for input from the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response)) +- `waiting_response` (Attributes) The response that Amazon Lex sends to indicate that the bot is waiting for the conversation to continue. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response)) ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.continue_response` -Required: - -- `message_groups_list` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--continue_response--message_groups_list)) - Optional: - `allow_interrupt` (Boolean) Indicates whether the user can interrupt a speech prompt from the bot. +- `message_groups_list` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--continue_response--message_groups_list)) ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.continue_response.message_groups_list` -Required: - -- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--continue_response--message_groups_list--message)) - Optional: +- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--continue_response--message_groups_list--message)) - `variations` (Attributes List) Message variations to send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--continue_response--message_groups_list--variations)) @@ -1726,7 +1586,7 @@ Optional: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.continue_response.message_groups_list.message.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. @@ -1734,20 +1594,17 @@ Required: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.continue_response.message_groups_list.message.image_response_card` -Required: - -- `title` (String) The title to display on the response card. - Optional: - `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--continue_response--message_groups_list--message--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.continue_response.message_groups_list.message.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. @@ -1757,7 +1614,7 @@ Required: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.continue_response.message_groups_list.message.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. @@ -1765,7 +1622,7 @@ Required: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.continue_response.message_groups_list.message.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. @@ -1784,7 +1641,7 @@ Optional: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.continue_response.message_groups_list.variations.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. @@ -1792,20 +1649,17 @@ Required: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.continue_response.message_groups_list.variations.image_response_card` -Required: - -- `title` (String) The title to display on the response card. - Optional: - `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--continue_response--message_groups_list--variations--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.continue_response.message_groups_list.variations.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. @@ -1815,7 +1669,7 @@ Required: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.continue_response.message_groups_list.variations.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. @@ -1823,7 +1677,7 @@ Required: ### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.continue_response.message_groups_list.variations.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. @@ -1831,139 +1685,129 @@ Required: - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response` - -Required: - -- `message_groups_list` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list)) + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response` Optional: - `allow_interrupt` (Boolean) Indicates whether the user can interrupt a speech prompt from the bot. +- `frequency_in_seconds` (Number) How often a message should be sent to the user in seconds. +- `message_groups_list` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list)) +- `timeout_in_seconds` (Number) If Amazon Lex waits longer than this length of time in seconds for a response, it will stop sending messages. - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list` + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list` -Required: +Optional: -- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--message)) - -Optional: - -- `variations` (Attributes List) Message variations to send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--variations)) +- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--message)) +- `variations` (Attributes List) Message variations to send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--variations)) - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.message` + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.message` Optional: -- `custom_payload` (Attributes) A message in a custom format defined by the client application. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--message--custom_payload)) -- `image_response_card` (Attributes) A message that defines a response card that the client application can show to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--message--image_response_card)) -- `plain_text_message` (Attributes) A message in plain text format. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--message--plain_text_message)) -- `ssml_message` (Attributes) A message in Speech Synthesis Markup Language (SSML). (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--message--ssml_message)) +- `custom_payload` (Attributes) A message in a custom format defined by the client application. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--message--custom_payload)) +- `image_response_card` (Attributes) A message that defines a response card that the client application can show to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--message--image_response_card)) +- `plain_text_message` (Attributes) A message in plain text format. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--message--plain_text_message)) +- `ssml_message` (Attributes) A message in Speech Synthesis Markup Language (SSML). (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--message--ssml_message)) - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.message.custom_payload` + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.message.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.message.image_response_card` - -Required: - -- `title` (String) The title to display on the response card. + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.message.image_response_card` Optional: -- `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--message--image_response_card--buttons)) +- `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--message--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.message.image_response_card.buttons` + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.message.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.message.plain_text_message` + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.message.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.message.ssml_message` + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.message.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.variations` + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.variations` Optional: -- `custom_payload` (Attributes) A message in a custom format defined by the client application. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--variations--custom_payload)) -- `image_response_card` (Attributes) A message that defines a response card that the client application can show to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--variations--image_response_card)) -- `plain_text_message` (Attributes) A message in plain text format. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--variations--plain_text_message)) -- `ssml_message` (Attributes) A message in Speech Synthesis Markup Language (SSML). (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--variations--ssml_message)) +- `custom_payload` (Attributes) A message in a custom format defined by the client application. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--variations--custom_payload)) +- `image_response_card` (Attributes) A message that defines a response card that the client application can show to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--variations--image_response_card)) +- `plain_text_message` (Attributes) A message in plain text format. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--variations--plain_text_message)) +- `ssml_message` (Attributes) A message in Speech Synthesis Markup Language (SSML). (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--variations--ssml_message)) - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.variations.custom_payload` + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.variations.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.variations.image_response_card` - -Required: - -- `title` (String) The title to display on the response card. + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.variations.image_response_card` Optional: -- `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--variations--image_response_card--buttons)) +- `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--variations--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.variations.image_response_card.buttons` + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.variations.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.variations.plain_text_message` + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.variations.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.variations.ssml_message` + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.variations.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. @@ -1971,141 +1815,127 @@ Required: - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response` - -Required: - -- `frequency_in_seconds` (Number) How often a message should be sent to the user in seconds. -- `message_groups_list` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list)) -- `timeout_in_seconds` (Number) If Amazon Lex waits longer than this length of time in seconds for a response, it will stop sending messages. + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response` Optional: - `allow_interrupt` (Boolean) Indicates whether the user can interrupt a speech prompt from the bot. +- `message_groups_list` (Attributes List) One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list)) - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list` - -Required: - -- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--message)) + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list` Optional: -- `variations` (Attributes List) Message variations to send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--variations)) +- `message` (Attributes) The primary message that Amazon Lex should send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--message)) +- `variations` (Attributes List) Message variations to send to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--variations)) - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.message` + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.message` Optional: -- `custom_payload` (Attributes) A message in a custom format defined by the client application. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--message--custom_payload)) -- `image_response_card` (Attributes) A message that defines a response card that the client application can show to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--message--image_response_card)) -- `plain_text_message` (Attributes) A message in plain text format. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--message--plain_text_message)) -- `ssml_message` (Attributes) A message in Speech Synthesis Markup Language (SSML). (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--message--ssml_message)) +- `custom_payload` (Attributes) A message in a custom format defined by the client application. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--message--custom_payload)) +- `image_response_card` (Attributes) A message that defines a response card that the client application can show to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--message--image_response_card)) +- `plain_text_message` (Attributes) A message in plain text format. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--message--plain_text_message)) +- `ssml_message` (Attributes) A message in Speech Synthesis Markup Language (SSML). (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--message--ssml_message)) - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.message.custom_payload` + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.message.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.message.image_response_card` - -Required: - -- `title` (String) The title to display on the response card. + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.message.image_response_card` Optional: -- `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--message--image_response_card--buttons)) +- `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--message--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.message.image_response_card.buttons` + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.message.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.message.plain_text_message` + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.message.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.message.ssml_message` + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.message.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.variations` + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.variations` Optional: -- `custom_payload` (Attributes) A message in a custom format defined by the client application. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--variations--custom_payload)) -- `image_response_card` (Attributes) A message that defines a response card that the client application can show to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--variations--image_response_card)) -- `plain_text_message` (Attributes) A message in plain text format. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--variations--plain_text_message)) -- `ssml_message` (Attributes) A message in Speech Synthesis Markup Language (SSML). (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--variations--ssml_message)) +- `custom_payload` (Attributes) A message in a custom format defined by the client application. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--variations--custom_payload)) +- `image_response_card` (Attributes) A message that defines a response card that the client application can show to the user. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--variations--image_response_card)) +- `plain_text_message` (Attributes) A message in plain text format. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--variations--plain_text_message)) +- `ssml_message` (Attributes) A message in Speech Synthesis Markup Language (SSML). (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--variations--ssml_message)) - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.variations.custom_payload` + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.variations.custom_payload` -Required: +Optional: - `value` (String) The string that is sent to your application. - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.variations.image_response_card` - -Required: - -- `title` (String) The title to display on the response card. + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.variations.image_response_card` Optional: -- `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--still_waiting_response--message_groups_list--variations--image_response_card--buttons)) +- `buttons` (Attributes List) A list of buttons that should be displayed on the response card. (see [below for nested schema](#nestedatt--bot_locales--intents--slots--value_elicitation_setting--wait_and_continue_specification--waiting_response--message_groups_list--variations--image_response_card--buttons)) - `image_url` (String) The URL of an image to display on the response card. - `subtitle` (String) The subtitle to display on the response card. +- `title` (String) The title to display on the response card. - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.variations.image_response_card.buttons` + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.variations.image_response_card.buttons` -Required: +Optional: - `text` (String) The text that appears on the button. - `value` (String) The value returned to Amazon Lex when the user chooses this button. - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.variations.plain_text_message` + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.variations.plain_text_message` -Required: +Optional: - `value` (String) The message to send to the user. - -### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.message_groups_list.variations.ssml_message` + +### Nested Schema for `bot_locales.intents.slots.value_elicitation_setting.wait_and_continue_specification.waiting_response.message_groups_list.variations.ssml_message` -Required: +Optional: - `value` (String) The SSML text that defines the prompt. @@ -2115,35 +1945,16 @@ Required: - -### Nested Schema for `bot_locales.intents.slots.multiple_values_setting` - -Optional: - -- `allow_multiple_values` (Boolean) - - - -### Nested Schema for `bot_locales.intents.slots.obfuscation_setting` - -Required: - -- `obfuscation_setting_type` (String) Value that determines whether Amazon Lex obscures slot values in conversation logs. The default is to obscure the values. - - ### Nested Schema for `bot_locales.slot_types` -Required: - -- `name` (String) Unique name for a resource. - Optional: - `description` (String) A description of the resource - `external_source_setting` (Attributes) Provides information about the external source of the slot type's definition. (see [below for nested schema](#nestedatt--bot_locales--slot_types--external_source_setting)) +- `name` (String) Unique name for a resource. - `parent_slot_type_signature` (String) The built-in slot type used as a parent of this slot type. - `slot_type_values` (Attributes List) A List of slot type values (see [below for nested schema](#nestedatt--bot_locales--slot_types--slot_type_values)) - `value_selection_setting` (Attributes) Contains settings used by Amazon Lex to select a slot value. (see [below for nested schema](#nestedatt--bot_locales--slot_types--value_selection_setting)) @@ -2165,14 +1976,11 @@ Optional: ### Nested Schema for `bot_locales.slot_types.external_source_setting.grammar_slot_type_setting.source` -Required: - -- `s3_bucket_name` (String) The name of the S3 bucket that contains the grammar source. -- `s3_object_key` (String) The path to the grammar in the S3 bucket. - Optional: - `kms_key_arn` (String) The Amazon KMS key required to decrypt the contents of the grammar, if any. +- `s3_bucket_name` (String) The name of the S3 bucket that contains the grammar source. +- `s3_object_key` (String) The path to the grammar in the S3 bucket. @@ -2180,18 +1988,15 @@ Optional: ### Nested Schema for `bot_locales.slot_types.slot_type_values` -Required: - -- `sample_value` (Attributes) Defines one of the values for a slot type. (see [below for nested schema](#nestedatt--bot_locales--slot_types--slot_type_values--sample_value)) - Optional: +- `sample_value` (Attributes) Defines one of the values for a slot type. (see [below for nested schema](#nestedatt--bot_locales--slot_types--slot_type_values--sample_value)) - `synonyms` (Attributes List) Additional values related to the slot type entry. (see [below for nested schema](#nestedatt--bot_locales--slot_types--slot_type_values--synonyms)) ### Nested Schema for `bot_locales.slot_types.slot_type_values.sample_value` -Required: +Optional: - `value` (String) The value that can be used for a slot type. @@ -2199,7 +2004,7 @@ Required: ### Nested Schema for `bot_locales.slot_types.slot_type_values.synonyms` -Required: +Optional: - `value` (String) The value that can be used for a slot type. @@ -2208,14 +2013,11 @@ Required: ### Nested Schema for `bot_locales.slot_types.value_selection_setting` -Required: - -- `resolution_strategy` (String) - Optional: - `advanced_recognition_setting` (Attributes) Provides settings that enable advanced recognition settings for slot values. (see [below for nested schema](#nestedatt--bot_locales--slot_types--value_selection_setting--advanced_recognition_setting)) - `regex_filter` (Attributes) A regular expression used to validate the value of a slot. (see [below for nested schema](#nestedatt--bot_locales--slot_types--value_selection_setting--regex_filter)) +- `resolution_strategy` (String) ### Nested Schema for `bot_locales.slot_types.value_selection_setting.advanced_recognition_setting` @@ -2228,7 +2030,7 @@ Optional: ### Nested Schema for `bot_locales.slot_types.value_selection_setting.regex_filter` -Required: +Optional: - `pattern` (String) Regex pattern @@ -2238,20 +2040,17 @@ Required: ### Nested Schema for `bot_locales.voice_settings` -Required: - -- `voice_id` (String) The Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user. - Optional: - `engine` (String) Indicates the type of Amazon Polly voice that Amazon Lex should use for voice interaction with the user. For more information, see the engine parameter of the SynthesizeSpeech operation in the Amazon Polly developer guide. +- `voice_id` (String) The Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user. ### Nested Schema for `bot_tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. @@ -2270,7 +2069,7 @@ Optional: ### Nested Schema for `test_bot_alias_settings.bot_alias_locale_settings` -Required: +Optional: - `bot_alias_locale_setting` (Attributes) You can use this parameter to specify a specific Lambda function to run different functions in different locales. (see [below for nested schema](#nestedatt--test_bot_alias_settings--bot_alias_locale_settings--bot_alias_locale_setting)) - `locale_id` (String) A string used to identify the locale @@ -2278,25 +2077,22 @@ Required: ### Nested Schema for `test_bot_alias_settings.bot_alias_locale_settings.bot_alias_locale_setting` -Required: - -- `enabled` (Boolean) Whether the Lambda code hook is enabled - Optional: - `code_hook_specification` (Attributes) Contains information about code hooks that Amazon Lex calls during a conversation. (see [below for nested schema](#nestedatt--test_bot_alias_settings--bot_alias_locale_settings--bot_alias_locale_setting--code_hook_specification)) +- `enabled` (Boolean) Whether the Lambda code hook is enabled ### Nested Schema for `test_bot_alias_settings.bot_alias_locale_settings.bot_alias_locale_setting.code_hook_specification` -Required: +Optional: - `lambda_code_hook` (Attributes) Contains information about code hooks that Amazon Lex calls during a conversation. (see [below for nested schema](#nestedatt--test_bot_alias_settings--bot_alias_locale_settings--bot_alias_locale_setting--code_hook_specification--lambda_code_hook)) ### Nested Schema for `test_bot_alias_settings.bot_alias_locale_settings.bot_alias_locale_setting.code_hook_specification.lambda_code_hook` -Required: +Optional: - `code_hook_interface_version` (String) The version of the request-response that you want Amazon Lex to use to invoke your Lambda function. - `lambda_arn` (String) The Amazon Resource Name (ARN) of the Lambda function. @@ -2316,7 +2112,7 @@ Optional: ### Nested Schema for `test_bot_alias_settings.conversation_log_settings.audio_log_settings` -Required: +Optional: - `destination` (Attributes) The location of audio log files collected when conversation logging is enabled for a bot. (see [below for nested schema](#nestedatt--test_bot_alias_settings--conversation_log_settings--audio_log_settings--destination)) - `enabled` (Boolean) @@ -2324,21 +2120,18 @@ Required: ### Nested Schema for `test_bot_alias_settings.conversation_log_settings.audio_log_settings.destination` -Required: +Optional: - `s3_bucket` (Attributes) Specifies an Amazon S3 bucket for logging audio conversations (see [below for nested schema](#nestedatt--test_bot_alias_settings--conversation_log_settings--audio_log_settings--destination--s3_bucket)) ### Nested Schema for `test_bot_alias_settings.conversation_log_settings.audio_log_settings.destination.s3_bucket` -Required: - -- `log_prefix` (String) The Amazon S3 key of the deployment package. -- `s3_bucket_arn` (String) The Amazon Resource Name (ARN) of an Amazon S3 bucket where audio log files are stored. - Optional: - `kms_key_arn` (String) The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key for encrypting audio log files stored in an S3 bucket. +- `log_prefix` (String) The Amazon S3 key of the deployment package. +- `s3_bucket_arn` (String) The Amazon Resource Name (ARN) of an Amazon S3 bucket where audio log files are stored. @@ -2346,7 +2139,7 @@ Optional: ### Nested Schema for `test_bot_alias_settings.conversation_log_settings.text_log_settings` -Required: +Optional: - `destination` (Attributes) Defines the Amazon CloudWatch Logs destination log group for conversation text logs. (see [below for nested schema](#nestedatt--test_bot_alias_settings--conversation_log_settings--text_log_settings--destination)) - `enabled` (Boolean) @@ -2354,14 +2147,14 @@ Required: ### Nested Schema for `test_bot_alias_settings.conversation_log_settings.text_log_settings.destination` -Required: +Optional: - `cloudwatch` (Attributes) (see [below for nested schema](#nestedatt--test_bot_alias_settings--conversation_log_settings--text_log_settings--destination--cloudwatch)) ### Nested Schema for `test_bot_alias_settings.conversation_log_settings.text_log_settings.destination.cloudwatch` -Required: +Optional: - `cloudwatch_log_group_arn` (String) A string used to identify the groupArn for the Cloudwatch Log Group - `log_prefix` (String) A string containing the value for the Log Prefix @@ -2373,7 +2166,7 @@ Required: ### Nested Schema for `test_bot_alias_settings.sentiment_analysis_settings` -Required: +Optional: - `detect_sentiment` (Boolean) Enable to call Amazon Comprehend for Sentiment natively within Lex @@ -2382,7 +2175,7 @@ Required: ### Nested Schema for `test_bot_alias_tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/lex_bot_alias.md b/docs/resources/lex_bot_alias.md index 3d14d39ab1..bfd5e8d75b 100644 --- a/docs/resources/lex_bot_alias.md +++ b/docs/resources/lex_bot_alias.md @@ -39,7 +39,7 @@ A Bot Alias enables you to change the version of a bot without updating applicat ### Nested Schema for `bot_alias_locale_settings` -Required: +Optional: - `bot_alias_locale_setting` (Attributes) You can use this parameter to specify a specific Lambda function to run different functions in different locales. (see [below for nested schema](#nestedatt--bot_alias_locale_settings--bot_alias_locale_setting)) - `locale_id` (String) A string used to identify the locale @@ -47,25 +47,22 @@ Required: ### Nested Schema for `bot_alias_locale_settings.bot_alias_locale_setting` -Required: - -- `enabled` (Boolean) Whether the Lambda code hook is enabled - Optional: - `code_hook_specification` (Attributes) Contains information about code hooks that Amazon Lex calls during a conversation. (see [below for nested schema](#nestedatt--bot_alias_locale_settings--bot_alias_locale_setting--code_hook_specification)) +- `enabled` (Boolean) Whether the Lambda code hook is enabled ### Nested Schema for `bot_alias_locale_settings.bot_alias_locale_setting.code_hook_specification` -Required: +Optional: - `lambda_code_hook` (Attributes) Contains information about code hooks that Amazon Lex calls during a conversation. (see [below for nested schema](#nestedatt--bot_alias_locale_settings--bot_alias_locale_setting--code_hook_specification--lambda_code_hook)) ### Nested Schema for `bot_alias_locale_settings.bot_alias_locale_setting.code_hook_specification.lambda_code_hook` -Required: +Optional: - `code_hook_interface_version` (String) The version of the request-response that you want Amazon Lex to use to invoke your Lambda function. - `lambda_arn` (String) The Amazon Resource Name (ARN) of the Lambda function. @@ -77,7 +74,7 @@ Required: ### Nested Schema for `bot_alias_tags` -Required: +Optional: - `key` (String) A string used to identify this tag - `value` (String) A string containing the value for the tag @@ -94,7 +91,7 @@ Optional: ### Nested Schema for `conversation_log_settings.audio_log_settings` -Required: +Optional: - `destination` (Attributes) The location of audio log files collected when conversation logging is enabled for a bot. (see [below for nested schema](#nestedatt--conversation_log_settings--audio_log_settings--destination)) - `enabled` (Boolean) @@ -102,21 +99,18 @@ Required: ### Nested Schema for `conversation_log_settings.audio_log_settings.destination` -Required: +Optional: - `s3_bucket` (Attributes) Specifies an Amazon S3 bucket for logging audio conversations (see [below for nested schema](#nestedatt--conversation_log_settings--audio_log_settings--destination--s3_bucket)) ### Nested Schema for `conversation_log_settings.audio_log_settings.destination.s3_bucket` -Required: - -- `log_prefix` (String) The Amazon S3 key of the deployment package. -- `s3_bucket_arn` (String) The Amazon Resource Name (ARN) of an Amazon S3 bucket where audio log files are stored. - Optional: - `kms_key_arn` (String) The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key for encrypting audio log files stored in an S3 bucket. +- `log_prefix` (String) The Amazon S3 key of the deployment package. +- `s3_bucket_arn` (String) The Amazon Resource Name (ARN) of an Amazon S3 bucket where audio log files are stored. @@ -124,7 +118,7 @@ Optional: ### Nested Schema for `conversation_log_settings.text_log_settings` -Required: +Optional: - `destination` (Attributes) Defines the Amazon CloudWatch Logs destination log group for conversation text logs. (see [below for nested schema](#nestedatt--conversation_log_settings--text_log_settings--destination)) - `enabled` (Boolean) @@ -132,14 +126,14 @@ Required: ### Nested Schema for `conversation_log_settings.text_log_settings.destination` -Required: +Optional: - `cloudwatch` (Attributes) (see [below for nested schema](#nestedatt--conversation_log_settings--text_log_settings--destination--cloudwatch)) ### Nested Schema for `conversation_log_settings.text_log_settings.destination.cloudwatch` -Required: +Optional: - `cloudwatch_log_group_arn` (String) A string used to identify the groupArn for the Cloudwatch Log Group - `log_prefix` (String) A string containing the value for the Log Prefix @@ -151,7 +145,7 @@ Required: ### Nested Schema for `sentiment_analysis_settings` -Required: +Optional: - `detect_sentiment` (Boolean) Enable to call Amazon Comprehend for Sentiment natively within Lex diff --git a/docs/resources/licensemanager_license.md b/docs/resources/licensemanager_license.md index 309957bc0a..d39c9079c5 100644 --- a/docs/resources/licensemanager_license.md +++ b/docs/resources/licensemanager_license.md @@ -50,7 +50,7 @@ Optional: ### Nested Schema for `consumption_configuration.borrow_configuration` -Required: +Optional: - `allow_early_check_in` (Boolean) - `max_time_to_live_in_minutes` (Number) @@ -59,7 +59,7 @@ Required: ### Nested Schema for `consumption_configuration.provisional_configuration` -Required: +Optional: - `max_time_to_live_in_minutes` (Number) @@ -105,7 +105,7 @@ Required: ### Nested Schema for `license_metadata` -Required: +Optional: - `name` (String) - `value` (String) diff --git a/docs/resources/lightsail_bucket.md b/docs/resources/lightsail_bucket.md index 8fed434c46..ffb48be3f8 100644 --- a/docs/resources/lightsail_bucket.md +++ b/docs/resources/lightsail_bucket.md @@ -81,12 +81,9 @@ Optional: ### Nested Schema for `tags` -Required: - -- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - Optional: +- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ## Import diff --git a/docs/resources/lightsail_certificate.md b/docs/resources/lightsail_certificate.md index 1197e673d7..2f9fada246 100644 --- a/docs/resources/lightsail_certificate.md +++ b/docs/resources/lightsail_certificate.md @@ -45,12 +45,9 @@ resource "awscc_lightsail_certificate" "example" { ### Nested Schema for `tags` -Required: - -- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - Optional: +- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ## Import diff --git a/docs/resources/lightsail_container.md b/docs/resources/lightsail_container.md index 55bd135a76..4add7c0c05 100644 --- a/docs/resources/lightsail_container.md +++ b/docs/resources/lightsail_container.md @@ -155,12 +155,9 @@ Optional: ### Nested Schema for `tags` -Required: - -- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - Optional: +- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ## Import diff --git a/docs/resources/lightsail_database.md b/docs/resources/lightsail_database.md index 99f29774eb..e025e4a58d 100644 --- a/docs/resources/lightsail_database.md +++ b/docs/resources/lightsail_database.md @@ -92,12 +92,9 @@ Optional: ### Nested Schema for `tags` -Required: - -- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - Optional: +- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ## Import diff --git a/docs/resources/lightsail_disk.md b/docs/resources/lightsail_disk.md index 78b8c82c0c..66fd41bcb6 100644 --- a/docs/resources/lightsail_disk.md +++ b/docs/resources/lightsail_disk.md @@ -72,12 +72,9 @@ resource "awscc_lightsail_disk" "example" { ### Nested Schema for `add_ons` -Required: - -- `add_on_type` (String) The add-on type - Optional: +- `add_on_type` (String) The add-on type - `auto_snapshot_add_on_request` (Attributes) An object that represents additional parameters when enabling or modifying the automatic snapshot add-on (see [below for nested schema](#nestedatt--add_ons--auto_snapshot_add_on_request)) - `status` (String) Status of the Addon @@ -102,12 +99,9 @@ Read-Only: ### Nested Schema for `tags` -Required: - -- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - Optional: +- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ## Import diff --git a/docs/resources/lightsail_distribution.md b/docs/resources/lightsail_distribution.md index 2db79388b6..4967951940 100644 --- a/docs/resources/lightsail_distribution.md +++ b/docs/resources/lightsail_distribution.md @@ -222,12 +222,9 @@ Optional: ### Nested Schema for `tags` -Required: - -- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - Optional: +- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ## Import diff --git a/docs/resources/lightsail_instance.md b/docs/resources/lightsail_instance.md index 6dc9c7a899..010fb5b910 100644 --- a/docs/resources/lightsail_instance.md +++ b/docs/resources/lightsail_instance.md @@ -151,12 +151,9 @@ resource "awscc_lightsail_instance" "example" { ### Nested Schema for `add_ons` -Required: - -- `add_on_type` (String) The add-on type - Optional: +- `add_on_type` (String) The add-on type - `auto_snapshot_add_on_request` (Attributes) An object that represents additional parameters when enabling or modifying the automatic snapshot add-on (see [below for nested schema](#nestedatt--add_ons--auto_snapshot_add_on_request)) - `status` (String) Status of the Addon @@ -184,17 +181,14 @@ Read-Only: ### Nested Schema for `hardware.disks` -Required: - -- `disk_name` (String) The names to use for your new Lightsail disk. -- `path` (String) Path of the disk attached to the instance. - Optional: - `attached_to` (String) Instance attached to the disk. - `attachment_state` (String) Attachment state of the disk. +- `disk_name` (String) The names to use for your new Lightsail disk. - `iops` (Number) IOPS of disk. - `is_system_disk` (Boolean) Is the Attached disk is the system disk of the Instance. +- `path` (String) Path of the disk attached to the instance. - `size_in_gb` (String) Size of the disk attached to the Instance. @@ -211,13 +205,18 @@ Read-Only: ### Nested Schema for `networking` -Required: +Optional: +- `monthly_transfer` (Attributes) Monthly Transfer of the Instance. (see [below for nested schema](#nestedatt--networking--monthly_transfer)) - `ports` (Attributes Set) Ports to the Instance. (see [below for nested schema](#nestedatt--networking--ports)) -Optional: + +### Nested Schema for `networking.monthly_transfer` + +Read-Only: + +- `gb_per_month_allocated` (String) GbPerMonthAllocated of the Instance. -- `monthly_transfer` (Attributes) Monthly Transfer of the Instance. (see [below for nested schema](#nestedatt--networking--monthly_transfer)) ### Nested Schema for `networking.ports` @@ -236,14 +235,6 @@ Optional: - `to_port` (Number) To Port of the Instance. - -### Nested Schema for `networking.monthly_transfer` - -Read-Only: - -- `gb_per_month_allocated` (String) GbPerMonthAllocated of the Instance. - - ### Nested Schema for `state` @@ -257,12 +248,9 @@ Read-Only: ### Nested Schema for `tags` -Required: - -- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - Optional: +- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ## Import diff --git a/docs/resources/lightsail_load_balancer.md b/docs/resources/lightsail_load_balancer.md index 98c0fe1986..343db984ee 100644 --- a/docs/resources/lightsail_load_balancer.md +++ b/docs/resources/lightsail_load_balancer.md @@ -86,12 +86,9 @@ resource "awscc_lightsail_load_balancer" "example" { ### Nested Schema for `tags` -Required: - -- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - Optional: +- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ## Import diff --git a/docs/resources/location_api_key.md b/docs/resources/location_api_key.md index 7737da3641..ec70f448b5 100644 --- a/docs/resources/location_api_key.md +++ b/docs/resources/location_api_key.md @@ -73,7 +73,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/location_geofence_collection.md b/docs/resources/location_geofence_collection.md index 02d2278e74..0a114145c7 100644 --- a/docs/resources/location_geofence_collection.md +++ b/docs/resources/location_geofence_collection.md @@ -49,7 +49,7 @@ resource "awscc_location_geofence_collection" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/location_map.md b/docs/resources/location_map.md index 4397f842c9..18a63095db 100644 --- a/docs/resources/location_map.md +++ b/docs/resources/location_map.md @@ -61,7 +61,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/location_place_index.md b/docs/resources/location_place_index.md index 952ca92f71..2047420b93 100644 --- a/docs/resources/location_place_index.md +++ b/docs/resources/location_place_index.md @@ -46,7 +46,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/location_route_calculator.md b/docs/resources/location_route_calculator.md index ce7f3fa22c..5186f3e376 100644 --- a/docs/resources/location_route_calculator.md +++ b/docs/resources/location_route_calculator.md @@ -37,7 +37,7 @@ Definition of AWS::Location::RouteCalculator Resource Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/location_tracker.md b/docs/resources/location_tracker.md index 807e7cadcb..2ca6fb851e 100644 --- a/docs/resources/location_tracker.md +++ b/docs/resources/location_tracker.md @@ -41,7 +41,7 @@ Definition of AWS::Location::Tracker Resource Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/logs_delivery.md b/docs/resources/logs_delivery.md index a6038c2829..73fe54fd18 100644 --- a/docs/resources/logs_delivery.md +++ b/docs/resources/logs_delivery.md @@ -40,7 +40,7 @@ For more information, see [CreateDelivery](https://docs.aws.amazon.com/AmazonClo ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode diff --git a/docs/resources/logs_delivery_destination.md b/docs/resources/logs_delivery_destination.md index 9971e67d0a..5b70fbe4a4 100644 --- a/docs/resources/logs_delivery_destination.md +++ b/docs/resources/logs_delivery_destination.md @@ -41,7 +41,7 @@ Length Constraints: Maximum length of 51200 ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/logs_delivery_source.md b/docs/resources/logs_delivery_source.md index 2de75dceeb..0cc5f0fad7 100644 --- a/docs/resources/logs_delivery_source.md +++ b/docs/resources/logs_delivery_source.md @@ -38,7 +38,7 @@ Only some AWS services support being configured as a delivery source. These serv ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode diff --git a/docs/resources/logs_log_group.md b/docs/resources/logs_log_group.md index 9ce2546eaa..8dab241188 100644 --- a/docs/resources/logs_log_group.md +++ b/docs/resources/logs_log_group.md @@ -164,7 +164,7 @@ resource "awscc_logs_log_group" "finding" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/logs_metric_filter.md b/docs/resources/logs_metric_filter.md index a84df5f3e5..c0f4714325 100644 --- a/docs/resources/logs_metric_filter.md +++ b/docs/resources/logs_metric_filter.md @@ -85,7 +85,7 @@ Optional: ### Nested Schema for `metric_transformations.dimensions` -Required: +Optional: - `key` (String) The name for the CW metric dimension that the metric filter creates. Dimension names must contain only ASCII characters, must include at least one non-whitespace character, and cannot start with a colon (:). diff --git a/docs/resources/lookoutequipment_inference_scheduler.md b/docs/resources/lookoutequipment_inference_scheduler.md index d21166b71d..c7208427ae 100644 --- a/docs/resources/lookoutequipment_inference_scheduler.md +++ b/docs/resources/lookoutequipment_inference_scheduler.md @@ -96,7 +96,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key for the specified tag. - `value` (String) The value for the specified tag. diff --git a/docs/resources/lookoutmetrics_alert.md b/docs/resources/lookoutmetrics_alert.md index 10f0be1cce..f6ecd4f362 100644 --- a/docs/resources/lookoutmetrics_alert.md +++ b/docs/resources/lookoutmetrics_alert.md @@ -42,7 +42,7 @@ Optional: ### Nested Schema for `action.lambda_configuration` -Required: +Optional: - `lambda_arn` (String) ARN of a Lambda to send alert notifications to. - `role_arn` (String) ARN of an IAM role that LookoutMetrics should assume to access the Lambda function. @@ -51,7 +51,7 @@ Required: ### Nested Schema for `action.sns_configuration` -Required: +Optional: - `role_arn` (String) ARN of an IAM role that LookoutMetrics should assume to access the SNS topic. - `sns_topic_arn` (String) ARN of an SNS topic to send alert notifications to. diff --git a/docs/resources/lookoutmetrics_anomaly_detector.md b/docs/resources/lookoutmetrics_anomaly_detector.md index c621ef9f5c..7962ba9768 100644 --- a/docs/resources/lookoutmetrics_anomaly_detector.md +++ b/docs/resources/lookoutmetrics_anomaly_detector.md @@ -84,7 +84,7 @@ Optional: ### Nested Schema for `metric_set_list.metric_source.app_flow_config` -Required: +Optional: - `flow_name` (String) - `role_arn` (String) @@ -93,7 +93,7 @@ Required: ### Nested Schema for `metric_set_list.metric_source.cloudwatch_config` -Required: +Optional: - `role_arn` (String) @@ -101,7 +101,7 @@ Required: ### Nested Schema for `metric_set_list.metric_source.rds_source_config` -Required: +Optional: - `database_host` (String) - `database_name` (String) @@ -115,7 +115,7 @@ Required: ### Nested Schema for `metric_set_list.metric_source.rds_source_config.vpc_configuration` -Required: +Optional: - `security_group_id_list` (List of String) - `subnet_id_list` (List of String) @@ -125,7 +125,7 @@ Required: ### Nested Schema for `metric_set_list.metric_source.redshift_source_config` -Required: +Optional: - `cluster_identifier` (String) - `database_host` (String) @@ -139,7 +139,7 @@ Required: ### Nested Schema for `metric_set_list.metric_source.redshift_source_config.vpc_configuration` -Required: +Optional: - `security_group_id_list` (List of String) - `subnet_id_list` (List of String) @@ -149,14 +149,11 @@ Required: ### Nested Schema for `metric_set_list.metric_source.s3_source_config` -Required: - -- `file_format_descriptor` (Attributes) (see [below for nested schema](#nestedatt--metric_set_list--metric_source--s3_source_config--file_format_descriptor)) -- `role_arn` (String) - Optional: +- `file_format_descriptor` (Attributes) (see [below for nested schema](#nestedatt--metric_set_list--metric_source--s3_source_config--file_format_descriptor)) - `historical_data_path_list` (List of String) +- `role_arn` (String) - `templated_path_list` (List of String) diff --git a/docs/resources/m2_environment.md b/docs/resources/m2_environment.md index 518c676f38..75edc894f0 100644 --- a/docs/resources/m2_environment.md +++ b/docs/resources/m2_environment.md @@ -43,7 +43,7 @@ Represents a runtime environment that can run migrated mainframe applications. ### Nested Schema for `high_availability_config` -Required: +Optional: - `desired_capacity` (Number) @@ -59,7 +59,7 @@ Optional: ### Nested Schema for `storage_configurations.efs` -Required: +Optional: - `file_system_id` (String) The file system identifier. - `mount_point` (String) The mount point for the file system. @@ -68,7 +68,7 @@ Required: ### Nested Schema for `storage_configurations.fsx` -Required: +Optional: - `file_system_id` (String) The file system identifier. - `mount_point` (String) The mount point for the file system. diff --git a/docs/resources/macie_allow_list.md b/docs/resources/macie_allow_list.md index 697ad46668..5499caa9e4 100644 --- a/docs/resources/macie_allow_list.md +++ b/docs/resources/macie_allow_list.md @@ -43,7 +43,7 @@ Optional: ### Nested Schema for `criteria.s3_words_list` -Required: +Optional: - `bucket_name` (String) - `object_key` (String) @@ -53,7 +53,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag's key. - `value` (String) The tag's value. diff --git a/docs/resources/macie_custom_data_identifier.md b/docs/resources/macie_custom_data_identifier.md index 5b7d42ae46..d48404274d 100644 --- a/docs/resources/macie_custom_data_identifier.md +++ b/docs/resources/macie_custom_data_identifier.md @@ -37,7 +37,7 @@ Macie CustomDataIdentifier resource schema ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag's key. - `value` (String) The tag's value. diff --git a/docs/resources/macie_findings_filter.md b/docs/resources/macie_findings_filter.md index 2ef814939e..fee4a5b85b 100644 --- a/docs/resources/macie_findings_filter.md +++ b/docs/resources/macie_findings_filter.md @@ -57,7 +57,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The tag's key. - `value` (String) The tag's value. diff --git a/docs/resources/managedblockchain_accessor.md b/docs/resources/managedblockchain_accessor.md index a05682fe20..3c6462be9f 100644 --- a/docs/resources/managedblockchain_accessor.md +++ b/docs/resources/managedblockchain_accessor.md @@ -36,7 +36,7 @@ Definition of AWS::ManagedBlockchain::com.amazonaws.taiga.webservice.api#Accesso ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/mediaconnect_bridge.md b/docs/resources/mediaconnect_bridge.md index cc5aca589b..29ae8ec90f 100644 --- a/docs/resources/mediaconnect_bridge.md +++ b/docs/resources/mediaconnect_bridge.md @@ -45,14 +45,11 @@ Optional: ### Nested Schema for `sources.flow_source` -Required: - -- `flow_arn` (String) The ARN of the cloud flow used as a source of this bridge. -- `name` (String) The name of the flow source. - Optional: +- `flow_arn` (String) The ARN of the cloud flow used as a source of this bridge. - `flow_vpc_interface_attachment` (Attributes) The name of the VPC interface attachment to use for this source. (see [below for nested schema](#nestedatt--sources--flow_source--flow_vpc_interface_attachment)) +- `name` (String) The name of the flow source. ### Nested Schema for `sources.flow_source.flow_vpc_interface_attachment` @@ -66,7 +63,7 @@ Optional: ### Nested Schema for `sources.network_source` -Required: +Optional: - `multicast_ip` (String) The network source multicast IP. - `name` (String) The name of the network source. @@ -79,7 +76,7 @@ Required: ### Nested Schema for `egress_gateway_bridge` -Required: +Optional: - `max_bitrate` (Number) The maximum expected bitrate of the egress bridge. @@ -87,7 +84,7 @@ Required: ### Nested Schema for `ingress_gateway_bridge` -Required: +Optional: - `max_bitrate` (Number) The maximum expected bitrate of the ingress bridge. - `max_outputs` (Number) The maximum number of outputs on the ingress bridge. @@ -103,7 +100,7 @@ Optional: ### Nested Schema for `outputs.network_output` -Required: +Optional: - `ip_address` (String) The network output IP Address. - `name` (String) The network output name. @@ -117,12 +114,9 @@ Required: ### Nested Schema for `source_failover_config` -Required: - -- `failover_mode` (String) The type of failover you choose for this flow. FAILOVER allows switching between different streams. - Optional: +- `failover_mode` (String) The type of failover you choose for this flow. FAILOVER allows switching between different streams. - `source_priority` (Attributes) The priority you want to assign to a source. You can have a primary stream and a backup stream or two equally prioritized streams. (see [below for nested schema](#nestedatt--source_failover_config--source_priority)) - `state` (String) diff --git a/docs/resources/mediaconnect_bridge_source.md b/docs/resources/mediaconnect_bridge_source.md index 78964a72b0..855bb3479f 100644 --- a/docs/resources/mediaconnect_bridge_source.md +++ b/docs/resources/mediaconnect_bridge_source.md @@ -32,12 +32,9 @@ Resource schema for AWS::MediaConnect::BridgeSource ### Nested Schema for `flow_source` -Required: - -- `flow_arn` (String) The ARN of the cloud flow used as a source of this bridge. - Optional: +- `flow_arn` (String) The ARN of the cloud flow used as a source of this bridge. - `flow_vpc_interface_attachment` (Attributes) The name of the VPC interface attachment to use for this source. (see [below for nested schema](#nestedatt--flow_source--flow_vpc_interface_attachment)) @@ -52,7 +49,7 @@ Optional: ### Nested Schema for `network_source` -Required: +Optional: - `multicast_ip` (String) The network source multicast IP. - `network_name` (String) The network source's gateway network name. diff --git a/docs/resources/mediaconnect_flow.md b/docs/resources/mediaconnect_flow.md index d3f96af359..6e2449d07e 100644 --- a/docs/resources/mediaconnect_flow.md +++ b/docs/resources/mediaconnect_flow.md @@ -70,10 +70,6 @@ Read-Only: ### Nested Schema for `source.decryption` -Required: - -- `role_arn` (String) The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). - Optional: - `algorithm` (String) The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). @@ -82,6 +78,7 @@ Optional: - `key_type` (String) The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). - `region` (String) The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. - `resource_id` (String) An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. +- `role_arn` (String) The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). - `secret_arn` (String) The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. - `url` (String) The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. @@ -89,12 +86,9 @@ Optional: ### Nested Schema for `source.gateway_bridge_source` -Required: - -- `bridge_arn` (String) The ARN of the bridge feeding this flow. - Optional: +- `bridge_arn` (String) The ARN of the bridge feeding this flow. - `vpc_interface_attachment` (Attributes) The name of the VPC interface attachment to use for this bridge source. (see [below for nested schema](#nestedatt--source--gateway_bridge_source--vpc_interface_attachment)) @@ -109,19 +103,16 @@ Optional: ### Nested Schema for `source.media_stream_source_configurations` -Required: - -- `encoding_name` (String) The format that was used to encode the data. For ancillary data streams, set the encoding name to smpte291. For audio streams, set the encoding name to pcm. For video, 2110 streams, set the encoding name to raw. For video, JPEG XS streams, set the encoding name to jxsv. -- `media_stream_name` (String) A name that helps you distinguish one media stream from another. - Optional: +- `encoding_name` (String) The format that was used to encode the data. For ancillary data streams, set the encoding name to smpte291. For audio streams, set the encoding name to pcm. For video, 2110 streams, set the encoding name to raw. For video, JPEG XS streams, set the encoding name to jxsv. - `input_configurations` (Attributes List) The media streams that you want to associate with the source. (see [below for nested schema](#nestedatt--source--media_stream_source_configurations--input_configurations)) +- `media_stream_name` (String) A name that helps you distinguish one media stream from another. ### Nested Schema for `source.media_stream_source_configurations.input_configurations` -Required: +Optional: - `input_port` (Number) The port that the flow listens on for an incoming media stream. - `interface` (Attributes) The VPC interface where the media stream comes in from. (see [below for nested schema](#nestedatt--source--media_stream_source_configurations--input_configurations--interface)) @@ -129,7 +120,7 @@ Required: ### Nested Schema for `source.media_stream_source_configurations.input_configurations.interface` -Required: +Optional: - `name` (String) The name of the VPC interface that you want to use for the media stream associated with the output. @@ -140,7 +131,7 @@ Required: ### Nested Schema for `maintenance` -Required: +Optional: - `maintenance_day` (String) A day of a week when the maintenance will happen. Use Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday. - `maintenance_start_hour` (String) UTC time when the maintenance will happen. Use 24-hour HH:MM format. Minutes must be 00. Example: 13:00. The default value is 02:00. @@ -149,18 +140,15 @@ Required: ### Nested Schema for `media_streams` -Required: - -- `media_stream_id` (Number) A unique identifier for the media stream. -- `media_stream_name` (String) A name that helps you distinguish one media stream from another. -- `media_stream_type` (String) The type of media stream. - Optional: - `attributes` (Attributes) Attributes that are related to the media stream. (see [below for nested schema](#nestedatt--media_streams--attributes)) - `clock_rate` (Number) The sample rate for the stream. This value in measured in kHz. - `description` (String) A description that can help you quickly identify what your media stream is used for. - `fmt` (Number) The format type number (sometimes referred to as RTP payload type) of the media stream. MediaConnect assigns this value to the media stream. For ST 2110 JPEG XS outputs, you need to provide this value to the receiver. +- `media_stream_id` (Number) A unique identifier for the media stream. +- `media_stream_name` (String) A name that helps you distinguish one media stream from another. +- `media_stream_type` (String) The type of media stream. - `video_format` (String) The resolution of the video. @@ -200,7 +188,7 @@ Optional: ### Nested Schema for `source_failover_config.source_priority` -Required: +Optional: - `primary_source` (String) The name of the source you choose as the primary source for this flow. @@ -209,7 +197,7 @@ Required: ### Nested Schema for `source_monitoring_config` -Required: +Optional: - `thumbnail_state` (String) The state of thumbnail monitoring. @@ -217,18 +205,15 @@ Required: ### Nested Schema for `vpc_interfaces` -Required: +Optional: - `name` (String) Immutable and has to be a unique against other VpcInterfaces in this Flow. +- `network_interface_ids` (List of String) IDs of the network interfaces created in customer's account by MediaConnect. +- `network_interface_type` (String) The type of network adapter that you want MediaConnect to use on this interface. If you don't set this value, it defaults to ENA. - `role_arn` (String) Role Arn MediaConnect can assume to create ENIs in customer's account. - `security_group_ids` (List of String) Security Group IDs to be used on ENI. - `subnet_id` (String) Subnet must be in the AZ of the Flow -Optional: - -- `network_interface_ids` (List of String) IDs of the network interfaces created in customer's account by MediaConnect. -- `network_interface_type` (String) The type of network adapter that you want MediaConnect to use on this interface. If you don't set this value, it defaults to ENA. - ## Import Import is supported using the following syntax: diff --git a/docs/resources/mediaconnect_flow_entitlement.md b/docs/resources/mediaconnect_flow_entitlement.md index b16a4033a3..74947ac3e5 100644 --- a/docs/resources/mediaconnect_flow_entitlement.md +++ b/docs/resources/mediaconnect_flow_entitlement.md @@ -36,18 +36,15 @@ Resource schema for AWS::MediaConnect::FlowEntitlement ### Nested Schema for `encryption` -Required: - -- `algorithm` (String) The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). -- `role_arn` (String) The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). - Optional: +- `algorithm` (String) The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). - `constant_initialization_vector` (String) A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption. - `device_id` (String) The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption. - `key_type` (String) The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). - `region` (String) The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. - `resource_id` (String) An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. +- `role_arn` (String) The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). - `secret_arn` (String) The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. - `url` (String) The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. diff --git a/docs/resources/mediaconnect_flow_output.md b/docs/resources/mediaconnect_flow_output.md index 0c3c598777..18313c100e 100644 --- a/docs/resources/mediaconnect_flow_output.md +++ b/docs/resources/mediaconnect_flow_output.md @@ -45,34 +45,28 @@ Resource schema for AWS::MediaConnect::FlowOutput ### Nested Schema for `encryption` -Required: - -- `role_arn` (String) The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). -- `secret_arn` (String) The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. - Optional: - `algorithm` (String) The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). - `key_type` (String) The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). +- `role_arn` (String) The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). +- `secret_arn` (String) The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. ### Nested Schema for `media_stream_output_configurations` -Required: - -- `encoding_name` (String) The format that will be used to encode the data. For ancillary data streams, set the encoding name to smpte291. For audio streams, set the encoding name to pcm. For video streams on sources or outputs that use the CDI protocol, set the encoding name to raw. For video streams on sources or outputs that use the ST 2110 JPEG XS protocol, set the encoding name to jxsv. -- `media_stream_name` (String) A name that helps you distinguish one media stream from another. - Optional: - `destination_configurations` (Attributes List) The media streams that you want to associate with the output. (see [below for nested schema](#nestedatt--media_stream_output_configurations--destination_configurations)) +- `encoding_name` (String) The format that will be used to encode the data. For ancillary data streams, set the encoding name to smpte291. For audio streams, set the encoding name to pcm. For video streams on sources or outputs that use the CDI protocol, set the encoding name to raw. For video streams on sources or outputs that use the ST 2110 JPEG XS protocol, set the encoding name to jxsv. - `encoding_parameters` (Attributes) A collection of parameters that determine how MediaConnect will convert the content. These fields only apply to outputs on flows that have a CDI source. (see [below for nested schema](#nestedatt--media_stream_output_configurations--encoding_parameters)) +- `media_stream_name` (String) A name that helps you distinguish one media stream from another. ### Nested Schema for `media_stream_output_configurations.destination_configurations` -Required: +Optional: - `destination_ip` (String) The IP address where contents of the media stream will be sent. - `destination_port` (Number) The port to use when the content of the media stream is distributed to the output. @@ -81,7 +75,7 @@ Required: ### Nested Schema for `media_stream_output_configurations.destination_configurations.interface` -Required: +Optional: - `name` (String) The name of the VPC interface that you want to use for the media stream associated with the output. @@ -90,12 +84,9 @@ Required: ### Nested Schema for `media_stream_output_configurations.encoding_parameters` -Required: - -- `compression_factor` (Number) A value that is used to calculate compression for an output. The bitrate of the output is calculated as follows: Output bitrate = (1 / compressionFactor) * (source bitrate) This property only applies to outputs that use the ST 2110 JPEG XS protocol, with a flow source that uses the CDI protocol. Valid values are in the range of 3.0 to 10.0, inclusive. - Optional: +- `compression_factor` (Number) A value that is used to calculate compression for an output. The bitrate of the output is calculated as follows: Output bitrate = (1 / compressionFactor) * (source bitrate) This property only applies to outputs that use the ST 2110 JPEG XS protocol, with a flow source that uses the CDI protocol. Valid values are in the range of 3.0 to 10.0, inclusive. - `encoder_profile` (String) A setting on the encoder that drives compression settings. This property only applies to video media streams associated with outputs that use the ST 2110 JPEG XS protocol, with a flow source that uses the CDI protocol. diff --git a/docs/resources/mediaconnect_flow_source.md b/docs/resources/mediaconnect_flow_source.md index 8dad0b48c5..1becb284ed 100644 --- a/docs/resources/mediaconnect_flow_source.md +++ b/docs/resources/mediaconnect_flow_source.md @@ -49,10 +49,6 @@ Resource schema for AWS::MediaConnect::FlowSource ### Nested Schema for `decryption` -Required: - -- `role_arn` (String) The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). - Optional: - `algorithm` (String) The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256). @@ -61,6 +57,7 @@ Optional: - `key_type` (String) The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key). - `region` (String) The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption. - `resource_id` (String) An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption. +- `role_arn` (String) The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity). - `secret_arn` (String) The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption. - `url` (String) The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption. @@ -68,12 +65,9 @@ Optional: ### Nested Schema for `gateway_bridge_source` -Required: - -- `bridge_arn` (String) The ARN of the bridge feeding this flow. - Optional: +- `bridge_arn` (String) The ARN of the bridge feeding this flow. - `vpc_interface_attachment` (Attributes) The name of the VPC interface attachment to use for this bridge source. (see [below for nested schema](#nestedatt--gateway_bridge_source--vpc_interface_attachment)) diff --git a/docs/resources/medialive_event_bridge_rule_template.md b/docs/resources/medialive_event_bridge_rule_template.md index 2a5460fd6d..c0b18b8dc3 100644 --- a/docs/resources/medialive_event_bridge_rule_template.md +++ b/docs/resources/medialive_event_bridge_rule_template.md @@ -40,7 +40,7 @@ Definition of AWS::MediaLive::EventBridgeRuleTemplate Resource Type ### Nested Schema for `event_targets` -Required: +Optional: - `arn` (String) Target ARNs must be either an SNS topic or CloudWatch log group. diff --git a/docs/resources/medialive_multiplexprogram.md b/docs/resources/medialive_multiplexprogram.md index 09e13a8325..b9d26e474a 100644 --- a/docs/resources/medialive_multiplexprogram.md +++ b/docs/resources/medialive_multiplexprogram.md @@ -32,10 +32,6 @@ Resource schema for AWS::MediaLive::Multiplexprogram ### Nested Schema for `multiplex_program_settings` -Required: - -- `program_number` (Number) Unique program number. - Optional: - `preferred_channel_pipeline` (String) Indicates which pipeline is preferred by the multiplex for program ingest. @@ -43,13 +39,14 @@ If set to \"PIPELINE_0\" or \"PIPELINE_1\" and an unhealthy ingest causes the mu it will switch back once that ingest is healthy again. If set to \"CURRENTLY_ACTIVE\", it will not switch back to the other pipeline based on it recovering to a healthy state, it will only switch if the active pipeline becomes unhealthy. +- `program_number` (Number) Unique program number. - `service_descriptor` (Attributes) Transport stream service descriptor configuration for the Multiplex program. (see [below for nested schema](#nestedatt--multiplex_program_settings--service_descriptor)) - `video_settings` (Attributes) Program video settings configuration. (see [below for nested schema](#nestedatt--multiplex_program_settings--video_settings)) ### Nested Schema for `multiplex_program_settings.service_descriptor` -Required: +Optional: - `provider_name` (String) Name of the provider. - `service_name` (String) Name of the service. diff --git a/docs/resources/mediapackage_asset.md b/docs/resources/mediapackage_asset.md index 8b5a3f59e5..ba5be5065d 100644 --- a/docs/resources/mediapackage_asset.md +++ b/docs/resources/mediapackage_asset.md @@ -37,7 +37,7 @@ Resource schema for AWS::MediaPackage::Asset ### Nested Schema for `egress_endpoints` -Required: +Optional: - `packaging_configuration_id` (String) The ID of the PackagingConfiguration being applied to the Asset. - `url` (String) The URL of the parent manifest for the repackaged Asset. @@ -46,7 +46,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/mediapackage_packaging_configuration.md b/docs/resources/mediapackage_packaging_configuration.md index 8195af72be..5c165f6bff 100644 --- a/docs/resources/mediapackage_packaging_configuration.md +++ b/docs/resources/mediapackage_packaging_configuration.md @@ -36,63 +36,34 @@ Resource schema for AWS::MediaPackage::PackagingConfiguration ### Nested Schema for `cmaf_package` -Required: - -- `hls_manifests` (Attributes List) A list of HLS manifest configurations. (see [below for nested schema](#nestedatt--cmaf_package--hls_manifests)) - Optional: - `encryption` (Attributes) A CMAF encryption configuration. (see [below for nested schema](#nestedatt--cmaf_package--encryption)) +- `hls_manifests` (Attributes List) A list of HLS manifest configurations. (see [below for nested schema](#nestedatt--cmaf_package--hls_manifests)) - `include_encoder_configuration_in_segments` (Boolean) When includeEncoderConfigurationInSegments is set to true, MediaPackage places your encoder's Sequence Parameter Set (SPS), Picture Parameter Set (PPS), and Video Parameter Set (VPS) metadata in every video segment instead of in the init fragment. This lets you use different SPS/PPS/VPS settings for your assets during content playback. - `segment_duration_seconds` (Number) Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration. - -### Nested Schema for `cmaf_package.hls_manifests` - -Optional: - -- `ad_markers` (String) This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and blackout tags based on SCTE-35 messages in the input source. -- `include_iframe_only_stream` (Boolean) When enabled, an I-Frame only stream will be included in the output. -- `manifest_name` (String) An optional string to include in the name of the manifest. -- `program_date_time_interval_seconds` (Number) The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output. -- `repeat_ext_x_key` (Boolean) When enabled, the EXT-X-KEY tag will be repeated in output manifests. -- `stream_selection` (Attributes) A StreamSelection configuration. (see [below for nested schema](#nestedatt--cmaf_package--hls_manifests--stream_selection)) - - -### Nested Schema for `cmaf_package.hls_manifests.stream_selection` - -Optional: - -- `max_video_bits_per_second` (Number) The maximum video bitrate (bps) to include in output. -- `min_video_bits_per_second` (Number) The minimum video bitrate (bps) to include in output. -- `stream_order` (String) A directive that determines the order of streams in the output. - - - ### Nested Schema for `cmaf_package.encryption` -Required: +Optional: - `speke_key_provider` (Attributes) A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys. (see [below for nested schema](#nestedatt--cmaf_package--encryption--speke_key_provider)) ### Nested Schema for `cmaf_package.encryption.speke_key_provider` -Required: +Optional: +- `encryption_contract_configuration` (Attributes) The configuration to use for encrypting one or more content tracks separately for endpoints that use SPEKE 2.0. (see [below for nested schema](#nestedatt--cmaf_package--encryption--speke_key_provider--encryption_contract_configuration)) - `role_arn` (String) An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service. - `system_ids` (List of String) The system IDs to include in key requests. - `url` (String) The URL of the external key provider service. -Optional: - -- `encryption_contract_configuration` (Attributes) The configuration to use for encrypting one or more content tracks separately for endpoints that use SPEKE 2.0. (see [below for nested schema](#nestedatt--cmaf_package--encryption--speke_key_provider--encryption_contract_configuration)) - ### Nested Schema for `cmaf_package.encryption.speke_key_provider.encryption_contract_configuration` -Required: +Optional: - `preset_speke_20_audio` (String) A collection of audio encryption presets. - `preset_speke_20_video` (String) A collection of video encryption presets. @@ -100,16 +71,36 @@ Required: + +### Nested Schema for `cmaf_package.hls_manifests` - -### Nested Schema for `dash_package` +Optional: + +- `ad_markers` (String) This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and blackout tags based on SCTE-35 messages in the input source. +- `include_iframe_only_stream` (Boolean) When enabled, an I-Frame only stream will be included in the output. +- `manifest_name` (String) An optional string to include in the name of the manifest. +- `program_date_time_interval_seconds` (Number) The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output. +- `repeat_ext_x_key` (Boolean) When enabled, the EXT-X-KEY tag will be repeated in output manifests. +- `stream_selection` (Attributes) A StreamSelection configuration. (see [below for nested schema](#nestedatt--cmaf_package--hls_manifests--stream_selection)) + + +### Nested Schema for `cmaf_package.hls_manifests.stream_selection` + +Optional: + +- `max_video_bits_per_second` (Number) The maximum video bitrate (bps) to include in output. +- `min_video_bits_per_second` (Number) The minimum video bitrate (bps) to include in output. +- `stream_order` (String) A directive that determines the order of streams in the output. -Required: -- `dash_manifests` (Attributes List) A list of DASH manifest configurations. (see [below for nested schema](#nestedatt--dash_package--dash_manifests)) + + + +### Nested Schema for `dash_package` Optional: +- `dash_manifests` (Attributes List) A list of DASH manifest configurations. (see [below for nested schema](#nestedatt--dash_package--dash_manifests)) - `encryption` (Attributes) A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration. (see [below for nested schema](#nestedatt--dash_package--encryption)) - `include_encoder_configuration_in_segments` (Boolean) When includeEncoderConfigurationInSegments is set to true, MediaPackage places your encoder's Sequence Parameter Set (SPS), Picture Parameter Set (PPS), and Video Parameter Set (VPS) metadata in every video segment instead of in the init fragment. This lets you use different SPS/PPS/VPS settings for your assets during content playback. - `include_iframe_only_stream` (Boolean) When enabled, an I-Frame only stream will be included in the output. @@ -143,27 +134,24 @@ Optional: ### Nested Schema for `dash_package.encryption` -Required: +Optional: - `speke_key_provider` (Attributes) A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys. (see [below for nested schema](#nestedatt--dash_package--encryption--speke_key_provider)) ### Nested Schema for `dash_package.encryption.speke_key_provider` -Required: +Optional: +- `encryption_contract_configuration` (Attributes) The configuration to use for encrypting one or more content tracks separately for endpoints that use SPEKE 2.0. (see [below for nested schema](#nestedatt--dash_package--encryption--speke_key_provider--encryption_contract_configuration)) - `role_arn` (String) An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service. - `system_ids` (List of String) The system IDs to include in key requests. - `url` (String) The URL of the external key provider service. -Optional: - -- `encryption_contract_configuration` (Attributes) The configuration to use for encrypting one or more content tracks separately for endpoints that use SPEKE 2.0. (see [below for nested schema](#nestedatt--dash_package--encryption--speke_key_provider--encryption_contract_configuration)) - ### Nested Schema for `dash_package.encryption.speke_key_provider.encryption_contract_configuration` -Required: +Optional: - `preset_speke_20_audio` (String) A collection of audio encryption presets. - `preset_speke_20_video` (String) A collection of video encryption presets. @@ -175,69 +163,37 @@ Required: ### Nested Schema for `hls_package` -Required: - -- `hls_manifests` (Attributes List) A list of HLS manifest configurations. (see [below for nested schema](#nestedatt--hls_package--hls_manifests)) - Optional: - `encryption` (Attributes) An HTTP Live Streaming (HLS) encryption configuration. (see [below for nested schema](#nestedatt--hls_package--encryption)) +- `hls_manifests` (Attributes List) A list of HLS manifest configurations. (see [below for nested schema](#nestedatt--hls_package--hls_manifests)) - `include_dvb_subtitles` (Boolean) When enabled, MediaPackage passes through digital video broadcasting (DVB) subtitles into the output. - `segment_duration_seconds` (Number) Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration. - `use_audio_rendition_group` (Boolean) When enabled, audio streams will be placed in rendition groups in the output. - -### Nested Schema for `hls_package.hls_manifests` - -Optional: - -- `ad_markers` (String) This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and blackout tags based on SCTE-35 messages in the input source. -- `include_iframe_only_stream` (Boolean) When enabled, an I-Frame only stream will be included in the output. -- `manifest_name` (String) An optional string to include in the name of the manifest. -- `program_date_time_interval_seconds` (Number) The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output. -- `repeat_ext_x_key` (Boolean) When enabled, the EXT-X-KEY tag will be repeated in output manifests. -- `stream_selection` (Attributes) A StreamSelection configuration. (see [below for nested schema](#nestedatt--hls_package--hls_manifests--stream_selection)) - - -### Nested Schema for `hls_package.hls_manifests.stream_selection` - -Optional: - -- `max_video_bits_per_second` (Number) The maximum video bitrate (bps) to include in output. -- `min_video_bits_per_second` (Number) The minimum video bitrate (bps) to include in output. -- `stream_order` (String) A directive that determines the order of streams in the output. - - - ### Nested Schema for `hls_package.encryption` -Required: - -- `speke_key_provider` (Attributes) A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys. (see [below for nested schema](#nestedatt--hls_package--encryption--speke_key_provider)) - Optional: - `constant_initialization_vector` (String) An HTTP Live Streaming (HLS) encryption configuration. - `encryption_method` (String) The encryption method to use. +- `speke_key_provider` (Attributes) A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys. (see [below for nested schema](#nestedatt--hls_package--encryption--speke_key_provider)) ### Nested Schema for `hls_package.encryption.speke_key_provider` -Required: +Optional: +- `encryption_contract_configuration` (Attributes) The configuration to use for encrypting one or more content tracks separately for endpoints that use SPEKE 2.0. (see [below for nested schema](#nestedatt--hls_package--encryption--speke_key_provider--encryption_contract_configuration)) - `role_arn` (String) An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service. - `system_ids` (List of String) The system IDs to include in key requests. - `url` (String) The URL of the external key provider service. -Optional: - -- `encryption_contract_configuration` (Attributes) The configuration to use for encrypting one or more content tracks separately for endpoints that use SPEKE 2.0. (see [below for nested schema](#nestedatt--hls_package--encryption--speke_key_provider--encryption_contract_configuration)) - ### Nested Schema for `hls_package.encryption.speke_key_provider.encryption_contract_configuration` -Required: +Optional: - `preset_speke_20_audio` (String) A collection of audio encryption presets. - `preset_speke_20_video` (String) A collection of video encryption presets. @@ -245,29 +201,20 @@ Required: - - -### Nested Schema for `mss_package` - -Required: - -- `mss_manifests` (Attributes List) A list of MSS manifest configurations. (see [below for nested schema](#nestedatt--mss_package--mss_manifests)) - -Optional: - -- `encryption` (Attributes) A CMAF encryption configuration. (see [below for nested schema](#nestedatt--mss_package--encryption)) -- `segment_duration_seconds` (Number) Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration. - - -### Nested Schema for `mss_package.mss_manifests` + +### Nested Schema for `hls_package.hls_manifests` Optional: +- `ad_markers` (String) This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and blackout tags based on SCTE-35 messages in the input source. +- `include_iframe_only_stream` (Boolean) When enabled, an I-Frame only stream will be included in the output. - `manifest_name` (String) An optional string to include in the name of the manifest. -- `stream_selection` (Attributes) A StreamSelection configuration. (see [below for nested schema](#nestedatt--mss_package--mss_manifests--stream_selection)) +- `program_date_time_interval_seconds` (Number) The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output. +- `repeat_ext_x_key` (Boolean) When enabled, the EXT-X-KEY tag will be repeated in output manifests. +- `stream_selection` (Attributes) A StreamSelection configuration. (see [below for nested schema](#nestedatt--hls_package--hls_manifests--stream_selection)) - -### Nested Schema for `mss_package.mss_manifests.stream_selection` + +### Nested Schema for `hls_package.hls_manifests.stream_selection` Optional: @@ -277,30 +224,37 @@ Optional: + + +### Nested Schema for `mss_package` + +Optional: + +- `encryption` (Attributes) A CMAF encryption configuration. (see [below for nested schema](#nestedatt--mss_package--encryption)) +- `mss_manifests` (Attributes List) A list of MSS manifest configurations. (see [below for nested schema](#nestedatt--mss_package--mss_manifests)) +- `segment_duration_seconds` (Number) Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration. + ### Nested Schema for `mss_package.encryption` -Required: +Optional: - `speke_key_provider` (Attributes) A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys. (see [below for nested schema](#nestedatt--mss_package--encryption--speke_key_provider)) ### Nested Schema for `mss_package.encryption.speke_key_provider` -Required: +Optional: +- `encryption_contract_configuration` (Attributes) The configuration to use for encrypting one or more content tracks separately for endpoints that use SPEKE 2.0. (see [below for nested schema](#nestedatt--mss_package--encryption--speke_key_provider--encryption_contract_configuration)) - `role_arn` (String) An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service. - `system_ids` (List of String) The system IDs to include in key requests. - `url` (String) The URL of the external key provider service. -Optional: - -- `encryption_contract_configuration` (Attributes) The configuration to use for encrypting one or more content tracks separately for endpoints that use SPEKE 2.0. (see [below for nested schema](#nestedatt--mss_package--encryption--speke_key_provider--encryption_contract_configuration)) - ### Nested Schema for `mss_package.encryption.speke_key_provider.encryption_contract_configuration` -Required: +Optional: - `preset_speke_20_audio` (String) A collection of audio encryption presets. - `preset_speke_20_video` (String) A collection of video encryption presets. @@ -308,11 +262,30 @@ Required: + +### Nested Schema for `mss_package.mss_manifests` + +Optional: + +- `manifest_name` (String) An optional string to include in the name of the manifest. +- `stream_selection` (Attributes) A StreamSelection configuration. (see [below for nested schema](#nestedatt--mss_package--mss_manifests--stream_selection)) + + +### Nested Schema for `mss_package.mss_manifests.stream_selection` + +Optional: + +- `max_video_bits_per_second` (Number) The maximum video bitrate (bps) to include in output. +- `min_video_bits_per_second` (Number) The minimum video bitrate (bps) to include in output. +- `stream_order` (String) A directive that determines the order of streams in the output. + + + ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/mediapackage_packaging_group.md b/docs/resources/mediapackage_packaging_group.md index aea6822cb4..e10c88ab46 100644 --- a/docs/resources/mediapackage_packaging_group.md +++ b/docs/resources/mediapackage_packaging_group.md @@ -34,7 +34,7 @@ Resource schema for AWS::MediaPackage::PackagingGroup ### Nested Schema for `authorization` -Required: +Optional: - `cdn_identifier_secret` (String) The Amazon Resource Name (ARN) for the secret in AWS Secrets Manager that is used for CDN authorization. - `secrets_role_arn` (String) The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to communicate with AWS Secrets Manager. @@ -51,7 +51,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/mediapackagev2_origin_endpoint.md b/docs/resources/mediapackagev2_origin_endpoint.md index 0e36c69800..86304c5819 100644 --- a/docs/resources/mediapackagev2_origin_endpoint.md +++ b/docs/resources/mediapackagev2_origin_endpoint.md @@ -46,14 +46,11 @@ description: |- ### Nested Schema for `dash_manifests` -Required: - -- `manifest_name` (String)

A short string that's appended to the endpoint URL. The manifest name creates a unique path to this endpoint. If you don't enter a value, MediaPackage uses the default manifest name, index.

- Optional: - `drm_signaling` (String) - `filter_configuration` (Attributes)

Filter configuration includes settings for manifest filtering, start and end times, and time delay that apply to all of your egress requests for this manifest.

(see [below for nested schema](#nestedatt--dash_manifests--filter_configuration)) +- `manifest_name` (String)

A short string that's appended to the endpoint URL. The manifest name creates a unique path to this endpoint. If you don't enter a value, MediaPackage uses the default manifest name, index.

- `manifest_window_seconds` (Number)

The total duration (in seconds) of the manifest's content.

- `min_buffer_time_seconds` (Number)

Minimum amount of content (in seconds) that a player must keep available in the buffer.

- `min_update_period_seconds` (Number)

Minimum amount of time (in seconds) that the player should wait before requesting updates to the manifest.

@@ -118,14 +115,11 @@ Optional: ### Nested Schema for `hls_manifests` -Required: - -- `manifest_name` (String)

A short short string that's appended to the endpoint URL. The manifest name creates a unique path to this endpoint. If you don't enter a value, MediaPackage uses the default manifest name, index. MediaPackage automatically inserts the format extension, such as .m3u8. You can't use the same manifest name if you use HLS manifest and low-latency HLS manifest. The manifestName on the HLSManifest object overrides the manifestName you provided on the originEndpoint object.

- Optional: - `child_manifest_name` (String)

A short string that's appended to the endpoint URL. The child manifest name creates a unique path to this endpoint. If you don't enter a value, MediaPackage uses the default child manifest name, index_1. The manifestName on the HLSManifest object overrides the manifestName you provided on the originEndpoint object.

- `filter_configuration` (Attributes)

Filter configuration includes settings for manifest filtering, start and end times, and time delay that apply to all of your egress requests for this manifest.

(see [below for nested schema](#nestedatt--hls_manifests--filter_configuration)) +- `manifest_name` (String)

A short short string that's appended to the endpoint URL. The manifest name creates a unique path to this endpoint. If you don't enter a value, MediaPackage uses the default manifest name, index. MediaPackage automatically inserts the format extension, such as .m3u8. You can't use the same manifest name if you use HLS manifest and low-latency HLS manifest. The manifestName on the HLSManifest object overrides the manifestName you provided on the originEndpoint object.

- `manifest_window_seconds` (Number)

The total duration (in seconds) of the manifest's content.

- `program_date_time_interval_seconds` (Number)

Inserts EXT-X-PROGRAM-DATE-TIME tags in the output manifest at the interval that you specify. If you don't enter an interval, EXT-X-PROGRAM-DATE-TIME tags aren't included in the manifest. @@ -158,14 +152,11 @@ Optional: ### Nested Schema for `low_latency_hls_manifests` -Required: - -- `manifest_name` (String)

A short short string that's appended to the endpoint URL. The manifest name creates a unique path to this endpoint. If you don't enter a value, MediaPackage uses the default manifest name, index. MediaPackage automatically inserts the format extension, such as .m3u8. You can't use the same manifest name if you use HLS manifest and low-latency HLS manifest. The manifestName on the HLSManifest object overrides the manifestName you provided on the originEndpoint object.

- Optional: - `child_manifest_name` (String)

A short string that's appended to the endpoint URL. The child manifest name creates a unique path to this endpoint. If you don't enter a value, MediaPackage uses the default child manifest name, index_1. The manifestName on the HLSManifest object overrides the manifestName you provided on the originEndpoint object.

- `filter_configuration` (Attributes)

Filter configuration includes settings for manifest filtering, start and end times, and time delay that apply to all of your egress requests for this manifest.

(see [below for nested schema](#nestedatt--low_latency_hls_manifests--filter_configuration)) +- `manifest_name` (String)

A short short string that's appended to the endpoint URL. The manifest name creates a unique path to this endpoint. If you don't enter a value, MediaPackage uses the default manifest name, index. MediaPackage automatically inserts the format extension, such as .m3u8. You can't use the same manifest name if you use HLS manifest and low-latency HLS manifest. The manifestName on the HLSManifest object overrides the manifestName you provided on the originEndpoint object.

- `manifest_window_seconds` (Number)

The total duration (in seconds) of the manifest's content.

- `program_date_time_interval_seconds` (Number)

Inserts EXT-X-PROGRAM-DATE-TIME tags in the output manifest at the interval that you specify. If you don't enter an interval, EXT-X-PROGRAM-DATE-TIME tags aren't included in the manifest. @@ -211,17 +202,14 @@ Optional: ### Nested Schema for `segment.encryption` -Required: - -- `encryption_method` (Attributes)

The encryption type.

(see [below for nested schema](#nestedatt--segment--encryption--encryption_method)) -- `speke_key_provider` (Attributes)

The parameters for the SPEKE key provider.

(see [below for nested schema](#nestedatt--segment--encryption--speke_key_provider)) - Optional: - `constant_initialization_vector` (String)

A 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting content. If you don't specify a value, then MediaPackage creates the constant initialization vector (IV).

+- `encryption_method` (Attributes)

The encryption type.

(see [below for nested schema](#nestedatt--segment--encryption--encryption_method)) - `key_rotation_interval_seconds` (Number)

The frequency (in seconds) of key changes for live workflows, in which content is streamed real time. The service retrieves content keys before the live content begins streaming, and then retrieves them as needed over the lifetime of the workflow. By default, key rotation is set to 300 seconds (5 minutes), the minimum rotation interval, which is equivalent to setting it to 300. If you don't enter an interval, content keys aren't rotated.

The following example setting causes the service to rotate keys every thirty minutes: 1800

+- `speke_key_provider` (Attributes)

The parameters for the SPEKE key provider.

(see [below for nested schema](#nestedatt--segment--encryption--speke_key_provider)) ### Nested Schema for `segment.encryption.encryption_method` @@ -235,7 +223,7 @@ Optional: ### Nested Schema for `segment.encryption.speke_key_provider` -Required: +Optional: - `drm_systems` (List of String)

The DRM solution provider you're using to protect your content during distribution.

- `encryption_contract_configuration` (Attributes)

Configure one or more content encryption keys for your endpoints that use SPEKE Version 2.0. The encryption contract defines which content keys are used to encrypt the audio and video tracks in your stream. To configure the encryption contract, specify which audio and video encryption presets to use.

(see [below for nested schema](#nestedatt--segment--encryption--speke_key_provider--encryption_contract_configuration)) @@ -252,7 +240,7 @@ Required: ### Nested Schema for `segment.encryption.speke_key_provider.encryption_contract_configuration` -Required: +Optional: - `preset_speke_20_audio` (String) - `preset_speke_20_video` (String) diff --git a/docs/resources/mediatailor_channel.md b/docs/resources/mediatailor_channel.md index 7f45d23aea..a547af3b9d 100644 --- a/docs/resources/mediatailor_channel.md +++ b/docs/resources/mediatailor_channel.md @@ -89,7 +89,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -98,7 +98,7 @@ Required: ### Nested Schema for `time_shift_configuration` -Required: +Optional: - `max_time_delay_seconds` (Number)

The maximum time delay for time-shifted viewing. The minimum allowed maximum time delay is 0 seconds, and the maximum allowed maximum time delay is 21600 seconds (6 hours).

diff --git a/docs/resources/mediatailor_live_source.md b/docs/resources/mediatailor_live_source.md index 6f63457f7c..22f69a906c 100644 --- a/docs/resources/mediatailor_live_source.md +++ b/docs/resources/mediatailor_live_source.md @@ -43,7 +43,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/mediatailor_source_location.md b/docs/resources/mediatailor_source_location.md index c4a2f32e96..2fee53879b 100644 --- a/docs/resources/mediatailor_source_location.md +++ b/docs/resources/mediatailor_source_location.md @@ -79,7 +79,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/mediatailor_vod_source.md b/docs/resources/mediatailor_vod_source.md index 73e17dd096..bc5d4b207b 100644 --- a/docs/resources/mediatailor_vod_source.md +++ b/docs/resources/mediatailor_vod_source.md @@ -43,7 +43,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/memorydb_acl.md b/docs/resources/memorydb_acl.md index fba4ff118a..fc996f6dc5 100644 --- a/docs/resources/memorydb_acl.md +++ b/docs/resources/memorydb_acl.md @@ -33,12 +33,9 @@ Resource Type definition for AWS::MemoryDB::ACL ### Nested Schema for `tags` -Required: - -- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with 'aws:'. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - Optional: +- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with 'aws:'. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ## Import diff --git a/docs/resources/memorydb_cluster.md b/docs/resources/memorydb_cluster.md index d83dad3804..5de0ed9d4c 100644 --- a/docs/resources/memorydb_cluster.md +++ b/docs/resources/memorydb_cluster.md @@ -69,7 +69,7 @@ Read-Only: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key for the tag. May not be null. - `value` (String) The tag's value. May be null. diff --git a/docs/resources/memorydb_parameter_group.md b/docs/resources/memorydb_parameter_group.md index 85722ee739..583768feb6 100644 --- a/docs/resources/memorydb_parameter_group.md +++ b/docs/resources/memorydb_parameter_group.md @@ -34,7 +34,7 @@ The AWS::MemoryDB::ParameterGroup resource creates an Amazon MemoryDB ParameterG ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key for the tag. May not be null. - `value` (String) The tag's value. May be null. diff --git a/docs/resources/memorydb_subnet_group.md b/docs/resources/memorydb_subnet_group.md index 93fa5b3bcc..a9ea9ca908 100644 --- a/docs/resources/memorydb_subnet_group.md +++ b/docs/resources/memorydb_subnet_group.md @@ -33,7 +33,7 @@ The AWS::MemoryDB::SubnetGroup resource creates an Amazon MemoryDB Subnet Group. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key for the tag. May not be null. - `value` (String) The tag's value. May be null. diff --git a/docs/resources/memorydb_user.md b/docs/resources/memorydb_user.md index 7f6bdbd363..a457778c80 100644 --- a/docs/resources/memorydb_user.md +++ b/docs/resources/memorydb_user.md @@ -43,12 +43,9 @@ Optional: ### Nested Schema for `tags` -Required: - -- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with 'aws:'. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - Optional: +- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with 'aws:'. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ## Import diff --git a/docs/resources/msk_cluster.md b/docs/resources/msk_cluster.md index 88bc52fb8a..6574726c6e 100644 --- a/docs/resources/msk_cluster.md +++ b/docs/resources/msk_cluster.md @@ -96,7 +96,7 @@ Optional: ### Nested Schema for `broker_node_group_info.connectivity_info.vpc_connectivity.client_authentication.sasl.iam` -Required: +Optional: - `enabled` (Boolean) @@ -104,7 +104,7 @@ Required: ### Nested Schema for `broker_node_group_info.connectivity_info.vpc_connectivity.client_authentication.sasl.scram` -Required: +Optional: - `enabled` (Boolean) @@ -113,7 +113,7 @@ Required: ### Nested Schema for `broker_node_group_info.connectivity_info.vpc_connectivity.client_authentication.tls` -Required: +Optional: - `enabled` (Boolean) @@ -168,7 +168,7 @@ Optional: ### Nested Schema for `client_authentication.sasl.iam` -Required: +Optional: - `enabled` (Boolean) @@ -176,7 +176,7 @@ Required: ### Nested Schema for `client_authentication.sasl.scram` -Required: +Optional: - `enabled` (Boolean) @@ -194,7 +194,7 @@ Optional: ### Nested Schema for `client_authentication.unauthenticated` -Required: +Optional: - `enabled` (Boolean) @@ -203,7 +203,7 @@ Required: ### Nested Schema for `configuration_info` -Required: +Optional: - `arn` (String) - `revision` (Number) @@ -220,7 +220,7 @@ Optional: ### Nested Schema for `encryption_info.encryption_at_rest` -Required: +Optional: - `data_volume_kms_key_id` (String) @@ -238,7 +238,7 @@ Optional: ### Nested Schema for `logging_info` -Required: +Optional: - `broker_logs` (Attributes) (see [below for nested schema](#nestedatt--logging_info--broker_logs)) @@ -254,37 +254,28 @@ Optional: ### Nested Schema for `logging_info.broker_logs.cloudwatch_logs` -Required: - -- `enabled` (Boolean) - Optional: +- `enabled` (Boolean) - `log_group` (String) ### Nested Schema for `logging_info.broker_logs.firehose` -Required: - -- `enabled` (Boolean) - Optional: - `delivery_stream` (String) +- `enabled` (Boolean) ### Nested Schema for `logging_info.broker_logs.s3` -Required: - -- `enabled` (Boolean) - Optional: - `bucket` (String) +- `enabled` (Boolean) - `prefix` (String) @@ -293,7 +284,7 @@ Optional: ### Nested Schema for `open_monitoring` -Required: +Optional: - `prometheus` (Attributes) (see [below for nested schema](#nestedatt--open_monitoring--prometheus)) @@ -308,7 +299,7 @@ Optional: ### Nested Schema for `open_monitoring.prometheus.jmx_exporter` -Required: +Optional: - `enabled_in_broker` (Boolean) @@ -316,7 +307,7 @@ Required: ### Nested Schema for `open_monitoring.prometheus.node_exporter` -Required: +Optional: - `enabled_in_broker` (Boolean) diff --git a/docs/resources/msk_replicator.md b/docs/resources/msk_replicator.md index 82ea0823e0..bbde53fd07 100644 --- a/docs/resources/msk_replicator.md +++ b/docs/resources/msk_replicator.md @@ -124,7 +124,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/neptune_db_cluster.md b/docs/resources/neptune_db_cluster.md index 60483c4362..8b8059bf77 100644 --- a/docs/resources/neptune_db_cluster.md +++ b/docs/resources/neptune_db_cluster.md @@ -110,19 +110,16 @@ If a DB cluster snapshot is specified, the target DB cluster is created from the ### Nested Schema for `associated_roles` -Required: - -- `role_arn` (String) The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster. - Optional: - `feature_name` (String) The name of the feature associated with the AWS Identity and Access Management (IAM) role. For the list of supported feature names, see DBEngineVersion in the Amazon Neptune API Reference. +- `role_arn` (String) The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster. ### Nested Schema for `serverless_scaling_configuration` -Required: +Optional: - `max_capacity` (Number) The maximum number of Neptune capacity units (NCUs) for a DB instance in an Neptune Serverless cluster. You can specify NCU values in half-step increments, such as 40, 40.5, 41, and so on. The smallest value you can use is 2.5, whereas the largest is 128. - `min_capacity` (Number) The minimum number of Neptune capacity units (NCUs) for a DB instance in an Neptune Serverless cluster. You can specify NCU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value you can use is 1, whereas the largest is 128. @@ -131,12 +128,9 @@ Required: ### Nested Schema for `tags` -Required: - -- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - Optional: +- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ## Import diff --git a/docs/resources/neptunegraph_graph.md b/docs/resources/neptunegraph_graph.md index 6ff6dc6cb8..577a366c3e 100644 --- a/docs/resources/neptunegraph_graph.md +++ b/docs/resources/neptunegraph_graph.md @@ -54,19 +54,16 @@ _Default_: If not specified, the default value is 1. ### Nested Schema for `tags` -Required: - -- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - Optional: +- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ### Nested Schema for `vector_search_configuration` -Required: +Optional: - `vector_search_dimension` (Number) The vector search dimension diff --git a/docs/resources/networkfirewall_firewall.md b/docs/resources/networkfirewall_firewall.md index fdf14d2b8d..f8ae00518a 100644 --- a/docs/resources/networkfirewall_firewall.md +++ b/docs/resources/networkfirewall_firewall.md @@ -52,7 +52,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/networkfirewall_firewall_policy.md b/docs/resources/networkfirewall_firewall_policy.md index a5eb648865..9858a18235 100644 --- a/docs/resources/networkfirewall_firewall_policy.md +++ b/docs/resources/networkfirewall_firewall_policy.md @@ -77,14 +77,11 @@ Optional: ### Nested Schema for `firewall_policy.stateful_rule_group_references` -Required: - -- `resource_arn` (String) A resource ARN. - Optional: - `override` (Attributes) (see [below for nested schema](#nestedatt--firewall_policy--stateful_rule_group_references--override)) - `priority` (Number) +- `resource_arn` (String) A resource ARN. ### Nested Schema for `firewall_policy.stateful_rule_group_references.override` @@ -98,7 +95,7 @@ Optional: ### Nested Schema for `firewall_policy.stateless_custom_actions` -Required: +Optional: - `action_definition` (Attributes) (see [below for nested schema](#nestedatt--firewall_policy--stateless_custom_actions--action_definition)) - `action_name` (String) @@ -113,14 +110,14 @@ Optional: ### Nested Schema for `firewall_policy.stateless_custom_actions.action_definition.publish_metric_action` -Required: +Optional: - `dimensions` (Attributes List) (see [below for nested schema](#nestedatt--firewall_policy--stateless_custom_actions--action_definition--publish_metric_action--dimensions)) ### Nested Schema for `firewall_policy.stateless_custom_actions.action_definition.publish_metric_action.dimensions` -Required: +Optional: - `value` (String) @@ -131,7 +128,7 @@ Required: ### Nested Schema for `firewall_policy.stateless_rule_group_references` -Required: +Optional: - `priority` (Number) - `resource_arn` (String) A resource ARN. @@ -141,7 +138,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/networkfirewall_rule_group.md b/docs/resources/networkfirewall_rule_group.md index 2c5198f329..956f770ee0 100644 --- a/docs/resources/networkfirewall_rule_group.md +++ b/docs/resources/networkfirewall_rule_group.md @@ -36,16 +36,54 @@ Resource type definition for AWS::NetworkFirewall::RuleGroup ### Nested Schema for `rule_group` -Required: - -- `rules_source` (Attributes) (see [below for nested schema](#nestedatt--rule_group--rules_source)) - Optional: - `reference_sets` (Attributes) (see [below for nested schema](#nestedatt--rule_group--reference_sets)) - `rule_variables` (Attributes) (see [below for nested schema](#nestedatt--rule_group--rule_variables)) +- `rules_source` (Attributes) (see [below for nested schema](#nestedatt--rule_group--rules_source)) - `stateful_rule_options` (Attributes) (see [below for nested schema](#nestedatt--rule_group--stateful_rule_options)) + +### Nested Schema for `rule_group.reference_sets` + +Optional: + +- `ip_set_references` (Attributes Map) (see [below for nested schema](#nestedatt--rule_group--reference_sets--ip_set_references)) + + +### Nested Schema for `rule_group.reference_sets.ip_set_references` + +Optional: + +- `reference_arn` (String) A resource ARN. + + + + +### Nested Schema for `rule_group.rule_variables` + +Optional: + +- `ip_sets` (Attributes Map) (see [below for nested schema](#nestedatt--rule_group--rule_variables--ip_sets)) +- `port_sets` (Attributes Map) (see [below for nested schema](#nestedatt--rule_group--rule_variables--port_sets)) + + +### Nested Schema for `rule_group.rule_variables.ip_sets` + +Optional: + +- `definition` (List of String) + + + +### Nested Schema for `rule_group.rule_variables.port_sets` + +Optional: + +- `definition` (List of String) + + + ### Nested Schema for `rule_group.rules_source` @@ -59,7 +97,7 @@ Optional: ### Nested Schema for `rule_group.rules_source.rules_source_list` -Required: +Optional: - `generated_rules_type` (String) - `target_types` (List of String) @@ -69,7 +107,7 @@ Required: ### Nested Schema for `rule_group.rules_source.stateful_rules` -Required: +Optional: - `action` (String) - `header` (Attributes) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateful_rules--header)) @@ -78,7 +116,7 @@ Required: ### Nested Schema for `rule_group.rules_source.stateful_rules.header` -Required: +Optional: - `destination` (String) - `destination_port` (String) @@ -91,12 +129,9 @@ Required: ### Nested Schema for `rule_group.rules_source.stateful_rules.rule_options` -Required: - -- `keyword` (String) - Optional: +- `keyword` (String) - `settings` (List of String) @@ -104,18 +139,48 @@ Optional: ### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions` -Required: +Optional: +- `custom_actions` (Attributes List) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--custom_actions)) - `stateless_rules` (Attributes List) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--stateless_rules)) + +### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.custom_actions` + Optional: -- `custom_actions` (Attributes List) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--custom_actions)) +- `action_definition` (Attributes) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--custom_actions--action_definition)) +- `action_name` (String) + + +### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.custom_actions.action_definition` + +Optional: + +- `publish_metric_action` (Attributes) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--custom_actions--action_definition--publish_metric_action)) + + +### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.custom_actions.action_definition.publish_metric_action` + +Optional: + +- `dimensions` (Attributes List) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--custom_actions--action_definition--publish_metric_action--dimensions)) + + +### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.custom_actions.action_definition.publish_metric_action.dimensions` + +Optional: + +- `value` (String) + + + + ### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules` -Required: +Optional: - `priority` (Number) - `rule_definition` (Attributes) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--stateless_rules--rule_definition)) @@ -123,7 +188,7 @@ Required: ### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules.rule_definition` -Required: +Optional: - `actions` (List of String) - `match_attributes` (Attributes) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--stateless_rules--rule_definition--match_attributes)) @@ -143,7 +208,7 @@ Optional: ### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules.rule_definition.match_attributes.destination_ports` -Required: +Optional: - `from_port` (Number) - `to_port` (Number) @@ -152,7 +217,7 @@ Required: ### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules.rule_definition.match_attributes.destinations` -Required: +Optional: - `address_definition` (String) @@ -160,7 +225,7 @@ Required: ### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules.rule_definition.match_attributes.source_ports` -Required: +Optional: - `from_port` (Number) - `to_port` (Number) @@ -169,7 +234,7 @@ Required: ### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules.rule_definition.match_attributes.sources` -Required: +Optional: - `address_definition` (String) @@ -177,92 +242,15 @@ Required: ### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules.rule_definition.match_attributes.tcp_flags` -Required: - -- `flags` (List of String) - Optional: +- `flags` (List of String) - `masks` (List of String) - -### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.custom_actions` - -Required: - -- `action_definition` (Attributes) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--custom_actions--action_definition)) -- `action_name` (String) - - -### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.custom_actions.action_definition` - -Optional: - -- `publish_metric_action` (Attributes) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--custom_actions--action_definition--publish_metric_action)) - - -### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.custom_actions.action_definition.publish_metric_action` - -Required: - -- `dimensions` (Attributes List) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--custom_actions--action_definition--publish_metric_action--dimensions)) - - -### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.custom_actions.action_definition.publish_metric_action.dimensions` - -Required: - -- `value` (String) - - - - - - - - -### Nested Schema for `rule_group.reference_sets` - -Optional: - -- `ip_set_references` (Attributes Map) (see [below for nested schema](#nestedatt--rule_group--reference_sets--ip_set_references)) - - -### Nested Schema for `rule_group.reference_sets.ip_set_references` - -Optional: - -- `reference_arn` (String) A resource ARN. - - - - -### Nested Schema for `rule_group.rule_variables` - -Optional: - -- `ip_sets` (Attributes Map) (see [below for nested schema](#nestedatt--rule_group--rule_variables--ip_sets)) -- `port_sets` (Attributes Map) (see [below for nested schema](#nestedatt--rule_group--rule_variables--port_sets)) - - -### Nested Schema for `rule_group.rule_variables.ip_sets` - -Optional: - -- `definition` (List of String) - - - -### Nested Schema for `rule_group.rule_variables.port_sets` - -Optional: - -- `definition` (List of String) - @@ -277,7 +265,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/networkfirewall_tls_inspection_configuration.md b/docs/resources/networkfirewall_tls_inspection_configuration.md index 0d806ee364..d8c98557be 100644 --- a/docs/resources/networkfirewall_tls_inspection_configuration.md +++ b/docs/resources/networkfirewall_tls_inspection_configuration.md @@ -71,7 +71,7 @@ Optional: ### Nested Schema for `tls_inspection_configuration.server_certificate_configurations.scopes.destination_ports` -Required: +Optional: - `from_port` (Number) - `to_port` (Number) @@ -80,7 +80,7 @@ Required: ### Nested Schema for `tls_inspection_configuration.server_certificate_configurations.scopes.destinations` -Required: +Optional: - `address_definition` (String) @@ -88,7 +88,7 @@ Required: ### Nested Schema for `tls_inspection_configuration.server_certificate_configurations.scopes.source_ports` -Required: +Optional: - `from_port` (Number) - `to_port` (Number) @@ -97,7 +97,7 @@ Required: ### Nested Schema for `tls_inspection_configuration.server_certificate_configurations.scopes.sources` -Required: +Optional: - `address_definition` (String) @@ -116,7 +116,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/networkmanager_connect_attachment.md b/docs/resources/networkmanager_connect_attachment.md index edc272d33c..1261e988ea 100644 --- a/docs/resources/networkmanager_connect_attachment.md +++ b/docs/resources/networkmanager_connect_attachment.md @@ -63,7 +63,7 @@ Optional: ### Nested Schema for `proposed_network_function_group_change.tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. @@ -82,7 +82,7 @@ Optional: ### Nested Schema for `proposed_segment_change.tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. @@ -92,7 +92,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/networkmanager_connect_peer.md b/docs/resources/networkmanager_connect_peer.md index fa00167673..f5368e296f 100644 --- a/docs/resources/networkmanager_connect_peer.md +++ b/docs/resources/networkmanager_connect_peer.md @@ -49,7 +49,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/networkmanager_core_network.md b/docs/resources/networkmanager_core_network.md index 61e719d639..e4b86ae699 100644 --- a/docs/resources/networkmanager_core_network.md +++ b/docs/resources/networkmanager_core_network.md @@ -84,7 +84,7 @@ resource "awscc_networkmanager_core_network" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/networkmanager_device.md b/docs/resources/networkmanager_device.md index 175a8ab65d..769d42a9af 100644 --- a/docs/resources/networkmanager_device.md +++ b/docs/resources/networkmanager_device.md @@ -61,7 +61,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/networkmanager_global_network.md b/docs/resources/networkmanager_global_network.md index d001238e38..7d6d9cbd5b 100644 --- a/docs/resources/networkmanager_global_network.md +++ b/docs/resources/networkmanager_global_network.md @@ -43,7 +43,7 @@ resource "awscc_networkmanager_global_network" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/networkmanager_link.md b/docs/resources/networkmanager_link.md index aa83d1fe3e..b17a971a1a 100644 --- a/docs/resources/networkmanager_link.md +++ b/docs/resources/networkmanager_link.md @@ -48,7 +48,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/networkmanager_site.md b/docs/resources/networkmanager_site.md index 2e4f806812..5b6349d897 100644 --- a/docs/resources/networkmanager_site.md +++ b/docs/resources/networkmanager_site.md @@ -74,7 +74,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/networkmanager_site_to_site_vpn_attachment.md b/docs/resources/networkmanager_site_to_site_vpn_attachment.md index d5aecd0bd3..858b9b2e0d 100644 --- a/docs/resources/networkmanager_site_to_site_vpn_attachment.md +++ b/docs/resources/networkmanager_site_to_site_vpn_attachment.md @@ -54,7 +54,7 @@ Optional: ### Nested Schema for `proposed_network_function_group_change.tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. @@ -73,7 +73,7 @@ Optional: ### Nested Schema for `proposed_segment_change.tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. @@ -83,7 +83,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/networkmanager_transit_gateway_peering.md b/docs/resources/networkmanager_transit_gateway_peering.md index 365f17d657..57b618608a 100644 --- a/docs/resources/networkmanager_transit_gateway_peering.md +++ b/docs/resources/networkmanager_transit_gateway_peering.md @@ -81,7 +81,7 @@ resource "awscc_networkmanager_transit_gateway_peering" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/networkmanager_transit_gateway_route_table_attachment.md b/docs/resources/networkmanager_transit_gateway_route_table_attachment.md index 7c5a148055..764a2ad0fb 100644 --- a/docs/resources/networkmanager_transit_gateway_route_table_attachment.md +++ b/docs/resources/networkmanager_transit_gateway_route_table_attachment.md @@ -55,7 +55,7 @@ Optional: ### Nested Schema for `proposed_network_function_group_change.tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. @@ -74,7 +74,7 @@ Optional: ### Nested Schema for `proposed_segment_change.tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. @@ -84,7 +84,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/networkmanager_vpc_attachment.md b/docs/resources/networkmanager_vpc_attachment.md index 6a45a8f88b..e1167e657b 100644 --- a/docs/resources/networkmanager_vpc_attachment.md +++ b/docs/resources/networkmanager_vpc_attachment.md @@ -65,7 +65,7 @@ Optional: ### Nested Schema for `proposed_network_function_group_change.tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. @@ -84,7 +84,7 @@ Optional: ### Nested Schema for `proposed_segment_change.tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. @@ -94,7 +94,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/nimblestudio_launch_profile.md b/docs/resources/nimblestudio_launch_profile.md index ea002e506c..00f8a92695 100644 --- a/docs/resources/nimblestudio_launch_profile.md +++ b/docs/resources/nimblestudio_launch_profile.md @@ -93,13 +93,10 @@ Optional: ### Nested Schema for `stream_configuration.session_storage` -Required: +Optional: - `mode` (List of String)

Allows artists to upload files to their workstations. The only valid option is UPLOAD.

- -Optional: - - `root` (Attributes)

The upload storage root location (folder) on streaming workstations where files are uploaded.

(see [below for nested schema](#nestedatt--stream_configuration--session_storage--root)) diff --git a/docs/resources/nimblestudio_studio.md b/docs/resources/nimblestudio_studio.md index 7bf20fbe79..84f4fd1713 100644 --- a/docs/resources/nimblestudio_studio.md +++ b/docs/resources/nimblestudio_studio.md @@ -38,13 +38,10 @@ Represents a studio that contains other Nimble Studio resources ### Nested Schema for `studio_encryption_configuration` -Required: - -- `key_type` (String)

The type of KMS key that is used to encrypt studio data.

- Optional: - `key_arn` (String)

The ARN for a KMS key that is used to encrypt studio data.

+- `key_type` (String)

The type of KMS key that is used to encrypt studio data.

## Import diff --git a/docs/resources/oam_link.md b/docs/resources/oam_link.md index b3d04e6377..762574b1df 100644 --- a/docs/resources/oam_link.md +++ b/docs/resources/oam_link.md @@ -57,7 +57,7 @@ Optional: ### Nested Schema for `link_configuration.log_group_configuration` -Required: +Optional: - `filter` (String) @@ -65,7 +65,7 @@ Required: ### Nested Schema for `link_configuration.metric_configuration` -Required: +Optional: - `filter` (String) diff --git a/docs/resources/omics_reference_store.md b/docs/resources/omics_reference_store.md index 7055531298..ce168132f7 100644 --- a/docs/resources/omics_reference_store.md +++ b/docs/resources/omics_reference_store.md @@ -35,13 +35,10 @@ Definition of AWS::Omics::ReferenceStore Resource Type ### Nested Schema for `sse_config` -Required: - -- `type` (String) - Optional: - `key_arn` (String) An encryption key ARN. +- `type` (String) ## Import diff --git a/docs/resources/omics_sequence_store.md b/docs/resources/omics_sequence_store.md index 0c8d60567a..994da32c8e 100644 --- a/docs/resources/omics_sequence_store.md +++ b/docs/resources/omics_sequence_store.md @@ -73,13 +73,10 @@ resource "awscc_omics_sequence_store" "example" { ### Nested Schema for `sse_config` -Required: - -- `type` (String) - Optional: - `key_arn` (String) An encryption key ARN. +- `type` (String) ## Import diff --git a/docs/resources/omics_variant_store.md b/docs/resources/omics_variant_store.md index 98b338238c..eb28a76f92 100644 --- a/docs/resources/omics_variant_store.md +++ b/docs/resources/omics_variant_store.md @@ -48,13 +48,10 @@ Required: ### Nested Schema for `sse_config` -Required: - -- `type` (String) - Optional: - `key_arn` (String) +- `type` (String) ## Import diff --git a/docs/resources/opensearchserverless_collection.md b/docs/resources/opensearchserverless_collection.md index 4effe15702..741452b236 100644 --- a/docs/resources/opensearchserverless_collection.md +++ b/docs/resources/opensearchserverless_collection.md @@ -71,7 +71,7 @@ Contains between 3 and 32 characters ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key in the key-value pair - `value` (String) The value in the key-value pair diff --git a/docs/resources/opensearchserverless_security_config.md b/docs/resources/opensearchserverless_security_config.md index 08b1759144..68c115c11a 100644 --- a/docs/resources/opensearchserverless_security_config.md +++ b/docs/resources/opensearchserverless_security_config.md @@ -60,13 +60,10 @@ resource "awscc_opensearchserverless_security_config" "config" { ### Nested Schema for `saml_options` -Required: - -- `metadata` (String) The XML saml provider metadata document that you want to use - Optional: - `group_attribute` (String) Group attribute for this saml integration +- `metadata` (String) The XML saml provider metadata document that you want to use - `session_timeout` (Number) Defines the session timeout in minutes - `user_attribute` (String) Custom attribute for this saml integration diff --git a/docs/resources/opensearchservice_domain.md b/docs/resources/opensearchservice_domain.md index 6e9cca6b86..45778badb3 100644 --- a/docs/resources/opensearchservice_domain.md +++ b/docs/resources/opensearchservice_domain.md @@ -101,7 +101,7 @@ Optional: ### Nested Schema for `advanced_security_options.saml_options.idp` -Required: +Optional: - `entity_id` (String) - `metadata_content` (String) @@ -223,7 +223,7 @@ Optional: ### Nested Schema for `off_peak_window_options.off_peak_window.window_start_time` -Required: +Optional: - `hours` (Number) - `minutes` (Number) @@ -250,7 +250,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The value of the tag. - `value` (String) The key of the tag. diff --git a/docs/resources/opsworkscm_server.md b/docs/resources/opsworkscm_server.md index e7a090d177..de27297bf4 100644 --- a/docs/resources/opsworkscm_server.md +++ b/docs/resources/opsworkscm_server.md @@ -60,7 +60,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/organizations_account.md b/docs/resources/organizations_account.md index e830cbc493..3fe0bf672b 100644 --- a/docs/resources/organizations_account.md +++ b/docs/resources/organizations_account.md @@ -38,7 +38,7 @@ You can use AWS::Organizations::Account to manage accounts in organization. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key identifier, or name, of the tag. - `value` (String) The string value that's associated with the key of the tag. You can set the value of a tag to an empty string, but you can't set the value of a tag to null. diff --git a/docs/resources/organizations_organizational_unit.md b/docs/resources/organizations_organizational_unit.md index 79c77b7256..67e7cba3f3 100644 --- a/docs/resources/organizations_organizational_unit.md +++ b/docs/resources/organizations_organizational_unit.md @@ -57,7 +57,7 @@ resource "awscc_organizations_organizational_unit" "level_2_ou" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key identifier, or name, of the tag. - `value` (String) The string value that's associated with the key of the tag. You can set the value of a tag to an empty string, but you can't set the value of a tag to null. diff --git a/docs/resources/organizations_policy.md b/docs/resources/organizations_policy.md index 03db7bb8e4..fdbbde3ab3 100644 --- a/docs/resources/organizations_policy.md +++ b/docs/resources/organizations_policy.md @@ -37,7 +37,7 @@ Policies in AWS Organizations enable you to manage different features of the AWS ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key identifier, or name, of the tag. - `value` (String) The string value that's associated with the key of the tag. You can set the value of a tag to an empty string, but you can't set the value of a tag to null. diff --git a/docs/resources/organizations_resource_policy.md b/docs/resources/organizations_resource_policy.md index 18a2da61a3..1b2e3ab0f5 100644 --- a/docs/resources/organizations_resource_policy.md +++ b/docs/resources/organizations_resource_policy.md @@ -32,7 +32,7 @@ You can use AWS::Organizations::ResourcePolicy to delegate policy management for ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key identifier, or name, of the tag. - `value` (String) The string value that's associated with the key of the tag. You can set the value of a tag to an empty string, but you can't set the value of a tag to null. diff --git a/docs/resources/osis_pipeline.md b/docs/resources/osis_pipeline.md index 4db0e8674c..40ae3dbde4 100644 --- a/docs/resources/osis_pipeline.md +++ b/docs/resources/osis_pipeline.md @@ -73,7 +73,7 @@ resource "awscc_osis_pipeline" "example_pipeline" { ### Nested Schema for `buffer_options` -Required: +Optional: - `persistent_buffer_enabled` (Boolean) Whether persistent buffering should be enabled. @@ -81,7 +81,7 @@ Required: ### Nested Schema for `encryption_at_rest_options` -Required: +Optional: - `kms_key_arn` (String) The KMS key to use for encrypting data. By default an AWS owned key is used @@ -97,7 +97,7 @@ Optional: ### Nested Schema for `log_publishing_options.cloudwatch_log_destination` -Required: +Optional: - `log_group` (String) @@ -106,7 +106,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. @@ -115,20 +115,17 @@ Required: ### Nested Schema for `vpc_options` -Required: - -- `subnet_ids` (List of String) A list of subnet IDs associated with the VPC endpoint. - Optional: - `security_group_ids` (List of String) A list of security groups associated with the VPC endpoint. +- `subnet_ids` (List of String) A list of subnet IDs associated with the VPC endpoint. - `vpc_attachment_options` (Attributes) Options for attaching a VPC to the pipeline. (see [below for nested schema](#nestedatt--vpc_options--vpc_attachment_options)) - `vpc_endpoint_management` (String) Defines whether you or Amazon OpenSearch Ingestion service create and manage the VPC endpoint configured for the pipeline. ### Nested Schema for `vpc_options.vpc_attachment_options` -Required: +Optional: - `attach_to_vpc` (Boolean) Whether the pipeline should be attached to the provided VPC - `cidr_block` (String) The CIDR block to be reserved for OpenSearch Ingestion to create elastic network interfaces (ENIs). diff --git a/docs/resources/panorama_application_instance.md b/docs/resources/panorama_application_instance.md index 876dc93842..542fad4190 100644 --- a/docs/resources/panorama_application_instance.md +++ b/docs/resources/panorama_application_instance.md @@ -60,7 +60,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/panorama_package.md b/docs/resources/panorama_package.md index 03d2697916..fd41a2b23b 100644 --- a/docs/resources/panorama_package.md +++ b/docs/resources/panorama_package.md @@ -46,7 +46,7 @@ Read-Only: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/paymentcryptography_key.md b/docs/resources/paymentcryptography_key.md index 906d87ba18..4aa4e032ab 100644 --- a/docs/resources/paymentcryptography_key.md +++ b/docs/resources/paymentcryptography_key.md @@ -162,7 +162,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/pcaconnectorad_template.md b/docs/resources/pcaconnectorad_template.md index c74b26f501..94ff5cb6da 100644 --- a/docs/resources/pcaconnectorad_template.md +++ b/docs/resources/pcaconnectorad_template.md @@ -43,7 +43,7 @@ Optional: ### Nested Schema for `definition.template_v2` -Required: +Optional: - `certificate_validity` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v2--certificate_validity)) - `enrollment_flags` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v2--enrollment_flags)) @@ -52,15 +52,12 @@ Required: - `private_key_attributes` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v2--private_key_attributes)) - `private_key_flags` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v2--private_key_flags)) - `subject_name_flags` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v2--subject_name_flags)) - -Optional: - - `superseded_templates` (List of String) ### Nested Schema for `definition.template_v2.certificate_validity` -Required: +Optional: - `renewal_period` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v2--certificate_validity--renewal_period)) - `validity_period` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v2--certificate_validity--validity_period)) @@ -68,7 +65,7 @@ Required: ### Nested Schema for `definition.template_v2.certificate_validity.renewal_period` -Required: +Optional: - `period` (Number) - `period_type` (String) @@ -77,7 +74,7 @@ Required: ### Nested Schema for `definition.template_v2.certificate_validity.validity_period` -Required: +Optional: - `period` (Number) - `period_type` (String) @@ -99,56 +96,47 @@ Optional: ### Nested Schema for `definition.template_v2.extensions` -Required: - -- `key_usage` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v2--extensions--key_usage)) - Optional: - `application_policies` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v2--extensions--application_policies)) +- `key_usage` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v2--extensions--key_usage)) - -### Nested Schema for `definition.template_v2.extensions.key_usage` - -Required: - -- `usage_flags` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v2--extensions--key_usage--usage_flags)) + +### Nested Schema for `definition.template_v2.extensions.application_policies` Optional: - `critical` (Boolean) +- `policies` (Attributes List) (see [below for nested schema](#nestedatt--definition--template_v2--extensions--application_policies--policies)) - -### Nested Schema for `definition.template_v2.extensions.key_usage.usage_flags` + +### Nested Schema for `definition.template_v2.extensions.application_policies.policies` Optional: -- `data_encipherment` (Boolean) -- `digital_signature` (Boolean) -- `key_agreement` (Boolean) -- `key_encipherment` (Boolean) -- `non_repudiation` (Boolean) - - +- `policy_object_identifier` (String) +- `policy_type` (String) - -### Nested Schema for `definition.template_v2.extensions.application_policies` -Required: -- `policies` (Attributes List) (see [below for nested schema](#nestedatt--definition--template_v2--extensions--application_policies--policies)) + +### Nested Schema for `definition.template_v2.extensions.key_usage` Optional: - `critical` (Boolean) +- `usage_flags` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v2--extensions--key_usage--usage_flags)) - -### Nested Schema for `definition.template_v2.extensions.application_policies.policies` + +### Nested Schema for `definition.template_v2.extensions.key_usage.usage_flags` Optional: -- `policy_object_identifier` (String) -- `policy_type` (String) +- `data_encipherment` (Boolean) +- `digital_signature` (Boolean) +- `key_agreement` (Boolean) +- `key_encipherment` (Boolean) +- `non_repudiation` (Boolean) @@ -165,25 +153,19 @@ Optional: ### Nested Schema for `definition.template_v2.private_key_attributes` -Required: - -- `key_spec` (String) -- `minimal_key_length` (Number) - Optional: - `crypto_providers` (List of String) +- `key_spec` (String) +- `minimal_key_length` (Number) ### Nested Schema for `definition.template_v2.private_key_flags` -Required: - -- `client_version` (String) - Optional: +- `client_version` (String) - `exportable_key` (Boolean) - `strong_key_protection_required` (Boolean) @@ -209,7 +191,7 @@ Optional: ### Nested Schema for `definition.template_v3` -Required: +Optional: - `certificate_validity` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v3--certificate_validity)) - `enrollment_flags` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v3--enrollment_flags)) @@ -219,15 +201,12 @@ Required: - `private_key_attributes` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v3--private_key_attributes)) - `private_key_flags` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v3--private_key_flags)) - `subject_name_flags` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v3--subject_name_flags)) - -Optional: - - `superseded_templates` (List of String) ### Nested Schema for `definition.template_v3.certificate_validity` -Required: +Optional: - `renewal_period` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v3--certificate_validity--renewal_period)) - `validity_period` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v3--certificate_validity--validity_period)) @@ -235,7 +214,7 @@ Required: ### Nested Schema for `definition.template_v3.certificate_validity.renewal_period` -Required: +Optional: - `period` (Number) - `period_type` (String) @@ -244,7 +223,7 @@ Required: ### Nested Schema for `definition.template_v3.certificate_validity.validity_period` -Required: +Optional: - `period` (Number) - `period_type` (String) @@ -266,56 +245,47 @@ Optional: ### Nested Schema for `definition.template_v3.extensions` -Required: - -- `key_usage` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v3--extensions--key_usage)) - Optional: - `application_policies` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v3--extensions--application_policies)) +- `key_usage` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v3--extensions--key_usage)) - -### Nested Schema for `definition.template_v3.extensions.key_usage` - -Required: - -- `usage_flags` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v3--extensions--key_usage--usage_flags)) + +### Nested Schema for `definition.template_v3.extensions.application_policies` Optional: - `critical` (Boolean) +- `policies` (Attributes List) (see [below for nested schema](#nestedatt--definition--template_v3--extensions--application_policies--policies)) - -### Nested Schema for `definition.template_v3.extensions.key_usage.usage_flags` + +### Nested Schema for `definition.template_v3.extensions.application_policies.policies` Optional: -- `data_encipherment` (Boolean) -- `digital_signature` (Boolean) -- `key_agreement` (Boolean) -- `key_encipherment` (Boolean) -- `non_repudiation` (Boolean) - - +- `policy_object_identifier` (String) +- `policy_type` (String) - -### Nested Schema for `definition.template_v3.extensions.application_policies` -Required: -- `policies` (Attributes List) (see [below for nested schema](#nestedatt--definition--template_v3--extensions--application_policies--policies)) + +### Nested Schema for `definition.template_v3.extensions.key_usage` Optional: - `critical` (Boolean) +- `usage_flags` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v3--extensions--key_usage--usage_flags)) - -### Nested Schema for `definition.template_v3.extensions.application_policies.policies` + +### Nested Schema for `definition.template_v3.extensions.key_usage.usage_flags` Optional: -- `policy_object_identifier` (String) -- `policy_type` (String) +- `data_encipherment` (Boolean) +- `digital_signature` (Boolean) +- `key_agreement` (Boolean) +- `key_encipherment` (Boolean) +- `non_repudiation` (Boolean) @@ -332,17 +302,14 @@ Optional: ### Nested Schema for `definition.template_v3.private_key_attributes` -Required: +Optional: - `algorithm` (String) +- `crypto_providers` (List of String) - `key_spec` (String) - `key_usage_property` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v3--private_key_attributes--key_usage_property)) - `minimal_key_length` (Number) -Optional: - -- `crypto_providers` (List of String) - ### Nested Schema for `definition.template_v3.private_key_attributes.key_usage_property` @@ -366,12 +333,9 @@ Optional: ### Nested Schema for `definition.template_v3.private_key_flags` -Required: - -- `client_version` (String) - Optional: +- `client_version` (String) - `exportable_key` (Boolean) - `require_alternate_signature_algorithm` (Boolean) - `strong_key_protection_required` (Boolean) @@ -398,25 +362,22 @@ Optional: ### Nested Schema for `definition.template_v4` -Required: +Optional: - `certificate_validity` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v4--certificate_validity)) - `enrollment_flags` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v4--enrollment_flags)) - `extensions` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v4--extensions)) - `general_flags` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v4--general_flags)) +- `hash_algorithm` (String) - `private_key_attributes` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v4--private_key_attributes)) - `private_key_flags` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v4--private_key_flags)) - `subject_name_flags` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v4--subject_name_flags)) - -Optional: - -- `hash_algorithm` (String) - `superseded_templates` (List of String) ### Nested Schema for `definition.template_v4.certificate_validity` -Required: +Optional: - `renewal_period` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v4--certificate_validity--renewal_period)) - `validity_period` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v4--certificate_validity--validity_period)) @@ -424,7 +385,7 @@ Required: ### Nested Schema for `definition.template_v4.certificate_validity.renewal_period` -Required: +Optional: - `period` (Number) - `period_type` (String) @@ -433,7 +394,7 @@ Required: ### Nested Schema for `definition.template_v4.certificate_validity.validity_period` -Required: +Optional: - `period` (Number) - `period_type` (String) @@ -455,56 +416,47 @@ Optional: ### Nested Schema for `definition.template_v4.extensions` -Required: - -- `key_usage` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v4--extensions--key_usage)) - Optional: - `application_policies` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v4--extensions--application_policies)) +- `key_usage` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v4--extensions--key_usage)) - -### Nested Schema for `definition.template_v4.extensions.key_usage` - -Required: - -- `usage_flags` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v4--extensions--key_usage--usage_flags)) + +### Nested Schema for `definition.template_v4.extensions.application_policies` Optional: - `critical` (Boolean) +- `policies` (Attributes List) (see [below for nested schema](#nestedatt--definition--template_v4--extensions--application_policies--policies)) - -### Nested Schema for `definition.template_v4.extensions.key_usage.usage_flags` + +### Nested Schema for `definition.template_v4.extensions.application_policies.policies` Optional: -- `data_encipherment` (Boolean) -- `digital_signature` (Boolean) -- `key_agreement` (Boolean) -- `key_encipherment` (Boolean) -- `non_repudiation` (Boolean) - +- `policy_object_identifier` (String) +- `policy_type` (String) - -### Nested Schema for `definition.template_v4.extensions.application_policies` - -Required: -- `policies` (Attributes List) (see [below for nested schema](#nestedatt--definition--template_v4--extensions--application_policies--policies)) + +### Nested Schema for `definition.template_v4.extensions.key_usage` Optional: - `critical` (Boolean) +- `usage_flags` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v4--extensions--key_usage--usage_flags)) - -### Nested Schema for `definition.template_v4.extensions.application_policies.policies` + +### Nested Schema for `definition.template_v4.extensions.key_usage.usage_flags` Optional: -- `policy_object_identifier` (String) -- `policy_type` (String) +- `data_encipherment` (Boolean) +- `digital_signature` (Boolean) +- `key_agreement` (Boolean) +- `key_encipherment` (Boolean) +- `non_repudiation` (Boolean) @@ -521,16 +473,13 @@ Optional: ### Nested Schema for `definition.template_v4.private_key_attributes` -Required: - -- `key_spec` (String) -- `minimal_key_length` (Number) - Optional: - `algorithm` (String) - `crypto_providers` (List of String) +- `key_spec` (String) - `key_usage_property` (Attributes) (see [below for nested schema](#nestedatt--definition--template_v4--private_key_attributes--key_usage_property)) +- `minimal_key_length` (Number) ### Nested Schema for `definition.template_v4.private_key_attributes.key_usage_property` @@ -555,12 +504,9 @@ Optional: ### Nested Schema for `definition.template_v4.private_key_flags` -Required: - -- `client_version` (String) - Optional: +- `client_version` (String) - `exportable_key` (Boolean) - `require_alternate_signature_algorithm` (Boolean) - `require_same_key_renewal` (Boolean) diff --git a/docs/resources/pcaconnectorscep_connector.md b/docs/resources/pcaconnectorscep_connector.md index 05ff8d24a6..711a28254d 100644 --- a/docs/resources/pcaconnectorscep_connector.md +++ b/docs/resources/pcaconnectorscep_connector.md @@ -42,7 +42,7 @@ Optional: ### Nested Schema for `mobile_device_management.intune` -Required: +Optional: - `azure_application_id` (String) - `domain` (String) diff --git a/docs/resources/pipes_pipe.md b/docs/resources/pipes_pipe.md index 8abbb83d92..e2c8b25031 100644 --- a/docs/resources/pipes_pipe.md +++ b/docs/resources/pipes_pipe.md @@ -276,15 +276,12 @@ Optional: ### Nested Schema for `source_parameters.active_mq_broker_parameters` -Required: - -- `credentials` (Attributes) (see [below for nested schema](#nestedatt--source_parameters--active_mq_broker_parameters--credentials)) -- `queue_name` (String) - Optional: - `batch_size` (Number) +- `credentials` (Attributes) (see [below for nested schema](#nestedatt--source_parameters--active_mq_broker_parameters--credentials)) - `maximum_batching_window_in_seconds` (Number) +- `queue_name` (String) ### Nested Schema for `source_parameters.active_mq_broker_parameters.credentials` @@ -298,10 +295,6 @@ Optional: ### Nested Schema for `source_parameters.dynamo_db_stream_parameters` -Required: - -- `starting_position` (String) - Optional: - `batch_size` (Number) @@ -311,6 +304,7 @@ Optional: - `maximum_retry_attempts` (Number) - `on_partial_batch_item_failure` (String) - `parallelization_factor` (Number) +- `starting_position` (String) ### Nested Schema for `source_parameters.dynamo_db_stream_parameters.dead_letter_config` @@ -340,10 +334,6 @@ Optional: ### Nested Schema for `source_parameters.kinesis_stream_parameters` -Required: - -- `starting_position` (String) - Optional: - `batch_size` (Number) @@ -353,6 +343,7 @@ Optional: - `maximum_retry_attempts` (Number) - `on_partial_batch_item_failure` (String) - `parallelization_factor` (Number) +- `starting_position` (String) - `starting_position_timestamp` (String) @@ -367,10 +358,6 @@ Optional: ### Nested Schema for `source_parameters.managed_streaming_kafka_parameters` -Required: - -- `topic_name` (String) - Optional: - `batch_size` (Number) @@ -378,6 +365,7 @@ Optional: - `credentials` (Attributes) (see [below for nested schema](#nestedatt--source_parameters--managed_streaming_kafka_parameters--credentials)) - `maximum_batching_window_in_seconds` (Number) - `starting_position` (String) +- `topic_name` (String) ### Nested Schema for `source_parameters.managed_streaming_kafka_parameters.credentials` @@ -392,15 +380,12 @@ Optional: ### Nested Schema for `source_parameters.rabbit_mq_broker_parameters` -Required: - -- `credentials` (Attributes) (see [below for nested schema](#nestedatt--source_parameters--rabbit_mq_broker_parameters--credentials)) -- `queue_name` (String) - Optional: - `batch_size` (Number) +- `credentials` (Attributes) (see [below for nested schema](#nestedatt--source_parameters--rabbit_mq_broker_parameters--credentials)) - `maximum_batching_window_in_seconds` (Number) +- `queue_name` (String) - `virtual_host` (String) @@ -415,10 +400,6 @@ Optional: ### Nested Schema for `source_parameters.self_managed_kafka_parameters` -Required: - -- `topic_name` (String) - Optional: - `additional_bootstrap_servers` (List of String) @@ -428,6 +409,7 @@ Optional: - `maximum_batching_window_in_seconds` (Number) - `server_root_ca_certificate` (String) Optional SecretManager ARN which stores the database credentials - `starting_position` (String) +- `topic_name` (String) - `vpc` (Attributes) (see [below for nested schema](#nestedatt--source_parameters--self_managed_kafka_parameters--vpc)) @@ -483,16 +465,13 @@ Optional: ### Nested Schema for `target_parameters.batch_job_parameters` -Required: - -- `job_definition` (String) -- `job_name` (String) - Optional: - `array_properties` (Attributes) (see [below for nested schema](#nestedatt--target_parameters--batch_job_parameters--array_properties)) - `container_overrides` (Attributes) (see [below for nested schema](#nestedatt--target_parameters--batch_job_parameters--container_overrides)) - `depends_on` (Attributes List) (see [below for nested schema](#nestedatt--target_parameters--batch_job_parameters--depends_on)) +- `job_definition` (String) +- `job_name` (String) - `parameters` (Map of String) - `retry_strategy` (Attributes) (see [below for nested schema](#nestedatt--target_parameters--batch_job_parameters--retry_strategy)) @@ -526,7 +505,7 @@ Optional: ### Nested Schema for `target_parameters.batch_job_parameters.container_overrides.resource_requirements` -Required: +Optional: - `type` (String) - `value` (String) @@ -563,10 +542,6 @@ Optional: ### Nested Schema for `target_parameters.ecs_task_parameters` -Required: - -- `task_definition_arn` (String) - Optional: - `capacity_provider_strategy` (Attributes List) (see [below for nested schema](#nestedatt--target_parameters--ecs_task_parameters--capacity_provider_strategy)) @@ -583,17 +558,15 @@ Optional: - `reference_id` (String) - `tags` (Attributes List) (see [below for nested schema](#nestedatt--target_parameters--ecs_task_parameters--tags)) - `task_count` (Number) +- `task_definition_arn` (String) ### Nested Schema for `target_parameters.ecs_task_parameters.capacity_provider_strategy` -Required: - -- `capacity_provider` (String) - Optional: - `base` (Number) +- `capacity_provider` (String) - `weight` (Number) @@ -607,14 +580,11 @@ Optional: ### Nested Schema for `target_parameters.ecs_task_parameters.network_configuration.awsvpc_configuration` -Required: - -- `subnets` (List of String) - Optional: - `assign_public_ip` (String) - `security_groups` (List of String) +- `subnets` (List of String) @@ -657,7 +627,7 @@ Optional: ### Nested Schema for `target_parameters.ecs_task_parameters.overrides.container_overrides.environment_files` -Required: +Optional: - `type` (String) - `value` (String) @@ -666,7 +636,7 @@ Required: ### Nested Schema for `target_parameters.ecs_task_parameters.overrides.container_overrides.resource_requirements` -Required: +Optional: - `type` (String) - `value` (String) @@ -712,7 +682,7 @@ Optional: ### Nested Schema for `target_parameters.ecs_task_parameters.tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -744,7 +714,7 @@ Optional: ### Nested Schema for `target_parameters.kinesis_stream_parameters` -Required: +Optional: - `partition_key` (String) @@ -760,15 +730,12 @@ Optional: ### Nested Schema for `target_parameters.redshift_data_parameters` -Required: - -- `database` (String) Redshift Database -- `sqls` (List of String) A list of SQLs. - Optional: +- `database` (String) Redshift Database - `db_user` (String) Database user name - `secret_manager_arn` (String) Optional SecretManager ARN which stores the database credentials +- `sqls` (List of String) A list of SQLs. - `statement_name` (String) A name for Redshift DataAPI statement which can be used as filter of ListStatement. - `with_event` (Boolean) @@ -783,7 +750,7 @@ Optional: ### Nested Schema for `target_parameters.sage_maker_pipeline_parameters.pipeline_parameter_list` -Required: +Optional: - `name` (String) - `value` (String) @@ -810,24 +777,21 @@ Optional: ### Nested Schema for `target_parameters.timestream_parameters` -Required: - -- `dimension_mappings` (Attributes List) (see [below for nested schema](#nestedatt--target_parameters--timestream_parameters--dimension_mappings)) -- `time_value` (String) -- `version_value` (String) - Optional: +- `dimension_mappings` (Attributes List) (see [below for nested schema](#nestedatt--target_parameters--timestream_parameters--dimension_mappings)) - `epoch_time_unit` (String) - `multi_measure_mappings` (Attributes List) (see [below for nested schema](#nestedatt--target_parameters--timestream_parameters--multi_measure_mappings)) - `single_measure_mappings` (Attributes List) (see [below for nested schema](#nestedatt--target_parameters--timestream_parameters--single_measure_mappings)) - `time_field_type` (String) +- `time_value` (String) - `timestamp_format` (String) +- `version_value` (String) ### Nested Schema for `target_parameters.timestream_parameters.dimension_mappings` -Required: +Optional: - `dimension_name` (String) - `dimension_value` (String) @@ -837,7 +801,7 @@ Required: ### Nested Schema for `target_parameters.timestream_parameters.multi_measure_mappings` -Required: +Optional: - `multi_measure_attribute_mappings` (Attributes List) (see [below for nested schema](#nestedatt--target_parameters--timestream_parameters--multi_measure_mappings--multi_measure_attribute_mappings)) - `multi_measure_name` (String) @@ -845,7 +809,7 @@ Required: ### Nested Schema for `target_parameters.timestream_parameters.multi_measure_mappings.multi_measure_attribute_mappings` -Required: +Optional: - `measure_value` (String) - `measure_value_type` (String) @@ -856,7 +820,7 @@ Required: ### Nested Schema for `target_parameters.timestream_parameters.single_measure_mappings` -Required: +Optional: - `measure_name` (String) - `measure_value` (String) diff --git a/docs/resources/proton_environment_account_connection.md b/docs/resources/proton_environment_account_connection.md index ff697eebc3..f1cfd6ff1f 100644 --- a/docs/resources/proton_environment_account_connection.md +++ b/docs/resources/proton_environment_account_connection.md @@ -37,7 +37,7 @@ Resource Schema describing various properties for AWS Proton Environment Account ### Nested Schema for `tags` -Required: +Optional: - `key` (String)

The key of the resource tag.

- `value` (String)

The value of the resource tag.

diff --git a/docs/resources/proton_environment_template.md b/docs/resources/proton_environment_template.md index cbf2630f6a..f3dbde58c7 100644 --- a/docs/resources/proton_environment_template.md +++ b/docs/resources/proton_environment_template.md @@ -34,7 +34,7 @@ Definition of AWS::Proton::EnvironmentTemplate Resource Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String)

The key of the resource tag.

- `value` (String)

The value of the resource tag.

diff --git a/docs/resources/proton_service_template.md b/docs/resources/proton_service_template.md index fbec7918f8..5848aa003f 100644 --- a/docs/resources/proton_service_template.md +++ b/docs/resources/proton_service_template.md @@ -34,7 +34,7 @@ Definition of AWS::Proton::ServiceTemplate Resource Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String)

The key of the resource tag.

- `value` (String)

The value of the resource tag.

diff --git a/docs/resources/qbusiness_application.md b/docs/resources/qbusiness_application.md index 9f4968592f..1c59627ce7 100644 --- a/docs/resources/qbusiness_application.md +++ b/docs/resources/qbusiness_application.md @@ -67,7 +67,7 @@ data "aws_ssoadmin_instances" "example" {} ### Nested Schema for `attachments_configuration` -Required: +Optional: - `attachments_control_mode` (String) @@ -75,12 +75,9 @@ Required: ### Nested Schema for `auto_subscription_configuration` -Required: - -- `auto_subscribe` (String) - Optional: +- `auto_subscribe` (String) - `default_subscription_type` (String) @@ -95,7 +92,7 @@ Optional: ### Nested Schema for `personalization_configuration` -Required: +Optional: - `personalization_control_mode` (String) @@ -103,7 +100,7 @@ Required: ### Nested Schema for `q_apps_configuration` -Required: +Optional: - `q_apps_control_mode` (String) @@ -111,7 +108,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/qbusiness_data_source.md b/docs/resources/qbusiness_data_source.md index daa159a2f0..c4c2b45c8e 100644 --- a/docs/resources/qbusiness_data_source.md +++ b/docs/resources/qbusiness_data_source.md @@ -183,13 +183,10 @@ Optional: ### Nested Schema for `document_enrichment_configuration.inline_configurations.condition` -Required: +Optional: - `key` (String) - `operator` (String) - -Optional: - - `value` (Attributes) (see [below for nested schema](#nestedatt--document_enrichment_configuration--inline_configurations--condition--value)) @@ -207,13 +204,10 @@ Optional: ### Nested Schema for `document_enrichment_configuration.inline_configurations.target` -Required: - -- `key` (String) - Optional: - `attribute_value_operator` (String) +- `key` (String) - `value` (Attributes) (see [below for nested schema](#nestedatt--document_enrichment_configuration--inline_configurations--target--value)) @@ -242,13 +236,10 @@ Optional: ### Nested Schema for `document_enrichment_configuration.post_extraction_hook_configuration.invocation_condition` -Required: +Optional: - `key` (String) - `operator` (String) - -Optional: - - `value` (Attributes) (see [below for nested schema](#nestedatt--document_enrichment_configuration--post_extraction_hook_configuration--invocation_condition--value)) @@ -277,13 +268,10 @@ Optional: ### Nested Schema for `document_enrichment_configuration.pre_extraction_hook_configuration.invocation_condition` -Required: +Optional: - `key` (String) - `operator` (String) - -Optional: - - `value` (Attributes) (see [below for nested schema](#nestedatt--document_enrichment_configuration--pre_extraction_hook_configuration--invocation_condition--value)) @@ -303,7 +291,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -312,7 +300,7 @@ Required: ### Nested Schema for `vpc_configuration` -Required: +Optional: - `security_group_ids` (List of String) - `subnet_ids` (List of String) diff --git a/docs/resources/qbusiness_index.md b/docs/resources/qbusiness_index.md index 48dcefcef0..eaaab4ed2f 100644 --- a/docs/resources/qbusiness_index.md +++ b/docs/resources/qbusiness_index.md @@ -78,7 +78,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/qbusiness_plugin.md b/docs/resources/qbusiness_plugin.md index 00b3aeaa8c..7b79b8b2fa 100644 --- a/docs/resources/qbusiness_plugin.md +++ b/docs/resources/qbusiness_plugin.md @@ -50,7 +50,7 @@ Optional: ### Nested Schema for `auth_configuration.basic_auth_configuration` -Required: +Optional: - `role_arn` (String) - `secret_arn` (String) @@ -59,7 +59,7 @@ Required: ### Nested Schema for `auth_configuration.o_auth_2_client_credential_configuration` -Required: +Optional: - `role_arn` (String) - `secret_arn` (String) @@ -69,7 +69,7 @@ Required: ### Nested Schema for `custom_plugin_configuration` -Required: +Optional: - `api_schema` (Attributes) (see [below for nested schema](#nestedatt--custom_plugin_configuration--api_schema)) - `api_schema_type` (String) @@ -86,7 +86,7 @@ Optional: ### Nested Schema for `custom_plugin_configuration.api_schema.s3` -Required: +Optional: - `bucket` (String) - `key` (String) @@ -97,7 +97,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/qbusiness_retriever.md b/docs/resources/qbusiness_retriever.md index 30a640d94e..a682ed2693 100644 --- a/docs/resources/qbusiness_retriever.md +++ b/docs/resources/qbusiness_retriever.md @@ -67,7 +67,7 @@ Optional: ### Nested Schema for `configuration.kendra_index_configuration` -Required: +Optional: - `index_id` (String) @@ -75,7 +75,7 @@ Required: ### Nested Schema for `configuration.native_index_configuration` -Required: +Optional: - `index_id` (String) @@ -84,7 +84,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/qbusiness_web_experience.md b/docs/resources/qbusiness_web_experience.md index fe75330918..acb787ae00 100644 --- a/docs/resources/qbusiness_web_experience.md +++ b/docs/resources/qbusiness_web_experience.md @@ -130,7 +130,7 @@ Optional: ### Nested Schema for `identity_provider_configuration.open_id_connect_configuration` -Required: +Optional: - `secrets_arn` (String) - `secrets_role` (String) @@ -139,7 +139,7 @@ Required: ### Nested Schema for `identity_provider_configuration.saml_configuration` -Required: +Optional: - `authentication_url` (String) @@ -148,7 +148,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/qldb_stream.md b/docs/resources/qldb_stream.md index c93aaaca82..63d4518e81 100644 --- a/docs/resources/qldb_stream.md +++ b/docs/resources/qldb_stream.md @@ -46,7 +46,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/quicksight_analysis.md b/docs/resources/quicksight_analysis.md index 4180e9cbcf..4fd1a2f177 100644 --- a/docs/resources/quicksight_analysis.md +++ b/docs/resources/quicksight_analysis.md @@ -56,7 +56,7 @@ Optional: ### Nested Schema for `source_entity.source_template` -Required: +Optional: - `arn` (String)

The Amazon Resource Name (ARN) of the source template of an analysis.

- `data_set_references` (Attributes List)

The dataset references of the source template of an analysis.

(see [below for nested schema](#nestedatt--source_entity--source_template--data_set_references)) @@ -64,7 +64,7 @@ Required: ### Nested Schema for `source_entity.source_template.data_set_references` -Required: +Optional: - `data_set_arn` (String)

Dataset Amazon Resource Name (ARN).

- `data_set_placeholder` (String)

Dataset placeholder.

@@ -94,7 +94,7 @@ Optional: ### Nested Schema for `parameters.date_time_parameters` -Required: +Optional: - `name` (String)

A display name for the date-time parameter.

- `values` (List of String)

The values for the date-time parameter.

@@ -103,7 +103,7 @@ Required: ### Nested Schema for `parameters.decimal_parameters` -Required: +Optional: - `name` (String)

A display name for the decimal parameter.

- `values` (List of Number)

The values for the decimal parameter.

@@ -112,7 +112,7 @@ Required: ### Nested Schema for `parameters.integer_parameters` -Required: +Optional: - `name` (String)

The name of the integer parameter.

- `values` (List of Number)

The values for the integer parameter.

@@ -121,7 +121,7 @@ Required: ### Nested Schema for `parameters.string_parameters` -Required: +Optional: - `name` (String)

A display name for a string parameter.

- `values` (List of String)

The values of a string parameter.

@@ -131,7 +131,7 @@ Required: ### Nested Schema for `permissions` -Required: +Optional: - `actions` (List of String)

The IAM action to grant or revoke permissions on.

- `principal` (String)

The Amazon Resource Name (ARN) of the principal. This can be one of the @@ -154,7 +154,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String)

Tag key.

- `value` (String)

Tag value.

diff --git a/docs/resources/quicksight_dashboard.md b/docs/resources/quicksight_dashboard.md index f89843eb9c..de8ce3be74 100644 --- a/docs/resources/quicksight_dashboard.md +++ b/docs/resources/quicksight_dashboard.md @@ -58,7 +58,7 @@ Optional: ### Nested Schema for `source_entity.source_template` -Required: +Optional: - `arn` (String)

The Amazon Resource Name (ARN) of the resource.

- `data_set_references` (Attributes List)

Dataset references.

(see [below for nested schema](#nestedatt--source_entity--source_template--data_set_references)) @@ -66,7 +66,7 @@ Required: ### Nested Schema for `source_entity.source_template.data_set_references` -Required: +Optional: - `data_set_arn` (String)

Dataset Amazon Resource Name (ARN).

- `data_set_placeholder` (String)

Dataset placeholder.

@@ -121,7 +121,7 @@ Optional: ### Nested Schema for `parameters.date_time_parameters` -Required: +Optional: - `name` (String)

A display name for the date-time parameter.

- `values` (List of String)

The values for the date-time parameter.

@@ -130,7 +130,7 @@ Required: ### Nested Schema for `parameters.decimal_parameters` -Required: +Optional: - `name` (String)

A display name for the decimal parameter.

- `values` (List of Number)

The values for the decimal parameter.

@@ -139,7 +139,7 @@ Required: ### Nested Schema for `parameters.integer_parameters` -Required: +Optional: - `name` (String)

The name of the integer parameter.

- `values` (List of Number)

The values for the integer parameter.

@@ -148,7 +148,7 @@ Required: ### Nested Schema for `parameters.string_parameters` -Required: +Optional: - `name` (String)

A display name for a string parameter.

- `values` (List of String)

The values of a string parameter.

@@ -158,7 +158,7 @@ Required: ### Nested Schema for `permissions` -Required: +Optional: - `actions` (List of String)

The IAM action to grant or revoke permissions on.

- `principal` (String)

The Amazon Resource Name (ARN) of the principal. This can be one of the @@ -181,7 +181,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String)

Tag key.

- `value` (String)

Tag value.

diff --git a/docs/resources/quicksight_data_set.md b/docs/resources/quicksight_data_set.md index 865124cb27..b2ebf03533 100644 --- a/docs/resources/quicksight_data_set.md +++ b/docs/resources/quicksight_data_set.md @@ -53,14 +53,11 @@ Optional: ### Nested Schema for `column_groups.geo_spatial_column_group` -Required: - -- `columns` (List of String)

Columns in this hierarchy.

-- `name` (String)

A display name for the hierarchy.

- Optional: +- `columns` (List of String)

Columns in this hierarchy.

- `country_code` (String) +- `name` (String)

A display name for the hierarchy.

@@ -129,28 +126,25 @@ Optional: ### Nested Schema for `logical_table_map.data_transforms.cast_column_type_operation` -Required: - -- `column_name` (String)

Column name.

-- `new_column_type` (String) - Optional: +- `column_name` (String)

Column name.

- `format` (String)

When casting a column from string to datetime type, you can supply a string in a format supported by Amazon QuickSight to denote the source data format.

+- `new_column_type` (String) ### Nested Schema for `logical_table_map.data_transforms.create_columns_operation` -Required: +Optional: - `columns` (Attributes List)

Calculated columns to create.

(see [below for nested schema](#nestedatt--logical_table_map--data_transforms--create_columns_operation--columns)) ### Nested Schema for `logical_table_map.data_transforms.create_columns_operation.columns` -Required: +Optional: - `column_id` (String)

A unique ID to identify a calculated column. During a dataset update, if the column ID of a calculated column matches that of an existing calculated column, Amazon QuickSight @@ -163,7 +157,7 @@ Required: ### Nested Schema for `logical_table_map.data_transforms.filter_operation` -Required: +Optional: - `condition_expression` (String)

An expression that must evaluate to a Boolean value. Rows for which the expression evaluates to true are kept in the dataset.

@@ -172,7 +166,7 @@ Required: ### Nested Schema for `logical_table_map.data_transforms.project_operation` -Required: +Optional: - `projected_columns` (List of String)

Projected columns.

@@ -180,7 +174,7 @@ Required: ### Nested Schema for `logical_table_map.data_transforms.rename_column_operation` -Required: +Optional: - `column_name` (String)

The name of the column to be renamed.

- `new_column_name` (String)

The new name for the column.

@@ -189,7 +183,7 @@ Required: ### Nested Schema for `logical_table_map.data_transforms.tag_column_operation` -Required: +Optional: - `column_name` (String)

The column that this operation acts on.

- `tags` (Attributes List)

The dataset column tag, currently only used for geospatial type tagging. .

@@ -228,18 +222,15 @@ Optional: ### Nested Schema for `logical_table_map.source.join_instruction` -Required: +Optional: +- `left_join_key_properties` (Attributes) (see [below for nested schema](#nestedatt--logical_table_map--source--join_instruction--left_join_key_properties)) - `left_operand` (String)

Left operand.

- `on_clause` (String)

On Clause.

+- `right_join_key_properties` (Attributes) (see [below for nested schema](#nestedatt--logical_table_map--source--join_instruction--right_join_key_properties)) - `right_operand` (String)

Right operand.

- `type` (String) -Optional: - -- `left_join_key_properties` (Attributes) (see [below for nested schema](#nestedatt--logical_table_map--source--join_instruction--left_join_key_properties)) -- `right_join_key_properties` (Attributes) (see [below for nested schema](#nestedatt--logical_table_map--source--join_instruction--right_join_key_properties)) - ### Nested Schema for `logical_table_map.source.join_instruction.left_join_key_properties` @@ -262,7 +253,7 @@ Optional: ### Nested Schema for `permissions` -Required: +Optional: - `actions` (List of String)

The IAM action to grant or revoke permissions on.

- `principal` (String)

The Amazon Resource Name (ARN) of the principal. This can be one of the @@ -294,7 +285,7 @@ Optional: ### Nested Schema for `physical_table_map.custom_sql` -Required: +Optional: - `columns` (Attributes List)

The column schema from the SQL query result set.

(see [below for nested schema](#nestedatt--physical_table_map--custom_sql--columns)) - `data_source_arn` (String)

The Amazon Resource Name (ARN) of the data source.

@@ -304,7 +295,7 @@ Required: ### Nested Schema for `physical_table_map.custom_sql.columns` -Required: +Optional: - `name` (String)

The name of this column in the underlying data source.

- `type` (String) @@ -314,21 +305,18 @@ Required: ### Nested Schema for `physical_table_map.relational_table` -Required: +Optional: +- `catalog` (String)

The catalog associated with a table.

- `data_source_arn` (String)

The Amazon Resource Name (ARN) for the data source.

- `input_columns` (Attributes List)

The column schema of the table.

(see [below for nested schema](#nestedatt--physical_table_map--relational_table--input_columns)) - `name` (String)

The name of the relational table.

- -Optional: - -- `catalog` (String)

The catalog associated with a table.

- `schema` (String)

The schema name. This name applies to certain relational database engines.

### Nested Schema for `physical_table_map.relational_table.input_columns` -Required: +Optional: - `name` (String)

The name of this column in the underlying data source.

- `type` (String) @@ -338,19 +326,16 @@ Required: ### Nested Schema for `physical_table_map.s3_source` -Required: +Optional: - `data_source_arn` (String)

The amazon Resource Name (ARN) for the data source.

- `input_columns` (Attributes List)

A physical table type for as S3 data source.

(see [below for nested schema](#nestedatt--physical_table_map--s3_source--input_columns)) - -Optional: - - `upload_settings` (Attributes)

Information about the format for a source file or files.

(see [below for nested schema](#nestedatt--physical_table_map--s3_source--upload_settings)) ### Nested Schema for `physical_table_map.s3_source.input_columns` -Required: +Optional: - `name` (String)

The name of this column in the underlying data source.

- `type` (String) @@ -373,21 +358,18 @@ Optional: ### Nested Schema for `row_level_permission_data_set` -Required: - -- `arn` (String)

The Amazon Resource Name (ARN) of the permission dataset.

-- `permission_policy` (String) - Optional: +- `arn` (String)

The Amazon Resource Name (ARN) of the permission dataset.

- `format_version` (String) - `namespace` (String)

The namespace associated with the row-level permissions dataset.

+- `permission_policy` (String) ### Nested Schema for `tags` -Required: +Optional: - `key` (String)

Tag key.

- `value` (String)

Tag value.

diff --git a/docs/resources/quicksight_data_source.md b/docs/resources/quicksight_data_source.md index cef35ff7c0..311f6ecb0a 100644 --- a/docs/resources/quicksight_data_source.md +++ b/docs/resources/quicksight_data_source.md @@ -83,7 +83,7 @@ Optional: ### Nested Schema for `alternate_data_source_parameters.amazon_elasticsearch_parameters` -Required: +Optional: - `domain` (String)

The OpenSearch domain.

@@ -91,7 +91,7 @@ Required: ### Nested Schema for `alternate_data_source_parameters.amazon_open_search_parameters` -Required: +Optional: - `domain` (String)

The OpenSearch domain.

@@ -108,111 +108,87 @@ Optional: ### Nested Schema for `alternate_data_source_parameters.aurora_parameters` -Required: +Optional: - `database` (String)

Database.

- `host` (String)

Host.

- -Optional: - - `port` (Number)

Port.

### Nested Schema for `alternate_data_source_parameters.aurora_postgre_sql_parameters` -Required: +Optional: - `database` (String)

The Amazon Aurora PostgreSQL database to connect to.

- `host` (String)

The Amazon Aurora PostgreSQL-Compatible host to connect to.

- -Optional: - - `port` (Number)

The port that Amazon Aurora PostgreSQL is listening on.

### Nested Schema for `alternate_data_source_parameters.databricks_parameters` -Required: - -- `host` (String)

The host name of the Databricks data source.

-- `sql_endpoint_path` (String)

The HTTP path of the Databricks data source.

- Optional: +- `host` (String)

The host name of the Databricks data source.

- `port` (Number)

The port for the Databricks data source.

+- `sql_endpoint_path` (String)

The HTTP path of the Databricks data source.

### Nested Schema for `alternate_data_source_parameters.maria_db_parameters` -Required: +Optional: - `database` (String)

Database.

- `host` (String)

Host.

- -Optional: - - `port` (Number)

Port.

### Nested Schema for `alternate_data_source_parameters.my_sql_parameters` -Required: +Optional: - `database` (String)

Database.

- `host` (String)

Host.

- -Optional: - - `port` (Number)

Port.

### Nested Schema for `alternate_data_source_parameters.oracle_parameters` -Required: +Optional: - `database` (String)

The database.

- `host` (String)

An Oracle host.

- -Optional: - - `port` (Number)

The port.

### Nested Schema for `alternate_data_source_parameters.postgre_sql_parameters` -Required: +Optional: - `database` (String)

Database.

- `host` (String)

Host.

- -Optional: - - `port` (Number)

Port.

### Nested Schema for `alternate_data_source_parameters.presto_parameters` -Required: +Optional: - `catalog` (String)

Catalog.

- `host` (String)

Host.

- -Optional: - - `port` (Number)

Port.

### Nested Schema for `alternate_data_source_parameters.rds_parameters` -Required: +Optional: - `database` (String)

Database.

- `instance_id` (String)

Instance ID.

@@ -221,14 +197,11 @@ Required: ### Nested Schema for `alternate_data_source_parameters.redshift_parameters` -Required: - -- `database` (String)

Database.

- Optional: - `cluster_id` (String)

Cluster ID. This field can be blank if the Host and Port are provided.

+- `database` (String)

Database.

- `host` (String)

Host. This field can be blank if ClusterId is provided.

- `iam_parameters` (Attributes)

A structure that grants Amazon QuickSight access to your cluster and make a call to the redshift:GetClusterCredentials API. For more information on the redshift:GetClusterCredentials API, see GetClusterCredentials @@ -239,15 +212,12 @@ Optional: ### Nested Schema for `alternate_data_source_parameters.redshift_parameters.iam_parameters` -Required: - -- `role_arn` (String)

Use the RoleArn structure to allow Amazon QuickSight to call redshift:GetClusterCredentials on your cluster. The calling principal must have iam:PassRole access to pass the role to Amazon QuickSight. The role's trust policy must allow the Amazon QuickSight service principal to assume the role.

- Optional: - `auto_create_database_user` (Boolean)

Automatically creates a database user. If your database doesn't have a DatabaseUser, set this parameter to True. If there is no DatabaseUser, Amazon QuickSight can't connect to your cluster. The RoleArn that you use for this operation must grant access to redshift:CreateClusterUser to successfully create the user.

- `database_groups` (List of String)

A list of groups whose permissions will be granted to Amazon QuickSight to access the cluster. These permissions are combined with the permissions granted to Amazon QuickSight by the DatabaseUser. If you choose to include this parameter, the RoleArn must grant access to redshift:JoinGroup.

- `database_user` (String)

The user whose permissions and group memberships will be used by Amazon QuickSight to access the cluster. If this user already exists in your database, Amazon QuickSight is granted the same permissions that the user has. If the user doesn't exist, set the value of AutoCreateDatabaseUser to True to create a new user with PUBLIC permissions.

+- `role_arn` (String)

Use the RoleArn structure to allow Amazon QuickSight to call redshift:GetClusterCredentials on your cluster. The calling principal must have iam:PassRole access to pass the role to Amazon QuickSight. The role's trust policy must allow the Amazon QuickSight service principal to assume the role.

@@ -262,18 +232,15 @@ Optional: ### Nested Schema for `alternate_data_source_parameters.s3_parameters` -Required: - -- `manifest_file_location` (Attributes)

Amazon S3 manifest file location.

(see [below for nested schema](#nestedatt--alternate_data_source_parameters--s3_parameters--manifest_file_location)) - Optional: +- `manifest_file_location` (Attributes)

Amazon S3 manifest file location.

(see [below for nested schema](#nestedatt--alternate_data_source_parameters--s3_parameters--manifest_file_location)) - `role_arn` (String)

Use the RoleArn structure to override an account-wide role for a specific S3 data source. For example, say an account administrator has turned off all S3 access with an account-wide role. The administrator can then use RoleArn to bypass the account-wide role and allow S3 access for the single S3 data source that is specified in the structure, even if the account-wide role forbidding S3 access is still active.

### Nested Schema for `alternate_data_source_parameters.s3_parameters.manifest_file_location` -Required: +Optional: - `bucket` (String)

Amazon S3 bucket.

- `key` (String)

Amazon S3 key that identifies an object.

@@ -283,7 +250,7 @@ Required: ### Nested Schema for `alternate_data_source_parameters.snowflake_parameters` -Required: +Optional: - `database` (String)

Database.

- `host` (String)

Host.

@@ -293,38 +260,29 @@ Required: ### Nested Schema for `alternate_data_source_parameters.spark_parameters` -Required: - -- `host` (String)

Host.

- Optional: +- `host` (String)

Host.

- `port` (Number)

Port.

### Nested Schema for `alternate_data_source_parameters.sql_server_parameters` -Required: +Optional: - `database` (String)

Database.

- `host` (String)

Host.

- -Optional: - - `port` (Number)

Port.

### Nested Schema for `alternate_data_source_parameters.starburst_parameters` -Required: +Optional: - `catalog` (String)

The catalog name for the Starburst data source.

- `host` (String)

The host name of the Starburst data source.

- -Optional: - - `port` (Number)

The port for the Starburst data source.

- `product_type` (String) @@ -332,26 +290,20 @@ Optional: ### Nested Schema for `alternate_data_source_parameters.teradata_parameters` -Required: +Optional: - `database` (String)

Database.

- `host` (String)

Host.

- -Optional: - - `port` (Number)

Port.

### Nested Schema for `alternate_data_source_parameters.trino_parameters` -Required: +Optional: - `catalog` (String)

The catalog name for the Trino data source.

- `host` (String)

The host name of the Trino data source.

- -Optional: - - `port` (Number)

The port for the Trino data source.

@@ -371,11 +323,6 @@ Optional: ### Nested Schema for `credentials.credential_pair` -Required: - -- `password` (String)

Password.

-- `username` (String)

User name.

- Optional: - `alternate_data_source_parameters` (Attributes List)

A set of alternate data source parameters that you want to share for these @@ -387,6 +334,8 @@ Optional: the existing credentials. If the AlternateDataSourceParameters list is null, the DataSourceParameters originally used with these Credentials is automatically allowed.

(see [below for nested schema](#nestedatt--credentials--credential_pair--alternate_data_source_parameters)) +- `password` (String)

Password.

+- `username` (String)

User name.

### Nested Schema for `credentials.credential_pair.alternate_data_source_parameters` @@ -418,7 +367,7 @@ Optional: ### Nested Schema for `credentials.credential_pair.alternate_data_source_parameters.amazon_elasticsearch_parameters` -Required: +Optional: - `domain` (String)

The OpenSearch domain.

@@ -426,7 +375,7 @@ Required: ### Nested Schema for `credentials.credential_pair.alternate_data_source_parameters.amazon_open_search_parameters` -Required: +Optional: - `domain` (String)

The OpenSearch domain.

@@ -443,111 +392,87 @@ Optional: ### Nested Schema for `credentials.credential_pair.alternate_data_source_parameters.aurora_parameters` -Required: +Optional: - `database` (String)

Database.

- `host` (String)

Host.

- -Optional: - - `port` (Number)

Port.

### Nested Schema for `credentials.credential_pair.alternate_data_source_parameters.aurora_postgre_sql_parameters` -Required: +Optional: - `database` (String)

The Amazon Aurora PostgreSQL database to connect to.

- `host` (String)

The Amazon Aurora PostgreSQL-Compatible host to connect to.

- -Optional: - - `port` (Number)

The port that Amazon Aurora PostgreSQL is listening on.

### Nested Schema for `credentials.credential_pair.alternate_data_source_parameters.databricks_parameters` -Required: - -- `host` (String)

The host name of the Databricks data source.

-- `sql_endpoint_path` (String)

The HTTP path of the Databricks data source.

- Optional: +- `host` (String)

The host name of the Databricks data source.

- `port` (Number)

The port for the Databricks data source.

+- `sql_endpoint_path` (String)

The HTTP path of the Databricks data source.

### Nested Schema for `credentials.credential_pair.alternate_data_source_parameters.maria_db_parameters` -Required: +Optional: - `database` (String)

Database.

- `host` (String)

Host.

- -Optional: - - `port` (Number)

Port.

### Nested Schema for `credentials.credential_pair.alternate_data_source_parameters.my_sql_parameters` -Required: +Optional: - `database` (String)

Database.

- `host` (String)

Host.

- -Optional: - - `port` (Number)

Port.

### Nested Schema for `credentials.credential_pair.alternate_data_source_parameters.oracle_parameters` -Required: +Optional: - `database` (String)

The database.

- `host` (String)

An Oracle host.

- -Optional: - - `port` (Number)

The port.

### Nested Schema for `credentials.credential_pair.alternate_data_source_parameters.postgre_sql_parameters` -Required: +Optional: - `database` (String)

Database.

- `host` (String)

Host.

- -Optional: - - `port` (Number)

Port.

### Nested Schema for `credentials.credential_pair.alternate_data_source_parameters.presto_parameters` -Required: +Optional: - `catalog` (String)

Catalog.

- `host` (String)

Host.

- -Optional: - - `port` (Number)

Port.

### Nested Schema for `credentials.credential_pair.alternate_data_source_parameters.rds_parameters` -Required: +Optional: - `database` (String)

Database.

- `instance_id` (String)

Instance ID.

@@ -556,14 +481,11 @@ Required: ### Nested Schema for `credentials.credential_pair.alternate_data_source_parameters.redshift_parameters` -Required: - -- `database` (String)

Database.

- Optional: - `cluster_id` (String)

Cluster ID. This field can be blank if the Host and Port are provided.

+- `database` (String)

Database.

- `host` (String)

Host. This field can be blank if ClusterId is provided.

- `iam_parameters` (Attributes)

A structure that grants Amazon QuickSight access to your cluster and make a call to the redshift:GetClusterCredentials API. For more information on the redshift:GetClusterCredentials API, see GetClusterCredentials @@ -574,15 +496,12 @@ Optional: ### Nested Schema for `credentials.credential_pair.alternate_data_source_parameters.redshift_parameters.iam_parameters` -Required: - -- `role_arn` (String)

Use the RoleArn structure to allow Amazon QuickSight to call redshift:GetClusterCredentials on your cluster. The calling principal must have iam:PassRole access to pass the role to Amazon QuickSight. The role's trust policy must allow the Amazon QuickSight service principal to assume the role.

- Optional: - `auto_create_database_user` (Boolean)

Automatically creates a database user. If your database doesn't have a DatabaseUser, set this parameter to True. If there is no DatabaseUser, Amazon QuickSight can't connect to your cluster. The RoleArn that you use for this operation must grant access to redshift:CreateClusterUser to successfully create the user.

- `database_groups` (List of String)

A list of groups whose permissions will be granted to Amazon QuickSight to access the cluster. These permissions are combined with the permissions granted to Amazon QuickSight by the DatabaseUser. If you choose to include this parameter, the RoleArn must grant access to redshift:JoinGroup.

- `database_user` (String)

The user whose permissions and group memberships will be used by Amazon QuickSight to access the cluster. If this user already exists in your database, Amazon QuickSight is granted the same permissions that the user has. If the user doesn't exist, set the value of AutoCreateDatabaseUser to True to create a new user with PUBLIC permissions.

+- `role_arn` (String)

Use the RoleArn structure to allow Amazon QuickSight to call redshift:GetClusterCredentials on your cluster. The calling principal must have iam:PassRole access to pass the role to Amazon QuickSight. The role's trust policy must allow the Amazon QuickSight service principal to assume the role.

@@ -597,18 +516,15 @@ Optional: ### Nested Schema for `credentials.credential_pair.alternate_data_source_parameters.s3_parameters` -Required: - -- `manifest_file_location` (Attributes)

Amazon S3 manifest file location.

(see [below for nested schema](#nestedatt--credentials--credential_pair--alternate_data_source_parameters--s3_parameters--manifest_file_location)) - Optional: +- `manifest_file_location` (Attributes)

Amazon S3 manifest file location.

(see [below for nested schema](#nestedatt--credentials--credential_pair--alternate_data_source_parameters--s3_parameters--manifest_file_location)) - `role_arn` (String)

Use the RoleArn structure to override an account-wide role for a specific S3 data source. For example, say an account administrator has turned off all S3 access with an account-wide role. The administrator can then use RoleArn to bypass the account-wide role and allow S3 access for the single S3 data source that is specified in the structure, even if the account-wide role forbidding S3 access is still active.

### Nested Schema for `credentials.credential_pair.alternate_data_source_parameters.s3_parameters.manifest_file_location` -Required: +Optional: - `bucket` (String)

Amazon S3 bucket.

- `key` (String)

Amazon S3 key that identifies an object.

@@ -618,7 +534,7 @@ Required: ### Nested Schema for `credentials.credential_pair.alternate_data_source_parameters.snowflake_parameters` -Required: +Optional: - `database` (String)

Database.

- `host` (String)

Host.

@@ -628,38 +544,29 @@ Required: ### Nested Schema for `credentials.credential_pair.alternate_data_source_parameters.spark_parameters` -Required: - -- `host` (String)

Host.

- Optional: +- `host` (String)

Host.

- `port` (Number)

Port.

### Nested Schema for `credentials.credential_pair.alternate_data_source_parameters.sql_server_parameters` -Required: +Optional: - `database` (String)

Database.

- `host` (String)

Host.

- -Optional: - - `port` (Number)

Port.

### Nested Schema for `credentials.credential_pair.alternate_data_source_parameters.starburst_parameters` -Required: +Optional: - `catalog` (String)

The catalog name for the Starburst data source.

- `host` (String)

The host name of the Starburst data source.

- -Optional: - - `port` (Number)

The port for the Starburst data source.

- `product_type` (String) @@ -667,26 +574,20 @@ Optional: ### Nested Schema for `credentials.credential_pair.alternate_data_source_parameters.teradata_parameters` -Required: +Optional: - `database` (String)

Database.

- `host` (String)

Host.

- -Optional: - - `port` (Number)

Port.

### Nested Schema for `credentials.credential_pair.alternate_data_source_parameters.trino_parameters` -Required: +Optional: - `catalog` (String)

The catalog name for the Trino data source.

- `host` (String)

The host name of the Trino data source.

- -Optional: - - `port` (Number)

The port for the Trino data source.

@@ -723,7 +624,7 @@ Optional: ### Nested Schema for `data_source_parameters.amazon_elasticsearch_parameters` -Required: +Optional: - `domain` (String)

The OpenSearch domain.

@@ -731,7 +632,7 @@ Required: ### Nested Schema for `data_source_parameters.amazon_open_search_parameters` -Required: +Optional: - `domain` (String)

The OpenSearch domain.

@@ -748,111 +649,87 @@ Optional: ### Nested Schema for `data_source_parameters.aurora_parameters` -Required: +Optional: - `database` (String)

Database.

- `host` (String)

Host.

- -Optional: - - `port` (Number)

Port.

### Nested Schema for `data_source_parameters.aurora_postgre_sql_parameters` -Required: +Optional: - `database` (String)

The Amazon Aurora PostgreSQL database to connect to.

- `host` (String)

The Amazon Aurora PostgreSQL-Compatible host to connect to.

- -Optional: - - `port` (Number)

The port that Amazon Aurora PostgreSQL is listening on.

### Nested Schema for `data_source_parameters.databricks_parameters` -Required: - -- `host` (String)

The host name of the Databricks data source.

-- `sql_endpoint_path` (String)

The HTTP path of the Databricks data source.

- Optional: +- `host` (String)

The host name of the Databricks data source.

- `port` (Number)

The port for the Databricks data source.

+- `sql_endpoint_path` (String)

The HTTP path of the Databricks data source.

### Nested Schema for `data_source_parameters.maria_db_parameters` -Required: +Optional: - `database` (String)

Database.

- `host` (String)

Host.

- -Optional: - - `port` (Number)

Port.

### Nested Schema for `data_source_parameters.my_sql_parameters` -Required: +Optional: - `database` (String)

Database.

- `host` (String)

Host.

- -Optional: - - `port` (Number)

Port.

### Nested Schema for `data_source_parameters.oracle_parameters` -Required: +Optional: - `database` (String)

The database.

- `host` (String)

An Oracle host.

- -Optional: - - `port` (Number)

The port.

### Nested Schema for `data_source_parameters.postgre_sql_parameters` -Required: +Optional: - `database` (String)

Database.

- `host` (String)

Host.

- -Optional: - - `port` (Number)

Port.

### Nested Schema for `data_source_parameters.presto_parameters` -Required: +Optional: - `catalog` (String)

Catalog.

- `host` (String)

Host.

- -Optional: - - `port` (Number)

Port.

### Nested Schema for `data_source_parameters.rds_parameters` -Required: +Optional: - `database` (String)

Database.

- `instance_id` (String)

Instance ID.

@@ -861,14 +738,11 @@ Required: ### Nested Schema for `data_source_parameters.redshift_parameters` -Required: - -- `database` (String)

Database.

- Optional: - `cluster_id` (String)

Cluster ID. This field can be blank if the Host and Port are provided.

+- `database` (String)

Database.

- `host` (String)

Host. This field can be blank if ClusterId is provided.

- `iam_parameters` (Attributes)

A structure that grants Amazon QuickSight access to your cluster and make a call to the redshift:GetClusterCredentials API. For more information on the redshift:GetClusterCredentials API, see GetClusterCredentials @@ -879,15 +753,12 @@ Optional: ### Nested Schema for `data_source_parameters.redshift_parameters.iam_parameters` -Required: - -- `role_arn` (String)

Use the RoleArn structure to allow Amazon QuickSight to call redshift:GetClusterCredentials on your cluster. The calling principal must have iam:PassRole access to pass the role to Amazon QuickSight. The role's trust policy must allow the Amazon QuickSight service principal to assume the role.

- Optional: - `auto_create_database_user` (Boolean)

Automatically creates a database user. If your database doesn't have a DatabaseUser, set this parameter to True. If there is no DatabaseUser, Amazon QuickSight can't connect to your cluster. The RoleArn that you use for this operation must grant access to redshift:CreateClusterUser to successfully create the user.

- `database_groups` (List of String)

A list of groups whose permissions will be granted to Amazon QuickSight to access the cluster. These permissions are combined with the permissions granted to Amazon QuickSight by the DatabaseUser. If you choose to include this parameter, the RoleArn must grant access to redshift:JoinGroup.

- `database_user` (String)

The user whose permissions and group memberships will be used by Amazon QuickSight to access the cluster. If this user already exists in your database, Amazon QuickSight is granted the same permissions that the user has. If the user doesn't exist, set the value of AutoCreateDatabaseUser to True to create a new user with PUBLIC permissions.

+- `role_arn` (String)

Use the RoleArn structure to allow Amazon QuickSight to call redshift:GetClusterCredentials on your cluster. The calling principal must have iam:PassRole access to pass the role to Amazon QuickSight. The role's trust policy must allow the Amazon QuickSight service principal to assume the role.

@@ -902,18 +773,15 @@ Optional: ### Nested Schema for `data_source_parameters.s3_parameters` -Required: - -- `manifest_file_location` (Attributes)

Amazon S3 manifest file location.

(see [below for nested schema](#nestedatt--data_source_parameters--s3_parameters--manifest_file_location)) - Optional: +- `manifest_file_location` (Attributes)

Amazon S3 manifest file location.

(see [below for nested schema](#nestedatt--data_source_parameters--s3_parameters--manifest_file_location)) - `role_arn` (String)

Use the RoleArn structure to override an account-wide role for a specific S3 data source. For example, say an account administrator has turned off all S3 access with an account-wide role. The administrator can then use RoleArn to bypass the account-wide role and allow S3 access for the single S3 data source that is specified in the structure, even if the account-wide role forbidding S3 access is still active.

### Nested Schema for `data_source_parameters.s3_parameters.manifest_file_location` -Required: +Optional: - `bucket` (String)

Amazon S3 bucket.

- `key` (String)

Amazon S3 key that identifies an object.

@@ -923,7 +791,7 @@ Required: ### Nested Schema for `data_source_parameters.snowflake_parameters` -Required: +Optional: - `database` (String)

Database.

- `host` (String)

Host.

@@ -933,38 +801,29 @@ Required: ### Nested Schema for `data_source_parameters.spark_parameters` -Required: - -- `host` (String)

Host.

- Optional: +- `host` (String)

Host.

- `port` (Number)

Port.

### Nested Schema for `data_source_parameters.sql_server_parameters` -Required: +Optional: - `database` (String)

Database.

- `host` (String)

Host.

- -Optional: - - `port` (Number)

Port.

### Nested Schema for `data_source_parameters.starburst_parameters` -Required: +Optional: - `catalog` (String)

The catalog name for the Starburst data source.

- `host` (String)

The host name of the Starburst data source.

- -Optional: - - `port` (Number)

The port for the Starburst data source.

- `product_type` (String) @@ -972,26 +831,20 @@ Optional: ### Nested Schema for `data_source_parameters.teradata_parameters` -Required: +Optional: - `database` (String)

Database.

- `host` (String)

Host.

- -Optional: - - `port` (Number)

Port.

### Nested Schema for `data_source_parameters.trino_parameters` -Required: +Optional: - `catalog` (String)

The catalog name for the Trino data source.

- `host` (String)

The host name of the Trino data source.

- -Optional: - - `port` (Number)

The port for the Trino data source.

@@ -1008,7 +861,7 @@ Optional: ### Nested Schema for `permissions` -Required: +Optional: - `actions` (List of String)

The IAM action to grant or revoke permissions on.

- `principal` (String)

The Amazon Resource Name (ARN) of the principal. This can be one of the @@ -1026,9 +879,6 @@ Required: (This is less common.)

- -Optional: - - `resource` (String) @@ -1043,7 +893,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String)

Tag key.

- `value` (String)

Tag value.

@@ -1052,7 +902,7 @@ Required: ### Nested Schema for `vpc_connection_properties` -Required: +Optional: - `vpc_connection_arn` (String)

The Amazon Resource Name (ARN) for the VPC connection.

diff --git a/docs/resources/quicksight_template.md b/docs/resources/quicksight_template.md index efa1211bdf..9385b38f01 100644 --- a/docs/resources/quicksight_template.md +++ b/docs/resources/quicksight_template.md @@ -50,7 +50,7 @@ Optional: ### Nested Schema for `source_entity.source_analysis` -Required: +Optional: - `arn` (String)

The Amazon Resource Name (ARN) of the resource.

- `data_set_references` (Attributes List)

A structure containing information about the dataset references used as placeholders @@ -59,7 +59,7 @@ Required: ### Nested Schema for `source_entity.source_analysis.data_set_references` -Required: +Optional: - `data_set_arn` (String)

Dataset Amazon Resource Name (ARN).

- `data_set_placeholder` (String)

Dataset placeholder.

@@ -69,7 +69,7 @@ Required: ### Nested Schema for `source_entity.source_template` -Required: +Optional: - `arn` (String)

The Amazon Resource Name (ARN) of the resource.

@@ -78,7 +78,7 @@ Required: ### Nested Schema for `permissions` -Required: +Optional: - `actions` (List of String)

The IAM action to grant or revoke permissions on.

- `principal` (String)

The Amazon Resource Name (ARN) of the principal. This can be one of the @@ -101,7 +101,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String)

Tag key.

- `value` (String)

Tag value.

diff --git a/docs/resources/quicksight_theme.md b/docs/resources/quicksight_theme.md index e17cd71c82..c8989b6bda 100644 --- a/docs/resources/quicksight_theme.md +++ b/docs/resources/quicksight_theme.md @@ -170,7 +170,7 @@ Optional: ### Nested Schema for `permissions` -Required: +Optional: - `actions` (List of String)

The IAM action to grant or revoke permissions on.

- `principal` (String)

The Amazon Resource Name (ARN) of the principal. This can be one of the @@ -193,7 +193,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String)

Tag key.

- `value` (String)

Tag value.

diff --git a/docs/resources/quicksight_topic.md b/docs/resources/quicksight_topic.md index 7014e8e64a..e9fad3ecb0 100644 --- a/docs/resources/quicksight_topic.md +++ b/docs/resources/quicksight_topic.md @@ -32,15 +32,12 @@ Definition of the AWS::QuickSight::Topic Resource Type. ### Nested Schema for `data_sets` -Required: - -- `dataset_arn` (String) - Optional: - `calculated_fields` (Attributes List) (see [below for nested schema](#nestedatt--data_sets--calculated_fields)) - `columns` (Attributes List) (see [below for nested schema](#nestedatt--data_sets--columns)) - `data_aggregation` (Attributes) (see [below for nested schema](#nestedatt--data_sets--data_aggregation)) +- `dataset_arn` (String) - `dataset_description` (String) - `dataset_name` (String) - `filters` (Attributes List) (see [below for nested schema](#nestedatt--data_sets--filters)) @@ -49,22 +46,19 @@ Optional: ### Nested Schema for `data_sets.calculated_fields` -Required: - -- `calculated_field_name` (String) -- `expression` (String) - Optional: - `aggregation` (String) - `allowed_aggregations` (List of String) - `calculated_field_description` (String) +- `calculated_field_name` (String) - `calculated_field_synonyms` (List of String) - `cell_value_synonyms` (Attributes List) (see [below for nested schema](#nestedatt--data_sets--calculated_fields--cell_value_synonyms)) - `column_data_role` (String) - `comparative_order` (Attributes) (see [below for nested schema](#nestedatt--data_sets--calculated_fields--comparative_order)) - `default_formatting` (Attributes) (see [below for nested schema](#nestedatt--data_sets--calculated_fields--default_formatting)) - `disable_indexing` (Boolean) +- `expression` (String) - `is_included_in_topic` (Boolean) - `never_aggregate_in_filter` (Boolean) - `non_additive` (Boolean) @@ -146,10 +140,6 @@ Optional: ### Nested Schema for `data_sets.columns` -Required: - -- `column_name` (String) - Optional: - `aggregation` (String) @@ -158,6 +148,7 @@ Optional: - `column_data_role` (String) - `column_description` (String) - `column_friendly_name` (String) +- `column_name` (String) - `column_synonyms` (List of String) - `comparative_order` (Attributes) (see [below for nested schema](#nestedatt--data_sets--columns--comparative_order)) - `default_formatting` (Attributes) (see [below for nested schema](#nestedatt--data_sets--columns--default_formatting)) @@ -252,21 +243,18 @@ Optional: ### Nested Schema for `data_sets.filters` -Required: - -- `filter_name` (String) -- `operand_field_name` (String) - Optional: - `category_filter` (Attributes) (see [below for nested schema](#nestedatt--data_sets--filters--category_filter)) - `date_range_filter` (Attributes) (see [below for nested schema](#nestedatt--data_sets--filters--date_range_filter)) - `filter_class` (String) - `filter_description` (String) +- `filter_name` (String) - `filter_synonyms` (List of String) - `filter_type` (String) - `numeric_equality_filter` (Attributes) (see [below for nested schema](#nestedatt--data_sets--filters--numeric_equality_filter)) - `numeric_range_filter` (Attributes) (see [below for nested schema](#nestedatt--data_sets--filters--numeric_range_filter)) +- `operand_field_name` (String) - `relative_date_filter` (Attributes) (see [below for nested schema](#nestedatt--data_sets--filters--relative_date_filter)) @@ -394,14 +382,11 @@ Optional: ### Nested Schema for `data_sets.named_entities` -Required: - -- `entity_name` (String) - Optional: - `definition` (Attributes List) (see [below for nested schema](#nestedatt--data_sets--named_entities--definition)) - `entity_description` (String) +- `entity_name` (String) - `entity_synonyms` (List of String) - `semantic_entity_type` (Attributes) (see [below for nested schema](#nestedatt--data_sets--named_entities--semantic_entity_type)) diff --git a/docs/resources/quicksight_vpc_connection.md b/docs/resources/quicksight_vpc_connection.md index fd8f4f0a65..1b44ba5eeb 100644 --- a/docs/resources/quicksight_vpc_connection.md +++ b/docs/resources/quicksight_vpc_connection.md @@ -40,7 +40,7 @@ Definition of the AWS::QuickSight::VPCConnection Resource Type. ### Nested Schema for `tags` -Required: +Optional: - `key` (String)

Tag key.

- `value` (String)

Tag value.

diff --git a/docs/resources/ram_permission.md b/docs/resources/ram_permission.md index 888d52a6e1..fb4bba0646 100644 --- a/docs/resources/ram_permission.md +++ b/docs/resources/ram_permission.md @@ -36,7 +36,7 @@ Resource type definition for AWS::RAM::Permission ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/rds_custom_db_engine_version.md b/docs/resources/rds_custom_db_engine_version.md index 2b1c805055..19baaab4eb 100644 --- a/docs/resources/rds_custom_db_engine_version.md +++ b/docs/resources/rds_custom_db_engine_version.md @@ -41,12 +41,9 @@ The AWS::RDS::CustomDBEngineVersion resource creates an Amazon RDS custom DB eng ### Nested Schema for `tags` -Required: - -- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - Optional: +- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ## Import diff --git a/docs/resources/rds_db_cluster.md b/docs/resources/rds_db_cluster.md index c15564302a..194a2e2bb2 100644 --- a/docs/resources/rds_db_cluster.md +++ b/docs/resources/rds_db_cluster.md @@ -374,13 +374,10 @@ resource "awscc_rds_db_cluster" "example_db_cluster" { ### Nested Schema for `associated_roles` -Required: - -- `role_arn` (String) The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster. - Optional: - `feature_name` (String) The name of the feature associated with the AWS Identity and Access Management (IAM) role. IAM roles that are associated with a DB cluster grant permission for the DB cluster to access other AWS services on your behalf. For the list of supported feature names, see the ``SupportedFeatureNames`` description in [DBEngineVersion](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DBEngineVersion.html) in the *Amazon RDS API Reference*. +- `role_arn` (String) The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster. @@ -443,12 +440,9 @@ Optional: ### Nested Schema for `tags` -Required: - -- `key` (String) A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). - Optional: +- `key` (String) A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). - `value` (String) A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). diff --git a/docs/resources/rds_db_cluster_parameter_group.md b/docs/resources/rds_db_cluster_parameter_group.md index 43b4bc93f3..b578df3e44 100644 --- a/docs/resources/rds_db_cluster_parameter_group.md +++ b/docs/resources/rds_db_cluster_parameter_group.md @@ -83,12 +83,9 @@ resource "awscc_rds_db_cluster_parameter_group" "this" { ### Nested Schema for `tags` -Required: - -- `key` (String) A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). - Optional: +- `key` (String) A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). - `value` (String) A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). ## Import diff --git a/docs/resources/rds_db_instance.md b/docs/resources/rds_db_instance.md index 8908934e68..5e56c65c6a 100644 --- a/docs/resources/rds_db_instance.md +++ b/docs/resources/rds_db_instance.md @@ -684,7 +684,7 @@ resource "awscc_rds_db_instance" "this" { ### Nested Schema for `associated_roles` -Required: +Optional: - `feature_name` (String) The name of the feature associated with the AWS Identity and Access Management (IAM) role. IAM roles that are associated with a DB instance grant permission for the DB instance to access other AWS services on your behalf. For the list of supported feature names, see the ``SupportedFeatureNames`` description in [DBEngineVersion](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DBEngineVersion.html) in the *Amazon RDS API Reference*. - `role_arn` (String) The Amazon Resource Name (ARN) of the IAM role that is associated with the DB instance. @@ -733,12 +733,9 @@ Optional: ### Nested Schema for `tags` -Required: - -- `key` (String) A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). - Optional: +- `key` (String) A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). - `value` (String) A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). ## Import diff --git a/docs/resources/rds_db_parameter_group.md b/docs/resources/rds_db_parameter_group.md index f2f4b16ae6..4f838eae54 100644 --- a/docs/resources/rds_db_parameter_group.md +++ b/docs/resources/rds_db_parameter_group.md @@ -120,12 +120,9 @@ resource "awscc_rds_db_parameter_group" "this" { ### Nested Schema for `tags` -Required: - -- `key` (String) A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). - Optional: +- `key` (String) A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). - `value` (String) A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). ## Import diff --git a/docs/resources/rds_db_subnet_group.md b/docs/resources/rds_db_subnet_group.md index 9cccd160b3..7a8e277e18 100644 --- a/docs/resources/rds_db_subnet_group.md +++ b/docs/resources/rds_db_subnet_group.md @@ -64,12 +64,9 @@ resource "awscc_rds_db_subnet_group" "example" { ### Nested Schema for `tags` -Required: - -- `key` (String) A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). - Optional: +- `key` (String) A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). - `value` (String) A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). ## Import diff --git a/docs/resources/rds_event_subscription.md b/docs/resources/rds_event_subscription.md index 37147dc713..be78e4d592 100644 --- a/docs/resources/rds_event_subscription.md +++ b/docs/resources/rds_event_subscription.md @@ -47,12 +47,9 @@ The ``AWS::RDS::EventSubscription`` resource allows you to receive notifications ### Nested Schema for `tags` -Required: - -- `key` (String) A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). - Optional: +- `key` (String) A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). - `value` (String) A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). ## Import diff --git a/docs/resources/rds_integration.md b/docs/resources/rds_integration.md index 218dd8752e..62dae3ed81 100644 --- a/docs/resources/rds_integration.md +++ b/docs/resources/rds_integration.md @@ -39,12 +39,9 @@ A zero-ETL integration with Amazon Redshift. ### Nested Schema for `tags` -Required: - -- `key` (String) A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). - Optional: +- `key` (String) A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). - `value` (String) A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). ## Import diff --git a/docs/resources/rds_option_group.md b/docs/resources/rds_option_group.md index d97aba4f42..5a577cc1c2 100644 --- a/docs/resources/rds_option_group.md +++ b/docs/resources/rds_option_group.md @@ -104,13 +104,10 @@ resource "awscc_rds_option_group" "example_rds_option_group_mssql" { ### Nested Schema for `option_configurations` -Required: - -- `option_name` (String) The configuration of options to include in a group. - Optional: - `db_security_group_memberships` (Set of String) A list of DB security groups used for this option. +- `option_name` (String) The configuration of options to include in a group. - `option_settings` (Attributes List) The option settings to include in an option group. (see [below for nested schema](#nestedatt--option_configurations--option_settings)) - `option_version` (String) The version for the option. - `port` (Number) The optional port for the option. @@ -129,12 +126,9 @@ Optional: ### Nested Schema for `tags` -Required: - -- `key` (String) A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). - Optional: +- `key` (String) A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). - `value` (String) A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"). ## Import diff --git a/docs/resources/redshift_cluster.md b/docs/resources/redshift_cluster.md index 9f9cd864d9..5065711436 100644 --- a/docs/resources/redshift_cluster.md +++ b/docs/resources/redshift_cluster.md @@ -117,7 +117,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/redshift_cluster_parameter_group.md b/docs/resources/redshift_cluster_parameter_group.md index f2a087f8b1..8a57ba950c 100644 --- a/docs/resources/redshift_cluster_parameter_group.md +++ b/docs/resources/redshift_cluster_parameter_group.md @@ -33,7 +33,7 @@ Resource Type definition for AWS::Redshift::ClusterParameterGroup ### Nested Schema for `parameters` -Required: +Optional: - `parameter_name` (String) The name of the parameter. - `parameter_value` (String) The value of the parameter. If `ParameterName` is `wlm_json_configuration`, then the maximum size of `ParameterValue` is 8000 characters. @@ -42,7 +42,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/redshift_cluster_subnet_group.md b/docs/resources/redshift_cluster_subnet_group.md index c7961c7d4d..91103e59cd 100644 --- a/docs/resources/redshift_cluster_subnet_group.md +++ b/docs/resources/redshift_cluster_subnet_group.md @@ -32,7 +32,7 @@ Specifies an Amazon Redshift subnet group. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/redshift_event_subscription.md b/docs/resources/redshift_event_subscription.md index 44f9e1e144..401227e33a 100644 --- a/docs/resources/redshift_event_subscription.md +++ b/docs/resources/redshift_event_subscription.md @@ -42,7 +42,7 @@ The `AWS::Redshift::EventSubscription` resource creates an Amazon Redshift Event ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/redshift_scheduled_action.md b/docs/resources/redshift_scheduled_action.md index 47e093684e..b1db8c9752 100644 --- a/docs/resources/redshift_scheduled_action.md +++ b/docs/resources/redshift_scheduled_action.md @@ -47,7 +47,7 @@ Optional: ### Nested Schema for `target_action.pause_cluster` -Required: +Optional: - `cluster_identifier` (String) @@ -55,13 +55,10 @@ Required: ### Nested Schema for `target_action.resize_cluster` -Required: - -- `cluster_identifier` (String) - Optional: - `classic` (Boolean) +- `cluster_identifier` (String) - `cluster_type` (String) - `node_type` (String) - `number_of_nodes` (Number) @@ -70,7 +67,7 @@ Optional: ### Nested Schema for `target_action.resume_cluster` -Required: +Optional: - `cluster_identifier` (String) diff --git a/docs/resources/redshiftserverless_namespace.md b/docs/resources/redshiftserverless_namespace.md index cc0c9e5e7b..af38ec95c3 100644 --- a/docs/resources/redshiftserverless_namespace.md +++ b/docs/resources/redshiftserverless_namespace.md @@ -45,20 +45,17 @@ Definition of AWS::RedshiftServerless::Namespace Resource Type ### Nested Schema for `snapshot_copy_configurations` -Required: - -- `destination_region` (String) - Optional: - `destination_kms_key_id` (String) +- `destination_region` (String) - `snapshot_retention_period` (Number) ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/redshiftserverless_workgroup.md b/docs/resources/redshiftserverless_workgroup.md index f4aafab971..e24b39fff1 100644 --- a/docs/resources/redshiftserverless_workgroup.md +++ b/docs/resources/redshiftserverless_workgroup.md @@ -49,7 +49,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/refactorspaces_application.md b/docs/resources/refactorspaces_application.md index d819cbe58a..89e3141350 100644 --- a/docs/resources/refactorspaces_application.md +++ b/docs/resources/refactorspaces_application.md @@ -51,7 +51,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) A string used to identify this tag - `value` (String) A string containing the value for the tag diff --git a/docs/resources/refactorspaces_environment.md b/docs/resources/refactorspaces_environment.md index fc78289144..94ded0bd3e 100644 --- a/docs/resources/refactorspaces_environment.md +++ b/docs/resources/refactorspaces_environment.md @@ -35,7 +35,7 @@ Definition of AWS::RefactorSpaces::Environment Resource Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String) A string used to identify this tag - `value` (String) A string containing the value for the tag diff --git a/docs/resources/refactorspaces_route.md b/docs/resources/refactorspaces_route.md index 9c831dfe71..3c48ba9b9e 100644 --- a/docs/resources/refactorspaces_route.md +++ b/docs/resources/refactorspaces_route.md @@ -38,7 +38,7 @@ Definition of AWS::RefactorSpaces::Route Resource Type ### Nested Schema for `default_route` -Required: +Optional: - `activation_state` (String) @@ -46,7 +46,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) A string used to identify this tag - `value` (String) A string containing the value for the tag @@ -55,12 +55,9 @@ Required: ### Nested Schema for `uri_path_route` -Required: - -- `activation_state` (String) - Optional: +- `activation_state` (String) - `append_source_path` (Boolean) - `include_child_paths` (Boolean) - `methods` (List of String) diff --git a/docs/resources/refactorspaces_service.md b/docs/resources/refactorspaces_service.md index d67b35b8c2..45f6253525 100644 --- a/docs/resources/refactorspaces_service.md +++ b/docs/resources/refactorspaces_service.md @@ -39,7 +39,7 @@ Definition of AWS::RefactorSpaces::Service Resource Type ### Nested Schema for `lambda_endpoint` -Required: +Optional: - `arn` (String) @@ -47,7 +47,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) A string used to identify this tag - `value` (String) A string containing the value for the tag @@ -56,13 +56,10 @@ Required: ### Nested Schema for `url_endpoint` -Required: - -- `url` (String) - Optional: - `health_url` (String) +- `url` (String) ## Import diff --git a/docs/resources/rekognition_collection.md b/docs/resources/rekognition_collection.md index 571f136770..71ad61ef35 100644 --- a/docs/resources/rekognition_collection.md +++ b/docs/resources/rekognition_collection.md @@ -42,7 +42,7 @@ resource "awscc_rekognition_collection" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/resiliencehub_app.md b/docs/resources/resiliencehub_app.md index 8b44e702f7..a0f181e414 100644 --- a/docs/resources/resiliencehub_app.md +++ b/docs/resources/resiliencehub_app.md @@ -69,27 +69,21 @@ Optional: ### Nested Schema for `event_subscriptions` -Required: +Optional: - `event_type` (String) The type of event you would like to subscribe and get notification for. - `name` (String) Unique name to identify an event subscription. - -Optional: - - `sns_topic_arn` (String) Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic. ### Nested Schema for `permission_model` -Required: - -- `type` (String) Defines how AWS Resilience Hub scans your resources. It can scan for the resources by using a pre-existing role in your AWS account, or by using the credentials of the current IAM user. - Optional: - `cross_account_role_arns` (List of String) Defines a list of role Amazon Resource Names (ARNs) to be used in other accounts. These ARNs are used for querying purposes while importing resources and assessing your application. - `invoker_role_name` (String) Existing AWS IAM role name in the primary AWS account that will be assumed by AWS Resilience Hub Service Principle to obtain a read-only access to your application resources while running an assessment. +- `type` (String) Defines how AWS Resilience Hub scans your resources. It can scan for the resources by using a pre-existing role in your AWS account, or by using the credentials of the current IAM user. ## Import diff --git a/docs/resources/resiliencehub_resiliency_policy.md b/docs/resources/resiliencehub_resiliency_policy.md index b89879aa12..ca6a39cb93 100644 --- a/docs/resources/resiliencehub_resiliency_policy.md +++ b/docs/resources/resiliencehub_resiliency_policy.md @@ -75,7 +75,7 @@ Required: ### Nested Schema for `policy.region` -Required: +Optional: - `rpo_in_secs` (Number) RPO in seconds. - `rto_in_secs` (Number) RTO in seconds. diff --git a/docs/resources/resourceexplorer2_view.md b/docs/resources/resourceexplorer2_view.md index 2de54aaa7e..4df28d91b6 100644 --- a/docs/resources/resourceexplorer2_view.md +++ b/docs/resources/resourceexplorer2_view.md @@ -50,7 +50,7 @@ resource "awscc_resourceexplorer2_index" "example" { ### Nested Schema for `filters` -Required: +Optional: - `filter_string` (String) @@ -58,7 +58,7 @@ Required: ### Nested Schema for `included_properties` -Required: +Optional: - `name` (String) diff --git a/docs/resources/robomaker_robot_application.md b/docs/resources/robomaker_robot_application.md index 5b449932ab..a49fa53930 100644 --- a/docs/resources/robomaker_robot_application.md +++ b/docs/resources/robomaker_robot_application.md @@ -47,7 +47,7 @@ Optional: ### Nested Schema for `sources` -Required: +Optional: - `architecture` (String) The architecture of robot application. - `s3_bucket` (String) The Arn of the S3Bucket that stores the robot application source. diff --git a/docs/resources/robomaker_simulation_application.md b/docs/resources/robomaker_simulation_application.md index c9c7e55322..c884351853 100644 --- a/docs/resources/robomaker_simulation_application.md +++ b/docs/resources/robomaker_simulation_application.md @@ -61,7 +61,7 @@ Optional: ### Nested Schema for `rendering_engine` -Required: +Optional: - `name` (String) The name of the rendering engine. - `version` (String) The version of the rendering engine. @@ -70,7 +70,7 @@ Required: ### Nested Schema for `sources` -Required: +Optional: - `architecture` (String) The target processor architecture for the application. - `s3_bucket` (String) The Amazon S3 bucket name. diff --git a/docs/resources/rolesanywhere_crl.md b/docs/resources/rolesanywhere_crl.md index 3490c726c4..5f810b628e 100644 --- a/docs/resources/rolesanywhere_crl.md +++ b/docs/resources/rolesanywhere_crl.md @@ -34,7 +34,7 @@ Definition of AWS::RolesAnywhere::CRL Resource Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/rolesanywhere_profile.md b/docs/resources/rolesanywhere_profile.md index 8110a8eae2..3ffd793a8a 100644 --- a/docs/resources/rolesanywhere_profile.md +++ b/docs/resources/rolesanywhere_profile.md @@ -40,7 +40,7 @@ Definition of AWS::RolesAnywhere::Profile Resource Type ### Nested Schema for `attribute_mappings` -Required: +Optional: - `certificate_field` (String) - `mapping_rules` (Attributes List) (see [below for nested schema](#nestedatt--attribute_mappings--mapping_rules)) @@ -48,7 +48,7 @@ Required: ### Nested Schema for `attribute_mappings.mapping_rules` -Required: +Optional: - `specifier` (String) @@ -57,7 +57,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/rolesanywhere_trust_anchor.md b/docs/resources/rolesanywhere_trust_anchor.md index ecfb71a2b0..e29165c354 100644 --- a/docs/resources/rolesanywhere_trust_anchor.md +++ b/docs/resources/rolesanywhere_trust_anchor.md @@ -53,21 +53,18 @@ Optional: ### Nested Schema for `notification_settings` -Required: - -- `enabled` (Boolean) -- `event` (String) - Optional: - `channel` (String) +- `enabled` (Boolean) +- `event` (String) - `threshold` (Number) ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/route53_cidr_collection.md b/docs/resources/route53_cidr_collection.md index 0433e51436..6adcee0120 100644 --- a/docs/resources/route53_cidr_collection.md +++ b/docs/resources/route53_cidr_collection.md @@ -32,7 +32,7 @@ Resource schema for AWS::Route53::CidrCollection. ### Nested Schema for `locations` -Required: +Optional: - `cidr_list` (Set of String) A list of CIDR blocks. - `location_name` (String) The name of the location that is associated with the CIDR collection. diff --git a/docs/resources/route53_health_check.md b/docs/resources/route53_health_check.md index a4fe2c7d59..7ecd90cf31 100644 --- a/docs/resources/route53_health_check.md +++ b/docs/resources/route53_health_check.md @@ -57,7 +57,7 @@ Optional: ### Nested Schema for `health_check_config.alarm_identifier` -Required: +Optional: - `name` (String) The name of the CloudWatch alarm that you want Amazon Route 53 health checkers to use to determine whether this health check is healthy. - `region` (String) For the CloudWatch alarm that you want Route 53 health checkers to use to determine whether this health check is healthy, the region that the alarm was created in. @@ -67,7 +67,7 @@ Required: ### Nested Schema for `health_check_tags` -Required: +Optional: - `key` (String) The key name of the tag. - `value` (String) The value for the tag. diff --git a/docs/resources/route53_hosted_zone.md b/docs/resources/route53_hosted_zone.md index 9b1006bda9..1eb131cce3 100644 --- a/docs/resources/route53_hosted_zone.md +++ b/docs/resources/route53_hosted_zone.md @@ -120,7 +120,7 @@ Optional: ### Nested Schema for `hosted_zone_tags` -Required: +Optional: - `key` (String) The value of ``Key`` depends on the operation that you want to perform: + *Add a tag to a health check or hosted zone*: ``Key`` is the name that you want to give the new tag. @@ -135,7 +135,7 @@ Required: ### Nested Schema for `query_logging_config` -Required: +Optional: - `cloudwatch_logs_log_group_arn` (String) The Amazon Resource Name (ARN) of the CloudWatch Logs log group that Amazon Route 53 is publishing logs to. @@ -143,7 +143,7 @@ Required: ### Nested Schema for `vp_cs` -Required: +Optional: - `vpc_id` (String) *Private hosted zones only:* The ID of an Amazon VPC. For public hosted zones, omit ``VPCs``, ``VPCId``, and ``VPCRegion``. diff --git a/docs/resources/route53profiles_profile.md b/docs/resources/route53profiles_profile.md index ecf3d031c6..477e7f297d 100644 --- a/docs/resources/route53profiles_profile.md +++ b/docs/resources/route53profiles_profile.md @@ -42,7 +42,7 @@ resource "awscc_route53profiles_profile" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/route53profiles_profile_association.md b/docs/resources/route53profiles_profile_association.md index c9c10aabaf..1437e56b28 100644 --- a/docs/resources/route53profiles_profile_association.md +++ b/docs/resources/route53profiles_profile_association.md @@ -34,7 +34,7 @@ Resource Type definition for AWS::Route53Profiles::ProfileAssociation ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/route53recoverycontrol_cluster.md b/docs/resources/route53recoverycontrol_cluster.md index 6d9b6c8c26..31b3728157 100644 --- a/docs/resources/route53recoverycontrol_cluster.md +++ b/docs/resources/route53recoverycontrol_cluster.md @@ -33,7 +33,7 @@ AWS Route53 Recovery Control Cluster resource schema ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/route53recoverycontrol_control_panel.md b/docs/resources/route53recoverycontrol_control_panel.md index f90ced6a49..fd3ca0ca4f 100644 --- a/docs/resources/route53recoverycontrol_control_panel.md +++ b/docs/resources/route53recoverycontrol_control_panel.md @@ -35,7 +35,7 @@ AWS Route53 Recovery Control Control Panel resource schema . ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/route53recoverycontrol_safety_rule.md b/docs/resources/route53recoverycontrol_safety_rule.md index f4fa0883b1..d6d451ec5d 100644 --- a/docs/resources/route53recoverycontrol_safety_rule.md +++ b/docs/resources/route53recoverycontrol_safety_rule.md @@ -33,7 +33,7 @@ Resource schema for AWS Route53 Recovery Control basic constructs and validation ### Nested Schema for `assertion_rule` -Required: +Optional: - `asserted_controls` (List of String) The routing controls that are part of transactions that are evaluated to determine if a request to change a routing control state is allowed. For example, you might include three routing controls, one for each of three AWS Regions. - `wait_period_ms` (Number) An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent "flapping" of state. The wait period is 5000 ms by default, but you can choose a custom value. @@ -42,7 +42,7 @@ Required: ### Nested Schema for `gating_rule` -Required: +Optional: - `gating_controls` (List of String) The gating controls for the gating rule. That is, routing controls that are evaluated by the rule configuration that you specify. - `target_controls` (List of String) Routing controls that can only be set or unset if the specified RuleConfig evaluates to true for the specified GatingControls. For example, say you have three gating controls, one for each of three AWS Regions. Now you specify AtLeast 2 as your RuleConfig. With these settings, you can only change (set or unset) the routing controls that you have specified as TargetControls if that rule evaluates to true. @@ -53,7 +53,7 @@ In other words, your ability to change the routing controls that you have specif ### Nested Schema for `rule_config` -Required: +Optional: - `inverted` (Boolean) Logical negation of the rule. If the rule would usually evaluate true, it's evaluated as false, and vice versa. - `threshold` (Number) The value of N, when you specify an ATLEAST rule type. That is, Threshold is the number of controls that must be set when you specify an ATLEAST type. @@ -63,7 +63,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/route53recoveryreadiness_cell.md b/docs/resources/route53recoveryreadiness_cell.md index d68729c21e..ba467e5576 100644 --- a/docs/resources/route53recoveryreadiness_cell.md +++ b/docs/resources/route53recoveryreadiness_cell.md @@ -30,7 +30,7 @@ The API Schema for AWS Route53 Recovery Readiness Cells. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/route53recoveryreadiness_readiness_check.md b/docs/resources/route53recoveryreadiness_readiness_check.md index 3bd6398d7e..c3bd687b1d 100644 --- a/docs/resources/route53recoveryreadiness_readiness_check.md +++ b/docs/resources/route53recoveryreadiness_readiness_check.md @@ -29,7 +29,7 @@ Aws Route53 Recovery Readiness Check Schema and API specification. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/route53recoveryreadiness_recovery_group.md b/docs/resources/route53recoveryreadiness_recovery_group.md index a8aae265ce..71735f8c02 100644 --- a/docs/resources/route53recoveryreadiness_recovery_group.md +++ b/docs/resources/route53recoveryreadiness_recovery_group.md @@ -29,7 +29,7 @@ AWS Route53 Recovery Readiness Recovery Group Schema and API specifications. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/route53recoveryreadiness_resource_set.md b/docs/resources/route53recoveryreadiness_resource_set.md index 249b644d29..70a86f3a54 100644 --- a/docs/resources/route53recoveryreadiness_resource_set.md +++ b/docs/resources/route53recoveryreadiness_resource_set.md @@ -84,7 +84,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/route53resolver_firewall_domain_list.md b/docs/resources/route53resolver_firewall_domain_list.md index 3e4b1343d4..ad4d3c00b9 100644 --- a/docs/resources/route53resolver_firewall_domain_list.md +++ b/docs/resources/route53resolver_firewall_domain_list.md @@ -38,7 +38,7 @@ Resource schema for AWS::Route53Resolver::FirewallDomainList. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/route53resolver_firewall_rule_group.md b/docs/resources/route53resolver_firewall_rule_group.md index 474e79cbff..1f5d004471 100644 --- a/docs/resources/route53resolver_firewall_rule_group.md +++ b/docs/resources/route53resolver_firewall_rule_group.md @@ -38,26 +38,23 @@ Resource schema for AWS::Route53Resolver::FirewallRuleGroup. ### Nested Schema for `firewall_rules` -Required: - -- `action` (String) Rule Action -- `firewall_domain_list_id` (String) ResourceId -- `priority` (Number) Rule Priority - Optional: +- `action` (String) Rule Action - `block_override_dns_type` (String) BlockOverrideDnsType - `block_override_domain` (String) BlockOverrideDomain - `block_override_ttl` (Number) BlockOverrideTtl - `block_response` (String) BlockResponse +- `firewall_domain_list_id` (String) ResourceId - `firewall_domain_redirection_action` (String) FirewallDomainRedirectionAction +- `priority` (Number) Rule Priority - `qtype` (String) Qtype ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/route53resolver_firewall_rule_group_association.md b/docs/resources/route53resolver_firewall_rule_group_association.md index 17e3721e42..0b36b7d9f9 100644 --- a/docs/resources/route53resolver_firewall_rule_group_association.md +++ b/docs/resources/route53resolver_firewall_rule_group_association.md @@ -42,7 +42,7 @@ Resource schema for AWS::Route53Resolver::FirewallRuleGroupAssociation. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/route53resolver_outpost_resolver.md b/docs/resources/route53resolver_outpost_resolver.md index f8d7d73597..8d29e89f3a 100644 --- a/docs/resources/route53resolver_outpost_resolver.md +++ b/docs/resources/route53resolver_outpost_resolver.md @@ -40,7 +40,7 @@ Resource schema for AWS::Route53Resolver::OutpostResolver. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/route53resolver_resolver_rule.md b/docs/resources/route53resolver_resolver_rule.md index 34ce6245f1..060f49498a 100644 --- a/docs/resources/route53resolver_resolver_rule.md +++ b/docs/resources/route53resolver_resolver_rule.md @@ -65,7 +65,7 @@ resource "awscc_route53resolver_resolver_rule" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/rum_app_monitor.md b/docs/resources/rum_app_monitor.md index 1ffce99a37..83e290cc36 100644 --- a/docs/resources/rum_app_monitor.md +++ b/docs/resources/rum_app_monitor.md @@ -51,12 +51,9 @@ Optional: ### Nested Schema for `app_monitor_configuration.metric_destinations` -Required: - -- `destination` (String) Defines the destination to send the metrics to. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the Evidently experiment that is to be the destination and an IAM role that has permission to write to the experiment. - Optional: +- `destination` (String) Defines the destination to send the metrics to. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the Evidently experiment that is to be the destination and an IAM role that has permission to write to the experiment. - `destination_arn` (String) Use this parameter only if Destination is Evidently. This parameter specifies the ARN of the Evidently experiment that will receive the extended metrics. - `iam_role_arn` (String) This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter. @@ -66,32 +63,6 @@ This parameter specifies the ARN of an IAM role that RUM will assume to write to ### Nested Schema for `app_monitor_configuration.metric_destinations.metric_definitions` -Required: - -- `name` (String) The name for the metric that is defined in this structure. For extended metrics, valid values are the following: - -PerformanceNavigationDuration - -PerformanceResourceDuration - -NavigationSatisfiedTransaction - -NavigationToleratedTransaction - -NavigationFrustratedTransaction - -WebVitalsCumulativeLayoutShift - -WebVitalsFirstInputDelay - -WebVitalsLargestContentfulPaint - -JsErrorCount - -HttpErrorCount - -SessionCount - Optional: - `dimension_keys` (Map of String) Use this field only if you are sending the metric to CloudWatch. @@ -124,6 +95,29 @@ Example event patterns: '{ "event_type": ["com.amazon.rum.performance_navigation_event"], "metadata": { "browserName": [ "Chrome", "Safari" ], "countryCode": [ "US" ] }, "event_details": { "duration": [{ "numeric": [ ">=", 2000, "<", 8000 ] }] } }' If the metrics destination' is CloudWatch and the event also matches a value in DimensionKeys, then the metric is published with the specified dimensions. +- `name` (String) The name for the metric that is defined in this structure. For extended metrics, valid values are the following: + +PerformanceNavigationDuration + +PerformanceResourceDuration + +NavigationSatisfiedTransaction + +NavigationToleratedTransaction + +NavigationFrustratedTransaction + +WebVitalsCumulativeLayoutShift + +WebVitalsFirstInputDelay + +WebVitalsLargestContentfulPaint + +JsErrorCount + +HttpErrorCount + +SessionCount - `namespace` (String) The namespace used by CloudWatch Metrics for the metric that is defined in this structure - `unit_label` (String) The CloudWatch metric unit to use for this metric. If you omit this field, the metric is recorded with no unit. - `value_key` (String) The field within the event object that the metric value is sourced from. @@ -146,7 +140,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/s3_access_grant.md b/docs/resources/s3_access_grant.md index c4ddaabe55..4387d1ec59 100644 --- a/docs/resources/s3_access_grant.md +++ b/docs/resources/s3_access_grant.md @@ -47,7 +47,7 @@ Required: ### Nested Schema for `access_grants_location_configuration` -Required: +Optional: - `s3_sub_prefix` (String) The S3 sub prefix of a registered location in your S3 Access Grants instance @@ -55,7 +55,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/s3_access_grants_instance.md b/docs/resources/s3_access_grants_instance.md index 456960442a..de38f3c8fd 100644 --- a/docs/resources/s3_access_grants_instance.md +++ b/docs/resources/s3_access_grants_instance.md @@ -29,7 +29,7 @@ The AWS::S3::AccessGrantsInstance resource is an Amazon S3 resource type that ho ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/s3_access_grants_location.md b/docs/resources/s3_access_grants_location.md index cababf6b7a..6cf72ff5d0 100644 --- a/docs/resources/s3_access_grants_location.md +++ b/docs/resources/s3_access_grants_location.md @@ -30,7 +30,7 @@ The AWS::S3::AccessGrantsLocation resource is an Amazon S3 resource type hosted ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/s3_bucket.md b/docs/resources/s3_bucket.md index 187657b6d9..a6bbce56b6 100644 --- a/docs/resources/s3_bucket.md +++ b/docs/resources/s3_bucket.md @@ -397,7 +397,7 @@ resource "awscc_s3_bucket" "example" { ### Nested Schema for `accelerate_configuration` -Required: +Optional: - `acceleration_status` (String) Specifies the transfer acceleration status of the bucket. @@ -405,14 +405,11 @@ Required: ### Nested Schema for `analytics_configurations` -Required: - -- `id` (String) The ID that identifies the analytics configuration. -- `storage_class_analysis` (Attributes) Contains data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes. (see [below for nested schema](#nestedatt--analytics_configurations--storage_class_analysis)) - Optional: +- `id` (String) The ID that identifies the analytics configuration. - `prefix` (String) The prefix that an object must have to be included in the analytics results. +- `storage_class_analysis` (Attributes) Contains data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes. (see [below for nested schema](#nestedatt--analytics_configurations--storage_class_analysis)) - `tag_filters` (Attributes List) The tags to use when evaluating an analytics filter. The analytics only includes objects that meet the filter's criteria. If no filter is specified, all of the contents of the bucket are included in the analysis. (see [below for nested schema](#nestedatt--analytics_configurations--tag_filters)) @@ -426,7 +423,7 @@ Optional: ### Nested Schema for `analytics_configurations.storage_class_analysis.data_export` -Required: +Optional: - `destination` (Attributes) The place to store the data for an analysis. (see [below for nested schema](#nestedatt--analytics_configurations--storage_class_analysis--data_export--destination)) - `output_schema_version` (String) The version of the output schema to use when exporting data. Must be ``V_1``. @@ -434,16 +431,13 @@ Required: ### Nested Schema for `analytics_configurations.storage_class_analysis.data_export.destination` -Required: - -- `bucket_arn` (String) The Amazon Resource Name (ARN) of the bucket to which data is exported. -- `format` (String) Specifies the file format used when exporting data to Amazon S3. - *Allowed values*: ``CSV`` | ``ORC`` | ``Parquet`` - Optional: - `bucket_account_id` (String) The account ID that owns the destination S3 bucket. If no account ID is provided, the owner is not validated before exporting data. Although this value is optional, we strongly recommend that you set it to help prevent problems if the destination bucket ownership changes. +- `bucket_arn` (String) The Amazon Resource Name (ARN) of the bucket to which data is exported. +- `format` (String) Specifies the file format used when exporting data to Amazon S3. + *Allowed values*: ``CSV`` | ``ORC`` | ``Parquet`` - `prefix` (String) The prefix to use when exporting data. The prefix is prepended to all results. @@ -452,7 +446,7 @@ Optional: ### Nested Schema for `analytics_configurations.tag_filters` -Required: +Optional: - `key` (String) The tag key. - `value` (String) The tag value. @@ -462,7 +456,7 @@ Required: ### Nested Schema for `bucket_encryption` -Required: +Optional: - `server_side_encryption_configuration` (Attributes List) Specifies the default server-side-encryption configuration. (see [below for nested schema](#nestedatt--bucket_encryption--server_side_encryption_configuration)) @@ -478,10 +472,6 @@ Optional: ### Nested Schema for `bucket_encryption.server_side_encryption_configuration.server_side_encryption_by_default` -Required: - -- `sse_algorithm` (String) Server-side encryption algorithm to use for the default encryption. - Optional: - `kms_master_key_id` (String) AWS Key Management Service (KMS) customer AWS KMS key ID to use for the default encryption. This parameter is allowed if and only if ``SSEAlgorithm`` is set to ``aws:kms`` or ``aws:kms:dsse``. @@ -493,6 +483,7 @@ Optional: If you use a key ID, you can run into a LogDestination undeliverable error when creating a VPC flow log. If you are using encryption with cross-account or AWS service operations you must use a fully qualified KMS key ARN. For more information, see [Using encryption for cross-account operations](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html#bucket-encryption-update-bucket-policy). Amazon S3 only supports symmetric encryption KMS keys. For more information, see [Asymmetric keys in KMS](https://docs.aws.amazon.com//kms/latest/developerguide/symmetric-asymmetric.html) in the *Key Management Service Developer Guide*. +- `sse_algorithm` (String) Server-side encryption algorithm to use for the default encryption. @@ -500,22 +491,19 @@ Optional: ### Nested Schema for `cors_configuration` -Required: +Optional: - `cors_rules` (Attributes List) A set of origins and methods (cross-origin access that you want to allow). You can add up to 100 rules to the configuration. (see [below for nested schema](#nestedatt--cors_configuration--cors_rules)) ### Nested Schema for `cors_configuration.cors_rules` -Required: +Optional: +- `allowed_headers` (List of String) Headers that are specified in the ``Access-Control-Request-Headers`` header. These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, Amazon S3 returns any requested headers that are allowed. - `allowed_methods` (List of String) An HTTP method that you allow the origin to run. *Allowed values*: ``GET`` | ``PUT`` | ``HEAD`` | ``POST`` | ``DELETE`` - `allowed_origins` (List of String) One or more origins you want customers to be able to access the bucket from. - -Optional: - -- `allowed_headers` (List of String) Headers that are specified in the ``Access-Control-Request-Headers`` header. These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, Amazon S3 returns any requested headers that are allowed. - `exposed_headers` (List of String) One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript ``XMLHttpRequest`` object). - `id` (String) A unique identifier for this rule. The value must be no more than 255 characters. - `max_age` (Number) The time in seconds that your browser is to cache the preflight response for the specified resource. @@ -525,66 +513,57 @@ Optional: ### Nested Schema for `intelligent_tiering_configurations` -Required: +Optional: - `id` (String) The ID used to identify the S3 Intelligent-Tiering configuration. +- `prefix` (String) An object key name prefix that identifies the subset of objects to which the rule applies. - `status` (String) Specifies the status of the configuration. +- `tag_filters` (Attributes List) A container for a key-value pair. (see [below for nested schema](#nestedatt--intelligent_tiering_configurations--tag_filters)) - `tierings` (Attributes List) Specifies a list of S3 Intelligent-Tiering storage class tiers in the configuration. At least one tier must be defined in the list. At most, you can specify two tiers in the list, one for each available AccessTier: ``ARCHIVE_ACCESS`` and ``DEEP_ARCHIVE_ACCESS``. You only need Intelligent Tiering Configuration enabled on a bucket if you want to automatically move objects stored in the Intelligent-Tiering storage class to Archive Access or Deep Archive Access tiers. (see [below for nested schema](#nestedatt--intelligent_tiering_configurations--tierings)) + +### Nested Schema for `intelligent_tiering_configurations.tag_filters` + Optional: -- `prefix` (String) An object key name prefix that identifies the subset of objects to which the rule applies. -- `tag_filters` (Attributes List) A container for a key-value pair. (see [below for nested schema](#nestedatt--intelligent_tiering_configurations--tag_filters)) +- `key` (String) The tag key. +- `value` (String) The tag value. + ### Nested Schema for `intelligent_tiering_configurations.tierings` -Required: +Optional: - `access_tier` (String) S3 Intelligent-Tiering access tier. See [Storage class for automatically optimizing frequently and infrequently accessed objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-dynamic-data-access) for a list of access tiers in the S3 Intelligent-Tiering storage class. - `days` (Number) The number of consecutive days of no access after which an object will be eligible to be transitioned to the corresponding tier. The minimum number of days specified for Archive Access tier must be at least 90 days and Deep Archive Access tier must be at least 180 days. The maximum can be up to 2 years (730 days). - -### Nested Schema for `intelligent_tiering_configurations.tag_filters` - -Required: - -- `key` (String) The tag key. -- `value` (String) The tag value. - - ### Nested Schema for `inventory_configurations` -Required: +Optional: - `destination` (Attributes) Contains information about where to publish the inventory results. (see [below for nested schema](#nestedatt--inventory_configurations--destination)) - `enabled` (Boolean) Specifies whether the inventory is enabled or disabled. If set to ``True``, an inventory list is generated. If set to ``False``, no inventory list is generated. - `id` (String) The ID used to identify the inventory configuration. - `included_object_versions` (String) Object versions to include in the inventory list. If set to ``All``, the list includes all the object versions, which adds the version-related fields ``VersionId``, ``IsLatest``, and ``DeleteMarker`` to the list. If set to ``Current``, the list does not contain these version-related fields. -- `schedule_frequency` (String) Specifies the schedule for generating inventory results. - -Optional: - - `optional_fields` (List of String) Contains the optional fields that are included in the inventory results. - `prefix` (String) Specifies the inventory filter prefix. +- `schedule_frequency` (String) Specifies the schedule for generating inventory results. ### Nested Schema for `inventory_configurations.destination` -Required: - -- `bucket_arn` (String) The Amazon Resource Name (ARN) of the bucket to which data is exported. -- `format` (String) Specifies the file format used when exporting data to Amazon S3. - *Allowed values*: ``CSV`` | ``ORC`` | ``Parquet`` - Optional: - `bucket_account_id` (String) The account ID that owns the destination S3 bucket. If no account ID is provided, the owner is not validated before exporting data. Although this value is optional, we strongly recommend that you set it to help prevent problems if the destination bucket ownership changes. +- `bucket_arn` (String) The Amazon Resource Name (ARN) of the bucket to which data is exported. +- `format` (String) Specifies the file format used when exporting data to Amazon S3. + *Allowed values*: ``CSV`` | ``ORC`` | ``Parquet`` - `prefix` (String) The prefix to use when exporting data. The prefix is prepended to all results. @@ -592,17 +571,13 @@ Optional: ### Nested Schema for `lifecycle_configuration` -Required: +Optional: - `rules` (Attributes List) A lifecycle rule for individual objects in an Amazon S3 bucket. (see [below for nested schema](#nestedatt--lifecycle_configuration--rules)) ### Nested Schema for `lifecycle_configuration.rules` -Required: - -- `status` (String) If ``Enabled``, the rule is currently being applied. If ``Disabled``, the rule is not currently being applied. - Optional: - `abort_incomplete_multipart_upload` (Attributes) Specifies a lifecycle rule that stops incomplete multipart uploads to an Amazon S3 bucket. (see [below for nested schema](#nestedatt--lifecycle_configuration--rules--abort_incomplete_multipart_upload)) @@ -618,6 +593,7 @@ Optional: - `object_size_less_than` (String) Specifies the maximum object size in bytes for this rule to apply to. Objects must be smaller than this value in bytes. For more information about sized based rules, see [Lifecycle configuration using size-based rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-configuration-examples.html#lc-size-rules) in the *Amazon S3 User Guide*. - `prefix` (String) Object key prefix that identifies one or more objects to which this rule applies. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see [XML related object key constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints). +- `status` (String) If ``Enabled``, the rule is currently being applied. If ``Disabled``, the rule is not currently being applied. - `tag_filters` (Attributes List) Tags to use to identify a subset of objects to which the lifecycle rule applies. (see [below for nested schema](#nestedatt--lifecycle_configuration--rules--tag_filters)) - `transition` (Attributes) (Deprecated.) Specifies when an object transitions to a specified storage class. If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time. If you specify this property, don't specify the ``Transitions`` property. (see [below for nested schema](#nestedatt--lifecycle_configuration--rules--transition)) - `transitions` (Attributes List) One or more transition rules that specify when an object transitions to a specified storage class. If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time. If you specify this property, don't specify the ``Transition`` property. (see [below for nested schema](#nestedatt--lifecycle_configuration--rules--transitions)) @@ -625,7 +601,7 @@ Optional: ### Nested Schema for `lifecycle_configuration.rules.abort_incomplete_multipart_upload` -Required: +Optional: - `days_after_initiation` (Number) Specifies the number of days after which Amazon S3 stops an incomplete multipart upload. @@ -633,45 +609,36 @@ Required: ### Nested Schema for `lifecycle_configuration.rules.noncurrent_version_expiration` -Required: - -- `noncurrent_days` (Number) Specifies the number of days an object is noncurrent before S3 can perform the associated action. For information about the noncurrent days calculations, see [How Amazon S3 Calculates When an Object Became Noncurrent](https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) in the *Amazon S3 User Guide*. - Optional: - `newer_noncurrent_versions` (Number) Specifies how many noncurrent versions S3 will retain. If there are this many more recent noncurrent versions, S3 will take the associated action. For more information about noncurrent versions, see [Lifecycle configuration elements](https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html) in the *Amazon S3 User Guide*. +- `noncurrent_days` (Number) Specifies the number of days an object is noncurrent before S3 can perform the associated action. For information about the noncurrent days calculations, see [How Amazon S3 Calculates When an Object Became Noncurrent](https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) in the *Amazon S3 User Guide*. ### Nested Schema for `lifecycle_configuration.rules.noncurrent_version_transition` -Required: - -- `storage_class` (String) The class of storage used to store the object. -- `transition_in_days` (Number) Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. For information about the noncurrent days calculations, see [How Amazon S3 Calculates How Long an Object Has Been Noncurrent](https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) in the *Amazon S3 User Guide*. - Optional: - `newer_noncurrent_versions` (Number) Specifies how many noncurrent versions S3 will retain. If there are this many more recent noncurrent versions, S3 will take the associated action. For more information about noncurrent versions, see [Lifecycle configuration elements](https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html) in the *Amazon S3 User Guide*. +- `storage_class` (String) The class of storage used to store the object. +- `transition_in_days` (Number) Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. For information about the noncurrent days calculations, see [How Amazon S3 Calculates How Long an Object Has Been Noncurrent](https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) in the *Amazon S3 User Guide*. ### Nested Schema for `lifecycle_configuration.rules.noncurrent_version_transitions` -Required: - -- `storage_class` (String) The class of storage used to store the object. -- `transition_in_days` (Number) Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. For information about the noncurrent days calculations, see [How Amazon S3 Calculates How Long an Object Has Been Noncurrent](https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) in the *Amazon S3 User Guide*. - Optional: - `newer_noncurrent_versions` (Number) Specifies how many noncurrent versions S3 will retain. If there are this many more recent noncurrent versions, S3 will take the associated action. For more information about noncurrent versions, see [Lifecycle configuration elements](https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html) in the *Amazon S3 User Guide*. +- `storage_class` (String) The class of storage used to store the object. +- `transition_in_days` (Number) Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. For information about the noncurrent days calculations, see [How Amazon S3 Calculates How Long an Object Has Been Noncurrent](https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) in the *Amazon S3 User Guide*. ### Nested Schema for `lifecycle_configuration.rules.tag_filters` -Required: +Optional: - `key` (String) The tag key. - `value` (String) The tag value. @@ -680,12 +647,9 @@ Required: ### Nested Schema for `lifecycle_configuration.rules.transition` -Required: - -- `storage_class` (String) The storage class to which you want the object to transition. - Optional: +- `storage_class` (String) The storage class to which you want the object to transition. - `transition_date` (String) Indicates when objects are transitioned to the specified storage class. The date value must be in ISO 8601 format. The time is always midnight UTC. - `transition_in_days` (Number) Indicates the number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer. @@ -693,12 +657,9 @@ Optional: ### Nested Schema for `lifecycle_configuration.rules.transitions` -Required: - -- `storage_class` (String) The storage class to which you want the object to transition. - Optional: +- `storage_class` (String) The storage class to which you want the object to transition. - `transition_date` (String) Indicates when objects are transitioned to the specified storage class. The date value must be in ISO 8601 format. The time is always midnight UTC. - `transition_in_days` (Number) Indicates the number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer. @@ -739,20 +700,17 @@ Optional: ### Nested Schema for `metrics_configurations` -Required: - -- `id` (String) The ID used to identify the metrics configuration. This can be any value you choose that helps you identify your metrics configuration. - Optional: - `access_point_arn` (String) The access point that was used while performing operations on the object. The metrics configuration only includes objects that meet the filter's criteria. +- `id` (String) The ID used to identify the metrics configuration. This can be any value you choose that helps you identify your metrics configuration. - `prefix` (String) The prefix that an object must have to be included in the metrics results. - `tag_filters` (Attributes List) Specifies a list of tag filters to use as a metrics configuration filter. The metrics configuration includes only objects that meet the filter's criteria. (see [below for nested schema](#nestedatt--metrics_configurations--tag_filters)) ### Nested Schema for `metrics_configurations.tag_filters` -Required: +Optional: - `key` (String) The tag key. - `value` (String) The tag value. @@ -780,33 +738,30 @@ Optional: ### Nested Schema for `notification_configuration.lambda_configurations` -Required: - -- `event` (String) The Amazon S3 bucket event for which to invoke the LAMlong function. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*. -- `function` (String) The Amazon Resource Name (ARN) of the LAMlong function that Amazon S3 invokes when the specified event type occurs. - Optional: +- `event` (String) The Amazon S3 bucket event for which to invoke the LAMlong function. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*. - `filter` (Attributes) The filtering rules that determine which objects invoke the AWS Lambda function. For example, you can create a filter so that only image files with a ``.jpg`` extension invoke the function when they are added to the Amazon S3 bucket. (see [below for nested schema](#nestedatt--notification_configuration--lambda_configurations--filter)) +- `function` (String) The Amazon Resource Name (ARN) of the LAMlong function that Amazon S3 invokes when the specified event type occurs. ### Nested Schema for `notification_configuration.lambda_configurations.filter` -Required: +Optional: - `s3_key` (Attributes) A container for object key name prefix and suffix filtering rules. (see [below for nested schema](#nestedatt--notification_configuration--lambda_configurations--filter--s3_key)) ### Nested Schema for `notification_configuration.lambda_configurations.filter.s3_key` -Required: +Optional: - `rules` (Attributes Set) A list of containers for the key-value pair that defines the criteria for the filter rule. (see [below for nested schema](#nestedatt--notification_configuration--lambda_configurations--filter--s3_key--rules)) ### Nested Schema for `notification_configuration.lambda_configurations.filter.s3_key.rules` -Required: +Optional: - `name` (String) The object key name prefix or suffix identifying one or more objects to which the filtering rule applies. The maximum length is 1,024 characters. Overlapping prefixes and suffixes are not supported. For more information, see [Configuring Event Notifications](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*. - `value` (String) The value that the filter searches for in object key names. @@ -818,33 +773,30 @@ Required: ### Nested Schema for `notification_configuration.queue_configurations` -Required: - -- `event` (String) The Amazon S3 bucket event about which you want to publish messages to Amazon SQS. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*. -- `queue` (String) The Amazon Resource Name (ARN) of the Amazon SQS queue to which Amazon S3 publishes a message when it detects events of the specified type. FIFO queues are not allowed when enabling an SQS queue as the event notification destination. - Optional: +- `event` (String) The Amazon S3 bucket event about which you want to publish messages to Amazon SQS. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*. - `filter` (Attributes) The filtering rules that determine which objects trigger notifications. For example, you can create a filter so that Amazon S3 sends notifications only when image files with a ``.jpg`` extension are added to the bucket. For more information, see [Configuring event notifications using object key name filtering](https://docs.aws.amazon.com/AmazonS3/latest/user-guide/notification-how-to-filtering.html) in the *Amazon S3 User Guide*. (see [below for nested schema](#nestedatt--notification_configuration--queue_configurations--filter)) +- `queue` (String) The Amazon Resource Name (ARN) of the Amazon SQS queue to which Amazon S3 publishes a message when it detects events of the specified type. FIFO queues are not allowed when enabling an SQS queue as the event notification destination. ### Nested Schema for `notification_configuration.queue_configurations.filter` -Required: +Optional: - `s3_key` (Attributes) A container for object key name prefix and suffix filtering rules. (see [below for nested schema](#nestedatt--notification_configuration--queue_configurations--filter--s3_key)) ### Nested Schema for `notification_configuration.queue_configurations.filter.s3_key` -Required: +Optional: - `rules` (Attributes Set) A list of containers for the key-value pair that defines the criteria for the filter rule. (see [below for nested schema](#nestedatt--notification_configuration--queue_configurations--filter--s3_key--rules)) ### Nested Schema for `notification_configuration.queue_configurations.filter.s3_key.rules` -Required: +Optional: - `name` (String) The object key name prefix or suffix identifying one or more objects to which the filtering rule applies. The maximum length is 1,024 characters. Overlapping prefixes and suffixes are not supported. For more information, see [Configuring Event Notifications](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*. - `value` (String) The value that the filter searches for in object key names. @@ -856,33 +808,30 @@ Required: ### Nested Schema for `notification_configuration.topic_configurations` -Required: - -- `event` (String) The Amazon S3 bucket event about which to send notifications. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*. -- `topic` (String) The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 publishes a message when it detects events of the specified type. - Optional: +- `event` (String) The Amazon S3 bucket event about which to send notifications. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*. - `filter` (Attributes) The filtering rules that determine for which objects to send notifications. For example, you can create a filter so that Amazon S3 sends notifications only when image files with a ``.jpg`` extension are added to the bucket. (see [below for nested schema](#nestedatt--notification_configuration--topic_configurations--filter)) +- `topic` (String) The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 publishes a message when it detects events of the specified type. ### Nested Schema for `notification_configuration.topic_configurations.filter` -Required: +Optional: - `s3_key` (Attributes) A container for object key name prefix and suffix filtering rules. (see [below for nested schema](#nestedatt--notification_configuration--topic_configurations--filter--s3_key)) ### Nested Schema for `notification_configuration.topic_configurations.filter.s3_key` -Required: +Optional: - `rules` (Attributes Set) A list of containers for the key-value pair that defines the criteria for the filter rule. (see [below for nested schema](#nestedatt--notification_configuration--topic_configurations--filter--s3_key--rules)) ### Nested Schema for `notification_configuration.topic_configurations.filter.s3_key.rules` -Required: +Optional: - `name` (String) The object key name prefix or suffix identifying one or more objects to which the filtering rule applies. The maximum length is 1,024 characters. Overlapping prefixes and suffixes are not supported. For more information, see [Configuring Event Notifications](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*. - `value` (String) The value that the filter searches for in object key names. @@ -922,7 +871,7 @@ Optional: ### Nested Schema for `ownership_controls` -Required: +Optional: - `rules` (Attributes List) Specifies the container element for Object Ownership rules. (see [below for nested schema](#nestedatt--ownership_controls--rules)) @@ -957,7 +906,7 @@ Optional: ### Nested Schema for `replication_configuration` -Required: +Optional: - `role` (String) The Amazon Resource Name (ARN) of the IAMlong (IAM) role that Amazon S3 assumes when replicating objects. For more information, see [How to Set Up Replication](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-how-setup.html) in the *Amazon S3 User Guide*. - `rules` (Attributes List) A container for one or more replication rules. A replication configuration must have at least one rule and can contain a maximum of 1,000 rules. (see [below for nested schema](#nestedatt--replication_configuration--rules)) @@ -965,16 +914,12 @@ Required: ### Nested Schema for `replication_configuration.rules` -Required: - -- `destination` (Attributes) A container for information about the replication destination and its configurations including enabling the S3 Replication Time Control (S3 RTC). (see [below for nested schema](#nestedatt--replication_configuration--rules--destination)) -- `status` (String) Specifies whether the rule is enabled. - Optional: - `delete_marker_replication` (Attributes) Specifies whether Amazon S3 replicates delete markers. If you specify a ``Filter`` in your replication configuration, you must also include a ``DeleteMarkerReplication`` element. If your ``Filter`` includes a ``Tag`` element, the ``DeleteMarkerReplication`` ``Status`` must be set to Disabled, because Amazon S3 does not support replicating delete markers for tag-based rules. For an example configuration, see [Basic Rule Configuration](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-add-config.html#replication-config-min-rule-config). For more information about delete marker replication, see [Basic Rule Configuration](https://docs.aws.amazon.com/AmazonS3/latest/dev/delete-marker-replication.html). If you are using an earlier version of the replication configuration, Amazon S3 handles replication of delete markers differently. For more information, see [Backward Compatibility](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-add-config.html#replication-backward-compat-considerations). (see [below for nested schema](#nestedatt--replication_configuration--rules--delete_marker_replication)) +- `destination` (Attributes) A container for information about the replication destination and its configurations including enabling the S3 Replication Time Control (S3 RTC). (see [below for nested schema](#nestedatt--replication_configuration--rules--destination)) - `filter` (Attributes) A filter that identifies the subset of objects to which the replication rule applies. A ``Filter`` must specify exactly one ``Prefix``, ``TagFilter``, or an ``And`` child element. The use of the filter field indicates that this is a V2 replication configuration. This field isn't supported in a V1 replication configuration. V1 replication configuration only supports filtering by key prefix. To filter using a V1 replication configuration, add the ``Prefix`` directly as a child element of the ``Rule`` element. (see [below for nested schema](#nestedatt--replication_configuration--rules--filter)) - `id` (String) A unique identifier for the rule. The maximum value is 255 characters. If you don't specify a value, AWS CloudFormation generates a random ID. When using a V2 replication configuration this property is capitalized as "ID". @@ -983,19 +928,25 @@ Optional: - `priority` (Number) The priority indicates which rule has precedence whenever two or more replication rules conflict. Amazon S3 will attempt to replicate objects according to all replication rules. However, if there are two or more rules with the same destination bucket, then objects will be replicated according to the rule with the highest priority. The higher the number, the higher the priority. For more information, see [Replication](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html) in the *Amazon S3 User Guide*. - `source_selection_criteria` (Attributes) A container that describes additional filters for identifying the source objects that you want to replicate. You can choose to enable or disable the replication of these objects. (see [below for nested schema](#nestedatt--replication_configuration--rules--source_selection_criteria)) +- `status` (String) Specifies whether the rule is enabled. - -### Nested Schema for `replication_configuration.rules.destination` + +### Nested Schema for `replication_configuration.rules.delete_marker_replication` -Required: +Optional: -- `bucket` (String) The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results. +- `status` (String) Indicates whether to replicate delete markers. Disabled by default. + + + +### Nested Schema for `replication_configuration.rules.destination` Optional: - `access_control_translation` (Attributes) Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the AWS-account that owns the destination bucket. If this is not specified in the replication configuration, the replicas are owned by same AWS-account that owns the source object. (see [below for nested schema](#nestedatt--replication_configuration--rules--destination--access_control_translation)) - `account` (String) Destination bucket owner account ID. In a cross-account scenario, if you direct Amazon S3 to change replica ownership to the AWS-account that owns the destination bucket by specifying the ``AccessControlTranslation`` property, this is the account ID of the destination bucket owner. For more information, see [Cross-Region Replication Additional Configuration: Change Replica Owner](https://docs.aws.amazon.com/AmazonS3/latest/dev/crr-change-owner.html) in the *Amazon S3 User Guide*. If you specify the ``AccessControlTranslation`` property, the ``Account`` property is required. +- `bucket` (String) The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results. - `encryption_configuration` (Attributes) Specifies encryption-related information. (see [below for nested schema](#nestedatt--replication_configuration--rules--destination--encryption_configuration)) - `metrics` (Attributes) A container specifying replication metrics-related settings enabling replication metrics and events. (see [below for nested schema](#nestedatt--replication_configuration--rules--destination--metrics)) - `replication_time` (Attributes) A container specifying S3 Replication Time Control (S3 RTC), including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated. Must be specified together with a ``Metrics`` block. (see [below for nested schema](#nestedatt--replication_configuration--rules--destination--replication_time)) @@ -1005,7 +956,7 @@ Optional: ### Nested Schema for `replication_configuration.rules.destination.access_control_translation` -Required: +Optional: - `owner` (String) Specifies the replica ownership. For default and valid values, see [PUT bucket replication](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTreplication.html) in the *Amazon S3 API Reference*. @@ -1013,7 +964,7 @@ Required: ### Nested Schema for `replication_configuration.rules.destination.encryption_configuration` -Required: +Optional: - `replica_kms_key_id` (String) Specifies the ID (Key ARN or Alias ARN) of the customer managed AWS KMS key stored in AWS Key Management Service (KMS) for the destination bucket. Amazon S3 uses this key to encrypt replica objects. Amazon S3 only supports symmetric encryption KMS keys. For more information, see [Asymmetric keys in KMS](https://docs.aws.amazon.com//kms/latest/developerguide/symmetric-asymmetric.html) in the *Key Management Service Developer Guide*. @@ -1021,18 +972,15 @@ Required: ### Nested Schema for `replication_configuration.rules.destination.metrics` -Required: - -- `status` (String) Specifies whether the replication metrics are enabled. - Optional: - `event_threshold` (Attributes) A container specifying the time threshold for emitting the ``s3:Replication:OperationMissedThreshold`` event. (see [below for nested schema](#nestedatt--replication_configuration--rules--destination--metrics--event_threshold)) +- `status` (String) Specifies whether the replication metrics are enabled. ### Nested Schema for `replication_configuration.rules.destination.metrics.event_threshold` -Required: +Optional: - `minutes` (Number) Contains an integer specifying time in minutes. Valid value: 15 @@ -1042,7 +990,7 @@ Required: ### Nested Schema for `replication_configuration.rules.destination.replication_time` -Required: +Optional: - `status` (String) Specifies whether the replication time is enabled. - `time` (Attributes) A container specifying the time by which replication should be complete for all objects and operations on objects. (see [below for nested schema](#nestedatt--replication_configuration--rules--destination--replication_time--time)) @@ -1050,7 +998,7 @@ Required: ### Nested Schema for `replication_configuration.rules.destination.replication_time.time` -Required: +Optional: - `minutes` (Number) Contains an integer specifying time in minutes. Valid value: 15 @@ -1058,14 +1006,6 @@ Required: - -### Nested Schema for `replication_configuration.rules.delete_marker_replication` - -Optional: - -- `status` (String) Indicates whether to replicate delete markers. Disabled by default. - - ### Nested Schema for `replication_configuration.rules.filter` @@ -1090,7 +1030,7 @@ Optional: ### Nested Schema for `replication_configuration.rules.filter.and.tag_filters` -Required: +Optional: - `key` (String) The tag key. - `value` (String) The tag value. @@ -1100,7 +1040,7 @@ Required: ### Nested Schema for `replication_configuration.rules.filter.tag_filter` -Required: +Optional: - `key` (String) The tag key. - `value` (String) The tag value. @@ -1118,7 +1058,7 @@ Optional: ### Nested Schema for `replication_configuration.rules.source_selection_criteria.replica_modifications` -Required: +Optional: - `status` (String) Specifies whether Amazon S3 replicates modifications on replicas. *Allowed values*: ``Enabled`` | ``Disabled`` @@ -1127,7 +1067,7 @@ Required: ### Nested Schema for `replication_configuration.rules.source_selection_criteria.sse_kms_encrypted_objects` -Required: +Optional: - `status` (String) Specifies whether Amazon S3 replicates objects created with server-side encryption using an AWS KMS key stored in AWS Key Management Service. @@ -1138,7 +1078,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) Name of the object key. - `value` (String) Value of the tag. @@ -1166,24 +1106,18 @@ Optional: ### Nested Schema for `website_configuration.redirect_all_requests_to` -Required: - -- `host_name` (String) Name of the host where requests are redirected. - Optional: +- `host_name` (String) Name of the host where requests are redirected. - `protocol` (String) Protocol to use when redirecting requests. The default is the protocol that is used in the original request. ### Nested Schema for `website_configuration.routing_rules` -Required: - -- `redirect_rule` (Attributes) Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can specify a different error code to return. (see [below for nested schema](#nestedatt--website_configuration--routing_rules--redirect_rule)) - Optional: +- `redirect_rule` (Attributes) Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can specify a different error code to return. (see [below for nested schema](#nestedatt--website_configuration--routing_rules--redirect_rule)) - `routing_rule_condition` (Attributes) A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the ``/docs`` folder, redirect to the ``/documents`` folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error. (see [below for nested schema](#nestedatt--website_configuration--routing_rules--routing_rule_condition)) diff --git a/docs/resources/s3_storage_lens.md b/docs/resources/s3_storage_lens.md index d944d9665c..fa8239ce5a 100644 --- a/docs/resources/s3_storage_lens.md +++ b/docs/resources/s3_storage_lens.md @@ -183,7 +183,7 @@ Optional: ### Nested Schema for `storage_lens_configuration.account_level.bucket_level.prefix_level` -Required: +Optional: - `storage_metrics` (Attributes) (see [below for nested schema](#nestedatt--storage_lens_configuration--account_level--bucket_level--prefix_level--storage_metrics)) @@ -261,7 +261,7 @@ Optional: ### Nested Schema for `storage_lens_configuration.aws_org` -Required: +Optional: - `arn` (String) The Amazon Resource Name (ARN) of the specified resource. @@ -277,7 +277,7 @@ Optional: ### Nested Schema for `storage_lens_configuration.data_export.cloudwatch_metrics` -Required: +Optional: - `is_enabled` (Boolean) Specifies whether CloudWatch metrics are enabled or disabled. @@ -285,16 +285,13 @@ Required: ### Nested Schema for `storage_lens_configuration.data_export.s3_bucket_destination` -Required: +Optional: - `account_id` (String) The AWS account ID that owns the destination S3 bucket. - `arn` (String) The ARN of the bucket to which Amazon S3 Storage Lens exports will be placed. +- `encryption` (Attributes) Configures the server-side encryption for Amazon S3 Storage Lens report files with either S3-managed keys (SSE-S3) or KMS-managed keys (SSE-KMS). (see [below for nested schema](#nestedatt--storage_lens_configuration--data_export--s3_bucket_destination--encryption)) - `format` (String) Specifies the file format to use when exporting Amazon S3 Storage Lens metrics export. - `output_schema_version` (String) The version of the output schema to use when exporting Amazon S3 Storage Lens metrics. - -Optional: - -- `encryption` (Attributes) Configures the server-side encryption for Amazon S3 Storage Lens report files with either S3-managed keys (SSE-S3) or KMS-managed keys (SSE-KMS). (see [below for nested schema](#nestedatt--storage_lens_configuration--data_export--s3_bucket_destination--encryption)) - `prefix` (String) The prefix to use for Amazon S3 Storage Lens export. @@ -308,7 +305,7 @@ Optional: ### Nested Schema for `storage_lens_configuration.data_export.s3_bucket_destination.encryption.ssekms` -Required: +Optional: - `key_id` (String) The ARN of the KMS key to use for encryption. @@ -338,7 +335,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/s3_storage_lens_group.md b/docs/resources/s3_storage_lens_group.md index c801612de3..2e8aefa421 100644 --- a/docs/resources/s3_storage_lens_group.md +++ b/docs/resources/s3_storage_lens_group.md @@ -107,7 +107,7 @@ Optional: ### Nested Schema for `filter.and.match_any_tag` -Required: +Optional: - `key` (String) - `value` (String) @@ -135,7 +135,7 @@ Optional: ### Nested Schema for `filter.match_any_tag` -Required: +Optional: - `key` (String) - `value` (String) @@ -173,7 +173,7 @@ Optional: ### Nested Schema for `filter.or.match_any_tag` -Required: +Optional: - `key` (String) - `value` (String) @@ -202,7 +202,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/s3objectlambda_access_point.md b/docs/resources/s3objectlambda_access_point.md index 126431cc9d..ad9b6d73dc 100644 --- a/docs/resources/s3objectlambda_access_point.md +++ b/docs/resources/s3objectlambda_access_point.md @@ -63,12 +63,9 @@ Optional: ### Nested Schema for `object_lambda_configuration.transformation_configurations.content_transformation.aws_lambda` -Required: - -- `function_arn` (String) - Optional: +- `function_arn` (String) - `function_payload` (String) diff --git a/docs/resources/s3outposts_bucket.md b/docs/resources/s3outposts_bucket.md index 33101a9380..461e44f3a0 100644 --- a/docs/resources/s3outposts_bucket.md +++ b/docs/resources/s3outposts_bucket.md @@ -65,7 +65,7 @@ resource "awscc_s3outposts_bucket" "example" { ### Nested Schema for `lifecycle_configuration` -Required: +Optional: - `rules` (Attributes Set) A list of lifecycle rules for individual objects in an Amazon S3Outposts bucket. (see [below for nested schema](#nestedatt--lifecycle_configuration--rules)) @@ -84,7 +84,7 @@ Optional: ### Nested Schema for `lifecycle_configuration.rules.abort_incomplete_multipart_upload` -Required: +Optional: - `days_after_initiation` (Number) Specifies the number of days after which Amazon S3Outposts aborts an incomplete multipart upload. @@ -109,7 +109,7 @@ Optional: ### Nested Schema for `lifecycle_configuration.rules.filter.and_operator.tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -119,7 +119,7 @@ Required: ### Nested Schema for `lifecycle_configuration.rules.filter.tag` -Required: +Optional: - `key` (String) - `value` (String) @@ -131,7 +131,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/sagemaker_app.md b/docs/resources/sagemaker_app.md index c94ebbb693..f6ff1b7766 100644 --- a/docs/resources/sagemaker_app.md +++ b/docs/resources/sagemaker_app.md @@ -46,7 +46,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/sagemaker_app_image_config.md b/docs/resources/sagemaker_app_image_config.md index 591ee0afca..092b7f4f43 100644 --- a/docs/resources/sagemaker_app_image_config.md +++ b/docs/resources/sagemaker_app_image_config.md @@ -92,7 +92,7 @@ Optional: ### Nested Schema for `code_editor_app_image_config.container_config.container_environment_variables` -Required: +Optional: - `key` (String) - `value` (String) @@ -119,7 +119,7 @@ Optional: ### Nested Schema for `jupyter_lab_app_image_config.container_config.container_environment_variables` -Required: +Optional: - `key` (String) - `value` (String) @@ -130,25 +130,10 @@ Required: ### Nested Schema for `kernel_gateway_image_config` -Required: - -- `kernel_specs` (Attributes List) The specification of the Jupyter kernels in the image. (see [below for nested schema](#nestedatt--kernel_gateway_image_config--kernel_specs)) - Optional: - `file_system_config` (Attributes) The Amazon Elastic File System (EFS) storage configuration for a SageMaker image. (see [below for nested schema](#nestedatt--kernel_gateway_image_config--file_system_config)) - - -### Nested Schema for `kernel_gateway_image_config.kernel_specs` - -Required: - -- `name` (String) The name of the kernel. - -Optional: - -- `display_name` (String) The display name of the kernel. - +- `kernel_specs` (Attributes List) The specification of the Jupyter kernels in the image. (see [below for nested schema](#nestedatt--kernel_gateway_image_config--kernel_specs)) ### Nested Schema for `kernel_gateway_image_config.file_system_config` @@ -160,11 +145,20 @@ Optional: - `mount_path` (String) The path within the image to mount the user's EFS home directory. The directory should be empty. If not specified, defaults to /home/sagemaker-user. + +### Nested Schema for `kernel_gateway_image_config.kernel_specs` + +Optional: + +- `display_name` (String) The display name of the kernel. +- `name` (String) The name of the kernel. + + ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/sagemaker_cluster.md b/docs/resources/sagemaker_cluster.md index 9ab12452ef..46f6f1ab6e 100644 --- a/docs/resources/sagemaker_cluster.md +++ b/docs/resources/sagemaker_cluster.md @@ -185,14 +185,14 @@ Optional: ### Nested Schema for `orchestrator` -Required: +Optional: - `eks` (Attributes) Specifies parameter(s) related to EKS as orchestrator, e.g. the EKS cluster nodes will attach to, (see [below for nested schema](#nestedatt--orchestrator--eks)) ### Nested Schema for `orchestrator.eks` -Required: +Optional: - `cluster_arn` (String) The ARN of the EKS cluster, such as arn:aws:eks:us-west-2:123456789012:cluster/my-eks-cluster @@ -201,7 +201,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. @@ -210,7 +210,7 @@ Required: ### Nested Schema for `vpc_config` -Required: +Optional: - `security_group_ids` (List of String) The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field. - `subnets` (List of String) The ID of the subnets in the VPC to which you want to connect your training job or model. diff --git a/docs/resources/sagemaker_data_quality_job_definition.md b/docs/resources/sagemaker_data_quality_job_definition.md index 08c672f94b..c5c9acbc1f 100644 --- a/docs/resources/sagemaker_data_quality_job_definition.md +++ b/docs/resources/sagemaker_data_quality_job_definition.md @@ -65,15 +65,12 @@ Optional: ### Nested Schema for `data_quality_job_input.batch_transform_input` -Required: +Optional: - `data_captured_destination_s3_uri` (String) A URI that identifies the Amazon S3 storage location where Batch Transform Job captures data. - `dataset_format` (Attributes) The dataset format of the data to monitor (see [below for nested schema](#nestedatt--data_quality_job_input--batch_transform_input--dataset_format)) -- `local_path` (String) Path to the filesystem where the endpoint data is available to the container. - -Optional: - - `exclude_features_attribute` (String) Indexes or names of the features to be excluded from analysis +- `local_path` (String) Path to the filesystem where the endpoint data is available to the container. - `s3_data_distribution_type` (String) Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated - `s3_input_mode` (String) Whether the Pipe or File is used as the input mode for transfering data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File. @@ -107,14 +104,11 @@ Optional: ### Nested Schema for `data_quality_job_input.endpoint_input` -Required: - -- `endpoint_name` (String) The name of the endpoint used to run the monitoring job. -- `local_path` (String) Path to the filesystem where the endpoint data is available to the container. - Optional: +- `endpoint_name` (String) The name of the endpoint used to run the monitoring job. - `exclude_features_attribute` (String) Indexes or names of the features to be excluded from analysis +- `local_path` (String) Path to the filesystem where the endpoint data is available to the container. - `s3_data_distribution_type` (String) Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated - `s3_input_mode` (String) Whether the Pipe or File is used as the input mode for transfering data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File. @@ -213,7 +207,7 @@ Optional: ### Nested Schema for `network_config.vpc_config` -Required: +Optional: - `security_group_ids` (List of String) The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field. - `subnets` (List of String) The ID of the subnets in the VPC to which you want to connect to your monitoring jobs. @@ -223,7 +217,7 @@ Required: ### Nested Schema for `stopping_condition` -Required: +Optional: - `max_runtime_in_seconds` (Number) The maximum runtime allowed in seconds. @@ -231,7 +225,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/sagemaker_device.md b/docs/resources/sagemaker_device.md index a55ca7f284..333e840fdc 100644 --- a/docs/resources/sagemaker_device.md +++ b/docs/resources/sagemaker_device.md @@ -31,20 +31,17 @@ Resource schema for AWS::SageMaker::Device ### Nested Schema for `device` -Required: - -- `device_name` (String) The name of the device - Optional: - `description` (String) Description of the device +- `device_name` (String) The name of the device - `iot_thing_name` (String) AWS Internet of Things (IoT) object name. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The key value of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/sagemaker_device_fleet.md b/docs/resources/sagemaker_device_fleet.md index a8ccafd893..260d4785c0 100644 --- a/docs/resources/sagemaker_device_fleet.md +++ b/docs/resources/sagemaker_device_fleet.md @@ -45,7 +45,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The key value of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/sagemaker_domain.md b/docs/resources/sagemaker_domain.md index 1470e52fee..9ce9be8fb9 100644 --- a/docs/resources/sagemaker_domain.md +++ b/docs/resources/sagemaker_domain.md @@ -209,13 +209,10 @@ Optional: ### Nested Schema for `default_user_settings.code_editor_app_settings.custom_images` -Required: +Optional: - `app_image_config_name` (String) The Name of the AppImageConfig. - `image_name` (String) The name of the CustomImage. Must be unique to your account. - -Optional: - - `image_version_number` (Number) The version number of the CustomImage. @@ -241,12 +238,9 @@ Optional: ### Nested Schema for `default_user_settings.custom_file_system_configs.efs_file_system_config` -Required: - -- `file_system_id` (String) - Optional: +- `file_system_id` (String) - `file_system_path` (String) @@ -254,7 +248,7 @@ Optional: ### Nested Schema for `default_user_settings.custom_posix_user_config` -Required: +Optional: - `gid` (Number) - `uid` (Number) @@ -293,7 +287,7 @@ Optional: ### Nested Schema for `default_user_settings.jupyter_lab_app_settings.code_repositories` -Required: +Optional: - `repository_url` (String) A CodeRepository (valid URL) to be used within Jupyter's Git extension. @@ -301,13 +295,10 @@ Required: ### Nested Schema for `default_user_settings.jupyter_lab_app_settings.custom_images` -Required: +Optional: - `app_image_config_name` (String) The Name of the AppImageConfig. - `image_name` (String) The name of the CustomImage. Must be unique to your account. - -Optional: - - `image_version_number` (Number) The version number of the CustomImage. @@ -355,13 +346,10 @@ Optional: ### Nested Schema for `default_user_settings.kernel_gateway_app_settings.custom_images` -Required: +Optional: - `app_image_config_name` (String) The Name of the AppImageConfig. - `image_name` (String) The name of the CustomImage. Must be unique to your account. - -Optional: - - `image_version_number` (Number) The version number of the CustomImage. @@ -388,13 +376,10 @@ Optional: ### Nested Schema for `default_user_settings.r_session_app_settings.custom_images` -Required: +Optional: - `app_image_config_name` (String) The Name of the AppImageConfig. - `image_name` (String) The name of the CustomImage. Must be unique to your account. - -Optional: - - `image_version_number` (Number) The version number of the CustomImage. @@ -439,7 +424,7 @@ Optional: ### Nested Schema for `default_user_settings.space_storage_settings.default_ebs_storage_settings` -Required: +Optional: - `default_ebs_volume_size_in_gb` (Number) Default size of the Amazon EBS volume in Gb - `maximum_ebs_volume_size_in_gb` (Number) Maximum size of the Amazon EBS volume in Gb. Must be greater than or equal to the DefaultEbsVolumeSizeInGb. @@ -459,14 +444,11 @@ Optional: ### Nested Schema for `default_space_settings` -Required: - -- `execution_role` (String) The execution role for the space. - Optional: - `custom_file_system_configs` (Attributes List) (see [below for nested schema](#nestedatt--default_space_settings--custom_file_system_configs)) - `custom_posix_user_config` (Attributes) The Jupyter lab's custom posix user configurations. (see [below for nested schema](#nestedatt--default_space_settings--custom_posix_user_config)) +- `execution_role` (String) The execution role for the space. - `jupyter_lab_app_settings` (Attributes) The Jupyter lab's app settings. (see [below for nested schema](#nestedatt--default_space_settings--jupyter_lab_app_settings)) - `jupyter_server_app_settings` (Attributes) The Jupyter server's app settings. (see [below for nested schema](#nestedatt--default_space_settings--jupyter_server_app_settings)) - `kernel_gateway_app_settings` (Attributes) The kernel gateway app settings. (see [below for nested schema](#nestedatt--default_space_settings--kernel_gateway_app_settings)) @@ -483,12 +465,9 @@ Optional: ### Nested Schema for `default_space_settings.custom_file_system_configs.efs_file_system_config` -Required: - -- `file_system_id` (String) - Optional: +- `file_system_id` (String) - `file_system_path` (String) @@ -496,7 +475,7 @@ Optional: ### Nested Schema for `default_space_settings.custom_posix_user_config` -Required: +Optional: - `gid` (Number) - `uid` (Number) @@ -535,7 +514,7 @@ Optional: ### Nested Schema for `default_space_settings.jupyter_lab_app_settings.code_repositories` -Required: +Optional: - `repository_url` (String) A CodeRepository (valid URL) to be used within Jupyter's Git extension. @@ -543,13 +522,10 @@ Required: ### Nested Schema for `default_space_settings.jupyter_lab_app_settings.custom_images` -Required: +Optional: - `app_image_config_name` (String) The Name of the AppImageConfig. - `image_name` (String) The name of the CustomImage. Must be unique to your account. - -Optional: - - `image_version_number` (Number) The version number of the CustomImage. @@ -597,13 +573,10 @@ Optional: ### Nested Schema for `default_space_settings.kernel_gateway_app_settings.custom_images` -Required: +Optional: - `app_image_config_name` (String) The Name of the AppImageConfig. - `image_name` (String) The name of the CustomImage. Must be unique to your account. - -Optional: - - `image_version_number` (Number) The version number of the CustomImage. @@ -629,7 +602,7 @@ Optional: ### Nested Schema for `default_space_settings.space_storage_settings.default_ebs_storage_settings` -Required: +Optional: - `default_ebs_volume_size_in_gb` (Number) Default size of the Amazon EBS volume in Gb - `maximum_ebs_volume_size_in_gb` (Number) Maximum size of the Amazon EBS volume in Gb. Must be greater than or equal to the DefaultEbsVolumeSizeInGb. @@ -658,13 +631,10 @@ Optional: ### Nested Schema for `domain_settings.r_studio_server_pro_domain_settings` -Required: - -- `domain_execution_role_arn` (String) The ARN of the execution role for the RStudioServerPro Domain-level app. - Optional: - `default_resource_spec` (Attributes) (see [below for nested schema](#nestedatt--domain_settings--r_studio_server_pro_domain_settings--default_resource_spec)) +- `domain_execution_role_arn` (String) The ARN of the execution role for the RStudioServerPro Domain-level app. - `r_studio_connect_url` (String) A URL pointing to an RStudio Connect server. - `r_studio_package_manager_url` (String) A URL pointing to an RStudio Package Manager server. @@ -684,7 +654,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/sagemaker_feature_group.md b/docs/resources/sagemaker_feature_group.md index 674ca8aa3c..7144e1400e 100644 --- a/docs/resources/sagemaker_feature_group.md +++ b/docs/resources/sagemaker_feature_group.md @@ -49,38 +49,32 @@ Required: ### Nested Schema for `offline_store_config` -Required: - -- `s3_storage_config` (Attributes) (see [below for nested schema](#nestedatt--offline_store_config--s3_storage_config)) - Optional: - `data_catalog_config` (Attributes) (see [below for nested schema](#nestedatt--offline_store_config--data_catalog_config)) - `disable_glue_table_creation` (Boolean) +- `s3_storage_config` (Attributes) (see [below for nested schema](#nestedatt--offline_store_config--s3_storage_config)) - `table_format` (String) Format for the offline store feature group. Iceberg is the optimal format for feature groups shared between offline and online stores. - -### Nested Schema for `offline_store_config.s3_storage_config` - -Required: - -- `s3_uri` (String) - -Optional: - -- `kms_key_id` (String) - - ### Nested Schema for `offline_store_config.data_catalog_config` -Required: +Optional: - `catalog` (String) - `database` (String) - `table_name` (String) + +### Nested Schema for `offline_store_config.s3_storage_config` + +Optional: + +- `kms_key_id` (String) +- `s3_uri` (String) + + ### Nested Schema for `online_store_config` @@ -113,7 +107,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -122,14 +116,11 @@ Required: ### Nested Schema for `throughput_config` -Required: - -- `throughput_mode` (String) Throughput mode configuration of the feature group - Optional: - `provisioned_read_capacity_units` (Number) For provisioned feature groups with online store enabled, this indicates the read throughput you are billed for and can consume without throttling. - `provisioned_write_capacity_units` (Number) For provisioned feature groups, this indicates the write throughput you are billed for and can consume without throttling. +- `throughput_mode` (String) Throughput mode configuration of the feature group ## Import diff --git a/docs/resources/sagemaker_image.md b/docs/resources/sagemaker_image.md index da40771814..6032acc7b0 100644 --- a/docs/resources/sagemaker_image.md +++ b/docs/resources/sagemaker_image.md @@ -55,7 +55,7 @@ resource "awscc_sagemaker_image" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/sagemaker_inference_component.md b/docs/resources/sagemaker_inference_component.md index 35dfb72cff..688b56650d 100644 --- a/docs/resources/sagemaker_inference_component.md +++ b/docs/resources/sagemaker_inference_component.md @@ -111,7 +111,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and - - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and - diff --git a/docs/resources/sagemaker_inference_experiment.md b/docs/resources/sagemaker_inference_experiment.md index 699b524abf..0a1c998cec 100644 --- a/docs/resources/sagemaker_inference_experiment.md +++ b/docs/resources/sagemaker_inference_experiment.md @@ -74,13 +74,10 @@ Required: ### Nested Schema for `data_storage_config` -Required: - -- `destination` (String) The Amazon S3 bucket where the inference request and response data is stored. - Optional: - `content_type` (Attributes) Configuration specifying how to treat different headers. If no headers are specified SageMaker will by default base64 encode when capturing the data. (see [below for nested schema](#nestedatt--data_storage_config--content_type)) +- `destination` (String) The Amazon S3 bucket where the inference request and response data is stored. - `kms_key` (String) The AWS Key Management Service key that Amazon SageMaker uses to encrypt captured data at rest using Amazon S3 server-side encryption. @@ -105,7 +102,7 @@ Optional: ### Nested Schema for `shadow_mode_config` -Required: +Optional: - `shadow_model_variants` (Attributes List) List of shadow variant configurations. (see [below for nested schema](#nestedatt--shadow_mode_config--shadow_model_variants)) - `source_model_variant_name` (String) The name of the production variant, which takes all the inference requests. @@ -113,7 +110,7 @@ Required: ### Nested Schema for `shadow_mode_config.shadow_model_variants` -Required: +Optional: - `sampling_percentage` (Number) The percentage of inference requests that Amazon SageMaker replicates from the production variant to the shadow variant. - `shadow_model_variant_name` (String) The name of the shadow variant. @@ -123,7 +120,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/sagemaker_mlflow_tracking_server.md b/docs/resources/sagemaker_mlflow_tracking_server.md index ec54001c22..0b57e3202c 100644 --- a/docs/resources/sagemaker_mlflow_tracking_server.md +++ b/docs/resources/sagemaker_mlflow_tracking_server.md @@ -37,7 +37,7 @@ Resource Type definition for AWS::SageMaker::MlflowTrackingServer ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/sagemaker_model_bias_job_definition.md b/docs/resources/sagemaker_model_bias_job_definition.md index f30397fba7..604a2868f4 100644 --- a/docs/resources/sagemaker_model_bias_job_definition.md +++ b/docs/resources/sagemaker_model_bias_job_definition.md @@ -96,17 +96,14 @@ Required: ### Nested Schema for `model_bias_job_input.batch_transform_input` -Required: +Optional: - `data_captured_destination_s3_uri` (String) A URI that identifies the Amazon S3 storage location where Batch Transform Job captures data. - `dataset_format` (Attributes) The dataset format of the data to monitor (see [below for nested schema](#nestedatt--model_bias_job_input--batch_transform_input--dataset_format)) -- `local_path` (String) Path to the filesystem where the endpoint data is available to the container. - -Optional: - - `end_time_offset` (String) Monitoring end time offset, e.g. PT0H - `features_attribute` (String) JSONpath to locate features in JSONlines dataset - `inference_attribute` (String) Index or JSONpath to locate predicted label(s) +- `local_path` (String) Path to the filesystem where the endpoint data is available to the container. - `probability_attribute` (String) Index or JSONpath to locate probabilities - `probability_threshold_attribute` (Number) - `s3_data_distribution_type` (String) Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated @@ -143,16 +140,13 @@ Optional: ### Nested Schema for `model_bias_job_input.endpoint_input` -Required: - -- `endpoint_name` (String) The name of the endpoint used to run the monitoring job. -- `local_path` (String) Path to the filesystem where the endpoint data is available to the container. - Optional: - `end_time_offset` (String) Monitoring end time offset, e.g. PT0H +- `endpoint_name` (String) The name of the endpoint used to run the monitoring job. - `features_attribute` (String) JSONpath to locate features in JSONlines dataset - `inference_attribute` (String) Index or JSONpath to locate predicted label(s) +- `local_path` (String) Path to the filesystem where the endpoint data is available to the container. - `probability_attribute` (String) Index or JSONpath to locate probabilities - `probability_threshold_attribute` (Number) - `s3_data_distribution_type` (String) Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated @@ -223,7 +217,7 @@ Optional: ### Nested Schema for `network_config.vpc_config` -Required: +Optional: - `security_group_ids` (List of String) The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field. - `subnets` (List of String) The ID of the subnets in the VPC to which you want to connect to your monitoring jobs. @@ -233,7 +227,7 @@ Required: ### Nested Schema for `stopping_condition` -Required: +Optional: - `max_runtime_in_seconds` (Number) The maximum runtime allowed in seconds. @@ -241,7 +235,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/sagemaker_model_explainability_job_definition.md b/docs/resources/sagemaker_model_explainability_job_definition.md index dcf6835b3f..386a2adb4e 100644 --- a/docs/resources/sagemaker_model_explainability_job_definition.md +++ b/docs/resources/sagemaker_model_explainability_job_definition.md @@ -84,16 +84,13 @@ Optional: ### Nested Schema for `model_explainability_job_input.batch_transform_input` -Required: +Optional: - `data_captured_destination_s3_uri` (String) A URI that identifies the Amazon S3 storage location where Batch Transform Job captures data. - `dataset_format` (Attributes) The dataset format of the data to monitor (see [below for nested schema](#nestedatt--model_explainability_job_input--batch_transform_input--dataset_format)) -- `local_path` (String) Path to the filesystem where the endpoint data is available to the container. - -Optional: - - `features_attribute` (String) JSONpath to locate features in JSONlines dataset - `inference_attribute` (String) Index or JSONpath to locate predicted label(s) +- `local_path` (String) Path to the filesystem where the endpoint data is available to the container. - `probability_attribute` (String) Index or JSONpath to locate probabilities - `s3_data_distribution_type` (String) Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated - `s3_input_mode` (String) Whether the Pipe or File is used as the input mode for transfering data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File. @@ -128,15 +125,12 @@ Optional: ### Nested Schema for `model_explainability_job_input.endpoint_input` -Required: - -- `endpoint_name` (String) The name of the endpoint used to run the monitoring job. -- `local_path` (String) Path to the filesystem where the endpoint data is available to the container. - Optional: +- `endpoint_name` (String) The name of the endpoint used to run the monitoring job. - `features_attribute` (String) JSONpath to locate features in JSONlines dataset - `inference_attribute` (String) Index or JSONpath to locate predicted label(s) +- `local_path` (String) Path to the filesystem where the endpoint data is available to the container. - `probability_attribute` (String) Index or JSONpath to locate probabilities - `s3_data_distribution_type` (String) Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated - `s3_input_mode` (String) Whether the Pipe or File is used as the input mode for transfering data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File. @@ -205,7 +199,7 @@ Optional: ### Nested Schema for `network_config.vpc_config` -Required: +Optional: - `security_group_ids` (List of String) The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field. - `subnets` (List of String) The ID of the subnets in the VPC to which you want to connect to your monitoring jobs. @@ -215,7 +209,7 @@ Required: ### Nested Schema for `stopping_condition` -Required: +Optional: - `max_runtime_in_seconds` (Number) The maximum runtime allowed in seconds. @@ -223,7 +217,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/sagemaker_model_package.md b/docs/resources/sagemaker_model_package.md index a9b202abe1..f4827b7280 100644 --- a/docs/resources/sagemaker_model_package.md +++ b/docs/resources/sagemaker_model_package.md @@ -55,14 +55,11 @@ Resource Type definition for AWS::SageMaker::ModelPackage ### Nested Schema for `additional_inference_specifications` -Required: - -- `containers` (Attributes List) The Amazon ECR registry path of the Docker image that contains the inference code. (see [below for nested schema](#nestedatt--additional_inference_specifications--containers)) -- `name` (String) A unique name to identify the additional inference specification. The name must be unique within the list of your additional inference specifications for a particular model package. - Optional: +- `containers` (Attributes List) The Amazon ECR registry path of the Docker image that contains the inference code. (see [below for nested schema](#nestedatt--additional_inference_specifications--containers)) - `description` (String) A description of the additional Inference specification. +- `name` (String) A unique name to identify the additional inference specification. The name must be unique within the list of your additional inference specifications for a particular model package. - `supported_content_types` (List of String) The supported MIME types for the input data. - `supported_realtime_inference_instance_types` (List of String) A list of the instance types that are used to generate inferences in real-time - `supported_response_mime_types` (List of String) The supported MIME types for the output data. @@ -71,16 +68,13 @@ Optional: ### Nested Schema for `additional_inference_specifications.containers` -Required: - -- `image` (String) The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored. - Optional: - `container_hostname` (String) The DNS host name for the Docker container. - `environment` (Map of String) Sets the environment variables in the Docker container - `framework` (String) The machine learning framework of the model package container image. - `framework_version` (String) The framework version of the Model Package Container Image. +- `image` (String) The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored. - `image_digest` (String) An MD5 hash of the training algorithm that identifies the Docker image used for training. - `model_data_source` (Attributes) Specifies the location of ML model data to deploy during endpoint creation. (see [below for nested schema](#nestedatt--additional_inference_specifications--containers--model_data_source)) - `model_data_url` (String) A structure with Model Input details. @@ -97,20 +91,17 @@ Optional: ### Nested Schema for `additional_inference_specifications.containers.model_data_source.s3_data_source` -Required: +Optional: - `compression_type` (String) Specifies how the ML model data is prepared. +- `model_access_config` (Attributes) Specifies the access configuration file for the ML model. (see [below for nested schema](#nestedatt--additional_inference_specifications--containers--model_data_source--s3_data_source--model_access_config)) - `s3_data_type` (String) Specifies the type of ML model data to deploy. - `s3_uri` (String) Specifies the S3 path of ML model data to deploy. -Optional: - -- `model_access_config` (Attributes) Specifies the access configuration file for the ML model. (see [below for nested schema](#nestedatt--additional_inference_specifications--containers--model_data_source--s3_data_source--model_access_config)) - ### Nested Schema for `additional_inference_specifications.containers.model_data_source.s3_data_source.model_access_config` -Required: +Optional: - `accept_eula` (Boolean) Specifies agreement to the model end-user license agreement (EULA). @@ -120,7 +111,7 @@ Required: ### Nested Schema for `additional_inference_specifications.containers.model_input` -Required: +Optional: - `data_input_config` (String) The input configuration object for the model. @@ -130,14 +121,11 @@ Required: ### Nested Schema for `additional_inference_specifications_to_add` -Required: - -- `containers` (Attributes List) The Amazon ECR registry path of the Docker image that contains the inference code. (see [below for nested schema](#nestedatt--additional_inference_specifications_to_add--containers)) -- `name` (String) A unique name to identify the additional inference specification. The name must be unique within the list of your additional inference specifications for a particular model package. - Optional: +- `containers` (Attributes List) The Amazon ECR registry path of the Docker image that contains the inference code. (see [below for nested schema](#nestedatt--additional_inference_specifications_to_add--containers)) - `description` (String) A description of the additional Inference specification. +- `name` (String) A unique name to identify the additional inference specification. The name must be unique within the list of your additional inference specifications for a particular model package. - `supported_content_types` (List of String) The supported MIME types for the input data. - `supported_realtime_inference_instance_types` (List of String) A list of the instance types that are used to generate inferences in real-time - `supported_response_mime_types` (List of String) The supported MIME types for the output data. @@ -146,16 +134,13 @@ Optional: ### Nested Schema for `additional_inference_specifications_to_add.containers` -Required: - -- `image` (String) The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored. - Optional: - `container_hostname` (String) The DNS host name for the Docker container. - `environment` (Map of String) Sets the environment variables in the Docker container - `framework` (String) The machine learning framework of the model package container image. - `framework_version` (String) The framework version of the Model Package Container Image. +- `image` (String) The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored. - `image_digest` (String) An MD5 hash of the training algorithm that identifies the Docker image used for training. - `model_data_source` (Attributes) Specifies the location of ML model data to deploy during endpoint creation. (see [below for nested schema](#nestedatt--additional_inference_specifications_to_add--containers--model_data_source)) - `model_data_url` (String) A structure with Model Input details. @@ -172,20 +157,17 @@ Optional: ### Nested Schema for `additional_inference_specifications_to_add.containers.model_data_source.s3_data_source` -Required: +Optional: - `compression_type` (String) Specifies how the ML model data is prepared. +- `model_access_config` (Attributes) Specifies the access configuration file for the ML model. (see [below for nested schema](#nestedatt--additional_inference_specifications_to_add--containers--model_data_source--s3_data_source--model_access_config)) - `s3_data_type` (String) Specifies the type of ML model data to deploy. - `s3_uri` (String) Specifies the S3 path of ML model data to deploy. -Optional: - -- `model_access_config` (Attributes) Specifies the access configuration file for the ML model. (see [below for nested schema](#nestedatt--additional_inference_specifications_to_add--containers--model_data_source--s3_data_source--model_access_config)) - ### Nested Schema for `additional_inference_specifications_to_add.containers.model_data_source.s3_data_source.model_access_config` -Required: +Optional: - `accept_eula` (Boolean) Specifies agreement to the model end-user license agreement (EULA). @@ -195,7 +177,7 @@ Required: ### Nested Schema for `additional_inference_specifications_to_add.containers.model_input` -Required: +Optional: - `data_input_config` (String) The input configuration object for the model. @@ -224,40 +206,31 @@ Optional: ### Nested Schema for `drift_check_baselines.bias.config_file` -Required: - -- `s3_uri` (String) The Amazon S3 URI for the file source. - Optional: - `content_digest` (String) The digest of the file source. - `content_type` (String) The type of content stored in the file source. +- `s3_uri` (String) The Amazon S3 URI for the file source. ### Nested Schema for `drift_check_baselines.bias.post_training_constraints` -Required: - -- `content_type` (String) The type of content stored in the metric source. -- `s3_uri` (String) The Amazon S3 URI for the metric source. - Optional: - `content_digest` (String) The digest of the metric source. +- `content_type` (String) The type of content stored in the metric source. +- `s3_uri` (String) The Amazon S3 URI for the metric source. ### Nested Schema for `drift_check_baselines.bias.pre_training_constraints` -Required: - -- `content_type` (String) The type of content stored in the metric source. -- `s3_uri` (String) The Amazon S3 URI for the metric source. - Optional: - `content_digest` (String) The digest of the metric source. +- `content_type` (String) The type of content stored in the metric source. +- `s3_uri` (String) The Amazon S3 URI for the metric source. @@ -272,27 +245,21 @@ Optional: ### Nested Schema for `drift_check_baselines.explainability.config_file` -Required: - -- `s3_uri` (String) The Amazon S3 URI for the file source. - Optional: - `content_digest` (String) The digest of the file source. - `content_type` (String) The type of content stored in the file source. +- `s3_uri` (String) The Amazon S3 URI for the file source. ### Nested Schema for `drift_check_baselines.explainability.constraints` -Required: - -- `content_type` (String) The type of content stored in the metric source. -- `s3_uri` (String) The Amazon S3 URI for the metric source. - Optional: - `content_digest` (String) The digest of the metric source. +- `content_type` (String) The type of content stored in the metric source. +- `s3_uri` (String) The Amazon S3 URI for the metric source. @@ -307,27 +274,21 @@ Optional: ### Nested Schema for `drift_check_baselines.model_data_quality.constraints` -Required: - -- `content_type` (String) The type of content stored in the metric source. -- `s3_uri` (String) The Amazon S3 URI for the metric source. - Optional: - `content_digest` (String) The digest of the metric source. +- `content_type` (String) The type of content stored in the metric source. +- `s3_uri` (String) The Amazon S3 URI for the metric source. ### Nested Schema for `drift_check_baselines.model_data_quality.statistics` -Required: - -- `content_type` (String) The type of content stored in the metric source. -- `s3_uri` (String) The Amazon S3 URI for the metric source. - Optional: - `content_digest` (String) The digest of the metric source. +- `content_type` (String) The type of content stored in the metric source. +- `s3_uri` (String) The Amazon S3 URI for the metric source. @@ -342,27 +303,21 @@ Optional: ### Nested Schema for `drift_check_baselines.model_quality.constraints` -Required: - -- `content_type` (String) The type of content stored in the metric source. -- `s3_uri` (String) The Amazon S3 URI for the metric source. - Optional: - `content_digest` (String) The digest of the metric source. +- `content_type` (String) The type of content stored in the metric source. +- `s3_uri` (String) The Amazon S3 URI for the metric source. ### Nested Schema for `drift_check_baselines.model_quality.statistics` -Required: - -- `content_type` (String) The type of content stored in the metric source. -- `s3_uri` (String) The Amazon S3 URI for the metric source. - Optional: - `content_digest` (String) The digest of the metric source. +- `content_type` (String) The type of content stored in the metric source. +- `s3_uri` (String) The Amazon S3 URI for the metric source. @@ -370,30 +325,24 @@ Optional: ### Nested Schema for `inference_specification` -Required: +Optional: - `containers` (Attributes List) The Amazon ECR registry path of the Docker image that contains the inference code. (see [below for nested schema](#nestedatt--inference_specification--containers)) - `supported_content_types` (List of String) The supported MIME types for the input data. -- `supported_response_mime_types` (List of String) The supported MIME types for the output data. - -Optional: - - `supported_realtime_inference_instance_types` (List of String) A list of the instance types that are used to generate inferences in real-time +- `supported_response_mime_types` (List of String) The supported MIME types for the output data. - `supported_transform_instance_types` (List of String) A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed. ### Nested Schema for `inference_specification.containers` -Required: - -- `image` (String) The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored. - Optional: - `container_hostname` (String) The DNS host name for the Docker container. - `environment` (Map of String) Sets the environment variables in the Docker container - `framework` (String) The machine learning framework of the model package container image. - `framework_version` (String) The framework version of the Model Package Container Image. +- `image` (String) The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored. - `image_digest` (String) An MD5 hash of the training algorithm that identifies the Docker image used for training. - `model_data_source` (Attributes) Specifies the location of ML model data to deploy during endpoint creation. (see [below for nested schema](#nestedatt--inference_specification--containers--model_data_source)) - `model_data_url` (String) A structure with Model Input details. @@ -410,20 +359,17 @@ Optional: ### Nested Schema for `inference_specification.containers.model_data_source.s3_data_source` -Required: +Optional: - `compression_type` (String) Specifies how the ML model data is prepared. +- `model_access_config` (Attributes) Specifies the access configuration file for the ML model. (see [below for nested schema](#nestedatt--inference_specification--containers--model_data_source--s3_data_source--model_access_config)) - `s3_data_type` (String) Specifies the type of ML model data to deploy. - `s3_uri` (String) Specifies the S3 path of ML model data to deploy. -Optional: - -- `model_access_config` (Attributes) Specifies the access configuration file for the ML model. (see [below for nested schema](#nestedatt--inference_specification--containers--model_data_source--s3_data_source--model_access_config)) - ### Nested Schema for `inference_specification.containers.model_data_source.s3_data_source.model_access_config` -Required: +Optional: - `accept_eula` (Boolean) Specifies agreement to the model end-user license agreement (EULA). @@ -433,7 +379,7 @@ Required: ### Nested Schema for `inference_specification.containers.model_input` -Required: +Optional: - `data_input_config` (String) The input configuration object for the model. @@ -454,7 +400,7 @@ Optional: ### Nested Schema for `model_card` -Required: +Optional: - `model_card_content` (String) The content of the model card. - `model_card_status` (String) The approval status of the model card within your organization. @@ -482,40 +428,31 @@ Optional: ### Nested Schema for `model_metrics.bias.post_training_report` -Required: - -- `content_type` (String) The type of content stored in the metric source. -- `s3_uri` (String) The Amazon S3 URI for the metric source. - Optional: - `content_digest` (String) The digest of the metric source. +- `content_type` (String) The type of content stored in the metric source. +- `s3_uri` (String) The Amazon S3 URI for the metric source. ### Nested Schema for `model_metrics.bias.pre_training_report` -Required: - -- `content_type` (String) The type of content stored in the metric source. -- `s3_uri` (String) The Amazon S3 URI for the metric source. - Optional: - `content_digest` (String) The digest of the metric source. +- `content_type` (String) The type of content stored in the metric source. +- `s3_uri` (String) The Amazon S3 URI for the metric source. ### Nested Schema for `model_metrics.bias.report` -Required: - -- `content_type` (String) The type of content stored in the metric source. -- `s3_uri` (String) The Amazon S3 URI for the metric source. - Optional: - `content_digest` (String) The digest of the metric source. +- `content_type` (String) The type of content stored in the metric source. +- `s3_uri` (String) The Amazon S3 URI for the metric source. @@ -529,14 +466,11 @@ Optional: ### Nested Schema for `model_metrics.explainability.report` -Required: - -- `content_type` (String) The type of content stored in the metric source. -- `s3_uri` (String) The Amazon S3 URI for the metric source. - Optional: - `content_digest` (String) The digest of the metric source. +- `content_type` (String) The type of content stored in the metric source. +- `s3_uri` (String) The Amazon S3 URI for the metric source. @@ -551,27 +485,21 @@ Optional: ### Nested Schema for `model_metrics.model_data_quality.constraints` -Required: - -- `content_type` (String) The type of content stored in the metric source. -- `s3_uri` (String) The Amazon S3 URI for the metric source. - Optional: - `content_digest` (String) The digest of the metric source. +- `content_type` (String) The type of content stored in the metric source. +- `s3_uri` (String) The Amazon S3 URI for the metric source. ### Nested Schema for `model_metrics.model_data_quality.statistics` -Required: - -- `content_type` (String) The type of content stored in the metric source. -- `s3_uri` (String) The Amazon S3 URI for the metric source. - Optional: - `content_digest` (String) The digest of the metric source. +- `content_type` (String) The type of content stored in the metric source. +- `s3_uri` (String) The Amazon S3 URI for the metric source. @@ -586,27 +514,21 @@ Optional: ### Nested Schema for `model_metrics.model_quality.constraints` -Required: - -- `content_type` (String) The type of content stored in the metric source. -- `s3_uri` (String) The Amazon S3 URI for the metric source. - Optional: - `content_digest` (String) The digest of the metric source. +- `content_type` (String) The type of content stored in the metric source. +- `s3_uri` (String) The Amazon S3 URI for the metric source. ### Nested Schema for `model_metrics.model_quality.statistics` -Required: - -- `content_type` (String) The type of content stored in the metric source. -- `s3_uri` (String) The Amazon S3 URI for the metric source. - Optional: - `content_digest` (String) The digest of the metric source. +- `content_type` (String) The type of content stored in the metric source. +- `s3_uri` (String) The Amazon S3 URI for the metric source. @@ -621,21 +543,18 @@ Optional: ### Nested Schema for `model_package_status_details.validation_statuses` -Required: - -- `name` (String) The name of the model package for which the overall status is being reported. -- `status` (String) The current status. - Optional: - `failure_reason` (String) If the overall status is Failed, the reason for the failure. +- `name` (String) The name of the model package for which the overall status is being reported. +- `status` (String) The current status. ### Nested Schema for `security_config` -Required: +Optional: - `kms_key_id` (String) The AWS KMS Key ID (KMSKeyId) used for encryption of model package information. @@ -643,19 +562,16 @@ Required: ### Nested Schema for `source_algorithm_specification` -Required: +Optional: - `source_algorithms` (Attributes List) A list of algorithms that were used to create a model package. (see [below for nested schema](#nestedatt--source_algorithm_specification--source_algorithms)) ### Nested Schema for `source_algorithm_specification.source_algorithms` -Required: - -- `algorithm_name` (String) The name of an algorithm that was used to create the model package. The algorithm must be either an algorithm resource in your Amazon SageMaker account or an algorithm in AWS Marketplace that you are subscribed to. - Optional: +- `algorithm_name` (String) The name of an algorithm that was used to create the model package. The algorithm must be either an algorithm resource in your Amazon SageMaker account or an algorithm in AWS Marketplace that you are subscribed to. - `model_data_url` (String) The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix). @@ -663,7 +579,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. @@ -672,7 +588,7 @@ Required: ### Nested Schema for `validation_specification` -Required: +Optional: - `validation_profiles` (Attributes List) (see [below for nested schema](#nestedatt--validation_specification--validation_profiles)) - `validation_role` (String) The IAM roles to be used for the validation of the model package. @@ -680,7 +596,7 @@ Required: ### Nested Schema for `validation_specification.validation_profiles` -Required: +Optional: - `profile_name` (String) The name of the profile for the model package. - `transform_job_definition` (Attributes) Defines the input needed to run a transform job using the inference specification specified in the algorithm. (see [below for nested schema](#nestedatt--validation_specification--validation_profiles--transform_job_definition)) @@ -688,43 +604,37 @@ Required: ### Nested Schema for `validation_specification.validation_profiles.transform_job_definition` -Required: - -- `transform_input` (Attributes) Describes the input source of a transform job and the way the transform job consumes it. (see [below for nested schema](#nestedatt--validation_specification--validation_profiles--transform_job_definition--transform_input)) -- `transform_output` (Attributes) Describes the results of a transform job. (see [below for nested schema](#nestedatt--validation_specification--validation_profiles--transform_job_definition--transform_output)) -- `transform_resources` (Attributes) Describes the resources, including ML instance types and ML instance count, to use for transform job. (see [below for nested schema](#nestedatt--validation_specification--validation_profiles--transform_job_definition--transform_resources)) - Optional: - `batch_strategy` (String) A string that determines the number of records included in a single mini-batch. - `environment` (Map of String) Sets the environment variables in the Docker container - `max_concurrent_transforms` (Number) The maximum number of parallel requests that can be sent to each instance in a transform job. The default value is 1. - `max_payload_in_mb` (Number) The maximum payload size allowed, in MB. A payload is the data portion of a record (without metadata). +- `transform_input` (Attributes) Describes the input source of a transform job and the way the transform job consumes it. (see [below for nested schema](#nestedatt--validation_specification--validation_profiles--transform_job_definition--transform_input)) +- `transform_output` (Attributes) Describes the results of a transform job. (see [below for nested schema](#nestedatt--validation_specification--validation_profiles--transform_job_definition--transform_output)) +- `transform_resources` (Attributes) Describes the resources, including ML instance types and ML instance count, to use for transform job. (see [below for nested schema](#nestedatt--validation_specification--validation_profiles--transform_job_definition--transform_resources)) ### Nested Schema for `validation_specification.validation_profiles.transform_job_definition.transform_input` -Required: - -- `data_source` (Attributes) Describes the input source of a transform job and the way the transform job consumes it. (see [below for nested schema](#nestedatt--validation_specification--validation_profiles--transform_job_definition--transform_input--data_source)) - Optional: - `compression_type` (String) If your transform data is compressed, specify the compression type. Amazon SageMaker automatically decompresses the data for the transform job accordingly. The default value is None. - `content_type` (String) The multipurpose internet mail extension (MIME) type of the data. Amazon SageMaker uses the MIME type with each http call to transfer data to the transform job. +- `data_source` (Attributes) Describes the input source of a transform job and the way the transform job consumes it. (see [below for nested schema](#nestedatt--validation_specification--validation_profiles--transform_job_definition--transform_input--data_source)) - `split_type` (String) The method to use to split the transform job's data files into smaller batches. ### Nested Schema for `validation_specification.validation_profiles.transform_job_definition.transform_input.data_source` -Required: +Optional: - `s3_data_source` (Attributes) Describes the S3 data source. (see [below for nested schema](#nestedatt--validation_specification--validation_profiles--transform_job_definition--transform_input--data_source--s3_data_source)) ### Nested Schema for `validation_specification.validation_profiles.transform_job_definition.transform_input.data_source.s3_data_source` -Required: +Optional: - `s3_data_type` (String) The S3 Data Source Type - `s3_uri` (String) Depending on the value specified for the S3DataType, identifies either a key name prefix or a manifest. @@ -735,27 +645,21 @@ Required: ### Nested Schema for `validation_specification.validation_profiles.transform_job_definition.transform_output` -Required: - -- `s3_output_path` (String) The Amazon S3 path where you want Amazon SageMaker to store the results of the transform job. - Optional: - `accept` (String) The MIME type used to specify the output data. Amazon SageMaker uses the MIME type with each http call to transfer data from the transform job. - `assemble_with` (String) Defines how to assemble the results of the transform job as a single S3 object. - `kms_key_id` (String) The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption. +- `s3_output_path` (String) The Amazon S3 path where you want Amazon SageMaker to store the results of the transform job. ### Nested Schema for `validation_specification.validation_profiles.transform_job_definition.transform_resources` -Required: +Optional: - `instance_count` (Number) The number of ML compute instances to use in the transform job. For distributed transform jobs, specify a value greater than 1. The default value is 1. - `instance_type` (String) The ML compute instance type for the transform job. - -Optional: - - `volume_kms_key_id` (String) The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt model data on the storage volume attached to the ML compute instance(s) that run the batch transform job. ## Import diff --git a/docs/resources/sagemaker_model_package_group.md b/docs/resources/sagemaker_model_package_group.md index 858a43635c..d1620c8917 100644 --- a/docs/resources/sagemaker_model_package_group.md +++ b/docs/resources/sagemaker_model_package_group.md @@ -35,7 +35,7 @@ Resource Type definition for AWS::SageMaker::ModelPackageGroup ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/sagemaker_model_quality_job_definition.md b/docs/resources/sagemaker_model_quality_job_definition.md index 935ca4f115..31a54390d1 100644 --- a/docs/resources/sagemaker_model_quality_job_definition.md +++ b/docs/resources/sagemaker_model_quality_job_definition.md @@ -100,16 +100,13 @@ Required: ### Nested Schema for `model_quality_job_input.batch_transform_input` -Required: +Optional: - `data_captured_destination_s3_uri` (String) A URI that identifies the Amazon S3 storage location where Batch Transform Job captures data. - `dataset_format` (Attributes) The dataset format of the data to monitor (see [below for nested schema](#nestedatt--model_quality_job_input--batch_transform_input--dataset_format)) -- `local_path` (String) Path to the filesystem where the endpoint data is available to the container. - -Optional: - - `end_time_offset` (String) Monitoring end time offset, e.g. PT0H - `inference_attribute` (String) Index or JSONpath to locate predicted label(s) +- `local_path` (String) Path to the filesystem where the endpoint data is available to the container. - `probability_attribute` (String) Index or JSONpath to locate probabilities - `probability_threshold_attribute` (Number) - `s3_data_distribution_type` (String) Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated @@ -146,15 +143,12 @@ Optional: ### Nested Schema for `model_quality_job_input.endpoint_input` -Required: - -- `endpoint_name` (String) The name of the endpoint used to run the monitoring job. -- `local_path` (String) Path to the filesystem where the endpoint data is available to the container. - Optional: - `end_time_offset` (String) Monitoring end time offset, e.g. PT0H +- `endpoint_name` (String) The name of the endpoint used to run the monitoring job. - `inference_attribute` (String) Index or JSONpath to locate predicted label(s) +- `local_path` (String) Path to the filesystem where the endpoint data is available to the container. - `probability_attribute` (String) Index or JSONpath to locate probabilities - `probability_threshold_attribute` (Number) - `s3_data_distribution_type` (String) Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated @@ -225,7 +219,7 @@ Optional: ### Nested Schema for `network_config.vpc_config` -Required: +Optional: - `security_group_ids` (List of String) The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field. - `subnets` (List of String) The ID of the subnets in the VPC to which you want to connect to your monitoring jobs. @@ -235,7 +229,7 @@ Required: ### Nested Schema for `stopping_condition` -Required: +Optional: - `max_runtime_in_seconds` (Number) The maximum runtime allowed in seconds. @@ -243,7 +237,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/sagemaker_monitoring_schedule.md b/docs/resources/sagemaker_monitoring_schedule.md index ef206388f5..15aa647199 100644 --- a/docs/resources/sagemaker_monitoring_schedule.md +++ b/docs/resources/sagemaker_monitoring_schedule.md @@ -48,32 +48,51 @@ Optional: ### Nested Schema for `monitoring_schedule_config.monitoring_job_definition` -Required: +Optional: +- `baseline_config` (Attributes) Baseline configuration used to validate that the data conforms to the specified constraints and statistics. (see [below for nested schema](#nestedatt--monitoring_schedule_config--monitoring_job_definition--baseline_config)) +- `environment` (Map of String) Sets the environment variables in the Docker container - `monitoring_app_specification` (Attributes) Container image configuration object for the monitoring job. (see [below for nested schema](#nestedatt--monitoring_schedule_config--monitoring_job_definition--monitoring_app_specification)) - `monitoring_inputs` (Attributes List) The array of inputs for the monitoring job. (see [below for nested schema](#nestedatt--monitoring_schedule_config--monitoring_job_definition--monitoring_inputs)) - `monitoring_output_config` (Attributes) The output configuration for monitoring jobs. (see [below for nested schema](#nestedatt--monitoring_schedule_config--monitoring_job_definition--monitoring_output_config)) - `monitoring_resources` (Attributes) Identifies the resources to deploy for a monitoring job. (see [below for nested schema](#nestedatt--monitoring_schedule_config--monitoring_job_definition--monitoring_resources)) +- `network_config` (Attributes) Networking options for a job, such as network traffic encryption between containers, whether to allow inbound and outbound network calls to and from containers, and the VPC subnets and security groups to use for VPC-enabled jobs. (see [below for nested schema](#nestedatt--monitoring_schedule_config--monitoring_job_definition--network_config)) - `role_arn` (String) The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf. +- `stopping_condition` (Attributes) Specifies a time limit for how long the monitoring job is allowed to run. (see [below for nested schema](#nestedatt--monitoring_schedule_config--monitoring_job_definition--stopping_condition)) + + +### Nested Schema for `monitoring_schedule_config.monitoring_job_definition.baseline_config` Optional: -- `baseline_config` (Attributes) Baseline configuration used to validate that the data conforms to the specified constraints and statistics. (see [below for nested schema](#nestedatt--monitoring_schedule_config--monitoring_job_definition--baseline_config)) -- `environment` (Map of String) Sets the environment variables in the Docker container -- `network_config` (Attributes) Networking options for a job, such as network traffic encryption between containers, whether to allow inbound and outbound network calls to and from containers, and the VPC subnets and security groups to use for VPC-enabled jobs. (see [below for nested schema](#nestedatt--monitoring_schedule_config--monitoring_job_definition--network_config)) -- `stopping_condition` (Attributes) Specifies a time limit for how long the monitoring job is allowed to run. (see [below for nested schema](#nestedatt--monitoring_schedule_config--monitoring_job_definition--stopping_condition)) +- `constraints_resource` (Attributes) The baseline constraints resource for a monitoring job. (see [below for nested schema](#nestedatt--monitoring_schedule_config--monitoring_job_definition--baseline_config--constraints_resource)) +- `statistics_resource` (Attributes) The baseline statistics resource for a monitoring job. (see [below for nested schema](#nestedatt--monitoring_schedule_config--monitoring_job_definition--baseline_config--statistics_resource)) - -### Nested Schema for `monitoring_schedule_config.monitoring_job_definition.monitoring_app_specification` + +### Nested Schema for `monitoring_schedule_config.monitoring_job_definition.baseline_config.constraints_resource` -Required: +Optional: -- `image_uri` (String) The container image to be run by the monitoring job. +- `s3_uri` (String) The Amazon S3 URI for baseline constraint file in Amazon S3 that the current monitoring job should validated against. + + + +### Nested Schema for `monitoring_schedule_config.monitoring_job_definition.baseline_config.statistics_resource` + +Optional: + +- `s3_uri` (String) The Amazon S3 URI for the baseline statistics file in Amazon S3 that the current monitoring job should be validated against. + + + + +### Nested Schema for `monitoring_schedule_config.monitoring_job_definition.monitoring_app_specification` Optional: - `container_arguments` (List of String) An array of arguments for the container used to run the monitoring job. - `container_entrypoint` (List of String) Specifies the entrypoint for a container used to run the monitoring job. +- `image_uri` (String) The container image to be run by the monitoring job. - `post_analytics_processor_source_uri` (String) An Amazon S3 URI to a script that is called after analysis has been performed. Applicable only for the built-in (first party) containers. - `record_preprocessor_source_uri` (String) An Amazon S3 URI to a script that is called per row prior to running analysis. It can base64 decode the payload and convert it into a flatted json so that the built-in container can use the converted data. Applicable only for the built-in (first party) containers @@ -89,15 +108,12 @@ Optional: ### Nested Schema for `monitoring_schedule_config.monitoring_job_definition.monitoring_inputs.batch_transform_input` -Required: +Optional: - `data_captured_destination_s3_uri` (String) A URI that identifies the Amazon S3 storage location where Batch Transform Job captures data. - `dataset_format` (Attributes) The dataset format of the data to monitor (see [below for nested schema](#nestedatt--monitoring_schedule_config--monitoring_job_definition--monitoring_inputs--batch_transform_input--dataset_format)) -- `local_path` (String) Path to the filesystem where the endpoint data is available to the container. - -Optional: - - `exclude_features_attribute` (String) Indexes or names of the features to be excluded from analysis +- `local_path` (String) Path to the filesystem where the endpoint data is available to the container. - `s3_data_distribution_type` (String) Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated - `s3_input_mode` (String) Whether the Pipe or File is used as the input mode for transfering data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File. @@ -131,14 +147,11 @@ Optional: ### Nested Schema for `monitoring_schedule_config.monitoring_job_definition.monitoring_inputs.endpoint_input` -Required: - -- `endpoint_name` (String) The name of the endpoint used to run the monitoring job. -- `local_path` (String) Path to the filesystem where the endpoint data is available to the container. - Optional: +- `endpoint_name` (String) The name of the endpoint used to run the monitoring job. - `exclude_features_attribute` (String) Indexes or names of the features to be excluded from analysis +- `local_path` (String) Path to the filesystem where the endpoint data is available to the container. - `s3_data_distribution_type` (String) Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated - `s3_input_mode` (String) Whether the Pipe or File is used as the input mode for transfering data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File. @@ -147,32 +160,26 @@ Optional: ### Nested Schema for `monitoring_schedule_config.monitoring_job_definition.monitoring_output_config` -Required: - -- `monitoring_outputs` (Attributes List) Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded. (see [below for nested schema](#nestedatt--monitoring_schedule_config--monitoring_job_definition--monitoring_output_config--monitoring_outputs)) - Optional: - `kms_key_id` (String) The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption. +- `monitoring_outputs` (Attributes List) Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded. (see [below for nested schema](#nestedatt--monitoring_schedule_config--monitoring_job_definition--monitoring_output_config--monitoring_outputs)) ### Nested Schema for `monitoring_schedule_config.monitoring_job_definition.monitoring_output_config.monitoring_outputs` -Required: +Optional: - `s3_output` (Attributes) Information about where and how to store the results of a monitoring job. (see [below for nested schema](#nestedatt--monitoring_schedule_config--monitoring_job_definition--monitoring_output_config--monitoring_outputs--s3_output)) ### Nested Schema for `monitoring_schedule_config.monitoring_job_definition.monitoring_output_config.monitoring_outputs.s3_output` -Required: - -- `local_path` (String) The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data. -- `s3_uri` (String) A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. - Optional: +- `local_path` (String) The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data. - `s3_upload_mode` (String) Whether to upload the results of the monitoring job continuously or after the job completes. +- `s3_uri` (String) A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. @@ -180,47 +187,19 @@ Optional: ### Nested Schema for `monitoring_schedule_config.monitoring_job_definition.monitoring_resources` -Required: +Optional: - `cluster_config` (Attributes) Configuration for the cluster used to run model monitoring jobs. (see [below for nested schema](#nestedatt--monitoring_schedule_config--monitoring_job_definition--monitoring_resources--cluster_config)) ### Nested Schema for `monitoring_schedule_config.monitoring_job_definition.monitoring_resources.cluster_config` -Required: +Optional: - `instance_count` (Number) The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1. - `instance_type` (String) The ML compute instance type for the processing job. -- `volume_size_in_gb` (Number) The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario. - -Optional: - - `volume_kms_key_id` (String) The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job. - - - - -### Nested Schema for `monitoring_schedule_config.monitoring_job_definition.baseline_config` - -Optional: - -- `constraints_resource` (Attributes) The baseline constraints resource for a monitoring job. (see [below for nested schema](#nestedatt--monitoring_schedule_config--monitoring_job_definition--baseline_config--constraints_resource)) -- `statistics_resource` (Attributes) The baseline statistics resource for a monitoring job. (see [below for nested schema](#nestedatt--monitoring_schedule_config--monitoring_job_definition--baseline_config--statistics_resource)) - - -### Nested Schema for `monitoring_schedule_config.monitoring_job_definition.baseline_config.constraints_resource` - -Optional: - -- `s3_uri` (String) The Amazon S3 URI for baseline constraint file in Amazon S3 that the current monitoring job should validated against. - - - -### Nested Schema for `monitoring_schedule_config.monitoring_job_definition.baseline_config.statistics_resource` - -Optional: - -- `s3_uri` (String) The Amazon S3 URI for the baseline statistics file in Amazon S3 that the current monitoring job should be validated against. +- `volume_size_in_gb` (Number) The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario. @@ -236,7 +215,7 @@ Optional: ### Nested Schema for `monitoring_schedule_config.monitoring_job_definition.network_config.vpc_config` -Required: +Optional: - `security_group_ids` (List of String) The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field. - `subnets` (List of String) The ID of the subnets in the VPC to which you want to connect to your monitoring jobs. @@ -246,7 +225,7 @@ Required: ### Nested Schema for `monitoring_schedule_config.monitoring_job_definition.stopping_condition` -Required: +Optional: - `max_runtime_in_seconds` (Number) The maximum runtime allowed in seconds. @@ -255,39 +234,33 @@ Required: ### Nested Schema for `monitoring_schedule_config.schedule_config` -Required: - -- `schedule_expression` (String) A cron expression or 'NOW' that describes details about the monitoring schedule. - Optional: - `data_analysis_end_time` (String) Data Analysis end time, e.g. PT0H - `data_analysis_start_time` (String) Data Analysis start time, e.g. -PT1H +- `schedule_expression` (String) A cron expression or 'NOW' that describes details about the monitoring schedule. ### Nested Schema for `last_monitoring_execution_summary` -Required: +Optional: - `creation_time` (String) The time at which the monitoring job was created. +- `endpoint_name` (String) The name of the endpoint used to run the monitoring job. +- `failure_reason` (String) Contains the reason a monitoring job failed, if it failed. - `last_modified_time` (String) A timestamp that indicates the last time the monitoring job was modified. - `monitoring_execution_status` (String) The status of the monitoring job. - `monitoring_schedule_name` (String) The name of the monitoring schedule. -- `scheduled_time` (String) The time the monitoring job was scheduled. - -Optional: - -- `endpoint_name` (String) The name of the endpoint used to run the monitoring job. -- `failure_reason` (String) Contains the reason a monitoring job failed, if it failed. - `processing_job_arn` (String) The Amazon Resource Name (ARN) of the monitoring job. +- `scheduled_time` (String) The time the monitoring job was scheduled. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/sagemaker_pipeline.md b/docs/resources/sagemaker_pipeline.md index d6d883b3c4..c2298601dc 100644 --- a/docs/resources/sagemaker_pipeline.md +++ b/docs/resources/sagemaker_pipeline.md @@ -43,14 +43,11 @@ Optional: ### Nested Schema for `pipeline_definition.pipeline_definition_s3_location` -Required: - -- `bucket` (String) The name of the S3 bucket where the PipelineDefinition file is stored. -- `key` (String) The file name of the PipelineDefinition file (Amazon S3 object name). - Optional: +- `bucket` (String) The name of the S3 bucket where the PipelineDefinition file is stored. - `e_tag` (String) The Amazon S3 ETag (a file checksum) of the PipelineDefinition file. If you don't specify a value, SageMaker skips ETag validation of your PipelineDefinition file. +- `key` (String) The file name of the PipelineDefinition file (Amazon S3 object name). - `version` (String) For versioning-enabled buckets, a specific version of the PipelineDefinition file. @@ -58,7 +55,7 @@ Optional: ### Nested Schema for `parallelism_configuration` -Required: +Optional: - `max_parallel_execution_steps` (Number) Maximum parallel execution steps @@ -66,7 +63,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/sagemaker_project.md b/docs/resources/sagemaker_project.md index ac55b7e370..e077135905 100644 --- a/docs/resources/sagemaker_project.md +++ b/docs/resources/sagemaker_project.md @@ -50,7 +50,7 @@ Optional: ### Nested Schema for `service_catalog_provisioning_details.provisioning_parameters` -Required: +Optional: - `key` (String) The parameter key. - `value` (String) The parameter value. @@ -69,7 +69,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/sagemaker_space.md b/docs/resources/sagemaker_space.md index 7c41d809c5..4b1c78d206 100644 --- a/docs/resources/sagemaker_space.md +++ b/docs/resources/sagemaker_space.md @@ -37,7 +37,7 @@ Resource Type definition for AWS::SageMaker::Space ### Nested Schema for `ownership_settings` -Required: +Optional: - `owner_user_profile_name` (String) @@ -101,7 +101,7 @@ Optional: ### Nested Schema for `space_settings.custom_file_systems.efs_file_system` -Required: +Optional: - `file_system_id` (String) @@ -135,7 +135,7 @@ Optional: ### Nested Schema for `space_settings.jupyter_lab_app_settings.code_repositories` -Required: +Optional: - `repository_url` (String) A CodeRepository (valid URL) to be used within Jupyter's Git extension. @@ -184,13 +184,10 @@ Optional: ### Nested Schema for `space_settings.kernel_gateway_app_settings.custom_images` -Required: +Optional: - `app_image_config_name` (String) The Name of the AppImageConfig. - `image_name` (String) The name of the CustomImage. Must be unique to your account. - -Optional: - - `image_version_number` (Number) The version number of the CustomImage. @@ -216,7 +213,7 @@ Optional: ### Nested Schema for `space_settings.space_storage_settings.ebs_storage_settings` -Required: +Optional: - `ebs_volume_size_in_gb` (Number) Size of the Amazon EBS volume in Gb @@ -226,7 +223,7 @@ Required: ### Nested Schema for `space_sharing_settings` -Required: +Optional: - `sharing_type` (String) @@ -234,7 +231,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/sagemaker_studio_lifecycle_config.md b/docs/resources/sagemaker_studio_lifecycle_config.md index 9a0e070eca..7698b82f1d 100644 --- a/docs/resources/sagemaker_studio_lifecycle_config.md +++ b/docs/resources/sagemaker_studio_lifecycle_config.md @@ -33,7 +33,7 @@ Resource Type definition for AWS::SageMaker::StudioLifecycleConfig ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/sagemaker_user_profile.md b/docs/resources/sagemaker_user_profile.md index 27c402fb06..8cc604d1b0 100644 --- a/docs/resources/sagemaker_user_profile.md +++ b/docs/resources/sagemaker_user_profile.md @@ -46,7 +46,7 @@ resource "awscc_sagemaker_user_profile" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -104,13 +104,10 @@ Optional: ### Nested Schema for `user_settings.code_editor_app_settings.custom_images` -Required: +Optional: - `app_image_config_name` (String) The Name of the AppImageConfig. - `image_name` (String) The name of the CustomImage. Must be unique to your account. - -Optional: - - `image_version_number` (Number) The version number of the CustomImage. @@ -136,12 +133,9 @@ Optional: ### Nested Schema for `user_settings.custom_file_system_configs.efs_file_system_config` -Required: - -- `file_system_id` (String) - Optional: +- `file_system_id` (String) - `file_system_path` (String) @@ -149,7 +143,7 @@ Optional: ### Nested Schema for `user_settings.custom_posix_user_config` -Required: +Optional: - `gid` (Number) - `uid` (Number) @@ -188,7 +182,7 @@ Optional: ### Nested Schema for `user_settings.jupyter_lab_app_settings.code_repositories` -Required: +Optional: - `repository_url` (String) A CodeRepository (valid URL) to be used within Jupyter's Git extension. @@ -196,13 +190,10 @@ Required: ### Nested Schema for `user_settings.jupyter_lab_app_settings.custom_images` -Required: +Optional: - `app_image_config_name` (String) The Name of the AppImageConfig. - `image_name` (String) The name of the CustomImage. Must be unique to your account. - -Optional: - - `image_version_number` (Number) The version number of the CustomImage. @@ -250,13 +241,10 @@ Optional: ### Nested Schema for `user_settings.kernel_gateway_app_settings.custom_images` -Required: +Optional: - `app_image_config_name` (String) The Name of the AppImageConfig. - `image_name` (String) The name of the CustomImage. Must be unique to your account. - -Optional: - - `image_version_number` (Number) The version number of the CustomImage. @@ -301,7 +289,7 @@ Optional: ### Nested Schema for `user_settings.space_storage_settings.default_ebs_storage_settings` -Required: +Optional: - `default_ebs_volume_size_in_gb` (Number) Default size of the Amazon EBS volume in Gb - `maximum_ebs_volume_size_in_gb` (Number) Maximum size of the Amazon EBS volume in Gb. Must be greater than or equal to the DefaultEbsVolumeSizeInGb. diff --git a/docs/resources/scheduler_schedule_group.md b/docs/resources/scheduler_schedule_group.md index 3b05611df8..d0764cb337 100644 --- a/docs/resources/scheduler_schedule_group.md +++ b/docs/resources/scheduler_schedule_group.md @@ -31,7 +31,7 @@ Definition of AWS::Scheduler::ScheduleGroup Resource Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String) Key for the tag - `value` (String) Value for the tag diff --git a/docs/resources/secretsmanager_secret.md b/docs/resources/secretsmanager_secret.md index 3544680030..f5c853a47b 100644 --- a/docs/resources/secretsmanager_secret.md +++ b/docs/resources/secretsmanager_secret.md @@ -103,19 +103,16 @@ Optional: ### Nested Schema for `replica_regions` -Required: - -- `region` (String) A string that represents a ``Region``, for example "us-east-1". - Optional: - `kms_key_id` (String) The ARN, key ID, or alias of the KMS key to encrypt the secret. If you don't include this field, Secrets Manager uses ``aws/secretsmanager``. +- `region` (String) A string that represents a ``Region``, for example "us-east-1". ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key identifier, or name, of the tag. - `value` (String) The string value associated with the key of the tag. diff --git a/docs/resources/securityhub_insight.md b/docs/resources/securityhub_insight.md index 1671520350..8adf4ed744 100644 --- a/docs/resources/securityhub_insight.md +++ b/docs/resources/securityhub_insight.md @@ -139,7 +139,7 @@ Optional: ### Nested Schema for `filters.aws_account_id` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -148,7 +148,7 @@ Required: ### Nested Schema for `filters.aws_account_name` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -157,7 +157,7 @@ Required: ### Nested Schema for `filters.company_name` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -166,7 +166,7 @@ Required: ### Nested Schema for `filters.compliance_associated_standards_id` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -175,7 +175,7 @@ Required: ### Nested Schema for `filters.compliance_security_control_id` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -184,7 +184,7 @@ Required: ### Nested Schema for `filters.compliance_security_control_parameters_name` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -193,7 +193,7 @@ Required: ### Nested Schema for `filters.compliance_security_control_parameters_value` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -202,7 +202,7 @@ Required: ### Nested Schema for `filters.compliance_status` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -230,7 +230,7 @@ Optional: ### Nested Schema for `filters.created_at.date_range` -Required: +Optional: - `unit` (String) A date range unit for the date filter. - `value` (Number) A date range value for the date filter. @@ -250,7 +250,7 @@ Optional: ### Nested Schema for `filters.description` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -279,7 +279,7 @@ Optional: ### Nested Schema for `filters.finding_provider_fields_related_findings_id` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -288,7 +288,7 @@ Required: ### Nested Schema for `filters.finding_provider_fields_related_findings_product_arn` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -297,7 +297,7 @@ Required: ### Nested Schema for `filters.finding_provider_fields_severity_label` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -306,7 +306,7 @@ Required: ### Nested Schema for `filters.finding_provider_fields_severity_original` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -315,7 +315,7 @@ Required: ### Nested Schema for `filters.finding_provider_fields_types` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -333,7 +333,7 @@ Optional: ### Nested Schema for `filters.first_observed_at.date_range` -Required: +Optional: - `unit` (String) A date range unit for the date filter. - `value` (Number) A date range value for the date filter. @@ -343,7 +343,7 @@ Required: ### Nested Schema for `filters.generator_id` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -352,7 +352,7 @@ Required: ### Nested Schema for `filters.id` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -361,7 +361,7 @@ Required: ### Nested Schema for `filters.keyword` -Required: +Optional: - `value` (String) A value for the keyword. @@ -378,7 +378,7 @@ Optional: ### Nested Schema for `filters.last_observed_at.date_range` -Required: +Optional: - `unit` (String) A date range unit for the date filter. - `value` (Number) A date range value for the date filter. @@ -388,7 +388,7 @@ Required: ### Nested Schema for `filters.malware_name` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -397,7 +397,7 @@ Required: ### Nested Schema for `filters.malware_path` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -406,7 +406,7 @@ Required: ### Nested Schema for `filters.malware_state` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -415,7 +415,7 @@ Required: ### Nested Schema for `filters.malware_type` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -424,7 +424,7 @@ Required: ### Nested Schema for `filters.network_destination_domain` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -433,7 +433,7 @@ Required: ### Nested Schema for `filters.network_destination_ip_v4` -Required: +Optional: - `cidr` (String) A finding's CIDR value. @@ -441,7 +441,7 @@ Required: ### Nested Schema for `filters.network_destination_ip_v6` -Required: +Optional: - `cidr` (String) A finding's CIDR value. @@ -459,7 +459,7 @@ Optional: ### Nested Schema for `filters.network_direction` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -468,7 +468,7 @@ Required: ### Nested Schema for `filters.network_protocol` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -477,7 +477,7 @@ Required: ### Nested Schema for `filters.network_source_domain` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -486,7 +486,7 @@ Required: ### Nested Schema for `filters.network_source_ip_v4` -Required: +Optional: - `cidr` (String) A finding's CIDR value. @@ -494,7 +494,7 @@ Required: ### Nested Schema for `filters.network_source_ip_v6` -Required: +Optional: - `cidr` (String) A finding's CIDR value. @@ -502,7 +502,7 @@ Required: ### Nested Schema for `filters.network_source_mac` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -521,7 +521,7 @@ Optional: ### Nested Schema for `filters.note_text` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -539,7 +539,7 @@ Optional: ### Nested Schema for `filters.note_updated_at.date_range` -Required: +Optional: - `unit` (String) A date range unit for the date filter. - `value` (Number) A date range value for the date filter. @@ -549,7 +549,7 @@ Required: ### Nested Schema for `filters.note_updated_by` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -567,7 +567,7 @@ Optional: ### Nested Schema for `filters.process_launched_at.date_range` -Required: +Optional: - `unit` (String) A date range unit for the date filter. - `value` (Number) A date range value for the date filter. @@ -577,7 +577,7 @@ Required: ### Nested Schema for `filters.process_name` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -596,7 +596,7 @@ Optional: ### Nested Schema for `filters.process_path` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -624,7 +624,7 @@ Optional: ### Nested Schema for `filters.process_terminated_at.date_range` -Required: +Optional: - `unit` (String) A date range unit for the date filter. - `value` (Number) A date range value for the date filter. @@ -634,7 +634,7 @@ Required: ### Nested Schema for `filters.product_arn` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -643,7 +643,7 @@ Required: ### Nested Schema for `filters.product_fields` -Required: +Optional: - `comparison` (String) The condition to apply to the key value when filtering Security Hub findings with a map filter. - `key` (String) Non-empty string definition. @@ -653,7 +653,7 @@ Required: ### Nested Schema for `filters.product_name` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -662,7 +662,7 @@ Required: ### Nested Schema for `filters.recommendation_text` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -671,7 +671,7 @@ Required: ### Nested Schema for `filters.record_state` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -680,7 +680,7 @@ Required: ### Nested Schema for `filters.region` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -689,7 +689,7 @@ Required: ### Nested Schema for `filters.related_findings_id` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -698,7 +698,7 @@ Required: ### Nested Schema for `filters.related_findings_product_arn` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -707,7 +707,7 @@ Required: ### Nested Schema for `filters.resource_application_arn` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -716,7 +716,7 @@ Required: ### Nested Schema for `filters.resource_application_name` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -725,7 +725,7 @@ Required: ### Nested Schema for `filters.resource_aws_ec_2_instance_iam_instance_profile_arn` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -734,7 +734,7 @@ Required: ### Nested Schema for `filters.resource_aws_ec_2_instance_image_id` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -743,7 +743,7 @@ Required: ### Nested Schema for `filters.resource_aws_ec_2_instance_ip_v4_addresses` -Required: +Optional: - `cidr` (String) A finding's CIDR value. @@ -751,7 +751,7 @@ Required: ### Nested Schema for `filters.resource_aws_ec_2_instance_ip_v6_addresses` -Required: +Optional: - `cidr` (String) A finding's CIDR value. @@ -759,7 +759,7 @@ Required: ### Nested Schema for `filters.resource_aws_ec_2_instance_key_name` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -777,7 +777,7 @@ Optional: ### Nested Schema for `filters.resource_aws_ec_2_instance_launched_at.date_range` -Required: +Optional: - `unit` (String) A date range unit for the date filter. - `value` (Number) A date range value for the date filter. @@ -787,7 +787,7 @@ Required: ### Nested Schema for `filters.resource_aws_ec_2_instance_subnet_id` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -796,7 +796,7 @@ Required: ### Nested Schema for `filters.resource_aws_ec_2_instance_type` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -805,7 +805,7 @@ Required: ### Nested Schema for `filters.resource_aws_ec_2_instance_vpc_id` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -823,7 +823,7 @@ Optional: ### Nested Schema for `filters.resource_aws_iam_access_key_created_at.date_range` -Required: +Optional: - `unit` (String) A date range unit for the date filter. - `value` (Number) A date range value for the date filter. @@ -833,7 +833,7 @@ Required: ### Nested Schema for `filters.resource_aws_iam_access_key_principal_name` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -842,7 +842,7 @@ Required: ### Nested Schema for `filters.resource_aws_iam_access_key_status` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -851,7 +851,7 @@ Required: ### Nested Schema for `filters.resource_aws_iam_access_key_user_name` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -860,7 +860,7 @@ Required: ### Nested Schema for `filters.resource_aws_iam_user_user_name` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -869,7 +869,7 @@ Required: ### Nested Schema for `filters.resource_aws_s3_bucket_owner_id` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -878,7 +878,7 @@ Required: ### Nested Schema for `filters.resource_aws_s3_bucket_owner_name` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -887,7 +887,7 @@ Required: ### Nested Schema for `filters.resource_container_image_id` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -896,7 +896,7 @@ Required: ### Nested Schema for `filters.resource_container_image_name` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -914,7 +914,7 @@ Optional: ### Nested Schema for `filters.resource_container_launched_at.date_range` -Required: +Optional: - `unit` (String) A date range unit for the date filter. - `value` (Number) A date range value for the date filter. @@ -924,7 +924,7 @@ Required: ### Nested Schema for `filters.resource_container_name` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -933,7 +933,7 @@ Required: ### Nested Schema for `filters.resource_details_other` -Required: +Optional: - `comparison` (String) The condition to apply to the key value when filtering Security Hub findings with a map filter. - `key` (String) Non-empty string definition. @@ -943,7 +943,7 @@ Required: ### Nested Schema for `filters.resource_id` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -952,7 +952,7 @@ Required: ### Nested Schema for `filters.resource_partition` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -961,7 +961,7 @@ Required: ### Nested Schema for `filters.resource_region` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -970,7 +970,7 @@ Required: ### Nested Schema for `filters.resource_tags` -Required: +Optional: - `comparison` (String) The condition to apply to the key value when filtering Security Hub findings with a map filter. - `key` (String) Non-empty string definition. @@ -980,7 +980,7 @@ Required: ### Nested Schema for `filters.resource_type` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -989,7 +989,7 @@ Required: ### Nested Schema for `filters.sample` -Required: +Optional: - `value` (Boolean) The value of the boolean. @@ -997,7 +997,7 @@ Required: ### Nested Schema for `filters.severity_label` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -1026,7 +1026,7 @@ Optional: ### Nested Schema for `filters.source_url` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -1035,7 +1035,7 @@ Required: ### Nested Schema for `filters.threat_intel_indicator_category` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -1053,7 +1053,7 @@ Optional: ### Nested Schema for `filters.threat_intel_indicator_last_observed_at.date_range` -Required: +Optional: - `unit` (String) A date range unit for the date filter. - `value` (Number) A date range value for the date filter. @@ -1063,7 +1063,7 @@ Required: ### Nested Schema for `filters.threat_intel_indicator_source` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -1072,7 +1072,7 @@ Required: ### Nested Schema for `filters.threat_intel_indicator_source_url` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -1081,7 +1081,7 @@ Required: ### Nested Schema for `filters.threat_intel_indicator_type` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -1090,7 +1090,7 @@ Required: ### Nested Schema for `filters.threat_intel_indicator_value` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -1099,7 +1099,7 @@ Required: ### Nested Schema for `filters.title` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -1108,7 +1108,7 @@ Required: ### Nested Schema for `filters.type` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -1126,7 +1126,7 @@ Optional: ### Nested Schema for `filters.updated_at.date_range` -Required: +Optional: - `unit` (String) A date range unit for the date filter. - `value` (Number) A date range value for the date filter. @@ -1136,7 +1136,7 @@ Required: ### Nested Schema for `filters.user_defined_fields` -Required: +Optional: - `comparison` (String) The condition to apply to the key value when filtering Security Hub findings with a map filter. - `key` (String) Non-empty string definition. @@ -1146,7 +1146,7 @@ Required: ### Nested Schema for `filters.verification_state` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -1155,7 +1155,7 @@ Required: ### Nested Schema for `filters.vulnerabilities_exploit_available` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -1164,7 +1164,7 @@ Required: ### Nested Schema for `filters.vulnerabilities_fix_available` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -1173,7 +1173,7 @@ Required: ### Nested Schema for `filters.workflow_state` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. @@ -1182,7 +1182,7 @@ Required: ### Nested Schema for `filters.workflow_status` -Required: +Optional: - `comparison` (String) The condition to apply to a string value when filtering Security Hub findings. - `value` (String) Non-empty string definition. diff --git a/docs/resources/securityhub_standard.md b/docs/resources/securityhub_standard.md index 0c9a4712dc..e3bda6a32f 100644 --- a/docs/resources/securityhub_standard.md +++ b/docs/resources/securityhub_standard.md @@ -141,13 +141,10 @@ resource "awscc_securityhub_standard" "nist" { ### Nested Schema for `disabled_standards_controls` -Required: - -- `standards_control_arn` (String) The Amazon Resource Name (ARN) of the control. - Optional: - `reason` (String) A user-defined reason for changing a control's enablement status in a specified standard. If you are disabling a control, then this property is required. +- `standards_control_arn` (String) The Amazon Resource Name (ARN) of the control. ## Import diff --git a/docs/resources/securitylake_data_lake.md b/docs/resources/securitylake_data_lake.md index e568247ade..a0a804d04e 100644 --- a/docs/resources/securitylake_data_lake.md +++ b/docs/resources/securitylake_data_lake.md @@ -75,7 +75,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, `_`, `.`, `/`, `=`, `+`, and `-`. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 characters in length. diff --git a/docs/resources/securitylake_subscriber_notification.md b/docs/resources/securitylake_subscriber_notification.md index daad5e87c3..8f8086820a 100644 --- a/docs/resources/securitylake_subscriber_notification.md +++ b/docs/resources/securitylake_subscriber_notification.md @@ -36,16 +36,13 @@ Optional: ### Nested Schema for `notification_configuration.https_notification_configuration` -Required: - -- `endpoint` (String) The subscription endpoint in Security Lake. -- `target_role_arn` (String) The Amazon Resource Name (ARN) of the EventBridge API destinations IAM role that you created. - Optional: - `authorization_api_key_name` (String) The key name for the notification subscription. - `authorization_api_key_value` (String) The key value for the notification subscription. +- `endpoint` (String) The subscription endpoint in Security Lake. - `http_method` (String) The HTTPS method used for the notification subscription. +- `target_role_arn` (String) The Amazon Resource Name (ARN) of the EventBridge API destinations IAM role that you created. ## Import diff --git a/docs/resources/servicecatalog_cloudformation_provisioned_product.md b/docs/resources/servicecatalog_cloudformation_provisioned_product.md index ce31e4e191..b91edda3e7 100644 --- a/docs/resources/servicecatalog_cloudformation_provisioned_product.md +++ b/docs/resources/servicecatalog_cloudformation_provisioned_product.md @@ -41,7 +41,7 @@ Resource Schema for AWS::ServiceCatalog::CloudFormationProvisionedProduct ### Nested Schema for `provisioning_parameters` -Required: +Optional: - `key` (String) - `value` (String) @@ -64,7 +64,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ses_configuration_set.md b/docs/resources/ses_configuration_set.md index d25fd2f39e..3b373859d8 100644 --- a/docs/resources/ses_configuration_set.md +++ b/docs/resources/ses_configuration_set.md @@ -81,7 +81,7 @@ Optional: ### Nested Schema for `vdm_options.dashboard_options` -Required: +Optional: - `engagement_metrics` (String) Whether emails sent with this configuration set have engagement tracking enabled. @@ -89,7 +89,7 @@ Required: ### Nested Schema for `vdm_options.guardian_options` -Required: +Optional: - `optimized_shared_delivery` (String) Whether emails sent with this configuration set have optimized delivery algorithm enabled. diff --git a/docs/resources/ses_configuration_set_event_destination.md b/docs/resources/ses_configuration_set_event_destination.md index 6648fec641..503d385517 100644 --- a/docs/resources/ses_configuration_set_event_destination.md +++ b/docs/resources/ses_configuration_set_event_destination.md @@ -51,7 +51,7 @@ Optional: ### Nested Schema for `event_destination.cloudwatch_destination.dimension_configurations` -Required: +Optional: - `default_dimension_value` (String) The default value of the dimension that is published to Amazon CloudWatch if you do not provide the value of the dimension when you send an email. - `dimension_name` (String) The name of an Amazon CloudWatch dimension associated with an email sending metric. @@ -62,7 +62,7 @@ Required: ### Nested Schema for `event_destination.event_bridge_destination` -Required: +Optional: - `event_bus_arn` (String) @@ -70,7 +70,7 @@ Required: ### Nested Schema for `event_destination.kinesis_firehose_destination` -Required: +Optional: - `delivery_stream_arn` (String) The ARN of the Amazon Kinesis Firehose stream that email sending events should be published to. - `iam_role_arn` (String) The ARN of the IAM role under which Amazon SES publishes email sending events to the Amazon Kinesis Firehose stream. @@ -79,7 +79,7 @@ Required: ### Nested Schema for `event_destination.sns_destination` -Required: +Optional: - `topic_arn` (String) diff --git a/docs/resources/ses_contact_list.md b/docs/resources/ses_contact_list.md index 0c2c26d58b..34400045f4 100644 --- a/docs/resources/ses_contact_list.md +++ b/docs/resources/ses_contact_list.md @@ -29,7 +29,7 @@ Resource schema for AWS::SES::ContactList. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -38,16 +38,13 @@ Required: ### Nested Schema for `topics` -Required: +Optional: - `default_subscription_status` (String) +- `description` (String) The description of the topic. - `display_name` (String) The display name of the topic. - `topic_name` (String) The name of the topic. -Optional: - -- `description` (String) The description of the topic. - ## Import Import is supported using the following syntax: diff --git a/docs/resources/ses_mail_manager_addon_instance.md b/docs/resources/ses_mail_manager_addon_instance.md index 3eec09061d..dd066c14c3 100644 --- a/docs/resources/ses_mail_manager_addon_instance.md +++ b/docs/resources/ses_mail_manager_addon_instance.md @@ -33,7 +33,7 @@ Definition of AWS::SES::MailManagerAddonInstance Resource Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ses_mail_manager_addon_subscription.md b/docs/resources/ses_mail_manager_addon_subscription.md index f793ee09cb..ee79589c9a 100644 --- a/docs/resources/ses_mail_manager_addon_subscription.md +++ b/docs/resources/ses_mail_manager_addon_subscription.md @@ -32,7 +32,7 @@ Definition of AWS::SES::MailManagerAddonSubscription Resource Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ses_mail_manager_archive.md b/docs/resources/ses_mail_manager_archive.md index db80605ac4..aa5a750cdb 100644 --- a/docs/resources/ses_mail_manager_archive.md +++ b/docs/resources/ses_mail_manager_archive.md @@ -40,7 +40,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ses_mail_manager_ingress_point.md b/docs/resources/ses_mail_manager_ingress_point.md index 69de3ca39f..f6a877b451 100644 --- a/docs/resources/ses_mail_manager_ingress_point.md +++ b/docs/resources/ses_mail_manager_ingress_point.md @@ -48,7 +48,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ses_mail_manager_relay.md b/docs/resources/ses_mail_manager_relay.md index 39a0357204..baf48b2a2e 100644 --- a/docs/resources/ses_mail_manager_relay.md +++ b/docs/resources/ses_mail_manager_relay.md @@ -44,7 +44,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ses_mail_manager_rule_set.md b/docs/resources/ses_mail_manager_rule_set.md index 65caa0f89f..b7980eef74 100644 --- a/docs/resources/ses_mail_manager_rule_set.md +++ b/docs/resources/ses_mail_manager_rule_set.md @@ -60,7 +60,7 @@ Optional: ### Nested Schema for `rules.actions.add_header` -Required: +Optional: - `header_name` (String) - `header_value` (String) @@ -69,39 +69,30 @@ Required: ### Nested Schema for `rules.actions.archive` -Required: - -- `target_archive` (String) - Optional: - `action_failure_policy` (String) +- `target_archive` (String) ### Nested Schema for `rules.actions.deliver_to_mailbox` -Required: - -- `mailbox_arn` (String) -- `role_arn` (String) - Optional: - `action_failure_policy` (String) +- `mailbox_arn` (String) +- `role_arn` (String) ### Nested Schema for `rules.actions.relay` -Required: - -- `relay` (String) - Optional: - `action_failure_policy` (String) - `mail_from` (String) +- `relay` (String) @@ -115,26 +106,20 @@ Optional: ### Nested Schema for `rules.actions.send` -Required: - -- `role_arn` (String) - Optional: - `action_failure_policy` (String) +- `role_arn` (String) ### Nested Schema for `rules.actions.write_to_s3` -Required: - -- `role_arn` (String) -- `s3_bucket` (String) - Optional: - `action_failure_policy` (String) +- `role_arn` (String) +- `s3_bucket` (String) - `s3_prefix` (String) - `s3_sse_kms_key_id` (String) @@ -155,7 +140,7 @@ Optional: ### Nested Schema for `rules.conditions.boolean_expression` -Required: +Optional: - `evaluate` (Attributes) (see [below for nested schema](#nestedatt--rules--conditions--boolean_expression--evaluate)) - `operator` (String) @@ -172,7 +157,7 @@ Optional: ### Nested Schema for `rules.conditions.dmarc_expression` -Required: +Optional: - `operator` (String) - `values` (List of String) @@ -181,7 +166,7 @@ Required: ### Nested Schema for `rules.conditions.ip_expression` -Required: +Optional: - `evaluate` (Attributes) (see [below for nested schema](#nestedatt--rules--conditions--ip_expression--evaluate)) - `operator` (String) @@ -199,7 +184,7 @@ Optional: ### Nested Schema for `rules.conditions.number_expression` -Required: +Optional: - `evaluate` (Attributes) (see [below for nested schema](#nestedatt--rules--conditions--number_expression--evaluate)) - `operator` (String) @@ -217,7 +202,7 @@ Optional: ### Nested Schema for `rules.conditions.string_expression` -Required: +Optional: - `evaluate` (Attributes) (see [below for nested schema](#nestedatt--rules--conditions--string_expression--evaluate)) - `operator` (String) @@ -235,7 +220,7 @@ Optional: ### Nested Schema for `rules.conditions.verdict_expression` -Required: +Optional: - `evaluate` (Attributes) (see [below for nested schema](#nestedatt--rules--conditions--verdict_expression--evaluate)) - `operator` (String) @@ -252,7 +237,7 @@ Optional: ### Nested Schema for `rules.conditions.verdict_expression.evaluate.analysis` -Required: +Optional: - `analyzer` (String) - `result_field` (String) @@ -276,7 +261,7 @@ Optional: ### Nested Schema for `rules.unless.boolean_expression` -Required: +Optional: - `evaluate` (Attributes) (see [below for nested schema](#nestedatt--rules--unless--boolean_expression--evaluate)) - `operator` (String) @@ -293,7 +278,7 @@ Optional: ### Nested Schema for `rules.unless.dmarc_expression` -Required: +Optional: - `operator` (String) - `values` (List of String) @@ -302,7 +287,7 @@ Required: ### Nested Schema for `rules.unless.ip_expression` -Required: +Optional: - `evaluate` (Attributes) (see [below for nested schema](#nestedatt--rules--unless--ip_expression--evaluate)) - `operator` (String) @@ -320,7 +305,7 @@ Optional: ### Nested Schema for `rules.unless.number_expression` -Required: +Optional: - `evaluate` (Attributes) (see [below for nested schema](#nestedatt--rules--unless--number_expression--evaluate)) - `operator` (String) @@ -338,7 +323,7 @@ Optional: ### Nested Schema for `rules.unless.string_expression` -Required: +Optional: - `evaluate` (Attributes) (see [below for nested schema](#nestedatt--rules--unless--string_expression--evaluate)) - `operator` (String) @@ -356,7 +341,7 @@ Optional: ### Nested Schema for `rules.unless.verdict_expression` -Required: +Optional: - `evaluate` (Attributes) (see [below for nested schema](#nestedatt--rules--unless--verdict_expression--evaluate)) - `operator` (String) @@ -373,7 +358,7 @@ Optional: ### Nested Schema for `rules.unless.verdict_expression.evaluate.analysis` -Required: +Optional: - `analyzer` (String) - `result_field` (String) @@ -386,7 +371,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ses_mail_manager_traffic_policy.md b/docs/resources/ses_mail_manager_traffic_policy.md index f743c15509..e485b4bf40 100644 --- a/docs/resources/ses_mail_manager_traffic_policy.md +++ b/docs/resources/ses_mail_manager_traffic_policy.md @@ -53,7 +53,7 @@ Optional: ### Nested Schema for `policy_statements.conditions.boolean_expression` -Required: +Optional: - `evaluate` (Attributes) (see [below for nested schema](#nestedatt--policy_statements--conditions--boolean_expression--evaluate)) - `operator` (String) @@ -68,7 +68,7 @@ Optional: ### Nested Schema for `policy_statements.conditions.boolean_expression.evaluate.analysis` -Required: +Optional: - `analyzer` (String) - `result_field` (String) @@ -79,7 +79,7 @@ Required: ### Nested Schema for `policy_statements.conditions.ip_expression` -Required: +Optional: - `evaluate` (Attributes) (see [below for nested schema](#nestedatt--policy_statements--conditions--ip_expression--evaluate)) - `operator` (String) @@ -97,7 +97,7 @@ Optional: ### Nested Schema for `policy_statements.conditions.string_expression` -Required: +Optional: - `evaluate` (Attributes) (see [below for nested schema](#nestedatt--policy_statements--conditions--string_expression--evaluate)) - `operator` (String) @@ -115,7 +115,7 @@ Optional: ### Nested Schema for `policy_statements.conditions.tls_expression` -Required: +Optional: - `evaluate` (Attributes) (see [below for nested schema](#nestedatt--policy_statements--conditions--tls_expression--evaluate)) - `operator` (String) @@ -135,7 +135,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ses_template.md b/docs/resources/ses_template.md index 8cf28d80fc..d8d30935a8 100644 --- a/docs/resources/ses_template.md +++ b/docs/resources/ses_template.md @@ -27,13 +27,10 @@ Resource Type definition for AWS::SES::Template ### Nested Schema for `template` -Required: - -- `subject_part` (String) The subject line of the email. - Optional: - `html_part` (String) The HTML body of the email. +- `subject_part` (String) The subject line of the email. - `template_name` (String) The name of the template. - `text_part` (String) The email body that is visible to recipients whose email clients do not display HTML content. diff --git a/docs/resources/shield_protection.md b/docs/resources/shield_protection.md index ecc5aa6a14..a3d29b646a 100644 --- a/docs/resources/shield_protection.md +++ b/docs/resources/shield_protection.md @@ -35,7 +35,7 @@ Enables AWS Shield Advanced for a specific AWS resource. The resource can be an ### Nested Schema for `application_layer_automatic_response_configuration` -Required: +Optional: - `action` (Attributes) Specifies the action setting that Shield Advanced should use in the AWS WAF rules that it creates on behalf of the protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, when you enable or update automatic mitigation. Shield Advanced creates the AWS WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource. (see [below for nested schema](#nestedatt--application_layer_automatic_response_configuration--action)) - `status` (String) Indicates whether automatic application layer DDoS mitigation is enabled for the protection. @@ -55,7 +55,7 @@ You must specify exactly one action, either `Block` or `Count`. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) Part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as "customer." Tag keys are case-sensitive. - `value` (String) Part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as "companyA" or "companyB." Tag values are case-sensitive. diff --git a/docs/resources/shield_protection_group.md b/docs/resources/shield_protection_group.md index 1e6878307e..1591d182f3 100644 --- a/docs/resources/shield_protection_group.md +++ b/docs/resources/shield_protection_group.md @@ -38,7 +38,7 @@ A grouping of protected resources so they can be handled as a collective. This r ### Nested Schema for `tags` -Required: +Optional: - `key` (String) Part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as "customer." Tag keys are case-sensitive. - `value` (String) Part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as "companyA" or "companyB." Tag values are case-sensitive. diff --git a/docs/resources/simspaceweaver_simulation.md b/docs/resources/simspaceweaver_simulation.md index 7bbfef2e8c..7d45f351db 100644 --- a/docs/resources/simspaceweaver_simulation.md +++ b/docs/resources/simspaceweaver_simulation.md @@ -34,7 +34,7 @@ AWS::SimSpaceWeaver::Simulation resource creates an AWS Simulation. ### Nested Schema for `schema_s3_location` -Required: +Optional: - `bucket_name` (String) The Schema S3 bucket name. - `object_key` (String) This is the schema S3 object key, which includes the full path of "folders" from the bucket root to the schema. @@ -43,7 +43,7 @@ Required: ### Nested Schema for `snapshot_s3_location` -Required: +Optional: - `bucket_name` (String) The Schema S3 bucket name. - `object_key` (String) This is the schema S3 object key, which includes the full path of "folders" from the bucket root to the schema. diff --git a/docs/resources/sns_topic.md b/docs/resources/sns_topic.md index c55df8e004..066f64a55c 100644 --- a/docs/resources/sns_topic.md +++ b/docs/resources/sns_topic.md @@ -90,14 +90,11 @@ resource "awscc_sns_topic" "sns_fifo_example" { ### Nested Schema for `delivery_status_logging` -Required: - -- `protocol` (String) Indicates one of the supported protocols for the Amazon SNS topic. - At least one of the other three ``LoggingConfig`` properties is recommend along with ``Protocol``. - Optional: - `failure_feedback_role_arn` (String) The IAM role ARN to be used when logging failed message deliveries in Amazon CloudWatch. +- `protocol` (String) Indicates one of the supported protocols for the Amazon SNS topic. + At least one of the other three ``LoggingConfig`` properties is recommend along with ``Protocol``. - `success_feedback_role_arn` (String) The IAM role ARN to be used when logging successful message deliveries in Amazon CloudWatch. - `success_feedback_sample_rate` (String) The percentage of successful message deliveries to be logged in Amazon CloudWatch. Valid percentage values range from 0 to 100. @@ -105,7 +102,7 @@ Optional: ### Nested Schema for `subscription` -Required: +Optional: - `endpoint` (String) The endpoint that receives notifications from the SNS topic. The endpoint value depends on the protocol that you specify. For more information, see the ``Endpoint`` parameter of the ``Subscribe`` action in the *API Reference*. - `protocol` (String) The subscription's protocol. For more information, see the ``Protocol`` parameter of the ``Subscribe`` action in the *API Reference*. @@ -114,7 +111,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The required key portion of the tag. - `value` (String) The optional value portion of the tag. diff --git a/docs/resources/sqs_queue.md b/docs/resources/sqs_queue.md index 2aa62237fe..6dd560f917 100644 --- a/docs/resources/sqs_queue.md +++ b/docs/resources/sqs_queue.md @@ -179,7 +179,7 @@ resource "awscc_sqs_queue" "terraform_awscc_queue_kms" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/ssm_association.md b/docs/resources/ssm_association.md index 7380c238e4..75bd29ea6f 100644 --- a/docs/resources/ssm_association.md +++ b/docs/resources/ssm_association.md @@ -64,7 +64,7 @@ Optional: ### Nested Schema for `targets` -Required: +Optional: - `key` (String) - `values` (List of String) diff --git a/docs/resources/ssm_patch_baseline.md b/docs/resources/ssm_patch_baseline.md index 8870f7735e..c4eb59ef6c 100644 --- a/docs/resources/ssm_patch_baseline.md +++ b/docs/resources/ssm_patch_baseline.md @@ -107,7 +107,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ssm_resource_data_sync.md b/docs/resources/ssm_resource_data_sync.md index f7b4a78bc3..f554a36aa9 100644 --- a/docs/resources/ssm_resource_data_sync.md +++ b/docs/resources/ssm_resource_data_sync.md @@ -37,40 +37,31 @@ Resource Type definition for AWS::SSM::ResourceDataSync ### Nested Schema for `s3_destination` -Required: - -- `bucket_name` (String) -- `bucket_region` (String) -- `sync_format` (String) - Optional: +- `bucket_name` (String) - `bucket_prefix` (String) +- `bucket_region` (String) - `kms_key_arn` (String) +- `sync_format` (String) ### Nested Schema for `sync_source` -Required: - -- `source_regions` (List of String) -- `source_type` (String) - Optional: - `aws_organizations_source` (Attributes) (see [below for nested schema](#nestedatt--sync_source--aws_organizations_source)) - `include_future_regions` (Boolean) +- `source_regions` (List of String) +- `source_type` (String) ### Nested Schema for `sync_source.aws_organizations_source` -Required: - -- `organization_source_type` (String) - Optional: +- `organization_source_type` (String) - `organizational_units` (List of String) ## Import diff --git a/docs/resources/ssmcontacts_contact.md b/docs/resources/ssmcontacts_contact.md index 500ef54512..ad0270bb78 100644 --- a/docs/resources/ssmcontacts_contact.md +++ b/docs/resources/ssmcontacts_contact.md @@ -50,7 +50,7 @@ Optional: ### Nested Schema for `plan.targets.channel_target_info` -Required: +Optional: - `channel_id` (String) The Amazon Resource Name (ARN) of the contact channel. - `retry_interval_in_minutes` (Number) The number of minutes to wait to retry sending engagement in the case the engagement initially fails. @@ -59,7 +59,7 @@ Required: ### Nested Schema for `plan.targets.contact_target_info` -Required: +Optional: - `contact_id` (String) The Amazon Resource Name (ARN) of the contact. - `is_essential` (Boolean) A Boolean value determining if the contact's acknowledgement stops the progress of stages in the plan. diff --git a/docs/resources/ssmcontacts_plan.md b/docs/resources/ssmcontacts_plan.md index 2ca517b0e6..97fac55b19 100644 --- a/docs/resources/ssmcontacts_plan.md +++ b/docs/resources/ssmcontacts_plan.md @@ -29,12 +29,9 @@ Engagement Plan for a SSM Incident Manager Contact. ### Nested Schema for `stages` -Required: - -- `duration_in_minutes` (Number) The time to wait until beginning the next stage. - Optional: +- `duration_in_minutes` (Number) The time to wait until beginning the next stage. - `targets` (Attributes List) The contacts or contact methods that the escalation plan or engagement plan is engaging. (see [below for nested schema](#nestedatt--stages--targets)) @@ -48,7 +45,7 @@ Optional: ### Nested Schema for `stages.targets.channel_target_info` -Required: +Optional: - `channel_id` (String) The Amazon Resource Name (ARN) of the contact channel. - `retry_interval_in_minutes` (Number) The number of minutes to wait to retry sending engagement in the case the engagement initially fails. @@ -57,7 +54,7 @@ Required: ### Nested Schema for `stages.targets.contact_target_info` -Required: +Optional: - `contact_id` (String) The Amazon Resource Name (ARN) of the contact. - `is_essential` (Boolean) A Boolean value determining if the contact's acknowledgement stops the progress of stages in the plan. diff --git a/docs/resources/ssmcontacts_rotation.md b/docs/resources/ssmcontacts_rotation.md index 9aef173c85..698663c7f9 100644 --- a/docs/resources/ssmcontacts_rotation.md +++ b/docs/resources/ssmcontacts_rotation.md @@ -47,7 +47,7 @@ Optional: ### Nested Schema for `recurrence.monthly_settings` -Required: +Optional: - `day_of_month` (Number) The day of the month when monthly recurring on-call rotations begin. - `hand_off_time` (String) Details about when an on-call rotation shift begins or ends. Time of the day in format HH:MM @@ -56,7 +56,7 @@ Required: ### Nested Schema for `recurrence.shift_coverages` -Required: +Optional: - `coverage_times` (Attributes List) Information about when an on-call shift begins and ends. (see [below for nested schema](#nestedatt--recurrence--shift_coverages--coverage_times)) - `day_of_week` (String) The day of the week when weekly recurring on-call shift rotations begin. @@ -64,7 +64,7 @@ Required: ### Nested Schema for `recurrence.shift_coverages.coverage_times` -Required: +Optional: - `end_time` (String) Details about when an on-call rotation shift begins or ends. Time of the day in format HH:MM - `start_time` (String) Details about when an on-call rotation shift begins or ends. Time of the day in format HH:MM @@ -74,7 +74,7 @@ Required: ### Nested Schema for `recurrence.weekly_settings` -Required: +Optional: - `day_of_week` (String) The day of the week when weekly recurring on-call shift rotations begin. - `hand_off_time` (String) Details about when an on-call rotation shift begins or ends. Time of the day in format HH:MM @@ -84,7 +84,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag - `value` (String) The value for the tag. diff --git a/docs/resources/ssmincidents_replication_set.md b/docs/resources/ssmincidents_replication_set.md index 18931c1f1e..befc566de8 100644 --- a/docs/resources/ssmincidents_replication_set.md +++ b/docs/resources/ssmincidents_replication_set.md @@ -40,7 +40,7 @@ Optional: ### Nested Schema for `regions.region_configuration` -Required: +Optional: - `sse_kms_key_id` (String) The ARN of the ReplicationSet. @@ -49,7 +49,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/ssmincidents_response_plan.md b/docs/resources/ssmincidents_response_plan.md index 818dd5bbee..188d7a3e09 100644 --- a/docs/resources/ssmincidents_response_plan.md +++ b/docs/resources/ssmincidents_response_plan.md @@ -52,7 +52,7 @@ Optional: ### Nested Schema for `incident_template.incident_tags` -Required: +Optional: - `key` (String) - `value` (String) @@ -77,22 +77,19 @@ Optional: ### Nested Schema for `actions.ssm_automation` -Required: - -- `document_name` (String) The document name to use when starting the SSM automation document. -- `role_arn` (String) The role ARN to use when starting the SSM automation document. - Optional: +- `document_name` (String) The document name to use when starting the SSM automation document. - `document_version` (String) The version of the document to use when starting the SSM automation document. - `dynamic_parameters` (Attributes Set) The parameters with dynamic values to set when starting the SSM automation document. (see [below for nested schema](#nestedatt--actions--ssm_automation--dynamic_parameters)) - `parameters` (Attributes Set) The parameters to set when starting the SSM automation document. (see [below for nested schema](#nestedatt--actions--ssm_automation--parameters)) +- `role_arn` (String) The role ARN to use when starting the SSM automation document. - `target_account` (String) The account type to use when starting the SSM automation document. ### Nested Schema for `actions.ssm_automation.dynamic_parameters` -Required: +Optional: - `key` (String) - `value` (Attributes) Value of the dynamic parameter to set when starting the SSM automation document. (see [below for nested schema](#nestedatt--actions--ssm_automation--dynamic_parameters--value)) @@ -109,7 +106,7 @@ Optional: ### Nested Schema for `actions.ssm_automation.parameters` -Required: +Optional: - `key` (String) - `values` (List of String) @@ -135,7 +132,7 @@ Optional: ### Nested Schema for `integrations.pager_duty_configuration` -Required: +Optional: - `name` (String) The name of the pagerDuty configuration. - `pager_duty_incident_configuration` (Attributes) The pagerDuty incident configuration. (see [below for nested schema](#nestedatt--integrations--pager_duty_configuration--pager_duty_incident_configuration)) @@ -144,7 +141,7 @@ Required: ### Nested Schema for `integrations.pager_duty_configuration.pager_duty_incident_configuration` -Required: +Optional: - `service_id` (String) The pagerDuty serviceId. @@ -154,7 +151,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/sso_application.md b/docs/resources/sso_application.md index 116f4e567e..e141cd91c9 100644 --- a/docs/resources/sso_application.md +++ b/docs/resources/sso_application.md @@ -67,20 +67,17 @@ Optional: ### Nested Schema for `portal_options.sign_in_options` -Required: - -- `origin` (String) This determines how IAM Identity Center navigates the user to the target application - Optional: - `application_url` (String) The URL that accepts authentication requests for an application, this is a required parameter if the Origin parameter is APPLICATION +- `origin` (String) This determines how IAM Identity Center navigates the user to the target application ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/sso_instance.md b/docs/resources/sso_instance.md index 800e645453..e6c47e2189 100644 --- a/docs/resources/sso_instance.md +++ b/docs/resources/sso_instance.md @@ -41,7 +41,7 @@ resource "awscc_sso_instance" "example" { ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/sso_instance_access_control_attribute_configuration.md b/docs/resources/sso_instance_access_control_attribute_configuration.md index 5b20666055..61cc17229c 100644 --- a/docs/resources/sso_instance_access_control_attribute_configuration.md +++ b/docs/resources/sso_instance_access_control_attribute_configuration.md @@ -31,7 +31,7 @@ Resource Type definition for SSO InstanceAccessControlAttributeConfiguration ### Nested Schema for `access_control_attributes` -Required: +Optional: - `key` (String) - `value` (Attributes) (see [below for nested schema](#nestedatt--access_control_attributes--value)) @@ -39,7 +39,7 @@ Required: ### Nested Schema for `access_control_attributes.value` -Required: +Optional: - `source` (List of String) @@ -48,14 +48,14 @@ Required: ### Nested Schema for `instance_access_control_attribute_configuration` -Required: +Optional: - `access_control_attributes` (Attributes List) (see [below for nested schema](#nestedatt--instance_access_control_attribute_configuration--access_control_attributes)) ### Nested Schema for `instance_access_control_attribute_configuration.access_control_attributes` -Required: +Optional: - `key` (String) - `value` (Attributes) (see [below for nested schema](#nestedatt--instance_access_control_attribute_configuration--access_control_attributes--value)) @@ -63,7 +63,7 @@ Required: ### Nested Schema for `instance_access_control_attribute_configuration.access_control_attributes.value` -Required: +Optional: - `source` (List of String) diff --git a/docs/resources/sso_permission_set.md b/docs/resources/sso_permission_set.md index 80eb719269..8e9c209184 100644 --- a/docs/resources/sso_permission_set.md +++ b/docs/resources/sso_permission_set.md @@ -68,12 +68,9 @@ resource "awscc_sso_permission_set" "example" { ### Nested Schema for `customer_managed_policy_references` -Required: - -- `name` (String) - Optional: +- `name` (String) - `path` (String) @@ -88,12 +85,9 @@ Optional: ### Nested Schema for `permissions_boundary.customer_managed_policy_reference` -Required: - -- `name` (String) - Optional: +- `name` (String) - `path` (String) @@ -101,7 +95,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/stepfunctions_activity.md b/docs/resources/stepfunctions_activity.md index 9dc3096747..0156b71cd1 100644 --- a/docs/resources/stepfunctions_activity.md +++ b/docs/resources/stepfunctions_activity.md @@ -43,20 +43,17 @@ resource "awscc_stepfunctions_activity" "sfn_activity" { ### Nested Schema for `encryption_configuration` -Required: - -- `type` (String) - Optional: - `kms_data_key_reuse_period_seconds` (Number) - `kms_key_id` (String) +- `type` (String) ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/stepfunctions_state_machine.md b/docs/resources/stepfunctions_state_machine.md index 1a667ce867..46bee68d0c 100644 --- a/docs/resources/stepfunctions_state_machine.md +++ b/docs/resources/stepfunctions_state_machine.md @@ -132,13 +132,10 @@ resource "awscc_stepfunctions_state_machine" "sfn_stepmachine" { ### Nested Schema for `definition_s3_location` -Required: +Optional: - `bucket` (String) - `key` (String) - -Optional: - - `version` (String) @@ -171,7 +168,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/stepfunctions_state_machine_alias.md b/docs/resources/stepfunctions_state_machine_alias.md index b33b7259e6..06035d68a7 100644 --- a/docs/resources/stepfunctions_state_machine_alias.md +++ b/docs/resources/stepfunctions_state_machine_alias.md @@ -30,22 +30,19 @@ Resource schema for StateMachineAlias ### Nested Schema for `deployment_preference` -Required: - -- `state_machine_version_arn` (String) -- `type` (String) The type of deployment to perform. - Optional: - `alarms` (Set of String) A list of CloudWatch alarm names that will be monitored during the deployment. The deployment will fail and rollback if any alarms go into ALARM state. - `interval` (Number) The time in minutes between each traffic shifting increment. - `percentage` (Number) The percentage of traffic to shift to the new version in each increment. +- `state_machine_version_arn` (String) +- `type` (String) The type of deployment to perform. ### Nested Schema for `routing_configuration` -Required: +Optional: - `state_machine_version_arn` (String) The Amazon Resource Name (ARN) that identifies one or two state machine versions defined in the routing configuration. - `weight` (Number) The percentage of traffic you want to route to the state machine version. The sum of the weights in the routing configuration must be equal to 100. diff --git a/docs/resources/synthetics_canary.md b/docs/resources/synthetics_canary.md index 2f046708b5..3a999c838d 100644 --- a/docs/resources/synthetics_canary.md +++ b/docs/resources/synthetics_canary.md @@ -104,7 +104,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. @@ -113,37 +113,28 @@ Required: ### Nested Schema for `visual_reference` -Required: - -- `base_canary_run_id` (String) Canary run id to be used as base reference for visual testing - Optional: +- `base_canary_run_id` (String) Canary run id to be used as base reference for visual testing - `base_screenshots` (Attributes List) List of screenshots used as base reference for visual testing (see [below for nested schema](#nestedatt--visual_reference--base_screenshots)) ### Nested Schema for `visual_reference.base_screenshots` -Required: - -- `screenshot_name` (String) Name of the screenshot to be used as base reference for visual testing - Optional: - `ignore_coordinates` (List of String) List of coordinates of rectangles to be ignored during visual testing +- `screenshot_name` (String) Name of the screenshot to be used as base reference for visual testing ### Nested Schema for `vpc_config` -Required: +Optional: - `security_group_ids` (List of String) - `subnet_ids` (List of String) - -Optional: - - `vpc_id` (String) ## Import diff --git a/docs/resources/synthetics_group.md b/docs/resources/synthetics_group.md index a3b098e3cf..2acea89dfd 100644 --- a/docs/resources/synthetics_group.md +++ b/docs/resources/synthetics_group.md @@ -32,7 +32,7 @@ Resource Type definition for AWS::Synthetics::Group ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/systemsmanagersap_application.md b/docs/resources/systemsmanagersap_application.md index d9dc14c7dc..910322b2a9 100644 --- a/docs/resources/systemsmanagersap_application.md +++ b/docs/resources/systemsmanagersap_application.md @@ -47,7 +47,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/timestream_influx_db_instance.md b/docs/resources/timestream_influx_db_instance.md index d2732ca633..cf1d3e75ea 100644 --- a/docs/resources/timestream_influx_db_instance.md +++ b/docs/resources/timestream_influx_db_instance.md @@ -47,14 +47,14 @@ The AWS::Timestream::InfluxDBInstance resource creates an InfluxDB instance. ### Nested Schema for `log_delivery_configuration` -Required: +Optional: - `s3_configuration` (Attributes) S3 configuration for sending logs to customer account from the InfluxDB instance. (see [below for nested schema](#nestedatt--log_delivery_configuration--s3_configuration)) ### Nested Schema for `log_delivery_configuration.s3_configuration` -Required: +Optional: - `bucket_name` (String) The bucket name for logs to be sent from the InfluxDB instance - `enabled` (Boolean) Specifies whether logging to customer specified bucket is enabled. @@ -64,12 +64,9 @@ Required: ### Nested Schema for `tags` -Required: - -- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - Optional: +- `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ## Import diff --git a/docs/resources/timestream_scheduled_query.md b/docs/resources/timestream_scheduled_query.md index 9edfb3dd32..129b5c606c 100644 --- a/docs/resources/timestream_scheduled_query.md +++ b/docs/resources/timestream_scheduled_query.md @@ -92,7 +92,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. @@ -101,30 +101,27 @@ Required: ### Nested Schema for `target_configuration` -Required: +Optional: - `timestream_configuration` (Attributes) Configuration needed to write data into the Timestream database and table. (see [below for nested schema](#nestedatt--target_configuration--timestream_configuration)) ### Nested Schema for `target_configuration.timestream_configuration` -Required: +Optional: - `database_name` (String) Name of Timestream database to which the query result will be written. - `dimension_mappings` (Attributes List) This is to allow mapping column(s) from the query result to the dimension in the destination table. (see [below for nested schema](#nestedatt--target_configuration--timestream_configuration--dimension_mappings)) -- `table_name` (String) Name of Timestream table that the query result will be written to. The table should be within the same database that is provided in Timestream configuration. -- `time_column` (String) Column from query result that should be used as the time column in destination table. Column type for this should be TIMESTAMP. - -Optional: - - `measure_name_column` (String) Name of the measure name column from the query result. - `mixed_measure_mappings` (Attributes List) Specifies how to map measures to multi-measure records. (see [below for nested schema](#nestedatt--target_configuration--timestream_configuration--mixed_measure_mappings)) - `multi_measure_mappings` (Attributes) Only one of MixedMeasureMappings or MultiMeasureMappings is to be provided. MultiMeasureMappings can be used to ingest data as multi measures in the derived table. (see [below for nested schema](#nestedatt--target_configuration--timestream_configuration--multi_measure_mappings)) +- `table_name` (String) Name of Timestream table that the query result will be written to. The table should be within the same database that is provided in Timestream configuration. +- `time_column` (String) Column from query result that should be used as the time column in destination table. Column type for this should be TIMESTAMP. ### Nested Schema for `target_configuration.timestream_configuration.dimension_mappings` -Required: +Optional: - `dimension_value_type` (String) Type for the dimension. - `name` (String) Column name from query result. @@ -133,13 +130,10 @@ Required: ### Nested Schema for `target_configuration.timestream_configuration.mixed_measure_mappings` -Required: - -- `measure_value_type` (String) Type of the value that is to be read from SourceColumn. If the mapping is for MULTI, use MeasureValueType.MULTI. - Optional: - `measure_name` (String) Refers to the value of the measure name in a result row. This field is required if MeasureNameColumn is provided. +- `measure_value_type` (String) Type of the value that is to be read from SourceColumn. If the mapping is for MULTI, use MeasureValueType.MULTI. - `multi_measure_attribute_mappings` (Attributes List) Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes. (see [below for nested schema](#nestedatt--target_configuration--timestream_configuration--mixed_measure_mappings--multi_measure_attribute_mappings)) - `source_column` (String) This field refers to the source column from which the measure value is to be read for result materialization. - `target_measure_name` (String) Target measure name to be used. If not provided, the target measure name by default would be MeasureName if provided, or SourceColumn otherwise. @@ -147,13 +141,10 @@ Optional: ### Nested Schema for `target_configuration.timestream_configuration.mixed_measure_mappings.multi_measure_attribute_mappings` -Required: +Optional: - `measure_value_type` (String) Value type of the measure value column to be read from the query result. - `source_column` (String) Source measure value column in the query result where the attribute value is to be read. - -Optional: - - `target_multi_measure_attribute_name` (String) Custom name to be used for attribute name in derived table. If not provided, source column name would be used. @@ -161,24 +152,18 @@ Optional: ### Nested Schema for `target_configuration.timestream_configuration.multi_measure_mappings` -Required: - -- `multi_measure_attribute_mappings` (Attributes List) Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes. (see [below for nested schema](#nestedatt--target_configuration--timestream_configuration--multi_measure_mappings--multi_measure_attribute_mappings)) - Optional: +- `multi_measure_attribute_mappings` (Attributes List) Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes. (see [below for nested schema](#nestedatt--target_configuration--timestream_configuration--multi_measure_mappings--multi_measure_attribute_mappings)) - `target_multi_measure_name` (String) Name of the target multi-measure in the derived table. Required if MeasureNameColumn is not provided. If MeasureNameColumn is provided then the value from that column will be used as the multi-measure name. ### Nested Schema for `target_configuration.timestream_configuration.multi_measure_mappings.multi_measure_attribute_mappings` -Required: +Optional: - `measure_value_type` (String) Value type of the measure value column to be read from the query result. - `source_column` (String) Source measure value column in the query result where the attribute value is to be read. - -Optional: - - `target_multi_measure_attribute_name` (String) Custom name to be used for attribute name in derived table. If not provided, source column name would be used. ## Import diff --git a/docs/resources/timestream_table.md b/docs/resources/timestream_table.md index a18d4f2494..4dc5822e74 100644 --- a/docs/resources/timestream_table.md +++ b/docs/resources/timestream_table.md @@ -48,12 +48,9 @@ resource "awscc_timestream_table" "this" { ### Nested Schema for `magnetic_store_write_properties` -Required: - -- `enable_magnetic_store_writes` (Boolean) Boolean flag indicating whether magnetic store writes are enabled. - Optional: +- `enable_magnetic_store_writes` (Boolean) Boolean flag indicating whether magnetic store writes are enabled. - `magnetic_store_rejected_data_location` (Attributes) Location to store information about records that were asynchronously rejected during magnetic store writes. (see [below for nested schema](#nestedatt--magnetic_store_write_properties--magnetic_store_rejected_data_location)) @@ -66,13 +63,10 @@ Optional: ### Nested Schema for `magnetic_store_write_properties.magnetic_store_rejected_data_location.s3_configuration` -Required: +Optional: - `bucket_name` (String) The bucket name used to store the data. - `encryption_option` (String) Either SSE_KMS or SSE_S3. - -Optional: - - `kms_key_id` (String) Must be provided if SSE_KMS is specified as the encryption option - `object_key_prefix` (String) String used to prefix all data in the bucket. @@ -98,14 +92,11 @@ Optional: ### Nested Schema for `schema.composite_partition_key` -Required: - -- `type` (String) The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key). - Optional: - `enforcement_in_record` (String) The level of enforcement for the specification of a dimension key in ingested records. Options are REQUIRED (dimension key must be specified) and OPTIONAL (dimension key does not have to be specified). - `name` (String) The name of the attribute used for a dimension key. +- `type` (String) The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key). diff --git a/docs/resources/transfer_agreement.md b/docs/resources/transfer_agreement.md index a45d9c9c90..be2e455bc1 100644 --- a/docs/resources/transfer_agreement.md +++ b/docs/resources/transfer_agreement.md @@ -38,7 +38,7 @@ Resource Type definition for AWS::Transfer::Agreement ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The name assigned to the tag that you create. - `value` (String) Contains one or more values that you assigned to the key name you create. diff --git a/docs/resources/transfer_certificate.md b/docs/resources/transfer_certificate.md index 6e32a9031a..89935fdc4b 100644 --- a/docs/resources/transfer_certificate.md +++ b/docs/resources/transfer_certificate.md @@ -43,7 +43,7 @@ Resource Type definition for AWS::Transfer::Certificate ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/transfer_connector.md b/docs/resources/transfer_connector.md index 6310660db6..9604a1f2db 100644 --- a/docs/resources/transfer_connector.md +++ b/docs/resources/transfer_connector.md @@ -63,7 +63,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The name assigned to the tag that you create. - `value` (String) Contains one or more values that you assigned to the key name you create. diff --git a/docs/resources/transfer_profile.md b/docs/resources/transfer_profile.md index 115502ea9b..593ab516cf 100644 --- a/docs/resources/transfer_profile.md +++ b/docs/resources/transfer_profile.md @@ -34,7 +34,7 @@ Resource Type definition for AWS::Transfer::Profile ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The name assigned to the tag that you create. - `value` (String) Contains one or more values that you assigned to the key name you create. diff --git a/docs/resources/transfer_workflow.md b/docs/resources/transfer_workflow.md index 97a53d3d50..e60e6558e5 100644 --- a/docs/resources/transfer_workflow.md +++ b/docs/resources/transfer_workflow.md @@ -85,16 +85,13 @@ Optional: ### Nested Schema for `steps.decrypt_step_details` -Required: - -- `destination_file_location` (Attributes) Specifies the location for the file being decrypted. Only applicable for the Decrypt type of workflow steps. (see [below for nested schema](#nestedatt--steps--decrypt_step_details--destination_file_location)) -- `type` (String) Specifies which encryption method to use. - Optional: +- `destination_file_location` (Attributes) Specifies the location for the file being decrypted. Only applicable for the Decrypt type of workflow steps. (see [below for nested schema](#nestedatt--steps--decrypt_step_details--destination_file_location)) - `name` (String) The name of the step, used as an identifier. - `overwrite_existing` (String) A flag that indicates whether or not to overwrite an existing file of the same name. The default is FALSE. - `source_file_location` (String) Specifies which file to use as input to the workflow step. +- `type` (String) Specifies which encryption method to use. ### Nested Schema for `steps.decrypt_step_details.destination_file_location` @@ -145,7 +142,7 @@ Optional: ### Nested Schema for `steps.tag_step_details.tags` -Required: +Optional: - `key` (String) The name assigned to the tag that you create. - `value` (String) The value that corresponds to the key. @@ -207,16 +204,13 @@ Optional: ### Nested Schema for `on_exception_steps.decrypt_step_details` -Required: - -- `destination_file_location` (Attributes) Specifies the location for the file being decrypted. Only applicable for the Decrypt type of workflow steps. (see [below for nested schema](#nestedatt--on_exception_steps--decrypt_step_details--destination_file_location)) -- `type` (String) Specifies which encryption method to use. - Optional: +- `destination_file_location` (Attributes) Specifies the location for the file being decrypted. Only applicable for the Decrypt type of workflow steps. (see [below for nested schema](#nestedatt--on_exception_steps--decrypt_step_details--destination_file_location)) - `name` (String) The name of the step, used as an identifier. - `overwrite_existing` (String) A flag that indicates whether or not to overwrite an existing file of the same name. The default is FALSE. - `source_file_location` (String) Specifies which file to use as input to the workflow step. +- `type` (String) Specifies which encryption method to use. ### Nested Schema for `on_exception_steps.decrypt_step_details.destination_file_location` @@ -267,7 +261,7 @@ Optional: ### Nested Schema for `on_exception_steps.tag_step_details.tags` -Required: +Optional: - `key` (String) The name assigned to the tag that you create. - `value` (String) The value that corresponds to the key. @@ -278,7 +272,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The name assigned to the tag that you create. - `value` (String) Contains one or more values that you assigned to the key name you create. diff --git a/docs/resources/verifiedpermissions_identity_source.md b/docs/resources/verifiedpermissions_identity_source.md index fa4fa27d16..c62f33e44b 100644 --- a/docs/resources/verifiedpermissions_identity_source.md +++ b/docs/resources/verifiedpermissions_identity_source.md @@ -41,19 +41,16 @@ Optional: ### Nested Schema for `configuration.cognito_user_pool_configuration` -Required: - -- `user_pool_arn` (String) - Optional: - `client_ids` (List of String) - `group_configuration` (Attributes) (see [below for nested schema](#nestedatt--configuration--cognito_user_pool_configuration--group_configuration)) +- `user_pool_arn` (String) ### Nested Schema for `configuration.cognito_user_pool_configuration.group_configuration` -Required: +Optional: - `group_entity_type` (String) @@ -62,15 +59,21 @@ Required: ### Nested Schema for `configuration.open_id_connect_configuration` -Required: +Optional: +- `entity_id_prefix` (String) +- `group_configuration` (Attributes) (see [below for nested schema](#nestedatt--configuration--open_id_connect_configuration--group_configuration)) - `issuer` (String) - `token_selection` (Attributes) (see [below for nested schema](#nestedatt--configuration--open_id_connect_configuration--token_selection)) + +### Nested Schema for `configuration.open_id_connect_configuration.group_configuration` + Optional: -- `entity_id_prefix` (String) -- `group_configuration` (Attributes) (see [below for nested schema](#nestedatt--configuration--open_id_connect_configuration--group_configuration)) +- `group_claim` (String) +- `group_entity_type` (String) + ### Nested Schema for `configuration.open_id_connect_configuration.token_selection` @@ -99,15 +102,6 @@ Optional: - -### Nested Schema for `configuration.open_id_connect_configuration.group_configuration` - -Required: - -- `group_claim` (String) -- `group_entity_type` (String) - - diff --git a/docs/resources/verifiedpermissions_policy.md b/docs/resources/verifiedpermissions_policy.md index 16a5211872..4b218204ea 100644 --- a/docs/resources/verifiedpermissions_policy.md +++ b/docs/resources/verifiedpermissions_policy.md @@ -188,31 +188,25 @@ Optional: ### Nested Schema for `definition.static` -Required: - -- `statement` (String) - Optional: - `description` (String) +- `statement` (String) ### Nested Schema for `definition.template_linked` -Required: - -- `policy_template_id` (String) - Optional: +- `policy_template_id` (String) - `principal` (Attributes) (see [below for nested schema](#nestedatt--definition--template_linked--principal)) - `resource` (Attributes) (see [below for nested schema](#nestedatt--definition--template_linked--resource)) ### Nested Schema for `definition.template_linked.principal` -Required: +Optional: - `entity_id` (String) - `entity_type` (String) @@ -221,7 +215,7 @@ Required: ### Nested Schema for `definition.template_linked.resource` -Required: +Optional: - `entity_id` (String) - `entity_type` (String) diff --git a/docs/resources/voiceid_domain.md b/docs/resources/voiceid_domain.md index d6d1825923..ae3cc166da 100644 --- a/docs/resources/voiceid_domain.md +++ b/docs/resources/voiceid_domain.md @@ -41,7 +41,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/vpclattice_access_log_subscription.md b/docs/resources/vpclattice_access_log_subscription.md index 8ec69b8b3f..8f709811fc 100644 --- a/docs/resources/vpclattice_access_log_subscription.md +++ b/docs/resources/vpclattice_access_log_subscription.md @@ -35,7 +35,7 @@ Enables access logs to be sent to Amazon CloudWatch, Amazon S3, and Amazon Kines ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/vpclattice_listener.md b/docs/resources/vpclattice_listener.md index 0183508ec1..65c54e3b66 100644 --- a/docs/resources/vpclattice_listener.md +++ b/docs/resources/vpclattice_listener.md @@ -46,7 +46,7 @@ Optional: ### Nested Schema for `default_action.fixed_response` -Required: +Optional: - `status_code` (Number) @@ -54,19 +54,16 @@ Required: ### Nested Schema for `default_action.forward` -Required: +Optional: - `target_groups` (Attributes List) (see [below for nested schema](#nestedatt--default_action--forward--target_groups)) ### Nested Schema for `default_action.forward.target_groups` -Required: - -- `target_group_identifier` (String) - Optional: +- `target_group_identifier` (String) - `weight` (Number) @@ -75,7 +72,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/vpclattice_rule.md b/docs/resources/vpclattice_rule.md index 62f9e1e9bf..1d11d025d1 100644 --- a/docs/resources/vpclattice_rule.md +++ b/docs/resources/vpclattice_rule.md @@ -45,7 +45,7 @@ Optional: ### Nested Schema for `action.fixed_response` -Required: +Optional: - `status_code` (Number) @@ -53,19 +53,16 @@ Required: ### Nested Schema for `action.forward` -Required: +Optional: - `target_groups` (Attributes List) (see [below for nested schema](#nestedatt--action--forward--target_groups)) ### Nested Schema for `action.forward.target_groups` -Required: - -- `target_group_identifier` (String) - Optional: +- `target_group_identifier` (String) - `weight` (Number) @@ -90,14 +87,11 @@ Optional: ### Nested Schema for `match.http_match.header_matches` -Required: - -- `match` (Attributes) (see [below for nested schema](#nestedatt--match--http_match--header_matches--match)) -- `name` (String) - Optional: - `case_sensitive` (Boolean) +- `match` (Attributes) (see [below for nested schema](#nestedatt--match--http_match--header_matches--match)) +- `name` (String) ### Nested Schema for `match.http_match.header_matches.match` @@ -113,13 +107,10 @@ Optional: ### Nested Schema for `match.http_match.path_match` -Required: - -- `match` (Attributes) (see [below for nested schema](#nestedatt--match--http_match--path_match--match)) - Optional: - `case_sensitive` (Boolean) +- `match` (Attributes) (see [below for nested schema](#nestedatt--match--http_match--path_match--match)) ### Nested Schema for `match.http_match.path_match.match` @@ -136,7 +127,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/vpclattice_service.md b/docs/resources/vpclattice_service.md index 2f60b00859..f8dd8dccee 100644 --- a/docs/resources/vpclattice_service.md +++ b/docs/resources/vpclattice_service.md @@ -45,7 +45,7 @@ Read-Only: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/vpclattice_service_network.md b/docs/resources/vpclattice_service_network.md index 173f845040..341a2f4c1b 100644 --- a/docs/resources/vpclattice_service_network.md +++ b/docs/resources/vpclattice_service_network.md @@ -32,7 +32,7 @@ A service network is a logical boundary for a collection of services. You can as ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/vpclattice_service_network_service_association.md b/docs/resources/vpclattice_service_network_service_association.md index 869631ec4e..f2b02e58f1 100644 --- a/docs/resources/vpclattice_service_network_service_association.md +++ b/docs/resources/vpclattice_service_network_service_association.md @@ -48,7 +48,7 @@ Read-Only: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/vpclattice_service_network_vpc_association.md b/docs/resources/vpclattice_service_network_vpc_association.md index 4fde60b1aa..5ee3ab8f18 100644 --- a/docs/resources/vpclattice_service_network_vpc_association.md +++ b/docs/resources/vpclattice_service_network_vpc_association.md @@ -37,7 +37,7 @@ Associates a VPC with a service network. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/wafv2_logging_configuration.md b/docs/resources/wafv2_logging_configuration.md index 1980131503..a750dd6bb1 100644 --- a/docs/resources/wafv2_logging_configuration.md +++ b/docs/resources/wafv2_logging_configuration.md @@ -129,7 +129,7 @@ resource "awscc_wafv2_logging_configuration" "awscc_waf_logging_redacted_fields" ### Nested Schema for `logging_filter` -Required: +Optional: - `default_behavior` (String) Default handling for logs that don't match any of the specified filtering conditions. - `filters` (Attributes List) The filters that you want to apply to the logs. (see [below for nested schema](#nestedatt--logging_filter--filters)) @@ -137,7 +137,7 @@ Required: ### Nested Schema for `logging_filter.filters` -Required: +Optional: - `behavior` (String) How to handle logs that satisfy the filter's conditions and requirement. - `conditions` (Attributes List) Match conditions for the filter. (see [below for nested schema](#nestedatt--logging_filter--filters--conditions)) @@ -154,7 +154,7 @@ Optional: ### Nested Schema for `logging_filter.filters.conditions.action_condition` -Required: +Optional: - `action` (String) Logic to apply to the filtering conditions. You can specify that, in order to satisfy the filter, a log must match all conditions or must match at least one condition. @@ -162,7 +162,7 @@ Required: ### Nested Schema for `logging_filter.filters.conditions.label_name_condition` -Required: +Optional: - `label_name` (String) The label name that a log record must contain in order to meet the condition. This must be a fully qualified label name. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label. @@ -183,7 +183,7 @@ Optional: ### Nested Schema for `redacted_fields.single_header` -Required: +Optional: - `name` (String) The name of the query header to inspect. diff --git a/docs/resources/wisdom_assistant.md b/docs/resources/wisdom_assistant.md index 5476f43585..6ed1c511bf 100644 --- a/docs/resources/wisdom_assistant.md +++ b/docs/resources/wisdom_assistant.md @@ -59,7 +59,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/wisdom_assistant_association.md b/docs/resources/wisdom_assistant_association.md index b5130c0aac..63175e5ee4 100644 --- a/docs/resources/wisdom_assistant_association.md +++ b/docs/resources/wisdom_assistant_association.md @@ -57,7 +57,7 @@ Required: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/wisdom_knowledge_base.md b/docs/resources/wisdom_knowledge_base.md index 0661c35d97..4645171d11 100644 --- a/docs/resources/wisdom_knowledge_base.md +++ b/docs/resources/wisdom_knowledge_base.md @@ -60,12 +60,9 @@ Optional: ### Nested Schema for `source_configuration.app_integrations` -Required: - -- `app_integration_arn` (String) - Optional: +- `app_integration_arn` (String) - `object_fields` (List of String) @@ -73,7 +70,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/workspaces_connection_alias.md b/docs/resources/workspaces_connection_alias.md index 56e813776f..c1cfccaf00 100644 --- a/docs/resources/workspaces_connection_alias.md +++ b/docs/resources/workspaces_connection_alias.md @@ -33,7 +33,7 @@ Resource Type definition for AWS::WorkSpaces::ConnectionAlias ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/workspaces_workspaces_pool.md b/docs/resources/workspaces_workspaces_pool.md index 3ba6f41258..450d1dc36a 100644 --- a/docs/resources/workspaces_workspaces_pool.md +++ b/docs/resources/workspaces_workspaces_pool.md @@ -47,19 +47,16 @@ Required: ### Nested Schema for `application_settings` -Required: - -- `status` (String) - Optional: - `settings_group` (String) +- `status` (String) ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/workspacesthinclient_environment.md b/docs/resources/workspacesthinclient_environment.md index 4a384888bc..ea1110f651 100644 --- a/docs/resources/workspacesthinclient_environment.md +++ b/docs/resources/workspacesthinclient_environment.md @@ -48,7 +48,7 @@ Resource type definition for AWS::WorkSpacesThinClient::Environment. ### Nested Schema for `device_creation_tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. @@ -57,10 +57,6 @@ Required: ### Nested Schema for `maintenance_window` -Required: - -- `type` (String) The type of maintenance window. - Optional: - `apply_time_of` (String) The desired time zone maintenance window. @@ -69,12 +65,13 @@ Optional: - `end_time_minute` (Number) The minute end time of maintenance window. - `start_time_hour` (Number) The hour start time of maintenance window. - `start_time_minute` (Number) The minute start time of maintenance window. +- `type` (String) The type of maintenance window. ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. diff --git a/docs/resources/workspacesweb_browser_settings.md b/docs/resources/workspacesweb_browser_settings.md index a084f1bd32..66c4284ee7 100644 --- a/docs/resources/workspacesweb_browser_settings.md +++ b/docs/resources/workspacesweb_browser_settings.md @@ -31,7 +31,7 @@ Definition of AWS::WorkSpacesWeb::BrowserSettings Resource Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/workspacesweb_ip_access_settings.md b/docs/resources/workspacesweb_ip_access_settings.md index 5386ccba38..7b690a5aba 100644 --- a/docs/resources/workspacesweb_ip_access_settings.md +++ b/docs/resources/workspacesweb_ip_access_settings.md @@ -49,7 +49,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/workspacesweb_network_settings.md b/docs/resources/workspacesweb_network_settings.md index b65f51ab17..22c67e4300 100644 --- a/docs/resources/workspacesweb_network_settings.md +++ b/docs/resources/workspacesweb_network_settings.md @@ -34,7 +34,7 @@ Definition of AWS::WorkSpacesWeb::NetworkSettings Resource Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/workspacesweb_portal.md b/docs/resources/workspacesweb_portal.md index 2a14c33294..cc267a2af9 100644 --- a/docs/resources/workspacesweb_portal.md +++ b/docs/resources/workspacesweb_portal.md @@ -46,7 +46,7 @@ Definition of AWS::WorkSpacesWeb::Portal Resource Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/workspacesweb_trust_store.md b/docs/resources/workspacesweb_trust_store.md index 43a958f3d1..ae1dd81673 100644 --- a/docs/resources/workspacesweb_trust_store.md +++ b/docs/resources/workspacesweb_trust_store.md @@ -32,7 +32,7 @@ Definition of AWS::WorkSpacesWeb::TrustStore Resource Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/workspacesweb_user_access_logging_settings.md b/docs/resources/workspacesweb_user_access_logging_settings.md index 8e9752afab..4650028018 100644 --- a/docs/resources/workspacesweb_user_access_logging_settings.md +++ b/docs/resources/workspacesweb_user_access_logging_settings.md @@ -32,7 +32,7 @@ Definition of AWS::WorkSpacesWeb::UserAccessLoggingSettings Resource Type ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/workspacesweb_user_settings.md b/docs/resources/workspacesweb_user_settings.md index 05d585c8d3..2741c36949 100644 --- a/docs/resources/workspacesweb_user_settings.md +++ b/docs/resources/workspacesweb_user_settings.md @@ -42,23 +42,17 @@ Definition of AWS::WorkSpacesWeb::UserSettings Resource Type ### Nested Schema for `cookie_synchronization_configuration` -Required: - -- `allowlist` (Attributes List) (see [below for nested schema](#nestedatt--cookie_synchronization_configuration--allowlist)) - Optional: +- `allowlist` (Attributes List) (see [below for nested schema](#nestedatt--cookie_synchronization_configuration--allowlist)) - `blocklist` (Attributes List) (see [below for nested schema](#nestedatt--cookie_synchronization_configuration--blocklist)) ### Nested Schema for `cookie_synchronization_configuration.allowlist` -Required: - -- `domain` (String) - Optional: +- `domain` (String) - `name` (String) - `path` (String) @@ -66,12 +60,9 @@ Optional: ### Nested Schema for `cookie_synchronization_configuration.blocklist` -Required: - -- `domain` (String) - Optional: +- `domain` (String) - `name` (String) - `path` (String) @@ -80,7 +71,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) - `value` (String) diff --git a/docs/resources/xray_group.md b/docs/resources/xray_group.md index 8781e72d6c..392cb5a9ee 100644 --- a/docs/resources/xray_group.md +++ b/docs/resources/xray_group.md @@ -59,7 +59,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. - `value` (String) The value for the tag. diff --git a/docs/resources/xray_sampling_rule.md b/docs/resources/xray_sampling_rule.md index 289714ff4e..0b869e15ed 100644 --- a/docs/resources/xray_sampling_rule.md +++ b/docs/resources/xray_sampling_rule.md @@ -57,23 +57,20 @@ resource "awscc_xray_sampling_rule" "example" { ### Nested Schema for `sampling_rule` -Required: +Optional: +- `attributes` (Map of String) Matches attributes derived from the request. - `fixed_rate` (Number) The percentage of matching requests to instrument, after the reservoir is exhausted. - `host` (String) Matches the hostname from a request URL. - `http_method` (String) Matches the HTTP method from a request URL. - `priority` (Number) The priority of the sampling rule. - `reservoir_size` (Number) A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively. - `resource_arn` (String) Matches the ARN of the AWS resource on which the service runs. +- `rule_arn` (String) The ARN of the sampling rule. Specify a rule by either name or ARN, but not both. +- `rule_name` (String) The ARN of the sampling rule. Specify a rule by either name or ARN, but not both. - `service_name` (String) Matches the name that the service uses to identify itself in segments. - `service_type` (String) Matches the origin that the service uses to identify its type in segments. - `url_path` (String) Matches the path from a request URL. - -Optional: - -- `attributes` (Map of String) Matches attributes derived from the request. -- `rule_arn` (String) The ARN of the sampling rule. Specify a rule by either name or ARN, but not both. -- `rule_name` (String) The ARN of the sampling rule. Specify a rule by either name or ARN, but not both. - `version` (Number) The version of the sampling rule format (1) @@ -89,23 +86,20 @@ Optional: ### Nested Schema for `sampling_rule_record.sampling_rule` -Required: +Optional: +- `attributes` (Map of String) Matches attributes derived from the request. - `fixed_rate` (Number) The percentage of matching requests to instrument, after the reservoir is exhausted. - `host` (String) Matches the hostname from a request URL. - `http_method` (String) Matches the HTTP method from a request URL. - `priority` (Number) The priority of the sampling rule. - `reservoir_size` (Number) A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively. - `resource_arn` (String) Matches the ARN of the AWS resource on which the service runs. +- `rule_arn` (String) The ARN of the sampling rule. Specify a rule by either name or ARN, but not both. +- `rule_name` (String) The ARN of the sampling rule. Specify a rule by either name or ARN, but not both. - `service_name` (String) Matches the name that the service uses to identify itself in segments. - `service_type` (String) Matches the origin that the service uses to identify its type in segments. - `url_path` (String) Matches the path from a request URL. - -Optional: - -- `attributes` (Map of String) Matches attributes derived from the request. -- `rule_arn` (String) The ARN of the sampling rule. Specify a rule by either name or ARN, but not both. -- `rule_name` (String) The ARN of the sampling rule. Specify a rule by either name or ARN, but not both. - `version` (Number) The version of the sampling rule format (1) @@ -132,7 +126,7 @@ Optional: ### Nested Schema for `tags` -Required: +Optional: - `key` (String) The key name of the tag. - `value` (String) The value for the tag. diff --git a/internal/aws/accessanalyzer/analyzer_resource_gen.go b/internal/aws/accessanalyzer/analyzer_resource_gen.go index 444de6075f..4d640e831c 100644 --- a/internal/aws/accessanalyzer/analyzer_resource_gen.go +++ b/internal/aws/accessanalyzer/analyzer_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -223,22 +224,39 @@ func analyzerResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Property "property": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RuleName "rule_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The archive rule name", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -304,18 +322,28 @@ func analyzerResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/acmpca/certificate_authority_resource_gen.go b/internal/aws/acmpca/certificate_authority_resource_gen.go index da934de70a..a8f8ae1261 100644 --- a/internal/aws/acmpca/certificate_authority_resource_gen.go +++ b/internal/aws/acmpca/certificate_authority_resource_gen.go @@ -17,8 +17,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -399,11 +401,25 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error // Property: ObjectIdentifier "object_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "String that contains X.509 ObjectIdentifier information.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -540,7 +556,14 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error }, /*END ATTRIBUTE*/ // Property: PartyName "party_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Structure that contains X.509 EdiPartyName information.", @@ -565,11 +588,25 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error // Property: TypeId "type_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "String that contains X.509 ObjectIdentifier information.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Structure that contains X.509 OtherName information.", @@ -608,7 +645,14 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Structure that contains X.509 GeneralName information. Assign one and ONLY one field.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AccessMethod "access_method": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -633,7 +677,14 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Structure that contains X.509 AccessMethod information. Assign one and ONLY one field.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -759,7 +810,14 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: OmitExtension "omit_extension": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configures the default behavior of the CRL Distribution Point extension for certificates issued by your certificate authority", @@ -779,7 +837,14 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error }, /*END ATTRIBUTE*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ExpirationInDays "expiration_in_days": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -818,7 +883,14 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OcspCustomCname "ocsp_custom_cname": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -958,11 +1030,25 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error // Property: ObjectIdentifier "object_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "String that contains X.509 ObjectIdentifier information.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1103,7 +1189,14 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/acmpca/certificate_resource_gen.go b/internal/aws/acmpca/certificate_resource_gen.go index 29b2ad602f..42726fd523 100644 --- a/internal/aws/acmpca/certificate_resource_gen.go +++ b/internal/aws/acmpca/certificate_resource_gen.go @@ -13,6 +13,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -20,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -449,7 +451,14 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { // Property: CertPolicyId "cert_policy_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the object identifier (OID) of the certificate policy under which the certificate was issued. For more information, see NIST's definition of [Object Identifier (OID)](https://docs.aws.amazon.com/https://csrc.nist.gov/glossary/term/Object_Identifier).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PolicyQualifiers "policy_qualifiers": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -458,7 +467,14 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { // Property: PolicyQualifierId "policy_qualifier_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Identifies the qualifier modifying a ``CertPolicyId``.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Qualifier "qualifier": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -466,11 +482,25 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { // Property: CpsUri "cps_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Contains a pointer to a certification practice statement (CPS) published by the CA.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Defines the qualifier type. AWS Private CA supports the use of a URI for a CPS qualifier in this field.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -506,12 +536,26 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { // Property: ObjectIdentifier "object_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the object identifier (OID) of the X.509 extension. For more information, see the [Global OID reference database.](https://docs.aws.amazon.com/https://oidref.com/2.5.29)", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the base64-encoded value of the X.509 extension.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -686,12 +730,26 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { // Property: ObjectIdentifier "object_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the object identifier (OID) of the attribute type of the relative distinguished name (RDN).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the attribute value of relative distinguished name (RDN).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -833,12 +891,26 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { // Property: NameAssigner "name_assigner": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the name assigner.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PartyName "party_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the party name.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents ``GeneralName`` as an ``EdiPartyName`` object.", @@ -863,12 +935,26 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { // Property: TypeId "type_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies an OID.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies an OID value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents ``GeneralName`` using an ``OtherName`` object.", @@ -950,12 +1036,26 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { // Property: ObjectIdentifier "object_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the object identifier (OID) of the attribute type of the relative distinguished name (RDN).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the attribute value of relative distinguished name (RDN).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1252,12 +1352,26 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether the ``Value`` parameter represents days, months, or years.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "A long integer interpreted according to the value of ``Type``, below.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information describing the start of the validity period of the certificate. This parameter sets the ?Not Before\" date for the certificate.\n By default, when issuing a certificate, PCAshort sets the \"Not Before\" date to the issuance time minus 60 minutes. This compensates for clock inconsistencies across computer systems. The ``ValidityNotBefore`` parameter can be used to customize the ?Not Before? value. \n Unlike the ``Validity`` parameter, the ``ValidityNotBefore`` parameter is optional.\n The ``ValidityNotBefore`` value is expressed as an explicit date and time, using the ``Validity`` type value ``ABSOLUTE``.", diff --git a/internal/aws/amplify/app_resource_gen.go b/internal/aws/amplify/app_resource_gen.go index ededb5276b..62320aa008 100644 --- a/internal/aws/amplify/app_resource_gen.go +++ b/internal/aws/amplify/app_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -298,19 +299,29 @@ func appResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(255), stringvalidator.RegexMatches(regexp.MustCompile("(?s).*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(5500), stringvalidator.RegexMatches(regexp.MustCompile("(?s).*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -568,11 +579,16 @@ func appResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Source "source": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("(?s).+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Status "status": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -588,11 +604,16 @@ func appResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Target "target": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("(?s).+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -680,19 +701,29 @@ func appResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(255), stringvalidator.RegexMatches(regexp.MustCompile("(?s).*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(5500), stringvalidator.RegexMatches(regexp.MustCompile("(?s).*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -834,17 +865,27 @@ func appResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/amplify/branch_resource_gen.go b/internal/aws/amplify/branch_resource_gen.go index 6d4358563c..f33a9e43de 100644 --- a/internal/aws/amplify/branch_resource_gen.go +++ b/internal/aws/amplify/branch_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -135,17 +136,27 @@ func branchResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Password "password": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Username "username": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -284,19 +295,29 @@ func branchResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(255), stringvalidator.RegexMatches(regexp.MustCompile("(?s).*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(5500), stringvalidator.RegexMatches(regexp.MustCompile("(?s).*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -408,18 +429,28 @@ func branchResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/apigateway/api_key_resource_gen.go b/internal/aws/apigateway/api_key_resource_gen.go index 449f4abd02..96ad6f2ebc 100644 --- a/internal/aws/apigateway/api_key_resource_gen.go +++ b/internal/aws/apigateway/api_key_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -216,18 +217,28 @@ func apiKeyResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/apigateway/client_certificate_resource_gen.go b/internal/aws/apigateway/client_certificate_resource_gen.go index f77a8f2c5a..e39556ed6e 100644 --- a/internal/aws/apigateway/client_certificate_resource_gen.go +++ b/internal/aws/apigateway/client_certificate_resource_gen.go @@ -13,8 +13,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -84,11 +86,25 @@ func clientCertificateResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/apigateway/deployment_resource_gen.go b/internal/aws/apigateway/deployment_resource_gen.go index 6dd260d09f..467100b49b 100644 --- a/internal/aws/apigateway/deployment_resource_gen.go +++ b/internal/aws/apigateway/deployment_resource_gen.go @@ -19,9 +19,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -618,12 +620,26 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/apigateway/method_resource_gen.go b/internal/aws/apigateway/method_resource_gen.go index f8c9a9923e..5d5e887148 100644 --- a/internal/aws/apigateway/method_resource_gen.go +++ b/internal/aws/apigateway/method_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -399,7 +400,14 @@ func methodResource(ctx context.Context) (resource.Resource, error) { // Property: StatusCode "status_code": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the status code that is used to map the integration response to an existing MethodResponse.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -466,7 +474,8 @@ func methodResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies an API method integration type. The valid value is one of the following:\n For the HTTP and HTTP proxy integrations, each integration can specify a protocol (``http/https``), port and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or HTTP proxy integration with a ``connectionType`` of ``VPC_LINK`` is referred to as a private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "AWS", @@ -475,7 +484,11 @@ func methodResource(ctx context.Context) (resource.Resource, error) { "HTTP_PROXY", "MOCK", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Uri "uri": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -564,7 +577,14 @@ func methodResource(ctx context.Context) (resource.Resource, error) { // Property: StatusCode "status_code": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The method response's status code.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/apigateway/rest_api_resource_gen.go b/internal/aws/apigateway/rest_api_resource_gen.go index bcbbdaa704..d2bb57718b 100644 --- a/internal/aws/apigateway/rest_api_resource_gen.go +++ b/internal/aws/apigateway/rest_api_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -431,11 +432,25 @@ func restApiResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/apigateway/stage_resource_gen.go b/internal/aws/apigateway/stage_resource_gen.go index ee5e88c0e7..936df86d1e 100644 --- a/internal/aws/apigateway/stage_resource_gen.go +++ b/internal/aws/apigateway/stage_resource_gen.go @@ -26,6 +26,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -491,18 +492,28 @@ func stageResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/apigateway/usage_plan_resource_gen.go b/internal/aws/apigateway/usage_plan_resource_gen.go index bb5221c875..2572aa2e74 100644 --- a/internal/aws/apigateway/usage_plan_resource_gen.go +++ b/internal/aws/apigateway/usage_plan_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -286,18 +287,28 @@ func usagePlanResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/apigateway/vpc_link_resource_gen.go b/internal/aws/apigateway/vpc_link_resource_gen.go index 1713853fc3..060ffedfa6 100644 --- a/internal/aws/apigateway/vpc_link_resource_gen.go +++ b/internal/aws/apigateway/vpc_link_resource_gen.go @@ -14,9 +14,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -84,11 +86,25 @@ func vpcLinkResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/appconfig/application_resource_gen.go b/internal/aws/appconfig/application_resource_gen.go index 8f703e31b4..ac93db9a97 100644 --- a/internal/aws/appconfig/application_resource_gen.go +++ b/internal/aws/appconfig/application_resource_gen.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -106,18 +107,28 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key-value string map. The valid character set is [a-zA-Z1-9 +-=._:/-]. The tag key can be up to 128 characters and must not start with aws:.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value can be up to 256 characters.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/appconfig/environment_resource_gen.go b/internal/aws/appconfig/environment_resource_gen.go index a42e4517ce..385c8ba0e6 100644 --- a/internal/aws/appconfig/environment_resource_gen.go +++ b/internal/aws/appconfig/environment_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -130,10 +131,15 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { // Property: AlarmArn "alarm_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Amazon Resource Name (ARN) of the Amazon CloudWatch alarm.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AlarmRoleArn "alarm_role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -216,18 +222,28 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key-value string map. The valid character set is [a-zA-Z1-9+-=._:/]. The tag key can be up to 128 characters and must not start with aws:.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value can be up to 256 characters.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/appconfig/extension_association_resource_gen.go b/internal/aws/appconfig/extension_association_resource_gen.go index 515f84cf07..444d79e7af 100644 --- a/internal/aws/appconfig/extension_association_resource_gen.go +++ b/internal/aws/appconfig/extension_association_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -181,18 +182,28 @@ func extensionAssociationResource(ctx context.Context) (resource.Resource, error // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/appflow/connector_profile_resource_gen.go b/internal/aws/appflow/connector_profile_resource_gen.go index 7a2dd97860..71342fdcf7 100644 --- a/internal/aws/appflow/connector_profile_resource_gen.go +++ b/internal/aws/appflow/connector_profile_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -1131,19 +1132,29 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: ApiKey "api_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A unique alphanumeric identi?er used to authenticate a user, developer, or calling program to your API.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretKey "secret_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1160,11 +1171,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ApiKey "api_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ApiSecretKey "api_secret_key": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1187,7 +1203,8 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: AuthenticationType "authentication_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "OAUTH2", @@ -1195,26 +1212,40 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { "BASIC", "CUSTOM", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Basic "basic": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Password "password": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Username "username": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1239,11 +1270,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: CustomAuthenticationType "custom_authentication_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1351,20 +1387,30 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: ApiKey "api_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A unique alphanumeric identi?er used to authenticate a user, developer, or calling program to your API.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ApplicationKey "application_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Application keys, in conjunction with your API key, give you full access to Datadog?s programmatic API. Application keys are associated with the user account that created them. The application key is used to log all requests made to the API.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1379,11 +1425,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: ApiToken "api_token": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The API tokens used by Dynatrace API to authenticate various API calls.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1411,20 +1462,30 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: ClientId "client_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identi?er for the desired client.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ClientSecret "client_secret": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The client secret used by the oauth client to authenticate to the authorization server.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConnectorOAuthRequest "connector_o_auth_request": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1481,38 +1542,58 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: AccessKeyId "access_key_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Access Key portion of the credentials.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Datakey "datakey": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The encryption keys used to encrypt data.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretAccessKey "secret_access_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The secret key used to sign requests.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: UserId "user_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identi?er for the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1540,20 +1621,30 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: ClientId "client_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identi?er for the desired client.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ClientSecret "client_secret": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The client secret used by the oauth client to authenticate to the authorization server.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConnectorOAuthRequest "connector_o_auth_request": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1713,19 +1804,29 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Password "password": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Username "username": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1911,20 +2012,30 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: Password "password": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The password that corresponds to the username.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Username "username": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1939,11 +2050,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: ApiKey "api_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A unique alphanumeric identi?er used to authenticate a user, developer, or calling program to your API.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1971,20 +2087,30 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: ClientId "client_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identi?er for the desired client.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ClientSecret "client_secret": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The client secret used by the oauth client to authenticate to the authorization server.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConnectorOAuthRequest "connector_o_auth_request": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2028,20 +2154,30 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: Password "password": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The password that corresponds to the username.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Username "username": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2056,11 +2192,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: ApiSecretKey "api_secret_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Secret Access Key portion of the credentials.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2075,20 +2216,30 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: Password "password": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The password that corresponds to the username.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Username "username": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2116,20 +2267,30 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: ClientId "client_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identi?er for the desired client.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ClientSecret "client_secret": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The client secret used by the oauth client to authenticate to the authorization server.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConnectorOAuthRequest "connector_o_auth_request": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2252,11 +2413,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: InstanceUrl "instance_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location of the Datadog resource", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2271,11 +2437,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: InstanceUrl "instance_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location of the Dynatrace resource", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2290,11 +2461,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: InstanceUrl "instance_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location of the InforNexus resource", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2309,11 +2485,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: InstanceUrl "instance_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location of the Marketo resource", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2328,11 +2509,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: BusinessUnitId "business_unit_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Business unit id of Salesforce Pardot instance to be connected", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(18), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InstanceUrl "instance_url": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2369,11 +2555,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: BucketName "bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the Amazon S3 bucket associated with Redshift.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BucketPrefix "bucket_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2451,11 +2642,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the IAM role.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("arn:aws:iam:.*:[0-9]+:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WorkgroupName "workgroup_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2646,11 +2842,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: InstanceUrl "instance_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location of the ServiceNow resource", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2665,11 +2866,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: InstanceUrl "instance_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location of the Slack resource", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2697,11 +2903,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: BucketName "bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the Amazon S3 bucket associated with Snow?ake.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BucketPrefix "bucket_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2744,20 +2955,30 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: Stage "stage": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the Amazon S3 stage that was created while setting up an Amazon S3 stage in the\nSnow?ake account. This is written in the following format: < Database>< Schema>.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(16), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Warehouse "warehouse": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the Snow?ake warehouse.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("[\\s\\w/!@#+=.-]*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2772,11 +2993,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: InstanceUrl "instance_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location of the Veeva resource", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2791,11 +3017,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: InstanceUrl "instance_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location of the Zendesk resource", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/appflow/connector_resource_gen.go b/internal/aws/appflow/connector_resource_gen.go index 1521e8ba73..049c5c72a3 100644 --- a/internal/aws/appflow/connector_resource_gen.go +++ b/internal/aws/appflow/connector_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -100,11 +101,16 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { // Property: LambdaArn "lambda_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Lambda ARN of the connector being registered.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("arn:*:.*:.*:[0-9]+:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Contains information about the configuration of the lambda which is being registered as the connector.", diff --git a/internal/aws/appflow/flow_resource_gen.go b/internal/aws/appflow/flow_resource_gen.go index 1d3114f4c6..c4675b77dc 100644 --- a/internal/aws/appflow/flow_resource_gen.go +++ b/internal/aws/appflow/flow_resource_gen.go @@ -27,6 +27,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -771,11 +772,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: EntityName "entity_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ErrorHandlingConfig "error_handling_config": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -897,11 +903,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -978,11 +989,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1048,19 +1064,29 @@ func flowResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IntermediateBucketName "intermediate_bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1074,11 +1100,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketName "bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BucketPrefix "bucket_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1278,11 +1309,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: ObjectPath "object_path": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SuccessResponseHandlingConfig "success_response_handling_config": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1411,11 +1447,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WriteOperationType "write_operation_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1497,19 +1538,29 @@ func flowResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IntermediateBucketName "intermediate_bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1523,11 +1574,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketName "bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(16, 63), stringvalidator.RegexMatches(regexp.MustCompile("^(upsolver-appflow)\\S*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BucketPrefix "bucket_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1643,10 +1699,24 @@ func flowResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1711,11 +1781,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WriteOperationType "write_operation_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1887,27 +1962,42 @@ func flowResource(ctx context.Context) (resource.Resource, error) { // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string containing the value for the tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string containing the value for the tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:aws:iam:.*:[0-9]+:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TablePrefix "table_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string containing the value for the tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configurations of glue data catalog of the flow.", @@ -2437,11 +2527,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2469,22 +2564,32 @@ func flowResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(64), stringvalidator.RegexMatches(regexp.MustCompile("[\\w/-]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "SYNC", "ASYNC", "AUTOMATIC", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2495,11 +2600,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: EntityName "entity_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2513,11 +2623,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2531,11 +2646,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2549,11 +2669,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2567,11 +2692,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2585,11 +2715,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2603,11 +2738,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2621,18 +2761,28 @@ func flowResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketName "bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BucketPrefix "bucket_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3InputFormatConfig "s3_input_format_config": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2670,21 +2820,31 @@ func flowResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ObjectPath "object_path": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: paginationConfig "pagination_config": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: maxPageSize "max_page_size": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 10000), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "SAP Source connector page size", @@ -2699,10 +2859,15 @@ func flowResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: maxParallelism "max_parallelism": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 10), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "SAP Source connector parallelism factor", @@ -2755,11 +2920,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2773,11 +2943,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2791,11 +2966,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2809,11 +2989,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2827,11 +3012,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2881,11 +3071,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2899,11 +3094,16 @@ func flowResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2956,18 +3156,28 @@ func flowResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string used to identify this tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string containing the value for the tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3916,7 +4126,8 @@ func flowResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "VALUE", @@ -3937,15 +4148,24 @@ func flowResource(ctx context.Context) (resource.Resource, error) { "INCLUDE_NEW_FIELDS", "ORDERED_PARTITION_KEYS_LIST", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(2048), stringvalidator.RegexMatches(regexp.MustCompile(".+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4095,10 +4315,15 @@ func flowResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: ScheduleExpression "schedule_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ScheduleOffset "schedule_offset": schema.Float64Attribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/appintegrations/application_resource_gen.go b/internal/aws/appintegrations/application_resource_gen.go index 3616ff30d4..38a48c3891 100644 --- a/internal/aws/appintegrations/application_resource_gen.go +++ b/internal/aws/appintegrations/application_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -265,18 +266,28 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A key to identify the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Corresponding tag value for the key.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/appintegrations/event_integration_resource_gen.go b/internal/aws/appintegrations/event_integration_resource_gen.go index ed784be5cc..1a847c648b 100644 --- a/internal/aws/appintegrations/event_integration_resource_gen.go +++ b/internal/aws/appintegrations/event_integration_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -185,18 +186,28 @@ func eventIntegrationResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A key to identify the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Corresponding tag value for the key.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/applicationautoscaling/scalable_target_resource_gen.go b/internal/aws/applicationautoscaling/scalable_target_resource_gen.go index 4c7cddab18..13a9a31bb8 100644 --- a/internal/aws/applicationautoscaling/scalable_target_resource_gen.go +++ b/internal/aws/applicationautoscaling/scalable_target_resource_gen.go @@ -16,8 +16,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -211,12 +213,26 @@ func scalableTargetResource(ctx context.Context) (resource.Resource, error) { // Property: Schedule "schedule": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The schedule for this action. The following formats are supported:\n + At expressions - \"``at(yyyy-mm-ddThh:mm:ss)``\"\n + Rate expressions - \"``rate(value unit)``\"\n + Cron expressions - \"``cron(fields)``\"\n \n At expressions are useful for one-time schedules. Cron expressions are useful for scheduled actions that run periodically at a specified date and time, and rate expressions are useful for scheduled actions that run at a regular interval.\n At and cron expressions use Universal Coordinated Time (UTC) by default.\n The cron format consists of six fields separated by white spaces: [Minutes] [Hours] [Day_of_Month] [Month] [Day_of_Week] [Year].\n For rate expressions, *value* is a positive integer and *unit* is ``minute`` | ``minutes`` | ``hour`` | ``hours`` | ``day`` | ``days``.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ScheduledActionName "scheduled_action_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the scheduled action. This name must be unique among all other scheduled actions on the specified scalable target.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StartTime "start_time": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/applicationautoscaling/scaling_policy_resource_gen.go b/internal/aws/applicationautoscaling/scaling_policy_resource_gen.go index 9c8236a933..0e4bfcddbf 100644 --- a/internal/aws/applicationautoscaling/scaling_policy_resource_gen.go +++ b/internal/aws/applicationautoscaling/scaling_policy_resource_gen.go @@ -18,8 +18,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -251,7 +253,14 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { // Property: ScalingAdjustment "scaling_adjustment": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The amount by which to scale. The adjustment is based on the value that you specified in the ``AdjustmentType`` property (either an absolute number or a percentage). A positive value adds to the current capacity and a negative number subtracts from the current capacity.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -457,12 +466,26 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the dimension.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the dimension.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -673,7 +696,14 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { // Property: PredefinedMetricType "predefined_metric_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The metric type. The ``ALBRequestCountPerTarget`` metric type applies only to Spot fleet requests and ECS services.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceLabel "resource_label": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -714,7 +744,14 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { // Property: TargetValue "target_value": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The target value for the metric. Although this property accepts numbers of type Double, it won't accept values that are either too small or too large. Values must be in the range of -2^360 to 2^360. The value must be a valid number based on the choice of metric. For example, if the metric is CPU utilization, then the target value is a percent value that represents how much of the CPU can be used before scaling out.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A target tracking scaling policy.", diff --git a/internal/aws/applicationinsights/application_resource_gen.go b/internal/aws/applicationinsights/application_resource_gen.go index 583f49250a..c479e0073f 100644 --- a/internal/aws/applicationinsights/application_resource_gen.go +++ b/internal/aws/applicationinsights/application_resource_gen.go @@ -14,6 +14,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -22,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -1209,14 +1211,19 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: ComponentConfigurationMode "component_configuration_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The component monitoring configuration mode.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DEFAULT", "DEFAULT_WITH_OVERWRITE", "CUSTOM", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ComponentName "component_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1244,7 +1251,14 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: AlarmMetricName "alarm_metric_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the metric to be monitored for the component.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1262,10 +1276,15 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: AlarmName "alarm_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the CloudWatch alarm to be monitored for the component.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Severity "severity": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1318,22 +1337,50 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: AgreeToInstallHANADBClient "agree_to_install_hanadb_client": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "A flag which indicates agreeing to install SAP HANA DB client.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HANAPort "hana_port": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The HANA DB port.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HANASID "hanasid": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "HANA DB SID.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HANASecretName "hana_secret_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The secret name which manages the HANA DB credentials e.g. {\n \"username\": \"<>\",\n \"password\": \"<>\"\n}.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PrometheusPort "prometheus_port": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1439,10 +1486,15 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: LogType "log_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The log type decides the log patterns against which Application Insights analyzes the log.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[A-Z][[A-Z]_]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PatternSet "pattern_set": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1473,13 +1525,18 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "instance_numbers": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "SAP instance numbers for ASCS, ERS, and App Servers.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 2), stringvalidator.RegexMatches(regexp.MustCompile("\\b([0-9]|[0-9][0-9])\\b"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PrometheusPort "prometheus_port": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1493,7 +1550,14 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: SAPSID "sapsid": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "SAP NetWeaver SID.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The NetWeaver Prometheus Exporter settings.", @@ -1514,21 +1578,40 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: AlarmMetricName "alarm_metric_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the metric to be monitored for the component.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of metrics to monitor for the component.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProcessName "process_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the process to be monitored for the component.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_,-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1545,12 +1628,26 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: PrometheusPort "prometheus_port": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Prometheus exporter port.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SQLSecretName "sql_secret_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Secret name which managers SQL exporter connection. e.g. {\"data_source_name\": \"sqlserver://:@localhost:1433\"}", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The SQL Prometheus Exporter settings.", @@ -1568,7 +1665,8 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "event_levels": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The levels of event to log. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), listvalidator.ValueStringsAre( @@ -1580,25 +1678,39 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "VERBOSE", ), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EventName "event_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of Windows Events to log.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 260), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_ \\\\/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LogGroupName "log_group_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The CloudWatch log group name to be associated to the monitored log.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("[\\.\\-_/#A-Za-z0-9]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PatternSet "pattern_set": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1644,7 +1756,14 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: AlarmMetricName "alarm_metric_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the metric to be monitored for the component.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1704,10 +1823,15 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: LogType "log_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The log type decides the log patterns against which Application Insights analyzes the log.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[A-Z][[A-Z]_]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PatternSet "pattern_set": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1742,21 +1866,40 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: AlarmMetricName "alarm_metric_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the metric to be monitored for the component.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of metrics to monitor for the component.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProcessName "process_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the process to be monitored for the component.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_,-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1775,7 +1918,8 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "event_levels": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The levels of event to log. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), listvalidator.ValueStringsAre( @@ -1787,25 +1931,39 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "VERBOSE", ), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EventName "event_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of Windows Events to log.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 260), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_ \\\\/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LogGroupName "log_group_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The CloudWatch log group name to be associated to the monitored log.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("[\\.\\-_/#A-Za-z0-9]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PatternSet "pattern_set": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1831,18 +1989,30 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration settings of sub components.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubComponentType "sub_component_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The sub component type.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "AWS::EC2::Instance", "AWS::EC2::Volume", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1877,7 +2047,14 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: AlarmMetricName "alarm_metric_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the metric to be monitored for the component.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1895,10 +2072,15 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: AlarmName "alarm_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the CloudWatch alarm to be monitored for the component.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Severity "severity": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1951,22 +2133,50 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: AgreeToInstallHANADBClient "agree_to_install_hanadb_client": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "A flag which indicates agreeing to install SAP HANA DB client.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HANAPort "hana_port": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The HANA DB port.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HANASID "hanasid": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "HANA DB SID.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HANASecretName "hana_secret_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The secret name which manages the HANA DB credentials e.g. {\n \"username\": \"<>\",\n \"password\": \"<>\"\n}.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PrometheusPort "prometheus_port": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2072,10 +2282,15 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: LogType "log_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The log type decides the log patterns against which Application Insights analyzes the log.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[A-Z][[A-Z]_]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PatternSet "pattern_set": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2106,13 +2321,18 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "instance_numbers": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "SAP instance numbers for ASCS, ERS, and App Servers.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 2), stringvalidator.RegexMatches(regexp.MustCompile("\\b([0-9]|[0-9][0-9])\\b"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PrometheusPort "prometheus_port": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2126,7 +2346,14 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: SAPSID "sapsid": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "SAP NetWeaver SID.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The NetWeaver Prometheus Exporter settings.", @@ -2147,21 +2374,40 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: AlarmMetricName "alarm_metric_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the metric to be monitored for the component.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of metrics to monitor for the component.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProcessName "process_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the process to be monitored for the component.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_,-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2178,12 +2424,26 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: PrometheusPort "prometheus_port": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Prometheus exporter port.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SQLSecretName "sql_secret_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Secret name which managers SQL exporter connection. e.g. {\"data_source_name\": \"sqlserver://:@localhost:1433\"}", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The SQL Prometheus Exporter settings.", @@ -2201,7 +2461,8 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "event_levels": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The levels of event to log. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), listvalidator.ValueStringsAre( @@ -2213,25 +2474,39 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "VERBOSE", ), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EventName "event_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of Windows Events to log.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 260), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_ \\\\/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LogGroupName "log_group_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The CloudWatch log group name to be associated to the monitored log.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("[\\.\\-_/#A-Za-z0-9]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PatternSet "pattern_set": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2277,7 +2552,14 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: AlarmMetricName "alarm_metric_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the metric to be monitored for the component.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2337,10 +2619,15 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: LogType "log_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The log type decides the log patterns against which Application Insights analyzes the log.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[A-Z][[A-Z]_]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PatternSet "pattern_set": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2375,21 +2662,40 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: AlarmMetricName "alarm_metric_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the metric to be monitored for the component.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of metrics to monitor for the component.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProcessName "process_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the process to be monitored for the component.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_,-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2408,7 +2714,8 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "event_levels": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The levels of event to log. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), listvalidator.ValueStringsAre( @@ -2420,25 +2727,39 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "VERBOSE", ), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EventName "event_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of Windows Events to log.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 260), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_ \\\\/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LogGroupName "log_group_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The CloudWatch log group name to be associated to the monitored log.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("[\\.\\-_/#A-Za-z0-9]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PatternSet "pattern_set": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2464,18 +2785,30 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration settings of sub components.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubComponentType "sub_component_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The sub component type.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "AWS::EC2::Instance", "AWS::EC2::Volume", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2500,10 +2833,15 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: Tier "tier": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tier of the application component.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[A-Z][[A-Z]_]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2563,24 +2901,34 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: ComponentName "component_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the component.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[\\d\\w\\-_.+]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceList "resource_list": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The list of resource ARNs that belong to the component.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(20, 300), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(-[\\w]+)*:[\\w\\d-]+:([\\w\\d-]*)?:[\\w\\d_-]*([:/].+)*$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2692,41 +3040,68 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: Pattern "pattern": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The log pattern.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PatternName "pattern_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the log pattern.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9.-_]*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Rank "rank": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Rank of the log pattern.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The log patterns of a set.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PatternSetName "pattern_set_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the log pattern set.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9.-_]*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2838,18 +3213,28 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/applicationsignals/service_level_objective_resource_gen.go b/internal/aws/applicationsignals/service_level_objective_resource_gen.go index e228c00948..828271f993 100644 --- a/internal/aws/applicationsignals/service_level_objective_resource_gen.go +++ b/internal/aws/applicationsignals/service_level_objective_resource_gen.go @@ -28,6 +28,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -207,29 +208,44 @@ func serviceLevelObjectiveResource(ctx context.Context) (resource.Resource, erro // Property: Duration "duration": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Specifies the duration of each calendar interval. For example, if `Duration` is 1 and `DurationUnit` is `MONTH`, each interval is one month, aligned with the calendar.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DurationUnit "duration_unit": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the calendar interval unit.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DAY", "MONTH", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StartTime "start_time": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Epoch time in seconds you want the first interval to start. Be sure to choose a time that configures the intervals the way that you want. For example, if you want weekly intervals starting on Mondays at 6 a.m., be sure to specify a start time that is a Monday at 6 a.m.\nAs soon as one calendar interval ends, another automatically begins.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(946684800), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "If the interval for this service level objective is a calendar interval, this structure contains the interval specifications.", @@ -245,21 +261,31 @@ func serviceLevelObjectiveResource(ctx context.Context) (resource.Resource, erro // Property: Duration "duration": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Specifies the duration of each calendar interval. For example, if `Duration` is 1 and `DurationUnit` is `MONTH`, each interval is one month, aligned with the calendar.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DurationUnit "duration_unit": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the calendar interval unit.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DAY", "MONTH", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "If the interval is a calendar interval, this structure contains the interval specifications.", @@ -764,7 +790,14 @@ func serviceLevelObjectiveResource(ctx context.Context) (resource.Resource, erro // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A short name used to tie this object to the results in the response.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MetricStat "metric_stat": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -779,12 +812,26 @@ func serviceLevelObjectiveResource(ctx context.Context) (resource.Resource, erro // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the dimension. Dimension names must contain only ASCII characters, must include at least one non-whitespace character, and cannot start with a colon (:). ASCII control characters are not supported as part of dimension names.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character. ASCII control characters are not supported as part of dimension values", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -816,17 +863,38 @@ func serviceLevelObjectiveResource(ctx context.Context) (resource.Resource, erro }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "This structure defines the metric used for a service level indicator, including the metric name, namespace, and dimensions.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Period "period": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The granularity, in seconds, to be used for the metric.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Stat "stat": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The statistic to use for comparison to the threshold. It can be any CloudWatch statistic or extended statistic.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -888,7 +956,14 @@ func serviceLevelObjectiveResource(ctx context.Context) (resource.Resource, erro // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A short name used to tie this object to the results in the response.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MetricStat "metric_stat": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -903,12 +978,26 @@ func serviceLevelObjectiveResource(ctx context.Context) (resource.Resource, erro // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the dimension. Dimension names must contain only ASCII characters, must include at least one non-whitespace character, and cannot start with a colon (:). ASCII control characters are not supported as part of dimension names.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character. ASCII control characters are not supported as part of dimension values", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -940,17 +1029,38 @@ func serviceLevelObjectiveResource(ctx context.Context) (resource.Resource, erro }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "This structure defines the metric used for a service level indicator, including the metric name, namespace, and dimensions.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Period "period": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The granularity, in seconds, to be used for the metric.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Stat "stat": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The statistic to use for comparison to the threshold. It can be any CloudWatch statistic or extended statistic.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1032,7 +1142,14 @@ func serviceLevelObjectiveResource(ctx context.Context) (resource.Resource, erro // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A short name used to tie this object to the results in the response.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MetricStat "metric_stat": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1047,12 +1164,26 @@ func serviceLevelObjectiveResource(ctx context.Context) (resource.Resource, erro // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the dimension. Dimension names must contain only ASCII characters, must include at least one non-whitespace character, and cannot start with a colon (:). ASCII control characters are not supported as part of dimension names.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character. ASCII control characters are not supported as part of dimension values", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1084,17 +1215,38 @@ func serviceLevelObjectiveResource(ctx context.Context) (resource.Resource, erro }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "This structure defines the metric used for a service level indicator, including the metric name, namespace, and dimensions.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Period "period": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The granularity, in seconds, to be used for the metric.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Stat "stat": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The statistic to use for comparison to the threshold. It can be any CloudWatch statistic or extended statistic.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1133,7 +1285,14 @@ func serviceLevelObjectiveResource(ctx context.Context) (resource.Resource, erro }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "This structure contains the information about the metric that is used for a request-based SLO.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "This structure contains information about the performance metric that a request-based SLO monitors.", @@ -1315,7 +1474,8 @@ func serviceLevelObjectiveResource(ctx context.Context) (resource.Resource, erro // Property: ComparisonOperator "comparison_operator": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The arithmetic operation used when comparing the specified metric to the threshold.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "GreaterThanOrEqualTo", @@ -1323,12 +1483,23 @@ func serviceLevelObjectiveResource(ctx context.Context) (resource.Resource, erro "LessThan", "GreaterThan", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MetricThreshold "metric_threshold": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The value that the SLI metric is compared to.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SliMetric "sli_metric": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1369,7 +1540,14 @@ func serviceLevelObjectiveResource(ctx context.Context) (resource.Resource, erro // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A short name used to tie this object to the results in the response.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MetricStat "metric_stat": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1384,12 +1562,26 @@ func serviceLevelObjectiveResource(ctx context.Context) (resource.Resource, erro // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the dimension. Dimension names must contain only ASCII characters, must include at least one non-whitespace character, and cannot start with a colon (:). ASCII control characters are not supported as part of dimension names.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character. ASCII control characters are not supported as part of dimension values", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1421,17 +1613,38 @@ func serviceLevelObjectiveResource(ctx context.Context) (resource.Resource, erro }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "This structure defines the metric used for a service level indicator, including the metric name, namespace, and dimensions.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Period "period": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The granularity, in seconds, to be used for the metric.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Stat "stat": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The statistic to use for comparison to the threshold. It can be any CloudWatch statistic or extended statistic.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1521,7 +1734,14 @@ func serviceLevelObjectiveResource(ctx context.Context) (resource.Resource, erro }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A structure that contains information about the metric that the SLO monitors.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "This structure contains information about the performance metric that an SLO monitors.", @@ -1571,18 +1791,28 @@ func serviceLevelObjectiveResource(ctx context.Context) (resource.Resource, erro // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string that you can use to assign a value. The combination of tag keys and values can help you organize and categorize your resources.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the specified tag key.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/apprunner/observability_configuration_resource_gen.go b/internal/aws/apprunner/observability_configuration_resource_gen.go index 22f79475e5..f7bdfb4761 100644 --- a/internal/aws/apprunner/observability_configuration_resource_gen.go +++ b/internal/aws/apprunner/observability_configuration_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -173,12 +174,17 @@ func observabilityConfigurationResource(ctx context.Context) (resource.Resource, // Property: Vendor "vendor": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The implementation provider chosen for tracing App Runner services.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "AWSXRAY", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration of the tracing feature within this observability configuration. If you don't specify it, App Runner doesn't enable tracing.", diff --git a/internal/aws/apprunner/service_resource_gen.go b/internal/aws/apprunner/service_resource_gen.go index ae7fa414cc..05acf789af 100644 --- a/internal/aws/apprunner/service_resource_gen.go +++ b/internal/aws/apprunner/service_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -79,11 +80,16 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { // Property: KmsKey "kms_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The KMS Key", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("arn:aws(-[\\w]+)*:kms:[a-z\\-]+-[0-9]{1}:[0-9]{12}:key\\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Encryption configuration (KMS key)", @@ -362,13 +368,18 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { // Property: EgressType "egress_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Network egress type.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DEFAULT", "VPC", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VpcConnectorArn "vpc_connector_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -396,7 +407,14 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { // Property: IsPubliclyAccessible "is_publicly_accessible": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "It's set to true if the Apprunner service is publicly accessible. It's set to false otherwise.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Network ingress configuration", @@ -470,7 +488,14 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { // Property: ObservabilityEnabled "observability_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Observability enabled", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Service observability configuration", @@ -867,7 +892,8 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { // Property: Runtime "runtime": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Runtime", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PYTHON_3", @@ -883,7 +909,11 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { "PYTHON_311", "NODEJS_18", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RuntimeEnvironmentSecrets "runtime_environment_secrets": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -962,13 +992,18 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { // Property: ConfigurationSource "configuration_source": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Configuration Source", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "REPOSITORY", "API", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Code Configuration", @@ -981,7 +1016,14 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { // Property: RepositoryUrl "repository_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Repository Url", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceCodeVersion "source_code_version": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -989,21 +1031,40 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Source Code Version Type", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "BRANCH", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Source Code Version Value", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Source Code Version", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceDirectory "source_directory": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1118,22 +1179,32 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { // Property: ImageIdentifier "image_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Image Identifier", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), stringvalidator.RegexMatches(regexp.MustCompile("([0-9]{12}.dkr.ecr.[a-z\\-]+-[0-9]{1}.amazonaws.com\\/.*)|(^public\\.ecr\\.aws\\/.+\\/.+)"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageRepositoryType "image_repository_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Image Repository Type", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ECR", "ECR_PUBLIC", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Image Repository", diff --git a/internal/aws/appstream/app_block_builder_resource_gen.go b/internal/aws/appstream/app_block_builder_resource_gen.go index c209feb3d5..15bc2fed97 100644 --- a/internal/aws/appstream/app_block_builder_resource_gen.go +++ b/internal/aws/appstream/app_block_builder_resource_gen.go @@ -15,9 +15,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -57,11 +59,25 @@ func appBlockBuilderResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: EndpointType "endpoint_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VpceId "vpce_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -226,11 +242,25 @@ func appBlockBuilderResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/appstream/app_block_resource_gen.go b/internal/aws/appstream/app_block_resource_gen.go index 7a7f27d554..4053bff539 100644 --- a/internal/aws/appstream/app_block_resource_gen.go +++ b/internal/aws/appstream/app_block_resource_gen.go @@ -10,12 +10,15 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -154,14 +157,28 @@ func appBlockResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: ExecutablePath "executable_path": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ScriptS3Location "script_s3_location": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: S3Bucket "s3_bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Key "s3_key": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -172,11 +189,25 @@ func appBlockResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TimeoutInSeconds "timeout_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -236,14 +267,28 @@ func appBlockResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: ExecutablePath "executable_path": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ScriptS3Location "script_s3_location": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: S3Bucket "s3_bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Key "s3_key": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -254,11 +299,25 @@ func appBlockResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TimeoutInSeconds "timeout_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/appstream/image_builder_resource_gen.go b/internal/aws/appstream/image_builder_resource_gen.go index d9e95febb5..bf0cfe1628 100644 --- a/internal/aws/appstream/image_builder_resource_gen.go +++ b/internal/aws/appstream/image_builder_resource_gen.go @@ -15,9 +15,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -56,11 +58,25 @@ func imageBuilderResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: EndpointType "endpoint_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VpceId "vpce_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -259,11 +275,25 @@ func imageBuilderResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/appsync/function_configuration_resource_gen.go b/internal/aws/appsync/function_configuration_resource_gen.go index 93914cc0d2..590657d73f 100644 --- a/internal/aws/appsync/function_configuration_resource_gen.go +++ b/internal/aws/appsync/function_configuration_resource_gen.go @@ -14,8 +14,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -255,12 +257,26 @@ func functionConfigurationResource(ctx context.Context) (resource.Resource, erro // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the runtime to use. Currently, the only allowed value is APPSYNC_JS.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RuntimeVersion "runtime_version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The version of the runtime to use. Currently, the only allowed version is 1.0.0.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.", @@ -307,7 +323,14 @@ func functionConfigurationResource(ctx context.Context) (resource.Resource, erro // Property: ConflictDetection "conflict_detection": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Conflict Detection strategy to use.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConflictHandler "conflict_handler": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/appsync/resolver_resource_gen.go b/internal/aws/appsync/resolver_resource_gen.go index a67510c359..6ac00d7728 100644 --- a/internal/aws/appsync/resolver_resource_gen.go +++ b/internal/aws/appsync/resolver_resource_gen.go @@ -11,6 +11,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" @@ -20,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -86,7 +88,14 @@ func resolverResource(ctx context.Context) (resource.Resource, error) { // Property: Ttl "ttl": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The TTL in seconds for a resolver that has caching activated.\n Valid values are 1?3,600 seconds.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The caching configuration for the resolver.", @@ -354,12 +363,26 @@ func resolverResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ``name`` of the runtime to use. Currently, the only allowed value is ``APPSYNC_JS``.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RuntimeVersion "runtime_version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ``version`` of the runtime to use. Currently, the only allowed version is ``1.0.0``.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Describes a runtime used by an APSYlong resolver or APSYlong function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.", @@ -406,7 +429,14 @@ func resolverResource(ctx context.Context) (resource.Resource, error) { // Property: ConflictDetection "conflict_detection": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Conflict Detection strategy to use.\n + *VERSION*: Detect conflicts based on object versions for this resolver.\n + *NONE*: Do not detect conflicts when invoking this resolver.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConflictHandler "conflict_handler": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/apptest/test_case_resource_gen.go b/internal/aws/apptest/test_case_resource_gen.go index 36287e9c50..6aeae6a8cb 100644 --- a/internal/aws/apptest/test_case_resource_gen.go +++ b/internal/aws/apptest/test_case_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -534,41 +535,68 @@ func testCaseResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Ccsid "ccsid": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^\\S{1,50}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Format "format": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "FIXED", "VARIABLE", "LINE_SEQUENTIAL", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Length "length": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^\\S{1,100}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -586,50 +614,84 @@ func testCaseResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: CaptureTool "capture_tool": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Precisely", "AWS DMS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "z/OS-DB2", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TargetMetadata "target_metadata": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: CaptureTool "capture_tool": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Precisely", "AWS DMS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PostgreSQL", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -639,21 +701,38 @@ func testCaseResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceLocation "source_location": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^\\S{1,1000}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TargetLocation "target_location": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^\\S{1,1000}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -663,7 +742,14 @@ func testCaseResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Output "output": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -714,10 +800,15 @@ func testCaseResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BatchJobName "batch_job_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^\\S{1,1000}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BatchJobParameters "batch_job_parameters": // Pattern: "" @@ -772,22 +863,39 @@ func testCaseResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ScriptLocation "script_location": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Selenium", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -797,7 +905,14 @@ func testCaseResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Properties "properties": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -822,10 +937,15 @@ func testCaseResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Resource "resource": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^\\S{1,1000}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -856,10 +976,15 @@ func testCaseResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Resource "resource": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^\\S{1,1000}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -873,13 +998,18 @@ func testCaseResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ActionType "action_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Configure", "Deconfigure", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Properties "properties": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -912,10 +1042,15 @@ func testCaseResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Resource "resource": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^\\S{1,1000}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -929,20 +1064,30 @@ func testCaseResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ActionType "action_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Configure", "Deconfigure", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Resource "resource": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^\\S{1,1000}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/aps/rule_groups_namespace_resource_gen.go b/internal/aws/aps/rule_groups_namespace_resource_gen.go index 7fa7aeb92a..ecbc42bc22 100644 --- a/internal/aws/aps/rule_groups_namespace_resource_gen.go +++ b/internal/aws/aps/rule_groups_namespace_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -111,18 +112,28 @@ func ruleGroupsNamespaceResource(ctx context.Context) (resource.Resource, error) // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/aps/scraper_resource_gen.go b/internal/aws/aps/scraper_resource_gen.go index 89e61196ae..29bbc0b3b7 100644 --- a/internal/aws/aps/scraper_resource_gen.go +++ b/internal/aws/aps/scraper_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -110,10 +111,15 @@ func scraperResource(ctx context.Context) (resource.Resource, error) { // Property: WorkspaceArn "workspace_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "ARN of an Amazon Managed Prometheus workspace", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws[-a-z]*:aps:[-a-z0-9]+:[0-9]{12}:workspace/.+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration for Amazon Managed Prometheus metrics destination", @@ -264,10 +270,15 @@ func scraperResource(ctx context.Context) (resource.Resource, error) { // Property: ClusterArn "cluster_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "ARN of an EKS cluster", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws[-a-z]*:eks:[-a-z0-9]+:[0-9]{12}:cluster/.+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecurityGroupIds "security_group_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -289,14 +300,17 @@ func scraperResource(ctx context.Context) (resource.Resource, error) { "subnet_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "List of subnet IDs", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.RegexMatches(regexp.MustCompile("^subnet-[0-9a-z]+$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -352,18 +366,28 @@ func scraperResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/aps/workspace_resource_gen.go b/internal/aws/aps/workspace_resource_gen.go index 20517e8af5..f691c1790a 100644 --- a/internal/aws/aps/workspace_resource_gen.go +++ b/internal/aws/aps/workspace_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -194,18 +195,28 @@ func workspaceResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/arczonalshift/zonal_autoshift_configuration_resource_gen.go b/internal/aws/arczonalshift/zonal_autoshift_configuration_resource_gen.go index a0b4a0b1b3..2ad9cca444 100644 --- a/internal/aws/arczonalshift/zonal_autoshift_configuration_resource_gen.go +++ b/internal/aws/arczonalshift/zonal_autoshift_configuration_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -165,19 +166,29 @@ func zonalAutoshiftConfigurationResource(ctx context.Context) (resource.Resource Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AlarmIdentifier "alarm_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(8, 1024), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(8, 10), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -197,28 +208,41 @@ func zonalAutoshiftConfigurationResource(ctx context.Context) (resource.Resource Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AlarmIdentifier "alarm_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(8, 1024), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(8, 10), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 1), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/athena/capacity_reservation_resource_gen.go b/internal/aws/athena/capacity_reservation_resource_gen.go index dac8c8f0bd..49cd7f068d 100644 --- a/internal/aws/athena/capacity_reservation_resource_gen.go +++ b/internal/aws/athena/capacity_reservation_resource_gen.go @@ -15,6 +15,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" @@ -23,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -107,22 +109,30 @@ func capacityReservationResource(ctx context.Context) (resource.Resource, error) // Property: WorkgroupNames "workgroup_names": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9._-]{1,128}"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "List of capacity assignments", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -235,17 +245,27 @@ func capacityReservationResource(ctx context.Context) (resource.Resource, error) Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/athena/data_catalog_resource_gen.go b/internal/aws/athena/data_catalog_resource_gen.go index 5f1c5064f3..469b0cf6f3 100644 --- a/internal/aws/athena/data_catalog_resource_gen.go +++ b/internal/aws/athena/data_catalog_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -125,17 +126,27 @@ func dataCatalogResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/athena/work_group_resource_gen.go b/internal/aws/athena/work_group_resource_gen.go index 3d90a220cc..f1ddf02392 100644 --- a/internal/aws/athena/work_group_resource_gen.go +++ b/internal/aws/athena/work_group_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -158,17 +159,27 @@ func workGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -330,7 +341,14 @@ func workGroupResource(ctx context.Context) (resource.Resource, error) { // Property: KmsKey "kms_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "For SSE-KMS and CSE-KMS, this is the KMS key ARN or ID. ", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Indicates the KMS key for encrypting notebook content.", @@ -413,12 +431,17 @@ func workGroupResource(ctx context.Context) (resource.Resource, error) { // Property: S3AclOption "s3_acl_option": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 canned ACL that Athena should specify when storing query results. Currently the only supported canned ACL is BUCKET_OWNER_FULL_CONTROL", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "BUCKET_OWNER_FULL_CONTROL", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Indicates that an Amazon S3 canned ACL should be set to control ownership of stored query results", @@ -434,14 +457,19 @@ func workGroupResource(ctx context.Context) (resource.Resource, error) { // Property: EncryptionOption "encryption_option": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys (SSE-S3), server-side encryption with KMS-managed keys (SSE-KMS), or client-side encryption with KMS-managed keys (CSE-KMS) is used.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "SSE_S3", "SSE_KMS", "CSE_KMS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KmsKey "kms_key": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -662,7 +690,14 @@ func workGroupResource(ctx context.Context) (resource.Resource, error) { // Property: KmsKey "kms_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "For SSE-KMS and CSE-KMS, this is the KMS key ARN or ID. ", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Indicates the KMS key for encrypting notebook content.", @@ -762,12 +797,17 @@ func workGroupResource(ctx context.Context) (resource.Resource, error) { // Property: S3AclOption "s3_acl_option": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 canned ACL that Athena should specify when storing query results. Currently the only supported canned ACL is BUCKET_OWNER_FULL_CONTROL", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "BUCKET_OWNER_FULL_CONTROL", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Indicates that an Amazon S3 canned ACL should be set to control ownership of stored query results", @@ -783,14 +823,19 @@ func workGroupResource(ctx context.Context) (resource.Resource, error) { // Property: EncryptionOption "encryption_option": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys (SSE-S3), server-side encryption with KMS-managed keys (SSE-KMS), or client-side encryption with KMS-managed keys (CSE-KMS) is used.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "SSE_S3", "SSE_KMS", "CSE_KMS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KmsKey "kms_key": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/auditmanager/assessment_resource_gen.go b/internal/aws/auditmanager/assessment_resource_gen.go index dcbe64c308..46c2aeb188 100644 --- a/internal/aws/auditmanager/assessment_resource_gen.go +++ b/internal/aws/auditmanager/assessment_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -777,18 +778,28 @@ func assessmentResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/autoscaling/auto_scaling_group_resource_gen.go b/internal/aws/autoscaling/auto_scaling_group_resource_gen.go index 16445cced3..799b122718 100644 --- a/internal/aws/autoscaling/auto_scaling_group_resource_gen.go +++ b/internal/aws/autoscaling/auto_scaling_group_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -323,7 +324,14 @@ func autoScalingGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Version "version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The version number of the launch template.\n Specifying ``$Latest`` or ``$Default`` for the template version number is not supported. However, you can specify ``LatestVersionNumber`` or ``DefaultVersionNumber`` using the ``Fn::GetAtt`` intrinsic function. For more information, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html).\n For an example of using the ``Fn::GetAtt`` function, see the [Examples](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html#aws-resource-autoscaling-autoscalinggroup--examples) section of the ``AWS::AutoScaling::AutoScalingGroup`` resource.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information used to specify the launch template and version to use to launch instances. You can alternatively associate a launch template to the Auto Scaling group by specifying a ``MixedInstancesPolicy``. For more information about creating launch templates, see [Create a launch template for an Auto Scaling group](https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html) in the *Amazon EC2 Auto Scaling User Guide*.\n If you omit this property, you must specify ``MixedInstancesPolicy``, ``LaunchConfigurationName``, or ``InstanceId``.", @@ -405,12 +413,26 @@ func autoScalingGroupResource(ctx context.Context) (resource.Resource, error) { // Property: LifecycleHookName "lifecycle_hook_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the lifecycle hook.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LifecycleTransition "lifecycle_transition": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The lifecycle transition. For Auto Scaling groups, there are two major lifecycle transitions.\n + To create a lifecycle hook for scale-out events, specify ``autoscaling:EC2_INSTANCE_LAUNCHING``.\n + To create a lifecycle hook for scale-in events, specify ``autoscaling:EC2_INSTANCE_TERMINATING``.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NotificationMetadata "notification_metadata": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -537,7 +559,14 @@ func autoScalingGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Granularity "granularity": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The frequency at which Amazon EC2 Auto Scaling sends aggregated data to CloudWatch. The only valid value is ``1Minute``.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Metrics "metrics": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -1033,11 +1062,25 @@ func autoScalingGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Version "version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The version number of the launch template.\n Specifying ``$Latest`` or ``$Default`` for the template version number is not supported. However, you can specify ``LatestVersionNumber`` or ``DefaultVersionNumber`` using the ``Fn::GetAtt`` intrinsic function. For more information, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html).\n For an example of using the ``Fn::GetAtt`` function, see the [Examples](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html#aws-resource-autoscaling-autoscalinggroup--examples) section of the ``AWS::AutoScaling::AutoScalingGroup`` resource.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The launch template.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Overrides "overrides": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1307,7 +1350,14 @@ func autoScalingGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The minimum and maximum instance memory size for an instance type, in MiB.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NetworkBandwidthGbps "network_bandwidth_gbps": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1446,7 +1496,14 @@ func autoScalingGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The minimum and maximum number of vCPUs for an instance type.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The instance requirements. Amazon EC2 Auto Scaling uses your specified requirements to identify instance types. Then, it uses your On-Demand and Spot allocation strategies to launch instances from these instance types.\n You can specify up to four separate sets of instance requirements per Auto Scaling group. This is useful for provisioning instances from different Amazon Machine Images (AMIs) in the same Auto Scaling group. To do this, create the AMIs and create a new launch template for each AMI. Then, create a compatible set of instance requirements for each launch template. \n If you specify ``InstanceRequirements``, you can't specify ``InstanceType``.", @@ -1489,7 +1546,14 @@ func autoScalingGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Version "version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The version number of the launch template.\n Specifying ``$Latest`` or ``$Default`` for the template version number is not supported. However, you can specify ``LatestVersionNumber`` or ``DefaultVersionNumber`` using the ``Fn::GetAtt`` intrinsic function. For more information, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html).\n For an example of using the ``Fn::GetAtt`` function, see the [Examples](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html#aws-resource-autoscaling-autoscalinggroup--examples) section of the ``AWS::AutoScaling::AutoScalingGroup`` resource.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Provides a launch template for the specified instance type or set of instance requirements. For example, some instance types might require a launch template with a different AMI. If not provided, Amazon EC2 Auto Scaling uses the launch template that's specified in the ``LaunchTemplate`` definition. For more information, see [Specifying a different launch template for an instance type](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups-launch-template-overrides.html) in the *Amazon EC2 Auto Scaling User Guide*. \n You can specify up to 20 launch templates per Auto Scaling group. The launch templates specified in the overrides and in the ``LaunchTemplate`` definition count towards this limit.", @@ -1519,7 +1583,14 @@ func autoScalingGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "One or more launch templates and the instance types (overrides) that are used to launch EC2 instances to fulfill On-Demand and Spot capacities.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "An embedded object that specifies a mixed instances policy.\n The policy includes properties that not only define the distribution of On-Demand Instances and Spot Instances, the maximum price to pay for Spot Instances (optional), and how the Auto Scaling group allocates instance types to fulfill On-Demand and Spot capacities, but also the properties that specify the instance configuration information—the launch template and instance types. The policy can also include a weight for each instance type and different launch templates for individual instance types.\n For more information, see [Auto Scaling groups with multiple instance types and purchase options](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html) in the *Amazon EC2 Auto Scaling User Guide*.", @@ -1589,7 +1660,14 @@ func autoScalingGroupResource(ctx context.Context) (resource.Resource, error) { // Property: TopicARN "topic_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the Amazon SNS topic.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A structure that specifies an Amazon SNS notification configuration for the ``NotificationConfigurations`` property of the [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) resource.\n For an example template snippet, see [Configure Amazon EC2 Auto Scaling resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html).\n For more information, see [Get Amazon SNS notifications when your Auto Scaling group scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in the *Amazon EC2 Auto Scaling User Guide*.", @@ -1651,7 +1729,14 @@ func autoScalingGroupResource(ctx context.Context) (resource.Resource, error) { // Property: TopicARN "topic_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the Amazon SNS topic.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1730,17 +1815,38 @@ func autoScalingGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PropagateAtLaunch "propagate_at_launch": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Set to ``true`` if you want CloudFormation to copy the tag to EC2 instances that are launched as part of the Auto Scaling group. Set to ``false`` if you want the tag attached only to the Auto Scaling group and not copied to any instances launched as part of the Auto Scaling group.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/autoscaling/launch_configuration_resource_gen.go b/internal/aws/autoscaling/launch_configuration_resource_gen.go index 1e808422ff..d4faeb39f2 100644 --- a/internal/aws/autoscaling/launch_configuration_resource_gen.go +++ b/internal/aws/autoscaling/launch_configuration_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -120,7 +121,14 @@ func launchConfigurationResource(ctx context.Context) (resource.Resource, error) // Property: DeviceName "device_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh). ", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Ebs "ebs": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/autoscaling/scaling_policy_resource_gen.go b/internal/aws/autoscaling/scaling_policy_resource_gen.go index 8ecb3e7e8a..bee285f1b0 100644 --- a/internal/aws/autoscaling/scaling_policy_resource_gen.go +++ b/internal/aws/autoscaling/scaling_policy_resource_gen.go @@ -17,8 +17,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -549,7 +551,14 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Label "label": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -571,11 +580,25 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -587,18 +610,46 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: MetricName "metric_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Namespace "namespace": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Stat "stat": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -625,7 +676,14 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Set{ /*START VALIDATORS*/ + fwvalidators.NotNullSet(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -651,7 +709,14 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Label "label": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -673,11 +738,25 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -689,18 +768,46 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: MetricName "metric_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Namespace "namespace": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Stat "stat": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -727,7 +834,14 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Set{ /*START VALIDATORS*/ + fwvalidators.NotNullSet(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -753,7 +867,14 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Label "label": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -775,11 +896,25 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -791,18 +926,46 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: MetricName "metric_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Namespace "namespace": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Stat "stat": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -829,7 +992,14 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Set{ /*START VALIDATORS*/ + fwvalidators.NotNullSet(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -843,7 +1013,14 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: PredefinedMetricType "predefined_metric_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceLabel "resource_label": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -865,7 +1042,14 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: PredefinedMetricType "predefined_metric_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceLabel "resource_label": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -887,7 +1071,14 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: PredefinedMetricType "predefined_metric_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceLabel "resource_label": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -906,11 +1097,25 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TargetValue "target_value": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Set{ /*START VALIDATORS*/ + fwvalidators.NotNullSet(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Mode "mode": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1000,7 +1205,14 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: ScalingAdjustment "scaling_adjustment": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1174,11 +1386,25 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1210,7 +1436,14 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Label "label": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1232,11 +1465,25 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1248,18 +1495,46 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: MetricName "metric_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Namespace "namespace": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Stat "stat": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1336,7 +1611,14 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: PredefinedMetricType "predefined_metric_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceLabel "resource_label": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1355,7 +1637,14 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TargetValue "target_value": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A target tracking scaling policy. Includes support for predefined or customized metrics.", diff --git a/internal/aws/b2bi/capability_resource_gen.go b/internal/aws/b2bi/capability_resource_gen.go index 07b846f8c7..731aa0f0c7 100644 --- a/internal/aws/b2bi/capability_resource_gen.go +++ b/internal/aws/b2bi/capability_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -249,7 +250,14 @@ func capabilityResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OutputLocation "output_location": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -277,15 +285,27 @@ func capabilityResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TransformerId "transformer_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -404,7 +424,14 @@ func capabilityResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -551,17 +578,27 @@ func capabilityResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/b2bi/partnership_resource_gen.go b/internal/aws/b2bi/partnership_resource_gen.go index 61f63d44f2..0faa5b4f0c 100644 --- a/internal/aws/b2bi/partnership_resource_gen.go +++ b/internal/aws/b2bi/partnership_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -220,17 +221,27 @@ func partnershipResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/b2bi/profile_resource_gen.go b/internal/aws/b2bi/profile_resource_gen.go index 2a7fd34451..0fc9b70fe8 100644 --- a/internal/aws/b2bi/profile_resource_gen.go +++ b/internal/aws/b2bi/profile_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -220,17 +221,27 @@ func profileResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/b2bi/transformer_resource_gen.go b/internal/aws/b2bi/transformer_resource_gen.go index 080b62aaab..370c9ee5c9 100644 --- a/internal/aws/b2bi/transformer_resource_gen.go +++ b/internal/aws/b2bi/transformer_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -396,17 +397,27 @@ func transformerResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/backup/backup_plan_resource_gen.go b/internal/aws/backup/backup_plan_resource_gen.go index deb2e2169e..71ee8418d2 100644 --- a/internal/aws/backup/backup_plan_resource_gen.go +++ b/internal/aws/backup/backup_plan_resource_gen.go @@ -18,9 +18,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -169,11 +171,25 @@ func backupPlanResource(ctx context.Context) (resource.Resource, error) { // Property: BackupOptions "backup_options": schema.StringAttribute{ /*START ATTRIBUTE*/ CustomType: jsontypes.NormalizedType{}, - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceType "resource_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -205,7 +221,14 @@ func backupPlanResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DestinationBackupVaultArn "destination_backup_vault_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Lifecycle "lifecycle": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/backup/backup_selection_resource_gen.go b/internal/aws/backup/backup_selection_resource_gen.go index 84da0746c7..5ded466eb1 100644 --- a/internal/aws/backup/backup_selection_resource_gen.go +++ b/internal/aws/backup/backup_selection_resource_gen.go @@ -14,9 +14,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -311,15 +313,36 @@ func backupSelectionResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ConditionKey "condition_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConditionType "condition_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConditionValue "condition_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/backup/backup_vault_resource_gen.go b/internal/aws/backup/backup_vault_resource_gen.go index ae1965af97..a119429b47 100644 --- a/internal/aws/backup/backup_vault_resource_gen.go +++ b/internal/aws/backup/backup_vault_resource_gen.go @@ -13,6 +13,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -21,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -149,7 +151,14 @@ func backupVaultResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: MinRetentionDays "min_retention_days": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -187,14 +196,26 @@ func backupVaultResource(ctx context.Context) (resource.Resource, error) { // Property: BackupVaultEvents "backup_vault_events": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SNSTopicArn "sns_topic_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/backup/framework_resource_gen.go b/internal/aws/backup/framework_resource_gen.go index 7695f75c6c..51b55cb0f5 100644 --- a/internal/aws/backup/framework_resource_gen.go +++ b/internal/aws/backup/framework_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -173,11 +174,25 @@ func frameworkResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ParameterName "parameter_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParameterValue "parameter_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/backup/restore_testing_plan_resource_gen.go b/internal/aws/backup/restore_testing_plan_resource_gen.go index 683389eb05..7dc6596660 100644 --- a/internal/aws/backup/restore_testing_plan_resource_gen.go +++ b/internal/aws/backup/restore_testing_plan_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -255,18 +256,28 @@ func restoreTestingPlanResource(ctx context.Context) (resource.Resource, error) // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/backup/restore_testing_selection_resource_gen.go b/internal/aws/backup/restore_testing_selection_resource_gen.go index 4ef2358da6..8805d9d308 100644 --- a/internal/aws/backup/restore_testing_selection_resource_gen.go +++ b/internal/aws/backup/restore_testing_selection_resource_gen.go @@ -16,9 +16,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -114,11 +116,25 @@ func restoreTestingSelectionResource(ctx context.Context) (resource.Resource, er Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -135,11 +151,25 @@ func restoreTestingSelectionResource(ctx context.Context) (resource.Resource, er Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/backupgateway/hypervisor_resource_gen.go b/internal/aws/backupgateway/hypervisor_resource_gen.go index 3ce5f6b14b..05c738d04c 100644 --- a/internal/aws/backupgateway/hypervisor_resource_gen.go +++ b/internal/aws/backupgateway/hypervisor_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -181,19 +182,29 @@ func hypervisorResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[^\\x00]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/batch/compute_environment_resource_gen.go b/internal/aws/batch/compute_environment_resource_gen.go index f266e87920..115970a608 100644 --- a/internal/aws/batch/compute_environment_resource_gen.go +++ b/internal/aws/batch/compute_environment_resource_gen.go @@ -20,9 +20,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -230,7 +232,14 @@ func computeEnvironmentResource(ctx context.Context) (resource.Resource, error) }, /*END ATTRIBUTE*/ // Property: ImageType "image_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -311,7 +320,14 @@ func computeEnvironmentResource(ctx context.Context) (resource.Resource, error) }, /*END ATTRIBUTE*/ // Property: MaxvCpus "maxv_cpus": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinvCpus "minv_cpus": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -351,9 +367,14 @@ func computeEnvironmentResource(ctx context.Context) (resource.Resource, error) // Property: Subnets "subnets": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Tags @@ -369,7 +390,14 @@ func computeEnvironmentResource(ctx context.Context) (resource.Resource, error) }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: UpdateToLatestImageVersion "update_to_latest_image_version": schema.BoolAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/batch/job_queue_resource_gen.go b/internal/aws/batch/job_queue_resource_gen.go index c819bc8e9b..420d035ebb 100644 --- a/internal/aws/batch/job_queue_resource_gen.go +++ b/internal/aws/batch/job_queue_resource_gen.go @@ -12,6 +12,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -20,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -146,32 +148,54 @@ func jobQueueResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Action "action": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "CANCEL", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaxTimeSeconds "max_time_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(600, 86400), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Reason "reason": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: State "state": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "RUNNABLE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/bedrock/agent_alias_resource_gen.go b/internal/aws/bedrock/agent_alias_resource_gen.go index 0cac505ff5..9a92993938 100644 --- a/internal/aws/bedrock/agent_alias_resource_gen.go +++ b/internal/aws/bedrock/agent_alias_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -270,11 +271,16 @@ func agentAliasResource(ctx context.Context) (resource.Resource, error) { // Property: AgentVersion "agent_version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Agent Version.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 5), stringvalidator.RegexMatches(regexp.MustCompile("^(DRAFT|[0-9]{0,4}[1-9][0-9]{0,4})$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/bedrock/agent_resource_gen.go b/internal/aws/bedrock/agent_resource_gen.go index b54aa88f2a..a24a388262 100644 --- a/internal/aws/bedrock/agent_resource_gen.go +++ b/internal/aws/bedrock/agent_resource_gen.go @@ -27,6 +27,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -254,10 +255,15 @@ func agentResource(ctx context.Context) (resource.Resource, error) { // Property: ActionGroupName "action_group_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Name of the action group", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^([0-9a-zA-Z][_-]?){1,100}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ActionGroupState "action_group_state": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -365,10 +371,15 @@ func agentResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Name for a resource.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^([0-9a-zA-Z][_-]?){1,100}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Parameters "parameters": // Pattern: "" @@ -426,9 +437,14 @@ func agentResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "List of Function definitions", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -839,18 +855,28 @@ func agentResource(ctx context.Context) (resource.Resource, error) { // Property: Description "description": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Description of the Resource.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 200), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KnowledgeBaseId "knowledge_base_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Identifier for a resource.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-zA-Z]{10}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KnowledgeBaseState "knowledge_base_state": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1175,12 +1201,15 @@ func agentResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "List of BasePromptConfiguration", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(10), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/bedrock/data_source_resource_gen.go b/internal/aws/bedrock/data_source_resource_gen.go index 4cd680f992..9ec41b4718 100644 --- a/internal/aws/bedrock/data_source_resource_gen.go +++ b/internal/aws/bedrock/data_source_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -716,18 +717,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: ObjectType "object_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The supported object type or content type of the data source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Contains information", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 25), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration of specific filters applied to your data source content. You can filter out or include certain content.", @@ -740,12 +751,17 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The crawl filter type.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PATTERN", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The type of filtering that you want to apply to certain objects or content of the data source. For example, the PATTERN type is regular expression patterns you can apply to filter your content.", @@ -769,44 +785,71 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: AuthType "auth_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The supported authentication type to authenticate and connect to your Confluence instance.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "BASIC", "OAUTH2_CLIENT_CREDENTIALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CredentialsSecretArn "credentials_secret_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name of an AWS Secrets Manager secret that stores your authentication credentials for your Confluence instance URL. For more information on the key-value pairs that must be included in your secret, depending on your authentication type, see Confluence connection configuration.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(|-cn|-us-gov):secretsmanager:[a-z0-9-]{1,20}:([0-9]{12}|):secret:[a-zA-Z0-9!/_+=.@-]{1,512}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HostType "host_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The supported host type, whether online/cloud or server/on-premises.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "SAAS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HostUrl "host_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Confluence host URL or instance URL.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^https://[A-Za-z0-9][^\\s]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The endpoint information to connect to your Confluence data source.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration information to connect to Confluence as your data source.", @@ -822,11 +865,16 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: BucketArn "bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the bucket that contains the data source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(|-cn|-us-gov):s3:::[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BucketOwnerAccountId "bucket_owner_account_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -919,18 +967,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: ObjectType "object_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The supported object type or content type of the data source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Contains information", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 25), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration of specific filters applied to your data source content. You can filter out or include certain content.", @@ -943,12 +1001,17 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The crawl filter type.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PATTERN", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The type of filtering that you want to apply to certain objects or content of the data source. For example, the PATTERN type is regular expression patterns you can apply to filter your content.", @@ -972,33 +1035,55 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: AuthType "auth_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The supported authentication type to authenticate and connect to your Salesforce instance.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "OAUTH2_CLIENT_CREDENTIALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CredentialsSecretArn "credentials_secret_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name of an AWS Secrets Manager secret that stores your authentication credentials for your Salesforce instance URL. For more information on the key-value pairs that must be included in your secret, depending on your authentication type, see Salesforce connection configuration.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(|-cn|-us-gov):secretsmanager:[a-z0-9-]{1,20}:([0-9]{12}|):secret:[a-zA-Z0-9!/_+=.@-]{1,512}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HostUrl "host_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Salesforce host URL or instance URL.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^https://[A-Za-z0-9][^\\s]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The endpoint information to connect to your Salesforce data source.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration information to connect to Salesforce as your data source.", @@ -1061,18 +1146,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: ObjectType "object_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The supported object type or content type of the data source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Contains information", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 25), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration of specific filters applied to your data source content. You can filter out or include certain content.", @@ -1085,12 +1180,17 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The crawl filter type.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PATTERN", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The type of filtering that you want to apply to certain objects or content of the data source. For example, the PATTERN type is regular expression patterns you can apply to filter your content.", @@ -1114,52 +1214,75 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: AuthType "auth_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The supported authentication type to authenticate and connect to your SharePoint site/sites.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "OAUTH2_CLIENT_CREDENTIALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CredentialsSecretArn "credentials_secret_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name of an AWS Secrets Manager secret that stores your authentication credentials for your SharePoint site/sites. For more information on the key-value pairs that must be included in your secret, depending on your authentication type, see SharePoint connection configuration.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(|-cn|-us-gov):secretsmanager:[a-z0-9-]{1,20}:([0-9]{12}|):secret:[a-zA-Z0-9!/_+=.@-]{1,512}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Domain "domain": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The domain of your SharePoint instance or site URL/URLs.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HostType "host_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The supported host type, whether online/cloud or server/on-premises.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ONLINE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SiteUrls "site_urls": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "A list of one or more SharePoint site URLs.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 100), listvalidator.ValueStringsAre( stringvalidator.RegexMatches(regexp.MustCompile("^https://[A-Za-z0-9][^\\s]*$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TenantId @@ -1176,7 +1299,14 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The endpoint information to connect to your SharePoint data source.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration information to connect to SharePoint as your data source.", @@ -1302,29 +1432,51 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Url "url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A web url.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^https?://[A-Za-z0-9][^\\s]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of web urls.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 100), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A url configuration.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A web source configuration.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configures a web data source location.", @@ -1770,7 +1922,8 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: ChunkingStrategy "chunking_strategy": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Knowledge base can split your source data into chunks. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried. You have the following options for chunking your data. If you opt for NONE, then you may want to pre-process your files by splitting them up such that each file corresponds to a chunk.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "FIXED_SIZE", @@ -1778,7 +1931,11 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { "HIERARCHICAL", "SEMANTIC", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FixedSizeChunkingConfiguration "fixed_size_chunking_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1786,18 +1943,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: MaxTokens "max_tokens": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum number of tokens to include in a chunk.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OverlapPercentage "overlap_percentage": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The percentage of overlap between adjacent chunks of a data source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 99), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configurations for when you choose fixed-size chunking. If you set the chunkingStrategy as NONE, exclude this field.", @@ -1817,29 +1984,42 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: MaxTokens "max_tokens": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum number of tokens that a chunk can contain in this layer.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 8192), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Token settings for each layer.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(2, 2), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OverlapTokens "overlap_tokens": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of tokens to repeat across chunks in the same layer.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configurations for when you choose hierarchical chunking. If you set the chunkingStrategy as NONE, exclude this field.", @@ -1855,26 +2035,41 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: BreakpointPercentileThreshold "breakpoint_percentile_threshold": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The dissimilarity threshold for splitting chunks.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(50, 99), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BufferSize "buffer_size": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The buffer size.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaxTokens "max_tokens": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum number of tokens that a chunk can contain.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configurations for when you choose semantic chunking. If you set the chunkingStrategy as NONE, exclude this field.", @@ -1905,19 +2100,38 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: URI "uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location's URI", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^s3://.{1,128}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "An Amazon S3 location.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A location for storing content from data sources temporarily as it is processed by custom components in the ingestion pipeline.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Transformations "transformations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1926,12 +2140,17 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: StepToApply "step_to_apply": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "When the service applies the transformation.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "POST_CHUNKING", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TransformationFunction "transformation_function": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1942,29 +2161,51 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: LambdaArn "lambda_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The function's ARN identifier.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_\\.]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A Lambda function that processes documents.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A Lambda function that processes documents.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of Lambda functions that process documents.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 1), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1984,11 +2225,16 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: ModelArn "model_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The model's ARN.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}::foundation-model/([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2})$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParsingPrompt "parsing_prompt": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1996,10 +2242,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: ParsingPromptText "parsing_prompt_text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Instructions for interpreting the contents of a document.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 10000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Instructions for interpreting the contents of a document.", @@ -2020,12 +2271,17 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: ParsingStrategy "parsing_strategy": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The parsing strategy for the data source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "BEDROCK_FOUNDATION_MODEL", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Settings for parsing document contents", diff --git a/internal/aws/bedrock/guardrail_resource_gen.go b/internal/aws/bedrock/guardrail_resource_gen.go index f283ba0f38..29202adb0f 100644 --- a/internal/aws/bedrock/guardrail_resource_gen.go +++ b/internal/aws/bedrock/guardrail_resource_gen.go @@ -15,6 +15,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -23,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -137,7 +139,8 @@ func guardrailResource(ctx context.Context) (resource.Resource, error) { // Property: InputStrength "input_strength": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Strength for filters", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "NONE", @@ -145,12 +148,17 @@ func guardrailResource(ctx context.Context) (resource.Resource, error) { "MEDIUM", "HIGH", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OutputStrength "output_strength": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Strength for filters", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "NONE", @@ -158,12 +166,17 @@ func guardrailResource(ctx context.Context) (resource.Resource, error) { "MEDIUM", "HIGH", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Type of filter in content policy", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "SEXUAL", @@ -173,15 +186,24 @@ func guardrailResource(ctx context.Context) (resource.Resource, error) { "MISCONDUCT", "PROMPT_ATTACK", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "List of content filter configs in content policy.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 6), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Content policy config for a guardrail.", @@ -242,29 +264,44 @@ func guardrailResource(ctx context.Context) (resource.Resource, error) { // Property: Threshold "threshold": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The threshold for this filter.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.AtLeast(0.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Type of contextual grounding filter", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "GROUNDING", "RELEVANCE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "List of contextual grounding filter configs.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Contextual grounding policy config for a guardrail.", @@ -527,18 +564,24 @@ func guardrailResource(ctx context.Context) (resource.Resource, error) { // Property: Action "action": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Options for sensitive information action.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "BLOCK", "ANONYMIZE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The currently supported PII entities", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ADDRESS", @@ -573,7 +616,11 @@ func guardrailResource(ctx context.Context) (resource.Resource, error) { "US_SOCIAL_SECURITY_NUMBER", "VEHICLE_IDENTIFICATION_NUMBER", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -595,13 +642,18 @@ func guardrailResource(ctx context.Context) (resource.Resource, error) { // Property: Action "action": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Options for sensitive information action.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "BLOCK", "ANONYMIZE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Description "description": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -618,18 +670,28 @@ func guardrailResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The regex name.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Pattern "pattern": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The regex pattern.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -735,20 +797,30 @@ func guardrailResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Tag Key", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s._:/=+@-]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Tag Value", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s._:/=+@-]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -832,10 +904,15 @@ func guardrailResource(ctx context.Context) (resource.Resource, error) { // Property: Definition "definition": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Definition of topic in topic policy", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 200), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Examples "examples": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -856,29 +933,44 @@ func guardrailResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Name of topic in topic policy", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-zA-Z-_ !?.]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Type of topic in a policy", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DENY", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "List of topic configs in topic policy.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Topic policy config for a guardrail.", @@ -979,12 +1071,17 @@ func guardrailResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Options for managed words.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PROFANITY", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1002,10 +1099,15 @@ func guardrailResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The custom word text.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/bedrock/knowledge_base_resource_gen.go b/internal/aws/bedrock/knowledge_base_resource_gen.go index ca9f883865..737eca7181 100644 --- a/internal/aws/bedrock/knowledge_base_resource_gen.go +++ b/internal/aws/bedrock/knowledge_base_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -615,37 +616,57 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { // Property: CollectionName "collection_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Name of the collection within MongoDB Atlas.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CredentialsSecretArn "credentials_secret_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the secret that you created in AWS Secrets Manager that is linked to your Amazon Mongo database.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(|-cn|-us-gov):secretsmanager:[a-z0-9-]{1,20}:([0-9]{12}|):secret:[a-zA-Z0-9!/_+=.@-]{1,512}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Name of the database within MongoDB Atlas.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Endpoint "endpoint": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "MongoDB Atlas endpoint.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(2048), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_-]+\\.[a-zA-Z0-9_-]+\\.mongodb\\.net$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EndpointServiceName "endpoint_service_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -666,42 +687,69 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { // Property: MetadataField "metadata_field": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the field in which Amazon Bedrock stores metadata about the vector store.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(2048), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TextField "text_field": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(2048), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VectorField "vector_field": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(2048), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Contains the names of the fields to which to map information about the vector store.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VectorIndexName "vector_index_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Name of a MongoDB Atlas index.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(2048), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Contains the storage configuration of the knowledge base in MongoDb Atlas Cloud.", @@ -717,11 +765,16 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { // Property: CollectionArn "collection_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the OpenSearch Service vector store.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws:aoss:[a-z]{2}(-gov)?-[a-z]+-\\d{1}:\\d{12}:collection/[a-z0-9-]{3,32}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FieldMapping "field_mapping": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -729,42 +782,69 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { // Property: MetadataField "metadata_field": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the field in which Amazon Bedrock stores metadata about the vector store.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(2048), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TextField "text_field": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(2048), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VectorField "vector_field": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(2048), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A mapping of Bedrock Knowledge Base fields to OpenSearch Serverless field names", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VectorIndexName "vector_index_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the vector store.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(2048), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Contains the storage configuration of the knowledge base in Amazon OpenSearch Service.", @@ -780,19 +860,29 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { // Property: ConnectionString "connection_string": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The endpoint URL for your index management page.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(2048), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CredentialsSecretArn "credentials_secret_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the secret that you created in AWS Secrets Manager that is linked to your Pinecone API key.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(|-cn|-us-gov):secretsmanager:[a-z0-9-]{1,20}:([0-9]{12}|):secret:[a-zA-Z0-9!/_+=.@-]{1,512}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FieldMapping "field_mapping": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -800,24 +890,41 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { // Property: MetadataField "metadata_field": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the field in which Amazon Bedrock stores metadata about the vector store.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(2048), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TextField "text_field": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(2048), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Contains the names of the fields to which to map information about the vector store.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Namespace "namespace": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -846,19 +953,29 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { // Property: CredentialsSecretArn "credentials_secret_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the secret that you created in AWS Secrets Manager that is linked to your Amazon RDS database.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(|-cn|-us-gov):secretsmanager:[a-z0-9-]{1,20}:([0-9]{12}|):secret:[a-zA-Z0-9!/_+=.@-]{1,512}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of your Amazon RDS database.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_\\-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FieldMapping "field_mapping": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -866,59 +983,96 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { // Property: MetadataField "metadata_field": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the field in which Amazon Bedrock stores metadata about the vector store.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_\\-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PrimaryKeyField "primary_key_field": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the field in which Amazon Bedrock stores the ID for each entry.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_\\-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TextField "text_field": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_\\-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VectorField "vector_field": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_\\-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Contains the names of the fields to which to map information about the vector store.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceArn "resource_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the vector store.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(|-cn|-us-gov):rds:[a-zA-Z0-9-]*:[0-9]{12}:cluster:[a-zA-Z0-9-]{1,63}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the table in the database.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_\\.\\-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Contains details about the storage configuration of the knowledge base in Amazon RDS. For more information, see Create a vector index in Amazon RDS.", diff --git a/internal/aws/bedrock/prompt_resource_gen.go b/internal/aws/bedrock/prompt_resource_gen.go index 88cd88261e..ca0480b352 100644 --- a/internal/aws/bedrock/prompt_resource_gen.go +++ b/internal/aws/bedrock/prompt_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -459,10 +460,15 @@ func promptResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Name for a variant.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^([0-9a-zA-Z][_-]?){1,100}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TemplateConfiguration "template_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -516,19 +522,29 @@ func promptResource(ctx context.Context) (resource.Resource, error) { // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A bucket in S3", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A object key in S3", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Version "version": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -569,12 +585,17 @@ func promptResource(ctx context.Context) (resource.Resource, error) { // Property: TemplateType "template_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Prompt template type", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "TEXT", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/billingconductor/billing_group_resource_gen.go b/internal/aws/billingconductor/billing_group_resource_gen.go index 461414f033..fedfbd70d9 100644 --- a/internal/aws/billingconductor/billing_group_resource_gen.go +++ b/internal/aws/billingconductor/billing_group_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -280,17 +281,27 @@ func billingGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/billingconductor/custom_line_item_resource_gen.go b/internal/aws/billingconductor/custom_line_item_resource_gen.go index 0d8e8f7fb6..5699f0411a 100644 --- a/internal/aws/billingconductor/custom_line_item_resource_gen.go +++ b/internal/aws/billingconductor/custom_line_item_resource_gen.go @@ -14,6 +14,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -23,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -282,10 +284,15 @@ func customLineItemResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ChargeValue "charge_value": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(0.000000, 1000000.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -300,33 +307,48 @@ func customLineItemResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Attribute "attribute": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "LINE_ITEM_TYPE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MatchOption "match_option": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "NOT_EQUAL", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.SetAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.ValueStringsAre( stringvalidator.OneOf( "SAVINGS_PLAN_NEGATION", ), ), + fwvalidators.NotNullSet(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -355,10 +377,15 @@ func customLineItemResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: PercentageValue "percentage_value": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(0.000000, 10000.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -369,15 +396,18 @@ func customLineItemResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "FEE", "CREDIT", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.RequiresReplace(), + stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -481,17 +511,27 @@ func customLineItemResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/billingconductor/pricing_plan_resource_gen.go b/internal/aws/billingconductor/pricing_plan_resource_gen.go index 65365c5e75..d8d64d0a0e 100644 --- a/internal/aws/billingconductor/pricing_plan_resource_gen.go +++ b/internal/aws/billingconductor/pricing_plan_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -181,17 +182,27 @@ func pricingPlanResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/billingconductor/pricing_rule_resource_gen.go b/internal/aws/billingconductor/pricing_rule_resource_gen.go index a69efca7dd..087972425c 100644 --- a/internal/aws/billingconductor/pricing_rule_resource_gen.go +++ b/internal/aws/billingconductor/pricing_rule_resource_gen.go @@ -13,6 +13,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" @@ -22,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -281,17 +283,27 @@ func pricingRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -331,7 +343,14 @@ func pricingRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Activated "activated": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The possible customizable free tier configurations.", diff --git a/internal/aws/budgets/budgets_action_resource_gen.go b/internal/aws/budgets/budgets_action_resource_gen.go index d6ae291a21..efdf8b2d87 100644 --- a/internal/aws/budgets/budgets_action_resource_gen.go +++ b/internal/aws/budgets/budgets_action_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -257,7 +258,14 @@ func budgetsActionResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: PolicyArn "policy_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Roles "roles": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -295,15 +303,27 @@ func budgetsActionResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: PolicyId "policy_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TargetIds "target_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 100), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -318,24 +338,41 @@ func budgetsActionResource(ctx context.Context) (resource.Resource, error) { // Property: InstanceIds "instance_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 100), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Region "region": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Subtype "subtype": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "STOP_EC2_INSTANCES", "STOP_RDS_INSTANCES", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -402,11 +439,25 @@ func budgetsActionResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cassandra/keyspace_resource_gen.go b/internal/aws/cassandra/keyspace_resource_gen.go index 69485f19e7..9ba99829be 100644 --- a/internal/aws/cassandra/keyspace_resource_gen.go +++ b/internal/aws/cassandra/keyspace_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -195,17 +196,27 @@ func keyspaceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cassandra/table_resource_gen.go b/internal/aws/cassandra/table_resource_gen.go index 7209b99e1c..e56ef657fb 100644 --- a/internal/aws/cassandra/table_resource_gen.go +++ b/internal/aws/cassandra/table_resource_gen.go @@ -27,6 +27,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -220,7 +221,14 @@ func tableResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TargetValue "target_value": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents configuration for target tracking scaling policy.", @@ -315,7 +323,14 @@ func tableResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TargetValue "target_value": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents configuration for target tracking scaling policy.", @@ -413,17 +428,27 @@ func tableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ReadCapacityUnits "read_capacity_units": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WriteCapacityUnits "write_capacity_units": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Throughput for the specified table, which consists of values for ReadCapacityUnits and WriteCapacityUnits", @@ -507,17 +532,36 @@ func tableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ColumnName "column_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9][a-zA-Z0-9_]{1,47}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ColumnType "column_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OrderBy "order_by": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -744,14 +788,26 @@ func tableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ColumnName "column_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9][a-zA-Z0-9_]{1,47}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ColumnType "column_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -912,7 +968,14 @@ func tableResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TargetValue "target_value": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents configuration for target tracking scaling policy.", @@ -948,10 +1011,15 @@ func tableResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Region "region": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(2, 25), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1022,17 +1090,27 @@ func tableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ce/anomaly_monitor_resource_gen.go b/internal/aws/ce/anomaly_monitor_resource_gen.go index 8099ba343f..71e59e38b6 100644 --- a/internal/aws/ce/anomaly_monitor_resource_gen.go +++ b/internal/aws/ce/anomaly_monitor_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -229,18 +230,28 @@ func anomalyMonitorResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name for the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ce/anomaly_subscription_resource_gen.go b/internal/aws/ce/anomaly_subscription_resource_gen.go index e833423dc0..d0db4bdcae 100644 --- a/internal/aws/ce/anomaly_subscription_resource_gen.go +++ b/internal/aws/ce/anomaly_subscription_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -137,18 +138,28 @@ func anomalySubscriptionResource(ctx context.Context) (resource.Resource, error) // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name for the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/chatbot/microsoft_teams_channel_configuration_resource_gen.go b/internal/aws/chatbot/microsoft_teams_channel_configuration_resource_gen.go index 0c4a299d94..320f4562bf 100644 --- a/internal/aws/chatbot/microsoft_teams_channel_configuration_resource_gen.go +++ b/internal/aws/chatbot/microsoft_teams_channel_configuration_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -175,11 +176,25 @@ func microsoftTeamsChannelConfigurationResource(ctx context.Context) (resource.R Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/chatbot/slack_channel_configuration_resource_gen.go b/internal/aws/chatbot/slack_channel_configuration_resource_gen.go index 75bfd24864..4299899102 100644 --- a/internal/aws/chatbot/slack_channel_configuration_resource_gen.go +++ b/internal/aws/chatbot/slack_channel_configuration_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -214,11 +215,25 @@ func slackChannelConfigurationResource(ctx context.Context) (resource.Resource, Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cleanrooms/analysis_template_resource_gen.go b/internal/aws/cleanrooms/analysis_template_resource_gen.go index dbd5e882dc..b784e2e77b 100644 --- a/internal/aws/cleanrooms/analysis_template_resource_gen.go +++ b/internal/aws/cleanrooms/analysis_template_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -99,18 +100,22 @@ func analysisTemplateResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-zA-Z_]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.RequiresReplace(), + stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "SMALLINT", @@ -129,9 +134,11 @@ func analysisTemplateResource(ctx context.Context) (resource.Resource, error) { "TIMETZ", "VARBYTE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.RequiresReplace(), + stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -398,17 +405,27 @@ func analysisTemplateResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cleanrooms/collaboration_resource_gen.go b/internal/aws/cleanrooms/collaboration_resource_gen.go index 6fb03408f1..7185554d7a 100644 --- a/internal/aws/cleanrooms/collaboration_resource_gen.go +++ b/internal/aws/cleanrooms/collaboration_resource_gen.go @@ -14,6 +14,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -23,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -140,10 +142,24 @@ func collaborationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: IsResponsible "is_responsible": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -184,19 +200,47 @@ func collaborationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AllowCleartext "allow_cleartext": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AllowDuplicates "allow_duplicates": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AllowJoinsOnColumnsWithDifferentNames "allow_joins_on_columns_with_different_names": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PreserveNulls "preserve_nulls": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -325,10 +369,24 @@ func collaborationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: IsResponsible "is_responsible": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -419,17 +477,27 @@ func collaborationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cleanrooms/configured_table_association_resource_gen.go b/internal/aws/cleanrooms/configured_table_association_resource_gen.go index df423dbe19..845c354bd8 100644 --- a/internal/aws/cleanrooms/configured_table_association_resource_gen.go +++ b/internal/aws/cleanrooms/configured_table_association_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -305,21 +306,40 @@ func configuredTableAssociationResource(ctx context.Context) (resource.Resource, }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "AGGREGATION", "LIST", "CUSTOM", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -469,17 +489,27 @@ func configuredTableAssociationResource(ctx context.Context) (resource.Resource, Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cleanrooms/configured_table_resource_gen.go b/internal/aws/cleanrooms/configured_table_resource_gen.go index 7a50fa491c..7459c4ebcd 100644 --- a/internal/aws/cleanrooms/configured_table_resource_gen.go +++ b/internal/aws/cleanrooms/configured_table_resource_gen.go @@ -14,6 +14,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -23,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -445,21 +447,25 @@ func configuredTableResource(ctx context.Context) (resource.Resource, error) { // Property: ColumnNames "column_names": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 127), stringvalidator.RegexMatches(regexp.MustCompile("^[a-z0-9_](([a-z0-9_ ]+-)*([a-z0-9_ ]+))?$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Function "function": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "SUM", @@ -468,16 +474,23 @@ func configuredTableResource(ctx context.Context) (resource.Resource, error) { "COUNT_DISTINCT", "AVG", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AllowedJoinOperators @@ -502,29 +515,35 @@ func configuredTableResource(ctx context.Context) (resource.Resource, error) { // Property: DimensionColumns "dimension_columns": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 127), stringvalidator.RegexMatches(regexp.MustCompile("^[a-z0-9_](([a-z0-9_ ]+-)*([a-z0-9_ ]+))?$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: JoinColumns "join_columns": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 127), stringvalidator.RegexMatches(regexp.MustCompile("^[a-z0-9_](([a-z0-9_ ]+-)*([a-z0-9_ ]+))?$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: JoinRequired @@ -546,42 +565,61 @@ func configuredTableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ColumnName "column_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), stringvalidator.RegexMatches(regexp.MustCompile("^[a-z0-9_](([a-z0-9_ ]+-)*([a-z0-9_ ]+))?$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Minimum "minimum": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(2.000000, 100000.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "COUNT_DISTINCT", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ScalarFunctions "scalar_functions": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.OneOf( @@ -611,9 +649,11 @@ func configuredTableResource(ctx context.Context) (resource.Resource, error) { "TRIM", ), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -644,16 +684,19 @@ func configuredTableResource(ctx context.Context) (resource.Resource, error) { // Property: AllowedAnalyses "allowed_analyses": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(0), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(0, 200), stringvalidator.RegexMatches(regexp.MustCompile("(ANY_QUERY|arn:[\\w]{3}:cleanrooms:[\\w]{2}-[\\w]{4,9}-[\\d]:[\\d]{12}:membership/[\\d\\w-]+/analysistemplate/[\\d\\w-]+)"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AllowedAnalysisProviders @@ -682,16 +725,26 @@ func configuredTableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -765,30 +818,36 @@ func configuredTableResource(ctx context.Context) (resource.Resource, error) { // Property: JoinColumns "join_columns": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 127), stringvalidator.RegexMatches(regexp.MustCompile("^[a-z0-9_](([a-z0-9_ ]+-)*([a-z0-9_ ]+))?$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ListColumns "list_columns": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 127), stringvalidator.RegexMatches(regexp.MustCompile("^[a-z0-9_](([a-z0-9_ ]+-)*([a-z0-9_ ]+))?$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -799,21 +858,40 @@ func configuredTableResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "AGGREGATION", "LIST", "CUSTOM", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -984,17 +1062,27 @@ func configuredTableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cleanrooms/id_mapping_table_resource_gen.go b/internal/aws/cleanrooms/id_mapping_table_resource_gen.go index 772d073eb6..53d767afab 100644 --- a/internal/aws/cleanrooms/id_mapping_table_resource_gen.go +++ b/internal/aws/cleanrooms/id_mapping_table_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -309,17 +310,27 @@ func idMappingTableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cleanrooms/membership_resource_gen.go b/internal/aws/cleanrooms/membership_resource_gen.go index c33cb3d86f..0204d53c41 100644 --- a/internal/aws/cleanrooms/membership_resource_gen.go +++ b/internal/aws/cleanrooms/membership_resource_gen.go @@ -12,6 +12,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" @@ -19,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -150,10 +152,15 @@ func membershipResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeyPrefix "key_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -165,19 +172,38 @@ func membershipResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: ResultFormat "result_format": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "CSV", "PARQUET", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -243,10 +269,24 @@ func membershipResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: IsResponsible "is_responsible": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -308,17 +348,27 @@ func membershipResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cleanrooms/privacy_budget_template_resource_gen.go b/internal/aws/cleanrooms/privacy_budget_template_resource_gen.go index 83afc5799c..529574367f 100644 --- a/internal/aws/cleanrooms/privacy_budget_template_resource_gen.go +++ b/internal/aws/cleanrooms/privacy_budget_template_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -234,17 +235,27 @@ func privacyBudgetTemplateResource(ctx context.Context) (resource.Resource, erro Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cleanroomsml/training_dataset_resource_gen.go b/internal/aws/cleanroomsml/training_dataset_resource_gen.go index 99b014dcb3..4333fb2fec 100644 --- a/internal/aws/cleanroomsml/training_dataset_resource_gen.go +++ b/internal/aws/cleanroomsml/training_dataset_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -136,17 +137,27 @@ func trainingDatasetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cloudformation/stack_resource_gen.go b/internal/aws/cloudformation/stack_resource_gen.go index 059c2b4d22..43d420d9ab 100644 --- a/internal/aws/cloudformation/stack_resource_gen.go +++ b/internal/aws/cloudformation/stack_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -409,11 +410,25 @@ func stackResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cloudformation/stack_set_resource_gen.go b/internal/aws/cloudformation/stack_set_resource_gen.go index c6ed94168c..fbf45a2fbf 100644 --- a/internal/aws/cloudformation/stack_set_resource_gen.go +++ b/internal/aws/cloudformation/stack_set_resource_gen.go @@ -26,6 +26,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -419,12 +420,26 @@ func stackSetResource(ctx context.Context) (resource.Resource, error) { // Property: ParameterKey "parameter_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key associated with the parameter. If you don't specify a key and value for a particular parameter, AWS CloudFormation uses the default value that is specified in your template.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParameterValue "parameter_value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The input value associated with the parameter.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -631,7 +646,14 @@ func stackSetResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: " The AWS OrganizationalUnitIds or Accounts for which to create stack instances in the specified Regions.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParameterOverrides "parameter_overrides": schema.SetNestedAttribute{ /*START ATTRIBUTE*/ @@ -640,12 +662,26 @@ func stackSetResource(ctx context.Context) (resource.Resource, error) { // Property: ParameterKey "parameter_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key associated with the parameter. If you don't specify a key and value for a particular parameter, AWS CloudFormation uses the default value that is specified in your template.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParameterValue "parameter_value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The input value associated with the parameter.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -660,13 +696,18 @@ func stackSetResource(ctx context.Context) (resource.Resource, error) { "regions": schema.SetAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The names of one or more Regions where you want to create stack instances using the specified AWS account(s).", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeAtLeast(1), setvalidator.ValueStringsAre( stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9-]{1,128}$"), ""), ), + fwvalidators.NotNullSet(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -752,18 +793,28 @@ func stackSetResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string used to identify this tag. You can specify a maximum of 127 characters for a tag key.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cloudfront/continuous_deployment_policy_resource_gen.go b/internal/aws/cloudfront/continuous_deployment_policy_resource_gen.go index 4b5456aa88..9142ca22fc 100644 --- a/internal/aws/cloudfront/continuous_deployment_policy_resource_gen.go +++ b/internal/aws/cloudfront/continuous_deployment_policy_resource_gen.go @@ -14,6 +14,8 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" @@ -21,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -198,17 +201,27 @@ func continuousDeploymentPolicyResource(ctx context.Context) (resource.Resource, Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Header "header": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1783), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -225,17 +238,27 @@ func continuousDeploymentPolicyResource(ctx context.Context) (resource.Resource, Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: IdleTTL "idle_ttl": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(300, 3600), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaximumTTL "maximum_ttl": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(300, 3600), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -246,10 +269,15 @@ func continuousDeploymentPolicyResource(ctx context.Context) (resource.Resource, }, /*END ATTRIBUTE*/ // Property: Weight "weight": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(0.000000, 1.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -275,17 +303,27 @@ func continuousDeploymentPolicyResource(ctx context.Context) (resource.Resource, Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Header "header": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1783), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -302,17 +340,27 @@ func continuousDeploymentPolicyResource(ctx context.Context) (resource.Resource, Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: IdleTTL "idle_ttl": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(300, 3600), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaximumTTL "maximum_ttl": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(300, 3600), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -323,10 +371,15 @@ func continuousDeploymentPolicyResource(ctx context.Context) (resource.Resource, }, /*END ATTRIBUTE*/ // Property: Weight "weight": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(0.000000, 1.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -337,13 +390,18 @@ func continuousDeploymentPolicyResource(ctx context.Context) (resource.Resource, }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "SingleWeight", "SingleHeader", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/cloudfront/distribution_resource_gen.go b/internal/aws/cloudfront/distribution_resource_gen.go index 73dc15664c..4ee92fc886 100644 --- a/internal/aws/cloudfront/distribution_resource_gen.go +++ b/internal/aws/cloudfront/distribution_resource_gen.go @@ -21,10 +21,12 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/defaults" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -1051,7 +1053,14 @@ func distributionResource(ctx context.Context) (resource.Resource, error) { // Property: Forward "forward": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.\n If you want to include cookies in the cache key, use a cache policy. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) in the *Amazon CloudFront Developer Guide*.\n If you want to send cookies to the origin but not include them in the cache key, use origin request policy. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) in the *Amazon CloudFront Developer Guide*.\n Specifies which cookies to forward to the origin for this cache behavior: all, none, or the list of cookies specified in the ``WhitelistedNames`` complex type.\n Amazon S3 doesn't process cookies. When the cache behavior is forwarding requests to an Amazon S3 origin, specify none for the ``Forward`` element.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WhitelistedNames "whitelisted_names": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -1087,7 +1096,14 @@ func distributionResource(ctx context.Context) (resource.Resource, error) { // Property: QueryString "query_string": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.\n If you want to include query strings in the cache key, use a cache policy. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) in the *Amazon CloudFront Developer Guide*.\n If you want to send query strings to the origin but not include them in the cache key, use an origin request policy. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) in the *Amazon CloudFront Developer Guide*.\n Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior and cache based on the query string parameters. CloudFront behavior depends on the value of ``QueryString`` and on the values that you specify for ``QueryStringCacheKeys``, if any:\n If you specify true for ``QueryString`` and you don't specify any values for ``QueryStringCacheKeys``, CloudFront forwards all query string parameters to the origin and caches based on all query string parameters. Depending on how many query string parameters and values you have, this can adversely affect performance because CloudFront must forward more requests to the origin.\n If you specify true for ``QueryString`` and you specify one or more values for ``QueryStringCacheKeys``, CloudFront forwards all query string parameters to the origin, but it only caches based on the query string parameters that you specify.\n If you specify false for ``QueryString``, CloudFront doesn't forward any query string parameters to the origin, and doesn't cache based on query string parameters.\n For more information, see [Configuring CloudFront to Cache Based on Query String Parameters](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/QueryStringParameters.html) in the *Amazon CloudFront Developer Guide*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: QueryStringCacheKeys "query_string_cache_keys": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -1210,7 +1226,14 @@ func distributionResource(ctx context.Context) (resource.Resource, error) { // Property: PathPattern "path_pattern": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The pattern (for example, ``images/*.jpg``) that specifies which requests to apply the behavior to. When CloudFront receives a viewer request, the requested path is compared with path patterns in the order in which cache behaviors are listed in the distribution.\n You can optionally include a slash (``/``) at the beginning of the path pattern. For example, ``/images/*.jpg``. CloudFront behavior is the same with or without the leading ``/``.\n The path pattern for the default cache behavior is ``*`` and cannot be changed. If the request for an object does not match the path pattern for any cache behaviors, CloudFront applies the behavior in the default cache behavior.\n For more information, see [Path Pattern](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesPathPattern) in the *Amazon CloudFront Developer Guide*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RealtimeLogConfigArn "realtime_log_config_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1243,7 +1266,14 @@ func distributionResource(ctx context.Context) (resource.Resource, error) { // Property: TargetOriginId "target_origin_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of ``ID`` for the origin that you want CloudFront to route requests to when they match this cache behavior.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TrustedKeyGroups "trusted_key_groups": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -1268,7 +1298,14 @@ func distributionResource(ctx context.Context) (resource.Resource, error) { // Property: ViewerProtocolPolicy "viewer_protocol_policy": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The protocol that viewers can use to access the files in the origin specified by ``TargetOriginId`` when a request matches the path pattern in ``PathPattern``. You can specify the following options:\n + ``allow-all``: Viewers can use HTTP or HTTPS.\n + ``redirect-to-https``: If a viewer submits an HTTP request, CloudFront returns an HTTP status code of 301 (Moved Permanently) to the viewer along with the HTTPS URL. The viewer then resubmits the request using the new URL.\n + ``https-only``: If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden).\n \n For more information about requiring the HTTPS protocol, see [Requiring HTTPS Between Viewers and CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-viewers-to-cloudfront.html) in the *Amazon CloudFront Developer Guide*.\n The only way to guarantee that viewers retrieve an object that was fetched from the origin using HTTPS is never to use any other protocol to fetch the object. If you have recently changed from HTTP to HTTPS, we recommend that you clear your objects' cache because cached objects are protocol agnostic. That means that an edge location will return an object from the cache regardless of whether the current request protocol matches the protocol used previously. For more information, see [Managing Cache Expiration](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html) in the *Amazon CloudFront Developer Guide*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1315,7 +1352,14 @@ func distributionResource(ctx context.Context) (resource.Resource, error) { // Property: ErrorCode "error_code": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The HTTP status code for which you want to specify a custom error page and/or a caching duration.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResponseCode "response_code": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -1350,7 +1394,14 @@ func distributionResource(ctx context.Context) (resource.Resource, error) { // Property: DNSName "dns_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HTTPPort "http_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -1375,13 +1426,27 @@ func distributionResource(ctx context.Context) (resource.Resource, error) { // Property: OriginProtocolPolicy "origin_protocol_policy": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OriginSSLProtocols "origin_ssl_protocols": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "", @@ -1471,7 +1536,14 @@ func distributionResource(ctx context.Context) (resource.Resource, error) { // Property: Forward "forward": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.\n If you want to include cookies in the cache key, use a cache policy. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) in the *Amazon CloudFront Developer Guide*.\n If you want to send cookies to the origin but not include them in the cache key, use origin request policy. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) in the *Amazon CloudFront Developer Guide*.\n Specifies which cookies to forward to the origin for this cache behavior: all, none, or the list of cookies specified in the ``WhitelistedNames`` complex type.\n Amazon S3 doesn't process cookies. When the cache behavior is forwarding requests to an Amazon S3 origin, specify none for the ``Forward`` element.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WhitelistedNames "whitelisted_names": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -1507,7 +1579,14 @@ func distributionResource(ctx context.Context) (resource.Resource, error) { // Property: QueryString "query_string": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.\n If you want to include query strings in the cache key, use a cache policy. For more information, see [Creating cache policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy) in the *Amazon CloudFront Developer Guide*.\n If you want to send query strings to the origin but not include them in the cache key, use an origin request policy. For more information, see [Creating origin request policies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy) in the *Amazon CloudFront Developer Guide*.\n Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior and cache based on the query string parameters. CloudFront behavior depends on the value of ``QueryString`` and on the values that you specify for ``QueryStringCacheKeys``, if any:\n If you specify true for ``QueryString`` and you don't specify any values for ``QueryStringCacheKeys``, CloudFront forwards all query string parameters to the origin and caches based on all query string parameters. Depending on how many query string parameters and values you have, this can adversely affect performance because CloudFront must forward more requests to the origin.\n If you specify true for ``QueryString`` and you specify one or more values for ``QueryStringCacheKeys``, CloudFront forwards all query string parameters to the origin, but it only caches based on the query string parameters that you specify.\n If you specify false for ``QueryString``, CloudFront doesn't forward any query string parameters to the origin, and doesn't cache based on query string parameters.\n For more information, see [Configuring CloudFront to Cache Based on Query String Parameters](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/QueryStringParameters.html) in the *Amazon CloudFront Developer Guide*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: QueryStringCacheKeys "query_string_cache_keys": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -1732,7 +1811,14 @@ func distributionResource(ctx context.Context) (resource.Resource, error) { // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 bucket to store the access logs in, for example, ``myawslogbucket.s3.amazonaws.com``.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IncludeCookies "include_cookies": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -1779,25 +1865,60 @@ func distributionResource(ctx context.Context) (resource.Resource, error) { "items": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.Int64Type, Description: "The items (status codes) for an origin group.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Quantity "quantity": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of status codes.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The status codes that, when returned from the primary origin, will trigger CloudFront to failover to the second origin.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A complex type that contains information about the failover criteria for an origin group.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The origin group's ID.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Members "members": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1809,21 +1930,49 @@ func distributionResource(ctx context.Context) (resource.Resource, error) { // Property: OriginId "origin_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID for an origin in an origin group.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Items (origins) in an origin group.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Quantity "quantity": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of origins in an origin group.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A complex type that contains information about the origins in an origin group.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1837,7 +1986,14 @@ func distributionResource(ctx context.Context) (resource.Resource, error) { // Property: Quantity "quantity": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of origin groups.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A complex type that contains information about origin groups for this distribution.", @@ -1905,7 +2061,14 @@ func distributionResource(ctx context.Context) (resource.Resource, error) { // Property: OriginProtocolPolicy "origin_protocol_policy": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values are:\n + ``http-only`` ? CloudFront always uses HTTP to connect to the origin.\n + ``match-viewer`` ? CloudFront connects to the origin using the same protocol that the viewer used to connect to CloudFront.\n + ``https-only`` ? CloudFront always uses HTTPS to connect to the origin.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OriginReadTimeout "origin_read_timeout": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -1942,12 +2105,26 @@ func distributionResource(ctx context.Context) (resource.Resource, error) { // Property: DomainName "domain_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The domain name for the origin.\n For more information, see [Origin Domain Name](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesDomainName) in the *Amazon CloudFront Developer Guide*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A unique identifier for the origin. This value must be unique within the distribution.\n Use this value to specify the ``TargetOriginId`` in a ``CacheBehavior`` or ``DefaultCacheBehavior``.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OriginAccessControlId "origin_access_control_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1965,12 +2142,26 @@ func distributionResource(ctx context.Context) (resource.Resource, error) { // Property: HeaderName "header_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of a header that you want CloudFront to send to your origin. For more information, see [Adding Custom Headers to Origin Requests](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/forward-custom-headers.html) in the *Amazon CloudFront Developer Guide*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HeaderValue "header_value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the header that you specified in the ``HeaderName`` field.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2080,11 +2271,25 @@ func distributionResource(ctx context.Context) (resource.Resource, error) { // Property: RestrictionType "restriction_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The method that you want to use to restrict distribution of your content by country:\n + ``none``: No geo restriction is enabled, meaning access to content is not restricted by client geo location.\n + ``blacklist``: The ``Location`` elements specify the countries in which you don't want CloudFront to distribute your content.\n + ``whitelist``: The ``Location`` elements specify the countries in which you want CloudFront to distribute your content.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A complex type that controls the countries in which your content is distributed. CF determines the location of your users using ``MaxMind`` GeoIP databases. To disable geo restriction, remove the [Restrictions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-restrictions) property from your stack template.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A complex type that identifies ways in which you want to restrict distribution of your content.", @@ -2105,7 +2310,14 @@ func distributionResource(ctx context.Context) (resource.Resource, error) { // Property: DNSName "dns_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OriginAccessIdentity "origin_access_identity": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2268,12 +2480,26 @@ func distributionResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string that contains ``Tag`` key.\n The string length should be between 1 and 128 characters. Valid characters include ``a-z``, ``A-Z``, ``0-9``, space, and the special characters ``_ - . : / = + @``.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string that contains an optional ``Tag`` value.\n The string length should be between 0 and 256 characters. Valid characters include ``a-z``, ``A-Z``, ``0-9``, space, and the special characters ``_ - . : / = + @``.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cloudfront/function_resource_gen.go b/internal/aws/cloudfront/function_resource_gen.go index d6a9778ccd..7146a1532f 100644 --- a/internal/aws/cloudfront/function_resource_gen.go +++ b/internal/aws/cloudfront/function_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -111,7 +112,14 @@ func functionResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: KeyValueStoreARN "key_value_store_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cloudfront/key_value_store_resource_gen.go b/internal/aws/cloudfront/key_value_store_resource_gen.go index 4a3ad1810b..c48b35c263 100644 --- a/internal/aws/cloudfront/key_value_store_resource_gen.go +++ b/internal/aws/cloudfront/key_value_store_resource_gen.go @@ -13,8 +13,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -85,11 +87,25 @@ func keyValueStoreResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: SourceArn "source_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceType "source_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/cloudfront/monitoring_subscription_resource_gen.go b/internal/aws/cloudfront/monitoring_subscription_resource_gen.go index 2a07b5b88f..bd10ed1d38 100644 --- a/internal/aws/cloudfront/monitoring_subscription_resource_gen.go +++ b/internal/aws/cloudfront/monitoring_subscription_resource_gen.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -71,13 +72,18 @@ func monitoringSubscriptionResource(ctx context.Context) (resource.Resource, err Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: RealtimeMetricsSubscriptionStatus "realtime_metrics_subscription_status": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Enabled", "Disabled", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/cloudfront/response_headers_policy_resource_gen.go b/internal/aws/cloudfront/response_headers_policy_resource_gen.go index 2dc0721be5..35a6f207c8 100644 --- a/internal/aws/cloudfront/response_headers_policy_resource_gen.go +++ b/internal/aws/cloudfront/response_headers_policy_resource_gen.go @@ -16,13 +16,16 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -365,7 +368,14 @@ func responseHeadersPolicyResource(ctx context.Context) (resource.Resource, erro Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AccessControlAllowCredentials "access_control_allow_credentials": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AccessControlAllowHeaders "access_control_allow_headers": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -373,13 +383,25 @@ func responseHeadersPolicyResource(ctx context.Context) (resource.Resource, erro // Property: Items "items": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AccessControlAllowMethods "access_control_allow_methods": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -387,13 +409,25 @@ func responseHeadersPolicyResource(ctx context.Context) (resource.Resource, erro // Property: Items "items": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AccessControlAllowOrigins "access_control_allow_origins": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -401,13 +435,25 @@ func responseHeadersPolicyResource(ctx context.Context) (resource.Resource, erro // Property: Items "items": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AccessControlExposeHeaders "access_control_expose_headers": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -415,9 +461,14 @@ func responseHeadersPolicyResource(ctx context.Context) (resource.Resource, erro // Property: Items "items": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -437,7 +488,14 @@ func responseHeadersPolicyResource(ctx context.Context) (resource.Resource, erro }, /*END ATTRIBUTE*/ // Property: OriginOverride "origin_override": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -455,21 +513,47 @@ func responseHeadersPolicyResource(ctx context.Context) (resource.Resource, erro Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Header "header": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Override "override": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -492,11 +576,25 @@ func responseHeadersPolicyResource(ctx context.Context) (resource.Resource, erro Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Header "header": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Set{ /*START VALIDATORS*/ + fwvalidators.NotNullSet(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -513,11 +611,25 @@ func responseHeadersPolicyResource(ctx context.Context) (resource.Resource, erro Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ContentSecurityPolicy "content_security_policy": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Override "override": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -531,7 +643,14 @@ func responseHeadersPolicyResource(ctx context.Context) (resource.Resource, erro Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Override "override": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -545,14 +664,26 @@ func responseHeadersPolicyResource(ctx context.Context) (resource.Resource, erro Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: FrameOption "frame_option": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^(DENY|SAMEORIGIN)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Override "override": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -566,14 +697,26 @@ func responseHeadersPolicyResource(ctx context.Context) (resource.Resource, erro Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Override "override": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ReferrerPolicy "referrer_policy": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^(no-referrer|no-referrer-when-downgrade|origin|origin-when-cross-origin|same-origin|strict-origin|strict-origin-when-cross-origin|unsafe-url)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -587,7 +730,14 @@ func responseHeadersPolicyResource(ctx context.Context) (resource.Resource, erro Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AccessControlMaxAgeSec "access_control_max_age_sec": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IncludeSubdomains "include_subdomains": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -599,7 +749,14 @@ func responseHeadersPolicyResource(ctx context.Context) (resource.Resource, erro }, /*END ATTRIBUTE*/ // Property: Override "override": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Preload "preload": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -629,11 +786,25 @@ func responseHeadersPolicyResource(ctx context.Context) (resource.Resource, erro }, /*END ATTRIBUTE*/ // Property: Override "override": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Protection "protection": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ReportUri "report_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -662,7 +833,14 @@ func responseHeadersPolicyResource(ctx context.Context) (resource.Resource, erro Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SamplingRate "sampling_rate": schema.Float64Attribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/cloudtrail/channel_resource_gen.go b/internal/aws/cloudtrail/channel_resource_gen.go index 74cd1b22a7..0e02d2755a 100644 --- a/internal/aws/cloudtrail/channel_resource_gen.go +++ b/internal/aws/cloudtrail/channel_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -88,21 +89,31 @@ func channelResource(ctx context.Context) (resource.Resource, error) { // Property: Location "location": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of a resource that receives events from a channel.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 1024), stringvalidator.RegexMatches(regexp.MustCompile("(^[a-zA-Z0-9._/\\-:]+$)"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of destination for events arriving from a channel.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EVENT_DATA_STORE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -199,18 +210,28 @@ func channelResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cloudtrail/event_data_store_resource_gen.go b/internal/aws/cloudtrail/event_data_store_resource_gen.go index 0ba6733a91..d46074847e 100644 --- a/internal/aws/cloudtrail/event_data_store_resource_gen.go +++ b/internal/aws/cloudtrail/event_data_store_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -204,11 +205,16 @@ func eventDataStoreResource(ctx context.Context) (resource.Resource, error) { // Property: Field "field": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A field in an event record on which to filter events to be logged. Supported fields include readOnly, eventCategory, eventSource (for management events), eventName, resources.type, and resources.ARN.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), stringvalidator.RegexMatches(regexp.MustCompile("([\\w|\\d|\\.|_]+)"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NotEndsWith "not_ends_with": schema.SetAttribute{ /*START ATTRIBUTE*/ @@ -281,10 +287,15 @@ func eventDataStoreResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Contains all selector statements in an advanced event selector.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeAtLeast(1), + fwvalidators.NotNullSet(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -573,12 +584,26 @@ func eventDataStoreResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cloudtrail/trail_resource_gen.go b/internal/aws/cloudtrail/trail_resource_gen.go index 8e69d1f1e1..d11cef4651 100644 --- a/internal/aws/cloudtrail/trail_resource_gen.go +++ b/internal/aws/cloudtrail/trail_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -203,11 +204,16 @@ func trailResource(ctx context.Context) (resource.Resource, error) { // Property: Field "field": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A field in an event record on which to filter events to be logged. Supported fields include readOnly, eventCategory, eventSource (for management events), eventName, resources.type, and resources.ARN.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), stringvalidator.RegexMatches(regexp.MustCompile("([\\w|\\d|\\.|_]+)"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NotEndsWith "not_ends_with": schema.SetAttribute{ /*START ATTRIBUTE*/ @@ -280,10 +286,15 @@ func trailResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Contains all selector statements in an advanced event selector.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeAtLeast(1), + fwvalidators.NotNullSet(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -440,7 +451,14 @@ func trailResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The resource type in which you want to log data events. You can specify AWS::S3::Object or AWS::Lambda::Function resources.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.SetAttribute{ /*START ATTRIBUTE*/ @@ -713,12 +731,26 @@ func trailResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cloudwatch/alarm_resource_gen.go b/internal/aws/cloudwatch/alarm_resource_gen.go index fa1ba42fde..8af7ea4215 100644 --- a/internal/aws/cloudwatch/alarm_resource_gen.go +++ b/internal/aws/cloudwatch/alarm_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -176,12 +177,26 @@ func alarmResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the dimension, from 1?255 characters in length. This dimension name must have been included when the metric was published.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the dimension, from 1?255 characters in length.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -399,7 +414,14 @@ func alarmResource(ctx context.Context) (resource.Resource, error) { // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A short name used to tie this object to the results in the response. This name must be unique within a single call to ``GetMetricData``. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Label "label": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -423,12 +445,26 @@ func alarmResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the dimension, from 1?255 characters in length. This dimension name must have been included when the metric was published.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the dimension, from 1?255 characters in length.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -460,17 +496,38 @@ func alarmResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The metric to return, including the metric name, namespace, and dimensions.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Period "period": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a ``PutMetricData`` call that includes a ``StorageResolution`` of 1 second.\n If the ``StartTime`` parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned:\n + Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).\n + Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).\n + Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Stat "stat": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The statistic to return. It can include any CW statistic or extended statistic. For a list of valid values, see the table in [Statistics](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic) in the *User Guide*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -622,18 +679,28 @@ func alarmResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string that you can use to assign a value. The combination of tag keys and values can help you organize and categorize your resources.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the specified tag key.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cloudwatch/composite_alarm_resource_gen.go b/internal/aws/cloudwatch/composite_alarm_resource_gen.go index 91b8d804ed..83f713a248 100644 --- a/internal/aws/cloudwatch/composite_alarm_resource_gen.go +++ b/internal/aws/cloudwatch/composite_alarm_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -303,18 +304,28 @@ func compositeAlarmResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A unique identifier for the tag. The combination of tag keys and values can help you organize and categorize your resources.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the specified tag key.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cloudwatch/metric_stream_resource_gen.go b/internal/aws/cloudwatch/metric_stream_resource_gen.go index 8eb70f23db..e086ccbdf2 100644 --- a/internal/aws/cloudwatch/metric_stream_resource_gen.go +++ b/internal/aws/cloudwatch/metric_stream_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -121,10 +122,15 @@ func metricStreamResource(ctx context.Context) (resource.Resource, error) { // Property: Namespace "namespace": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Only metrics with Namespace matching this value will be streamed.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -216,10 +222,15 @@ func metricStreamResource(ctx context.Context) (resource.Resource, error) { // Property: Namespace "namespace": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Only metrics with Namespace matching this value will be streamed.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -409,11 +420,16 @@ func metricStreamResource(ctx context.Context) (resource.Resource, error) { "additional_statistics": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The additional statistics to stream for the metrics listed in IncludeMetrics.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(20), listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IncludeMetrics "include_metrics": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -422,27 +438,42 @@ func metricStreamResource(ctx context.Context) (resource.Resource, error) { // Property: MetricName "metric_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the metric.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Namespace "namespace": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The namespace of the metric.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "An array that defines the metrics that are to have additional statistics streamed.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(100), listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -495,18 +526,28 @@ func metricStreamResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A unique identifier for the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "String which you can use to describe or define the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/codeartifact/domain_resource_gen.go b/internal/aws/codeartifact/domain_resource_gen.go index f3255ea352..79238748a5 100644 --- a/internal/aws/codeartifact/domain_resource_gen.go +++ b/internal/aws/codeartifact/domain_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -167,18 +168,28 @@ func domainResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/codeartifact/package_group_resource_gen.go b/internal/aws/codeartifact/package_group_resource_gen.go index 054e156041..0d34b5580e 100644 --- a/internal/aws/codeartifact/package_group_resource_gen.go +++ b/internal/aws/codeartifact/package_group_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -238,7 +239,8 @@ func packageGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RestrictionMode "restriction_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ALLOW", @@ -246,7 +248,11 @@ func packageGroupResource(ctx context.Context) (resource.Resource, error) { "ALLOW_SPECIFIC_REPOSITORIES", "INHERIT", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The external upstream restriction determines if new package versions can be ingested or retained from external connections.", @@ -270,7 +276,8 @@ func packageGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RestrictionMode "restriction_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ALLOW", @@ -278,7 +285,11 @@ func packageGroupResource(ctx context.Context) (resource.Resource, error) { "ALLOW_SPECIFIC_REPOSITORIES", "INHERIT", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The internal upstream restriction determines if new package versions can be ingested or retained from upstream repositories.", @@ -302,7 +313,8 @@ func packageGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RestrictionMode "restriction_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ALLOW", @@ -310,7 +322,11 @@ func packageGroupResource(ctx context.Context) (resource.Resource, error) { "ALLOW_SPECIFIC_REPOSITORIES", "INHERIT", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The publish restriction determines if new package versions can be published.", @@ -322,7 +338,14 @@ func packageGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The origin configuration that is applied to the package group.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The package origin configuration of the package group.", @@ -387,18 +410,28 @@ func packageGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/codeartifact/repository_resource_gen.go b/internal/aws/codeartifact/repository_resource_gen.go index c17dfbcfc5..dfbcf90890 100644 --- a/internal/aws/codeartifact/repository_resource_gen.go +++ b/internal/aws/codeartifact/repository_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -213,18 +214,28 @@ func repositoryResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/codebuild/fleet_resource_gen.go b/internal/aws/codebuild/fleet_resource_gen.go index b365ef0459..1abcb36137 100644 --- a/internal/aws/codebuild/fleet_resource_gen.go +++ b/internal/aws/codebuild/fleet_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -294,19 +295,29 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 255 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z+-=._:/]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/codeconnections/connection_resource_gen.go b/internal/aws/codeconnections/connection_resource_gen.go index 3f525028b2..19389fae83 100644 --- a/internal/aws/codeconnections/connection_resource_gen.go +++ b/internal/aws/codeconnections/connection_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -171,18 +172,28 @@ func connectionResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/codedeploy/application_resource_gen.go b/internal/aws/codedeploy/application_resource_gen.go index ca674b543f..828cc5e368 100644 --- a/internal/aws/codedeploy/application_resource_gen.go +++ b/internal/aws/codedeploy/application_resource_gen.go @@ -13,8 +13,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -87,11 +89,25 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/codedeploy/deployment_config_resource_gen.go b/internal/aws/codedeploy/deployment_config_resource_gen.go index 401c69e5c6..e0080a8a13 100644 --- a/internal/aws/codedeploy/deployment_config_resource_gen.go +++ b/internal/aws/codedeploy/deployment_config_resource_gen.go @@ -14,8 +14,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -82,11 +84,25 @@ func deploymentConfigResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The minimum number of healthy instances that should be available at any time during the deployment. There are two parameters expected in the input: type and value.", @@ -152,11 +168,25 @@ func deploymentConfigResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: CanaryInterval "canary_interval": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CanaryPercentage "canary_percentage": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -170,11 +200,25 @@ func deploymentConfigResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: LinearInterval "linear_interval": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LinearPercentage "linear_percentage": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -185,7 +229,14 @@ func deploymentConfigResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration that specifies how the deployment traffic is routed.", @@ -245,11 +296,25 @@ func deploymentConfigResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/codeguruprofiler/profiling_group_resource_gen.go b/internal/aws/codeguruprofiler/profiling_group_resource_gen.go index 72d63250d8..9b5cce7f1f 100644 --- a/internal/aws/codeguruprofiler/profiling_group_resource_gen.go +++ b/internal/aws/codeguruprofiler/profiling_group_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -58,12 +59,17 @@ func profilingGroupResource(ctx context.Context) (resource.Resource, error) { "principals": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The principals for the agent permissions.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws([-\\w]*):iam::([0-9]{12}):[\\S]+$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The agent permissions attached to this profiling group.", @@ -117,10 +123,15 @@ func profilingGroupResource(ctx context.Context) (resource.Resource, error) { // Property: channelUri "channel_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Unique arn of the resource to be used for notifications. We support a valid SNS topic arn as a channel uri.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws([-\\w]*):[a-z-]+:(([a-z]+-)+[0-9]+)?:([0-9]{12}):[^.]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -231,18 +242,28 @@ func profilingGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. The allowed characters across services are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. The allowed characters across services are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/codegurureviewer/repository_association_resource_gen.go b/internal/aws/codegurureviewer/repository_association_resource_gen.go index e08ed64a11..4946ba5991 100644 --- a/internal/aws/codegurureviewer/repository_association_resource_gen.go +++ b/internal/aws/codegurureviewer/repository_association_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -174,18 +175,28 @@ func repositoryAssociationResource(ctx context.Context) (resource.Resource, erro // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. The allowed characters across services are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. The allowed characters across services are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/codepipeline/custom_action_type_resource_gen.go b/internal/aws/codepipeline/custom_action_type_resource_gen.go index 6fcd8d295c..218f833d4c 100644 --- a/internal/aws/codepipeline/custom_action_type_resource_gen.go +++ b/internal/aws/codepipeline/custom_action_type_resource_gen.go @@ -16,8 +16,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -107,12 +109,26 @@ func customActionTypeResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Whether the configuration property is a key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the action configuration property.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Queryable "queryable": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -126,12 +142,26 @@ func customActionTypeResource(ctx context.Context) (resource.Resource, error) { // Property: Required "required": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Whether the configuration property is a required value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Secret "secret": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Whether the configuration property is secret. Secrets are hidden from all calls except for GetJobDetails, GetThirdPartyJobDetails, PollForJobs, and PollForThirdPartyJobs.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -363,11 +393,25 @@ func customActionTypeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/codepipeline/pipeline_resource_gen.go b/internal/aws/codepipeline/pipeline_resource_gen.go index eafbf013d5..d94b821431 100644 --- a/internal/aws/codepipeline/pipeline_resource_gen.go +++ b/internal/aws/codepipeline/pipeline_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -87,12 +88,26 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID used to identify the key. For an AWS KMS key, you can use the key ID, the key ARN, or the alias ARN.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of encryption key, such as an AWS KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents information about the key used to encrypt data in the artifact store, such as an AWS Key Management Service (AWS KMS) key", @@ -105,17 +120,29 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: Location "location": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The S3 bucket used for storing the artifacts for a pipeline. You can specify the name of an S3 bucket but not a folder in the bucket. A folder to contain the pipeline artifacts is created for you based on the name of the pipeline. You can use any S3 bucket in the same AWS Region as the pipeline to store your pipeline artifacts.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of the artifact store, such as S3.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "S3", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The S3 bucket where artifacts for the pipeline are stored.", @@ -201,12 +228,26 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID used to identify the key. For an AWS KMS key, you can use the key ID, the key ARN, or the alias ARN.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of encryption key, such as an AWS KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents information about the key used to encrypt data in the artifact store, such as an AWS Key Management Service (AWS KMS) key", @@ -219,26 +260,52 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: Location "location": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The S3 bucket used for storing the artifacts for a pipeline. You can specify the name of an S3 bucket but not a folder in the bucket. A folder to contain the pipeline artifacts is created for you based on the name of the pipeline. You can use any S3 bucket in the same AWS Region as the pipeline to store your pipeline artifacts.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of the artifact store, such as S3.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "S3", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The S3 bucket where artifacts for the pipeline are stored.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Region "region": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The action declaration's AWS Region, such as us-east-1.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -285,12 +352,26 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: Reason "reason": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The reason given to the user that a stage is disabled, such as waiting for manual approval or manual tests. This message is displayed in the pipeline console UI.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StageName "stage_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the stage where you want to disable the inbound or outbound transition of artifacts.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -912,7 +993,14 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the artifact to be worked on (for example, \"My App\").", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -946,7 +1034,14 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the output of an artifact, such as \"My App\".", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1042,7 +1137,14 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the artifact to be worked on (for example, \"My App\").", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1169,17 +1271,29 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Reserved for future use.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Reserved for future use.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Schedule", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1234,7 +1348,14 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the artifact to be worked on (for example, \"My App\").", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1405,7 +1526,14 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the artifact to be worked on (for example, \"My App\").", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1566,12 +1694,26 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2007,7 +2149,14 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: SourceActionName "source_action_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A type of trigger configuration for Git-based source actions.", @@ -2020,12 +2169,17 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: ProviderType "provider_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "CodeStarSourceConnection", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2093,7 +2247,14 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of a pipeline-level variable.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/codestarconnections/connection_resource_gen.go b/internal/aws/codestarconnections/connection_resource_gen.go index b51a2dd859..40a8926571 100644 --- a/internal/aws/codestarconnections/connection_resource_gen.go +++ b/internal/aws/codestarconnections/connection_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -171,18 +172,28 @@ func connectionResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/codestarconnections/repository_link_resource_gen.go b/internal/aws/codestarconnections/repository_link_resource_gen.go index ac77802423..bbc516a584 100644 --- a/internal/aws/codestarconnections/repository_link_resource_gen.go +++ b/internal/aws/codestarconnections/repository_link_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -186,18 +187,28 @@ func repositoryLinkResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, , ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, , ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cognito/identity_pool_resource_gen.go b/internal/aws/cognito/identity_pool_resource_gen.go index bfdc9eaa1a..8910c0d551 100644 --- a/internal/aws/cognito/identity_pool_resource_gen.go +++ b/internal/aws/cognito/identity_pool_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -101,11 +102,25 @@ func identityPoolResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ClientId "client_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProviderName "provider_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ServerSideTokenCheck "server_side_token_check": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -252,18 +267,28 @@ func identityPoolResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cognito/identity_pool_role_attachment_resource_gen.go b/internal/aws/cognito/identity_pool_role_attachment_resource_gen.go index 5397810a8c..b271285a49 100644 --- a/internal/aws/cognito/identity_pool_role_attachment_resource_gen.go +++ b/internal/aws/cognito/identity_pool_role_attachment_resource_gen.go @@ -10,13 +10,16 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -144,25 +147,58 @@ func identityPoolRoleAttachmentResource(ctx context.Context) (resource.Resource, Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Claim "claim": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MatchType "match_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/cognito/user_pool_resource_server_resource_gen.go b/internal/aws/cognito/user_pool_resource_server_resource_gen.go index 52779f9caa..be5f56d53d 100644 --- a/internal/aws/cognito/user_pool_resource_server_resource_gen.go +++ b/internal/aws/cognito/user_pool_resource_server_resource_gen.go @@ -13,8 +13,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -73,11 +75,25 @@ func userPoolResourceServerResource(ctx context.Context) (resource.Resource, err Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ScopeDescription "scope_description": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ScopeName "scope_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cognito/user_pool_risk_configuration_attachment_resource_gen.go b/internal/aws/cognito/user_pool_risk_configuration_attachment_resource_gen.go index f2d909ab8e..f60c7980a0 100644 --- a/internal/aws/cognito/user_pool_risk_configuration_attachment_resource_gen.go +++ b/internal/aws/cognito/user_pool_risk_configuration_attachment_resource_gen.go @@ -11,6 +11,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/listvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -19,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -177,11 +179,25 @@ func userPoolRiskConfigurationAttachmentResource(ctx context.Context) (resource. Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: EventAction "event_action": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Notify "notify": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -195,11 +211,25 @@ func userPoolRiskConfigurationAttachmentResource(ctx context.Context) (resource. Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: EventAction "event_action": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Notify "notify": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -213,11 +243,25 @@ func userPoolRiskConfigurationAttachmentResource(ctx context.Context) (resource. Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: EventAction "event_action": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Notify "notify": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -227,7 +271,14 @@ func userPoolRiskConfigurationAttachmentResource(ctx context.Context) (resource. }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NotifyConfiguration "notify_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -245,7 +296,14 @@ func userPoolRiskConfigurationAttachmentResource(ctx context.Context) (resource. }, /*END ATTRIBUTE*/ // Property: Subject "subject": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TextBody "text_body": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -283,7 +341,14 @@ func userPoolRiskConfigurationAttachmentResource(ctx context.Context) (resource. }, /*END ATTRIBUTE*/ // Property: Subject "subject": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TextBody "text_body": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -313,7 +378,14 @@ func userPoolRiskConfigurationAttachmentResource(ctx context.Context) (resource. }, /*END ATTRIBUTE*/ // Property: Subject "subject": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TextBody "text_body": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -340,7 +412,14 @@ func userPoolRiskConfigurationAttachmentResource(ctx context.Context) (resource. }, /*END ATTRIBUTE*/ // Property: SourceArn "source_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -406,10 +485,24 @@ func userPoolRiskConfigurationAttachmentResource(ctx context.Context) (resource. Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: EventAction "event_action": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EventFilter "event_filter": schema.ListAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/comprehend/document_classifier_resource_gen.go b/internal/aws/comprehend/document_classifier_resource_gen.go index 4973340666..935aafee20 100644 --- a/internal/aws/comprehend/document_classifier_resource_gen.go +++ b/internal/aws/comprehend/document_classifier_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -226,21 +227,31 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) // Property: AttributeNames "attribute_names": schema.SetAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeBetween(1, 63), setvalidator.ValueStringsAre( stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*"), ""), ), + fwvalidators.NotNullSet(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("s3://[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9](/.*)?"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Split "split": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -283,13 +294,18 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DocumentReadAction "document_read_action": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "TEXTRACT_DETECT_DOCUMENT_TEXT", "TEXTRACT_ANALYZE_DOCUMENT", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DocumentReadMode "document_read_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -349,11 +365,16 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("s3://[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9](/.*)?"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TestS3Uri "test_s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -593,17 +614,27 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -697,26 +728,36 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) // Property: SecurityGroupIds "security_group_ids": schema.SetAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeBetween(1, 5), setvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 32), stringvalidator.RegexMatches(regexp.MustCompile("[-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullSet(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Subnets "subnets": schema.SetAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeBetween(1, 16), setvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 32), stringvalidator.RegexMatches(regexp.MustCompile("[-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullSet(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/comprehend/flywheel_resource_gen.go b/internal/aws/comprehend/flywheel_resource_gen.go index 7f0a821284..86f345ebd4 100644 --- a/internal/aws/comprehend/flywheel_resource_gen.go +++ b/internal/aws/comprehend/flywheel_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -200,26 +201,36 @@ func flywheelResource(ctx context.Context) (resource.Resource, error) { // Property: SecurityGroupIds "security_group_ids": schema.SetAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeBetween(1, 5), setvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 32), stringvalidator.RegexMatches(regexp.MustCompile("[-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullSet(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Subnets "subnets": schema.SetAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeBetween(1, 16), setvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 32), stringvalidator.RegexMatches(regexp.MustCompile("[-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullSet(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -311,17 +322,27 @@ func flywheelResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -430,13 +451,18 @@ func flywheelResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Mode "mode": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "MULTI_CLASS", "MULTI_LABEL", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -454,10 +480,15 @@ func flywheelResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -479,7 +510,8 @@ func flywheelResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: LanguageCode "language_code": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "en", @@ -489,7 +521,11 @@ func flywheelResource(ctx context.Context) (resource.Resource, error) { "de", "pt", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/config/aggregation_authorization_resource_gen.go b/internal/aws/config/aggregation_authorization_resource_gen.go index 1baea03b1d..f2db741500 100644 --- a/internal/aws/config/aggregation_authorization_resource_gen.go +++ b/internal/aws/config/aggregation_authorization_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -118,18 +119,28 @@ func aggregationAuthorizationResource(ctx context.Context) (resource.Resource, e // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/config/config_rule_resource_gen.go b/internal/aws/config/config_rule_resource_gen.go index d77777ca7d..5e8723f196 100644 --- a/internal/aws/config/config_rule_resource_gen.go +++ b/internal/aws/config/config_rule_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -392,7 +393,14 @@ func configRuleResource(ctx context.Context) (resource.Resource, error) { // Property: EventSource "event_source": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The source of the event, such as an AWS service, that triggers CC to evaluate your AWS resources.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaximumExecutionFrequency "maximum_execution_frequency": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -406,7 +414,14 @@ func configRuleResource(ctx context.Context) (resource.Resource, error) { // Property: MessageType "message_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of notification that triggers CC to run an evaluation for a rule. You can specify the following notification types:\n + ``ConfigurationItemChangeNotification`` - Triggers an evaluation when CC delivers a configuration item as a result of a resource change.\n + ``OversizedConfigurationItemChangeNotification`` - Triggers an evaluation when CC delivers an oversized configuration item. CC may generate this notification type when a resource changes and the notification exceeds the maximum size allowed by Amazon SNS.\n + ``ScheduledNotification`` - Triggers a periodic evaluation at the frequency specified for ``MaximumExecutionFrequency``.\n + ``ConfigurationSnapshotDeliveryCompleted`` - Triggers a periodic evaluation when CC delivers a configuration snapshot.\n \n If you want your custom rule to be triggered by configuration changes, specify two SourceDetail objects, one for ``ConfigurationItemChangeNotification`` and one for ``OversizedConfigurationItemChangeNotification``.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/config/configuration_aggregator_resource_gen.go b/internal/aws/config/configuration_aggregator_resource_gen.go index 8c98d8b242..885946a38f 100644 --- a/internal/aws/config/configuration_aggregator_resource_gen.go +++ b/internal/aws/config/configuration_aggregator_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -71,7 +72,14 @@ func configurationAggregatorResource(ctx context.Context) (resource.Resource, er // Property: AccountIds "account_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AllAwsRegions "all_aws_regions": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -181,7 +189,14 @@ func configurationAggregatorResource(ctx context.Context) (resource.Resource, er }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -228,18 +243,28 @@ func configurationAggregatorResource(ctx context.Context) (resource.Resource, er // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/config/conformance_pack_resource_gen.go b/internal/aws/config/conformance_pack_resource_gen.go index c2b7ecc9b8..ac49b0dd20 100644 --- a/internal/aws/config/conformance_pack_resource_gen.go +++ b/internal/aws/config/conformance_pack_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -68,18 +69,28 @@ func conformancePackResource(ctx context.Context) (resource.Resource, error) { // Property: ParameterName "parameter_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Key part of key-value pair with value being parameter value", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParameterValue "parameter_value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Value part of key-value pair with key being parameter Name", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 4096), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/config/organization_conformance_pack_resource_gen.go b/internal/aws/config/organization_conformance_pack_resource_gen.go index 0f3a9e5af2..f65d395569 100644 --- a/internal/aws/config/organization_conformance_pack_resource_gen.go +++ b/internal/aws/config/organization_conformance_pack_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -64,17 +65,27 @@ func organizationConformancePackResource(ctx context.Context) (resource.Resource Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ParameterName "parameter_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParameterValue "parameter_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 4096), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/config/stored_query_resource_gen.go b/internal/aws/config/stored_query_resource_gen.go index 5fb8849922..659b82bd85 100644 --- a/internal/aws/config/stored_query_resource_gen.go +++ b/internal/aws/config/stored_query_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -151,18 +152,28 @@ func storedQueryResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/connect/contact_flow_module_resource_gen.go b/internal/aws/connect/contact_flow_module_resource_gen.go index 095f0a9261..511afe06eb 100644 --- a/internal/aws/connect/contact_flow_module_resource_gen.go +++ b/internal/aws/connect/contact_flow_module_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -192,18 +193,28 @@ func contactFlowModuleResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is maximum of 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/connect/contact_flow_resource_gen.go b/internal/aws/connect/contact_flow_resource_gen.go index 8b98c1f43b..5acd7c2a8f 100644 --- a/internal/aws/connect/contact_flow_resource_gen.go +++ b/internal/aws/connect/contact_flow_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -179,18 +180,28 @@ func contactFlowResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. . You can specify a value that is maximum of 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/connect/hours_of_operation_resource_gen.go b/internal/aws/connect/hours_of_operation_resource_gen.go index d467518489..1ce88740d7 100644 --- a/internal/aws/connect/hours_of_operation_resource_gen.go +++ b/internal/aws/connect/hours_of_operation_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -289,18 +290,28 @@ func hoursOfOperationResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is maximum of 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/connect/instance_resource_gen.go b/internal/aws/connect/instance_resource_gen.go index 05ea250874..494c0f8960 100644 --- a/internal/aws/connect/instance_resource_gen.go +++ b/internal/aws/connect/instance_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -321,18 +322,28 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/connect/instance_storage_config_resource_gen.go b/internal/aws/connect/instance_storage_config_resource_gen.go index fd69758ecf..cfc2bc0b0f 100644 --- a/internal/aws/connect/instance_storage_config_resource_gen.go +++ b/internal/aws/connect/instance_storage_config_resource_gen.go @@ -12,12 +12,14 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -85,10 +87,15 @@ func instanceStorageConfigResource(ctx context.Context) (resource.Resource, erro // Property: FirehoseArn "firehose_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "An ARN is a unique AWS resource identifier.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws[-a-z0-9]*:firehose:[-a-z0-9]*:[0-9]{12}:deliverystream/[-a-zA-Z0-9_.]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -119,10 +126,15 @@ func instanceStorageConfigResource(ctx context.Context) (resource.Resource, erro // Property: StreamArn "stream_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "An ARN is a unique AWS resource identifier.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws[-a-z0-9]*:kinesis:[-a-z0-9]*:[0-9]{12}:stream/[-a-zA-Z0-9_.]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -186,36 +198,65 @@ func instanceStorageConfigResource(ctx context.Context) (resource.Resource, erro // Property: EncryptionType "encryption_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies default encryption using AWS KMS-Managed Keys", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "KMS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeyId "key_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the encryption key id", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Prefix "prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Prefixes are used to infer logical hierarchy", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RetentionPeriodHours "retention_period_hours": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "Number of hours", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -309,18 +350,28 @@ func instanceStorageConfigResource(ctx context.Context) (resource.Resource, erro // Property: BucketName "bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A name for the S3 Bucket", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BucketPrefix "bucket_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Prefixes are used to infer logical hierarchy", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EncryptionConfig "encryption_config": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -328,20 +379,30 @@ func instanceStorageConfigResource(ctx context.Context) (resource.Resource, erro // Property: EncryptionType "encryption_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies default encryption using AWS KMS-Managed Keys", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "KMS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeyId "key_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the encryption key id", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/connect/phone_number_resource_gen.go b/internal/aws/connect/phone_number_resource_gen.go index 9558f39d09..0caf8b5525 100644 --- a/internal/aws/connect/phone_number_resource_gen.go +++ b/internal/aws/connect/phone_number_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -175,18 +176,28 @@ func phoneNumberResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/connect/prompt_resource_gen.go b/internal/aws/connect/prompt_resource_gen.go index 4f1917aa21..aec4e324de 100644 --- a/internal/aws/connect/prompt_resource_gen.go +++ b/internal/aws/connect/prompt_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -155,18 +156,28 @@ func promptResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/connect/queue_resource_gen.go b/internal/aws/connect/queue_resource_gen.go index 35f05bdd49..16dbb0cafa 100644 --- a/internal/aws/connect/queue_resource_gen.go +++ b/internal/aws/connect/queue_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -306,18 +307,28 @@ func queueResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/connect/quick_connect_resource_gen.go b/internal/aws/connect/quick_connect_resource_gen.go index 486bbf6594..a84ac7420a 100644 --- a/internal/aws/connect/quick_connect_resource_gen.go +++ b/internal/aws/connect/quick_connect_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -183,10 +184,15 @@ func quickConnectResource(ctx context.Context) (resource.Resource, error) { // Property: PhoneNumber "phone_number": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The phone number in E.164 format.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^\\+[1-9]\\d{1,14}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The phone configuration. This is required only if QuickConnectType is PHONE_NUMBER.", @@ -202,18 +208,28 @@ func quickConnectResource(ctx context.Context) (resource.Resource, error) { // Property: ContactFlowArn "contact_flow_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identifier of the contact flow.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/contact-flow/[-a-zA-Z0-9]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: QueueArn "queue_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identifier for the queue.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/queue/[-a-zA-Z0-9]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The queue configuration. This is required only if QuickConnectType is QUEUE.", @@ -241,18 +257,28 @@ func quickConnectResource(ctx context.Context) (resource.Resource, error) { // Property: ContactFlowArn "contact_flow_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identifier of the contact flow.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/contact-flow/[-a-zA-Z0-9]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: UserArn "user_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identifier of the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/agent/[-a-zA-Z0-9]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The user configuration. This is required only if QuickConnectType is USER.", @@ -324,18 +350,28 @@ func quickConnectResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is maximum of 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/connect/routing_profile_resource_gen.go b/internal/aws/connect/routing_profile_resource_gen.go index da2a0f8ecc..4932a9eaec 100644 --- a/internal/aws/connect/routing_profile_resource_gen.go +++ b/internal/aws/connect/routing_profile_resource_gen.go @@ -15,6 +15,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -23,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -185,13 +187,18 @@ func routingProfileResource(ctx context.Context) (resource.Resource, error) { // Property: BehaviorType "behavior_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the other channels that can be routed to an agent handling their current channel.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ROUTE_CURRENT_CHANNEL_ONLY", "ROUTE_ANY_CHANNEL", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Defines the cross-channel routing behavior that allows an agent working on a contact in one channel to be offered a contact from a different channel.", @@ -289,18 +296,28 @@ func routingProfileResource(ctx context.Context) (resource.Resource, error) { // Property: Delay "delay": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The delay, in seconds, a contact should wait in the queue before they are routed to an available agent.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 9999), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Priority "priority": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The order in which contacts are to be handled for the queue.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 99), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: QueueReference "queue_reference": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -308,26 +325,43 @@ func routingProfileResource(ctx context.Context) (resource.Resource, error) { // Property: Channel "channel": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The channels that agents can handle in the Contact Control Panel (CCP).", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "VOICE", "CHAT", "TASK", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: QueueArn "queue_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) for the queue.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/queue/[-a-zA-Z0-9]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Contains the channel and queue identifier for a routing profile.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -396,18 +430,28 @@ func routingProfileResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/connect/security_profile_resource_gen.go b/internal/aws/connect/security_profile_resource_gen.go index b358374ec0..98f3395483 100644 --- a/internal/aws/connect/security_profile_resource_gen.go +++ b/internal/aws/connect/security_profile_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -93,18 +94,28 @@ func securityProfileResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -165,21 +176,31 @@ func securityProfileResource(ctx context.Context) (resource.Resource, error) { "application_permissions": schema.SetAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The permissions that the agent is granted on the application", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeAtMost(10), setvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 128), ), + fwvalidators.NotNullSet(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Namespace "namespace": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Namespace of the application that you want to give access to.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -429,18 +450,28 @@ func securityProfileResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/connect/task_template_resource_gen.go b/internal/aws/connect/task_template_resource_gen.go index 1f50516aec..2874561638 100644 --- a/internal/aws/connect/task_template_resource_gen.go +++ b/internal/aws/connect/task_template_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -182,14 +183,26 @@ func taskTemplateResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the task template field", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "the identifier (name) for the task template field", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -213,14 +226,26 @@ func taskTemplateResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the task template field", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "the identifier (name) for the task template field", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -244,14 +269,26 @@ func taskTemplateResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the task template field", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "the identifier (name) for the task template field", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -339,10 +376,15 @@ func taskTemplateResource(ctx context.Context) (resource.Resource, error) { // Property: DefaultValue "default_value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "the default value for the task template's field", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 4096), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Id "id": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -350,14 +392,26 @@ func taskTemplateResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the task template field", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "the identifier (name) for the task template field", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -483,14 +537,26 @@ func taskTemplateResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the task template field", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "the identifier (name) for the task template field", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SingleSelectOptions "single_select_options": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -512,7 +578,8 @@ func taskTemplateResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of the task template's field", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "NAME", @@ -528,7 +595,11 @@ func taskTemplateResource(ctx context.Context) (resource.Resource, error) { "SINGLE_SELECT", "EMAIL", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -641,18 +712,28 @@ func taskTemplateResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. . You can specify a value that is maximum of 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/connect/traffic_distribution_group_resource_gen.go b/internal/aws/connect/traffic_distribution_group_resource_gen.go index b2a68ad183..895daef6ef 100644 --- a/internal/aws/connect/traffic_distribution_group_resource_gen.go +++ b/internal/aws/connect/traffic_distribution_group_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -167,18 +168,28 @@ func trafficDistributionGroupResource(ctx context.Context) (resource.Resource, e // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/connect/user_hierarchy_group_resource_gen.go b/internal/aws/connect/user_hierarchy_group_resource_gen.go index e228e1a340..b0214f53ff 100644 --- a/internal/aws/connect/user_hierarchy_group_resource_gen.go +++ b/internal/aws/connect/user_hierarchy_group_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -119,18 +120,28 @@ func userHierarchyGroupResource(ctx context.Context) (resource.Resource, error) // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is maximum of 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/connect/user_resource_gen.go b/internal/aws/connect/user_resource_gen.go index d506e1c2f0..bfc41dcfaf 100644 --- a/internal/aws/connect/user_resource_gen.go +++ b/internal/aws/connect/user_resource_gen.go @@ -16,6 +16,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" @@ -26,6 +27,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -354,18 +356,28 @@ func userResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is maximum of 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -438,26 +450,41 @@ func userResource(ctx context.Context) (resource.Resource, error) { // Property: AttributeName "attribute_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of user's proficiency. You must use name of predefined attribute present in the Amazon Connect instance.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AttributeValue "attribute_value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of user's proficiency. You must use value of predefined attribute present in the Amazon Connect instance.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Level "level": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The level of the proficiency. The valid values are 1, 2, 3, 4 and 5.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(1.000000, 5.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/connect/view_resource_gen.go b/internal/aws/connect/view_resource_gen.go index 28440a1b55..407baa9962 100644 --- a/internal/aws/connect/view_resource_gen.go +++ b/internal/aws/connect/view_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -159,18 +160,28 @@ func viewResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. . You can specify a value that is maximum of 256 Unicode characters", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/connectcampaigns/campaign_resource_gen.go b/internal/aws/connectcampaigns/campaign_resource_gen.go index 97f53e8f4d..a099018cdf 100644 --- a/internal/aws/connectcampaigns/campaign_resource_gen.go +++ b/internal/aws/connectcampaigns/campaign_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -186,10 +187,15 @@ func campaignResource(ctx context.Context) (resource.Resource, error) { // Property: BandwidthAllocation "bandwidth_allocation": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The bandwidth allocation of a queue resource.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(0.000000, 1.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DialingCapacity "dialing_capacity": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -217,10 +223,15 @@ func campaignResource(ctx context.Context) (resource.Resource, error) { // Property: BandwidthAllocation "bandwidth_allocation": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The bandwidth allocation of a queue resource.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(0.000000, 1.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DialingCapacity "dialing_capacity": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -327,7 +338,14 @@ func campaignResource(ctx context.Context) (resource.Resource, error) { // Property: EnableAnswerMachineDetection "enable_answer_machine_detection": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Flag to decided whether outbound calls should have answering machine detection enabled or not", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration used for answering machine detection during outbound calls", @@ -415,18 +433,28 @@ func campaignResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that's 1 to 256 characters in length.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/customerprofiles/calculated_attribute_definition_resource_gen.go b/internal/aws/customerprofiles/calculated_attribute_definition_resource_gen.go index 1b94ce6e18..dfeae6c815 100644 --- a/internal/aws/customerprofiles/calculated_attribute_definition_resource_gen.go +++ b/internal/aws/customerprofiles/calculated_attribute_definition_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -220,20 +221,30 @@ func calculatedAttributeDefinitionResource(ctx context.Context) (resource.Resour // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The unit of time.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DAYS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The amount of time of the specified unit.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 366), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The relative time period over which data is included in the aggregation.", @@ -249,7 +260,8 @@ func calculatedAttributeDefinitionResource(ctx context.Context) (resource.Resour // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The operator of the threshold.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUAL_TO", @@ -257,15 +269,24 @@ func calculatedAttributeDefinitionResource(ctx context.Context) (resource.Resour "LESS_THAN", "NOT_EQUAL_TO", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the threshold.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The threshold for the calculated attribute.", @@ -447,18 +468,28 @@ func calculatedAttributeDefinitionResource(ctx context.Context) (resource.Resour // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/customerprofiles/domain_resource_gen.go b/internal/aws/customerprofiles/domain_resource_gen.go index 7641f2361b..50770a7fa2 100644 --- a/internal/aws/customerprofiles/domain_resource_gen.go +++ b/internal/aws/customerprofiles/domain_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -175,17 +176,27 @@ func domainResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/customerprofiles/event_stream_resource_gen.go b/internal/aws/customerprofiles/event_stream_resource_gen.go index 429d9f25f8..ac1f7800ad 100644 --- a/internal/aws/customerprofiles/event_stream_resource_gen.go +++ b/internal/aws/customerprofiles/event_stream_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -208,18 +209,28 @@ func eventStreamResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/customerprofiles/integration_resource_gen.go b/internal/aws/customerprofiles/integration_resource_gen.go index 525a31c7ab..3faaa014b3 100644 --- a/internal/aws/customerprofiles/integration_resource_gen.go +++ b/internal/aws/customerprofiles/integration_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -506,19 +507,29 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: FlowName "flow_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9][\\w!@#.-]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KmsArn "kms_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), stringvalidator.RegexMatches(regexp.MustCompile("arn:aws:kms:.*:[0-9]+:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceFlowConfig "source_flow_config": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -537,7 +548,8 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: ConnectorType "connector_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Salesforce", @@ -546,7 +558,11 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { "Zendesk", "S3", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IncrementalPullConfig "incremental_pull_config": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -577,11 +593,16 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -595,11 +616,16 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketName "bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BucketPrefix "bucket_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -641,11 +667,16 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -659,11 +690,16 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -677,11 +713,16 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -691,10 +732,24 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Tasks "tasks": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -877,13 +932,18 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { // Property: SourceFields "source_fields": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthAtMost(2048), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TaskProperties "task_properties": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -891,7 +951,8 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: OperatorPropertyKey "operator_property_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "VALUE", @@ -909,15 +970,24 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { "CONCAT_FORMAT", "SUBFIELD_CATEGORY_MAP", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Property "property": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(2048), stringvalidator.RegexMatches(regexp.MustCompile(".+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -929,7 +999,8 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TaskType "task_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Arithmetic", @@ -940,11 +1011,22 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { "Truncate", "Validate", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TriggerConfig "trigger_config": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -987,11 +1069,16 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: ScheduleExpression "schedule_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ScheduleOffset "schedule_offset": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -1040,17 +1127,29 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TriggerType "trigger_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Scheduled", "Event", "OnDemand", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1129,18 +1228,28 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z_][a-zA-Z_0-9-]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1186,17 +1295,27 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/customerprofiles/object_type_resource_gen.go b/internal/aws/customerprofiles/object_type_resource_gen.go index eb8258d903..80f4d5cd6d 100644 --- a/internal/aws/customerprofiles/object_type_resource_gen.go +++ b/internal/aws/customerprofiles/object_type_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -494,17 +495,27 @@ func objectTypeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/databrew/dataset_resource_gen.go b/internal/aws/databrew/dataset_resource_gen.go index 0952f8edad..e771f7e4d6 100644 --- a/internal/aws/databrew/dataset_resource_gen.go +++ b/internal/aws/databrew/dataset_resource_gen.go @@ -14,6 +14,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -22,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -382,7 +384,14 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -422,7 +431,14 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { // Property: GlueConnectionName "glue_connection_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Glue connection name", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: QueryString "query_string": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -438,7 +454,14 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -487,7 +510,14 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -741,7 +771,14 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { // Property: MaxFiles "max_files": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Maximum number of files", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Order "order": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -785,11 +822,16 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { // Property: Expression "expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Filtering expression for a parameter", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(4, 1024), stringvalidator.RegexMatches(regexp.MustCompile("^[><0-9A-Za-z_.,:)(!= ]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ValuesMap "values_map": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -797,23 +839,40 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ValueReference "value_reference": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Variable name", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(2, 128), stringvalidator.RegexMatches(regexp.MustCompile("^:[A-Za-z0-9_]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -844,10 +903,15 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { // Property: Format "format": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Date/time format of a date parameter", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(2, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LocaleCode "locale_code": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -888,11 +952,16 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { // Property: Expression "expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Filtering expression for a parameter", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(4, 1024), stringvalidator.RegexMatches(regexp.MustCompile("^[><0-9A-Za-z_.,:)(!= ]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ValuesMap "values_map": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -900,23 +969,40 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ValueReference "value_reference": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Variable name", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(2, 128), stringvalidator.RegexMatches(regexp.MustCompile("^:[A-Za-z0-9_]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -928,33 +1014,55 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Parameter name", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Parameter type", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "String", "Number", "Datetime", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PathParameterName "path_parameter_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Parameter name", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1006,17 +1114,27 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/databrew/job_resource_gen.go b/internal/aws/databrew/job_resource_gen.go index cb8802782a..a8327cf86c 100644 --- a/internal/aws/databrew/job_resource_gen.go +++ b/internal/aws/databrew/job_resource_gen.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" @@ -24,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -150,27 +152,44 @@ func jobResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabaseOptions "database_options": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TempDirectory "temp_directory": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BucketOwner "bucket_owner": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -222,7 +241,14 @@ func jobResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BucketOwner "bucket_owner": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -245,7 +271,14 @@ func jobResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "S3 Output location", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -256,10 +289,15 @@ func jobResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -340,17 +378,29 @@ func jobResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TempDirectory "temp_directory": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BucketOwner "bucket_owner": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -380,7 +430,14 @@ func jobResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabaseOutputMode "database_output_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -399,7 +456,14 @@ func jobResource(ctx context.Context) (resource.Resource, error) { // Property: GlueConnectionName "glue_connection_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Glue connection name", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -633,7 +697,14 @@ func jobResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BucketOwner "bucket_owner": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -843,7 +914,14 @@ func jobResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BucketOwner "bucket_owner": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -866,7 +944,14 @@ func jobResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "S3 Output location", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaxOutputFiles "max_output_files": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -1177,15 +1262,27 @@ func jobResource(ctx context.Context) (resource.Resource, error) { "parameters": // Pattern: "" schema.MapAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Map{ /*START VALIDATORS*/ + fwvalidators.NotNullMap(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ + mapplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Statistic "statistic": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[A-Z\\_]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1199,7 +1296,14 @@ func jobResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1239,15 +1343,27 @@ func jobResource(ctx context.Context) (resource.Resource, error) { "parameters": // Pattern: "" schema.MapAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Map{ /*START VALIDATORS*/ + fwvalidators.NotNullMap(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ + mapplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Statistic "statistic": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[A-Z\\_]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1276,14 +1392,19 @@ func jobResource(ctx context.Context) (resource.Resource, error) { // Property: Statistics "statistics": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[A-Z\\_]+$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1295,14 +1416,19 @@ func jobResource(ctx context.Context) (resource.Resource, error) { // Property: EntityTypes "entity_types": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[A-Z_][A-Z\\\\d_]*$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1401,7 +1527,14 @@ func jobResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Recipe name", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Version "version": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1464,17 +1597,27 @@ func jobResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1561,10 +1704,15 @@ func jobResource(ctx context.Context) (resource.Resource, error) { // Property: RulesetArn "ruleset_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Arn of the Ruleset", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ValidationMode "validation_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/databrew/project_resource_gen.go b/internal/aws/databrew/project_resource_gen.go index a9c1a3ff47..e0f5b6130d 100644 --- a/internal/aws/databrew/project_resource_gen.go +++ b/internal/aws/databrew/project_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -136,14 +137,19 @@ func projectResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Sample type", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "FIRST_N", "LAST_N", "RANDOM", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Sample", @@ -187,17 +193,27 @@ func projectResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/databrew/ruleset_resource_gen.go b/internal/aws/databrew/ruleset_resource_gen.go index 0c16911955..893823d0ba 100644 --- a/internal/aws/databrew/ruleset_resource_gen.go +++ b/internal/aws/databrew/ruleset_resource_gen.go @@ -14,6 +14,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -21,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -264,19 +266,29 @@ func rulesetResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Value or column name", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ValueReference "value_reference": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Variable name", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(2, 128), stringvalidator.RegexMatches(regexp.MustCompile("^:[A-Za-z0-9_]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -324,7 +336,14 @@ func rulesetResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "Threshold value for a rule", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -375,17 +394,27 @@ func rulesetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/databrew/schedule_resource_gen.go b/internal/aws/databrew/schedule_resource_gen.go index 555456be70..36fcd611df 100644 --- a/internal/aws/databrew/schedule_resource_gen.go +++ b/internal/aws/databrew/schedule_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -126,17 +127,27 @@ func scheduleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/datapipeline/pipeline_resource_gen.go b/internal/aws/datapipeline/pipeline_resource_gen.go index f9a04d565a..157921385e 100644 --- a/internal/aws/datapipeline/pipeline_resource_gen.go +++ b/internal/aws/datapipeline/pipeline_resource_gen.go @@ -14,8 +14,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -128,25 +130,51 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The field identifier.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StringValue "string_value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The field value, expressed as a String.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The attributes of the parameter object.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID of the parameter object.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -191,12 +219,26 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID of the parameter value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StringValue "string_value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The field value, expressed as a String.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -285,7 +327,14 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the name of a field for a particular object. To view valid values for a particular field, see Pipeline Object Reference in the AWS Data Pipeline Developer Guide.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RefValue "ref_value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -308,20 +357,39 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Key-value pairs that define the properties of the object.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID of the object.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the object.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -366,12 +434,26 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of a tag.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value to associate with the key name.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/datasync/agent_resource_gen.go b/internal/aws/datasync/agent_resource_gen.go index e24858a3d9..f2c86dd876 100644 --- a/internal/aws/datasync/agent_resource_gen.go +++ b/internal/aws/datasync/agent_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -213,20 +214,30 @@ func agentResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:@/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/datasync/location_azure_blob_resource_gen.go b/internal/aws/datasync/location_azure_blob_resource_gen.go index f40b3e7702..c13c4ec0ab 100644 --- a/internal/aws/datasync/location_azure_blob_resource_gen.go +++ b/internal/aws/datasync/location_azure_blob_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -165,11 +166,16 @@ func locationAzureBlobResource(ctx context.Context) (resource.Resource, error) { // Property: AzureBlobSasToken "azure_blob_sas_token": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the shared access signature (SAS) token, which indicates the permissions DataSync needs to access your Azure Blob Storage container.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), stringvalidator.RegexMatches(regexp.MustCompile("(^.+$)"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the shared access signature (SAS) that DataSync uses to access your Azure Blob Storage container.", @@ -300,20 +306,30 @@ func locationAzureBlobResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:@/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/datasync/location_efs_resource_gen.go b/internal/aws/datasync/location_efs_resource_gen.go index f9ab5e21d9..56c3f6ca9a 100644 --- a/internal/aws/datasync/location_efs_resource_gen.go +++ b/internal/aws/datasync/location_efs_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -287,20 +288,30 @@ func locationEFSResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:@/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/datasync/location_fsx_lustre_resource_gen.go b/internal/aws/datasync/location_fsx_lustre_resource_gen.go index 684cf2ed2c..0ccaf8692a 100644 --- a/internal/aws/datasync/location_fsx_lustre_resource_gen.go +++ b/internal/aws/datasync/location_fsx_lustre_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -183,20 +184,30 @@ func locationFSxLustreResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:@/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/datasync/location_fsx_ontap_resource_gen.go b/internal/aws/datasync/location_fsx_ontap_resource_gen.go index 06f4f0574d..fb969c5f43 100644 --- a/internal/aws/datasync/location_fsx_ontap_resource_gen.go +++ b/internal/aws/datasync/location_fsx_ontap_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -191,7 +192,14 @@ func locationFSxONTAPResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The NFS mount options that DataSync can use to mount your NFS share.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "NFS protocol configuration for FSx ONTAP file system.", @@ -238,25 +246,42 @@ func locationFSxONTAPResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The mount options used by DataSync to access the SMB server.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Password "password": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The password of the user who can mount the share and has the permissions to access files and folders in the SMB share.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(104), stringvalidator.RegexMatches(regexp.MustCompile("^.{0,104}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: User "user": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The user who can mount the share, has the permissions to access files and folders in the SMB share.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(104), stringvalidator.RegexMatches(regexp.MustCompile("^[^\\x5B\\x5D\\\\/:;|=,+*?]{1,104}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "SMB protocol configuration for FSx ONTAP file system.", @@ -392,20 +417,30 @@ func locationFSxONTAPResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:@/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/datasync/location_fsx_open_zfs_resource_gen.go b/internal/aws/datasync/location_fsx_open_zfs_resource_gen.go index d3e67959b1..18f9b226dc 100644 --- a/internal/aws/datasync/location_fsx_open_zfs_resource_gen.go +++ b/internal/aws/datasync/location_fsx_open_zfs_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -152,7 +153,14 @@ func locationFSxOpenZFSResource(ctx context.Context) (resource.Resource, error) }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The NFS mount options that DataSync can use to mount your NFS share.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "FSx OpenZFS file system NFS protocol information", @@ -265,20 +273,30 @@ func locationFSxOpenZFSResource(ctx context.Context) (resource.Resource, error) // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:@/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/datasync/location_fsx_windows_resource_gen.go b/internal/aws/datasync/location_fsx_windows_resource_gen.go index 2e2bcc7cb1..88cc767437 100644 --- a/internal/aws/datasync/location_fsx_windows_resource_gen.go +++ b/internal/aws/datasync/location_fsx_windows_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -224,20 +225,30 @@ func locationFSxWindowsResource(ctx context.Context) (resource.Resource, error) // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:@/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/datasync/location_hdfs_resource_gen.go b/internal/aws/datasync/location_hdfs_resource_gen.go index b3004f3c81..8baa179c74 100644 --- a/internal/aws/datasync/location_hdfs_resource_gen.go +++ b/internal/aws/datasync/location_hdfs_resource_gen.go @@ -26,6 +26,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -471,18 +472,28 @@ func locationHDFSResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/datasync/location_nfs_resource_gen.go b/internal/aws/datasync/location_nfs_resource_gen.go index 96c8f11023..69ed3f8596 100644 --- a/internal/aws/datasync/location_nfs_resource_gen.go +++ b/internal/aws/datasync/location_nfs_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-provider-awscc/internal/defaults" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -251,20 +252,30 @@ func locationNFSResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:@/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/datasync/location_object_storage_resource_gen.go b/internal/aws/datasync/location_object_storage_resource_gen.go index 6d0c13b8b2..daa3da7c41 100644 --- a/internal/aws/datasync/location_object_storage_resource_gen.go +++ b/internal/aws/datasync/location_object_storage_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -314,20 +315,30 @@ func locationObjectStorageResource(ctx context.Context) (resource.Resource, erro // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:@/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/datasync/location_s3_resource_gen.go b/internal/aws/datasync/location_s3_resource_gen.go index f2d4c4a332..544454a7d9 100644 --- a/internal/aws/datasync/location_s3_resource_gen.go +++ b/internal/aws/datasync/location_s3_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -225,20 +226,30 @@ func locationS3Resource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:@/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/datasync/location_smb_resource_gen.go b/internal/aws/datasync/location_smb_resource_gen.go index e293c548a1..ac74a4c809 100644 --- a/internal/aws/datasync/location_smb_resource_gen.go +++ b/internal/aws/datasync/location_smb_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-provider-awscc/internal/defaults" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -279,20 +280,30 @@ func locationSMBResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:@/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/datasync/storage_system_resource_gen.go b/internal/aws/datasync/storage_system_resource_gen.go index 4f1dd7d8c4..a4e1dd07c0 100644 --- a/internal/aws/datasync/storage_system_resource_gen.go +++ b/internal/aws/datasync/storage_system_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -223,18 +224,28 @@ func storageSystemResource(ctx context.Context) (resource.Resource, error) { // Property: Password "password": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The password for your storage system's management interface", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Username "username": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The username for your storage system's management interface.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The username and password for accessing your on-premises storage system's management interface.", @@ -321,20 +332,30 @@ func storageSystemResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:@/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/datasync/task_resource_gen.go b/internal/aws/datasync/task_resource_gen.go index a5c70433fd..f3c02187cb 100644 --- a/internal/aws/datasync/task_resource_gen.go +++ b/internal/aws/datasync/task_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -411,7 +412,14 @@ func taskResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the manifest that you want DataSync to use and where it's hosted.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configures a manifest, which is a list of files or objects that you want DataSync to transfer.", @@ -983,20 +991,30 @@ func taskResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for an AWS resource tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:@/-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1220,7 +1238,14 @@ func taskResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies where DataSync uploads your task report.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ObjectVersionIds "object_version_ids": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1240,13 +1265,18 @@ func taskResource(ctx context.Context) (resource.Resource, error) { // Property: OutputType "output_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the type of task report that you want.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "SUMMARY_ONLY", "STANDARD", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Overrides "overrides": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/datazone/data_source_resource_gen.go b/internal/aws/datazone/data_source_resource_gen.go index 5b8d2035c2..01ade4972e 100644 --- a/internal/aws/datazone/data_source_resource_gen.go +++ b/internal/aws/datazone/data_source_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -96,10 +97,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: FormName "form_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the metadata form.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TypeIdentifier "type_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -384,10 +390,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The database name specified in the relational filter configuration for the data source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FilterExpressions "filter_expressions": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -395,21 +406,31 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Expression "expression": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The search filter expression type.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "INCLUDE", "EXCLUDE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -436,9 +457,14 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The relational filter configurations included in the configuration details of the AWS Glue data source.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -469,15 +495,27 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: SecretManagerArn "secret_manager_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of a secret manager for an Amazon Redshift cluster.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws[^:]*:secretsmanager:[a-z]{2}-?(iso|gov)?-{1}[a-z]*-{1}[0-9]:\\d{12}:secret:.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The details of the credentials required to access an Amazon Redshift cluster.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RedshiftStorage "redshift_storage": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -488,11 +526,16 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: ClusterName "cluster_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of an Amazon Redshift cluster.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 63), stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-z].[a-z0-9\\-]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The name of an Amazon Redshift cluster.", @@ -508,11 +551,16 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: WorkgroupName "workgroup_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the Amazon Redshift Serverless workgroup.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 64), stringvalidator.RegexMatches(regexp.MustCompile("^[a-z0-9-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The details of the Amazon Redshift Serverless workgroup storage.", @@ -524,7 +572,14 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The details of the Amazon Redshift storage as part of the configuration of an Amazon Redshift data source run.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RelationalFilterConfigurations "relational_filter_configurations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -533,10 +588,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The database name specified in the relational filter configuration for the data source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FilterExpressions "filter_expressions": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -544,21 +604,31 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Expression "expression": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The search filter expression type.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "INCLUDE", "EXCLUDE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -585,9 +655,14 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The relational filter configurations included in the configuration details of the Amazon Redshift data source.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/datazone/domain_resource_gen.go b/internal/aws/datazone/domain_resource_gen.go index bace8df779..8f34d5065e 100644 --- a/internal/aws/datazone/domain_resource_gen.go +++ b/internal/aws/datazone/domain_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -310,18 +311,28 @@ func domainResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/deadline/farm_resource_gen.go b/internal/aws/deadline/farm_resource_gen.go index 7647a51524..b9d6e96d1d 100644 --- a/internal/aws/deadline/farm_resource_gen.go +++ b/internal/aws/deadline/farm_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -147,18 +148,28 @@ func farmResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/deadline/fleet_resource_gen.go b/internal/aws/deadline/fleet_resource_gen.go index 66657a5e5a..52946b36e3 100644 --- a/internal/aws/deadline/fleet_resource_gen.go +++ b/internal/aws/deadline/fleet_resource_gen.go @@ -28,6 +28,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -560,13 +561,18 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Mode "mode": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "NO_SCALING", "EVENT_BASED_AUTO_SCALING", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StorageProfileId "storage_profile_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -598,10 +604,15 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Min "min": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 2147483647), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -626,10 +637,15 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Min "min": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 2147483647), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -656,13 +672,18 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: CpuArchitectureType "cpu_architecture_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "x86_64", "arm64", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CustomAmounts "custom_amounts": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -678,15 +699,27 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Min "min": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), stringvalidator.RegexMatches(regexp.MustCompile("^([a-zA-Z][a-zA-Z0-9]{0,63}:)?amount(\\.[a-zA-Z][a-zA-Z0-9]{0,63})+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -705,23 +738,33 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), stringvalidator.RegexMatches(regexp.MustCompile("^([a-zA-Z][a-zA-Z0-9]{0,63}:)?attr(\\.[a-zA-Z][a-zA-Z0-9]{0,63})+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 10), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 100), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z_]([a-zA-Z0-9_\\-]{0,99})$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -750,24 +793,41 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Min "min": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(512, 2147483647), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OsFamily "os_family": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "WINDOWS", "LINUX", "MACOS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VCpuCount "v_cpu_count": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -785,16 +845,35 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Min "min": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 10000), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -826,13 +905,18 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: CpuArchitectureType "cpu_architecture_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "x86_64", "arm64", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CustomAmounts "custom_amounts": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -848,15 +932,27 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Min "min": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), stringvalidator.RegexMatches(regexp.MustCompile("^([a-zA-Z][a-zA-Z0-9]{0,63}:)?amount(\\.[a-zA-Z][a-zA-Z0-9]{0,63})+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -875,23 +971,33 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), stringvalidator.RegexMatches(regexp.MustCompile("^([a-zA-Z][a-zA-Z0-9]{0,63}:)?attr(\\.[a-zA-Z][a-zA-Z0-9]{0,63})+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 10), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 100), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z_]([a-zA-Z0-9_\\-]{0,99})$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -935,23 +1041,40 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Min "min": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(512, 2147483647), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OsFamily "os_family": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "LINUX", "WINDOWS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RootEbsVolume "root_ebs_volume": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1012,32 +1135,63 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Min "min": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 10000), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InstanceMarketOptions "instance_market_options": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "on-demand", "spot", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1217,18 +1371,28 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/deadline/license_endpoint_resource_gen.go b/internal/aws/deadline/license_endpoint_resource_gen.go index ee3899bf74..ef483a059f 100644 --- a/internal/aws/deadline/license_endpoint_resource_gen.go +++ b/internal/aws/deadline/license_endpoint_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -187,18 +188,28 @@ func licenseEndpointResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/deadline/queue_resource_gen.go b/internal/aws/deadline/queue_resource_gen.go index 08ac51d59e..4188d7abf0 100644 --- a/internal/aws/deadline/queue_resource_gen.go +++ b/internal/aws/deadline/queue_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -180,17 +181,27 @@ func queueResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: RootPrefix "root_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 63), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3BucketName "s3_bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -269,19 +280,29 @@ func queueResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Group "group": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 31), stringvalidator.RegexMatches(regexp.MustCompile("^(?:[a-z][a-z0-9-]{0,30})?$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: User "user": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 31), stringvalidator.RegexMatches(regexp.MustCompile("^(?:[a-z][a-z0-9-]{0,30})?$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -292,31 +313,46 @@ func queueResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RunAs "run_as": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "QUEUE_CONFIGURED_USER", "WORKER_AGENT_USER", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Windows "windows": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: PasswordArn "password_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: User "user": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 111), stringvalidator.RegexMatches(regexp.MustCompile("^[^\"'/\\[\\]:;|=,+*?<>\\s]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -432,18 +468,28 @@ func queueResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/deadline/storage_profile_resource_gen.go b/internal/aws/deadline/storage_profile_resource_gen.go index 62678b0460..3c83f4f31b 100644 --- a/internal/aws/deadline/storage_profile_resource_gen.go +++ b/internal/aws/deadline/storage_profile_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -101,28 +102,43 @@ func storageProfileResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), stringvalidator.RegexMatches(regexp.MustCompile("^[0-9A-Za-z ]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Path "path": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "SHARED", "LOCAL", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/dms/data_provider_resource_gen.go b/internal/aws/dms/data_provider_resource_gen.go index 2e40947567..2b48c4aea0 100644 --- a/internal/aws/dms/data_provider_resource_gen.go +++ b/internal/aws/dms/data_provider_resource_gen.go @@ -13,6 +13,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" @@ -20,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -364,19 +366,41 @@ func dataProviderResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ServerName "server_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SslMode "ssl_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "none", @@ -384,7 +408,11 @@ func dataProviderResource(ctx context.Context) (resource.Resource, error) { "verify-ca", "verify-full", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "MicrosoftSqlServerSettings property identifier.", @@ -407,15 +435,30 @@ func dataProviderResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ServerName "server_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SslMode "ssl_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "none", @@ -423,7 +466,11 @@ func dataProviderResource(ctx context.Context) (resource.Resource, error) { "verify-ca", "verify-full", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "MySqlSettings property identifier.", @@ -454,11 +501,25 @@ func dataProviderResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretsManagerOracleAsmAccessRoleArn "secrets_manager_oracle_asm_access_role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -494,11 +555,19 @@ func dataProviderResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: ServerName "server_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SslMode "ssl_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "none", @@ -506,7 +575,11 @@ func dataProviderResource(ctx context.Context) (resource.Resource, error) { "verify-ca", "verify-full", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "OracleSettings property identifier.", @@ -529,19 +602,41 @@ func dataProviderResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ServerName "server_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SslMode "ssl_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "none", @@ -549,7 +644,11 @@ func dataProviderResource(ctx context.Context) (resource.Resource, error) { "verify-ca", "verify-full", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "PostgreSqlSettings property identifier.", @@ -605,18 +704,28 @@ func dataProviderResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/dms/instance_profile_resource_gen.go b/internal/aws/dms/instance_profile_resource_gen.go index b9784a2b0c..07e46e8613 100644 --- a/internal/aws/dms/instance_profile_resource_gen.go +++ b/internal/aws/dms/instance_profile_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -265,18 +266,28 @@ func instanceProfileResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/dms/migration_project_resource_gen.go b/internal/aws/dms/migration_project_resource_gen.go index 9ccd1da99d..faafff8131 100644 --- a/internal/aws/dms/migration_project_resource_gen.go +++ b/internal/aws/dms/migration_project_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -349,18 +350,28 @@ func migrationProjectResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, , and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, , and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/dms/replication_config_resource_gen.go b/internal/aws/dms/replication_config_resource_gen.go index 3f24a3401a..20699f1293 100644 --- a/internal/aws/dms/replication_config_resource_gen.go +++ b/internal/aws/dms/replication_config_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -308,18 +309,28 @@ func replicationConfigResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Tag key.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Tag value.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/docdbelastic/cluster_resource_gen.go b/internal/aws/docdbelastic/cluster_resource_gen.go index bbc5d57985..f2e02d5111 100644 --- a/internal/aws/docdbelastic/cluster_resource_gen.go +++ b/internal/aws/docdbelastic/cluster_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -253,17 +254,27 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/dynamodb/global_table_resource_gen.go b/internal/aws/dynamodb/global_table_resource_gen.go index 8908611a8b..402f74f74c 100644 --- a/internal/aws/dynamodb/global_table_resource_gen.go +++ b/internal/aws/dynamodb/global_table_resource_gen.go @@ -16,6 +16,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" @@ -26,6 +27,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -243,10 +245,15 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: IndexName "index_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeySchema "key_schema": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -254,22 +261,39 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AttributeName "attribute_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeyType "key_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 2), listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Projection "projection": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -295,7 +319,14 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WriteOnDemandThroughputSettings "write_on_demand_throughput_settings": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -326,17 +357,27 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: MaxCapacity "max_capacity": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinCapacity "min_capacity": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SeedCapacity "seed_capacity": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -384,10 +425,24 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TargetValue "target_value": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -533,10 +588,15 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: IndexName "index_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeySchema "key_schema": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -544,22 +604,39 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AttributeName "attribute_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeyType "key_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(2), listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Projection "projection": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -585,7 +662,14 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -911,7 +995,14 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -937,7 +1028,14 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -948,10 +1046,15 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IndexName "index_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ReadOnDemandThroughputSettings "read_on_demand_throughput_settings": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -982,17 +1085,27 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: MaxCapacity "max_capacity": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinCapacity "min_capacity": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SeedCapacity "seed_capacity": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -1040,10 +1153,24 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TargetValue "target_value": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1097,7 +1224,14 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: StreamArn "stream_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1153,17 +1287,27 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: MaxCapacity "max_capacity": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinCapacity "min_capacity": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SeedCapacity "seed_capacity": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -1211,10 +1355,24 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TargetValue "target_value": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1254,10 +1412,24 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { // Property: PolicyDocument "policy_document": schema.StringAttribute{ /*START ATTRIBUTE*/ CustomType: jsontypes.NormalizedType{}, - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1272,7 +1444,14 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { // Property: PolicyDocument "policy_document": schema.StringAttribute{ /*START ATTRIBUTE*/ CustomType: jsontypes.NormalizedType{}, - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1286,7 +1465,14 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: KMSMasterKeyId "kms_master_key_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1309,11 +1495,25 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1352,7 +1552,14 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: SSEEnabled "sse_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SSEType "sse_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1400,7 +1607,14 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: StreamViewType "stream_view_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1465,7 +1679,14 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1570,17 +1791,27 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: MaxCapacity "max_capacity": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinCapacity "min_capacity": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SeedCapacity "seed_capacity": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -1629,10 +1860,24 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TargetValue "target_value": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/dynamodb/table_resource_gen.go b/internal/aws/dynamodb/table_resource_gen.go index a22a21e63c..e3379459da 100644 --- a/internal/aws/dynamodb/table_resource_gen.go +++ b/internal/aws/dynamodb/table_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -81,12 +82,26 @@ func tableResource(ctx context.Context) (resource.Resource, error) { // Property: AttributeName "attribute_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A name for the attribute.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AttributeType "attribute_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The data type for the attribute, where:\n + ``S`` - the attribute is of type String\n + ``N`` - the attribute is of type Number\n + ``B`` - the attribute is of type Binary", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -137,7 +152,14 @@ func tableResource(ctx context.Context) (resource.Resource, error) { // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether CloudWatch Contributor Insights are to be enabled (true) or disabled (false).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The settings used to enable or disable CloudWatch Contributor Insights for the specified table.", @@ -288,7 +310,14 @@ func tableResource(ctx context.Context) (resource.Resource, error) { // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether CloudWatch Contributor Insights are to be enabled (true) or disabled (false).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The settings used to enable or disable CloudWatch Contributor Insights for the specified global secondary index.", @@ -301,7 +330,14 @@ func tableResource(ctx context.Context) (resource.Resource, error) { // Property: IndexName "index_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the global secondary index. The name must be unique among all other indexes on this table.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeySchema "key_schema": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -310,20 +346,39 @@ func tableResource(ctx context.Context) (resource.Resource, error) { // Property: AttributeName "attribute_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of a key attribute.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeyType "key_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The role that this key attribute will assume:\n + ``HASH`` - partition key\n + ``RANGE`` - sort key\n \n The partition key of an item is also known as its *hash attribute*. The term \"hash attribute\" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.\n The sort key of an item is also known as its *range attribute*. The term \"range attribute\" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types:\n + ``HASH`` - partition key\n + ``RANGE`` - sort key\n \n The partition key of an item is also known as its *hash attribute*. The term \"hash attribute\" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.\n The sort key of an item is also known as its *range attribute*. The term \"range attribute\" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OnDemandThroughput "on_demand_throughput": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -384,7 +439,14 @@ func tableResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProvisionedThroughput "provisioned_throughput": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -392,12 +454,26 @@ func tableResource(ctx context.Context) (resource.Resource, error) { // Property: ReadCapacityUnits "read_capacity_units": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ``ThrottlingException``. For more information, see [Specifying Read and Write Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) in the *Amazon DynamoDB Developer Guide*.\n If read/write capacity mode is ``PAY_PER_REQUEST`` the value is set to 0.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WriteCapacityUnits "write_capacity_units": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum number of writes consumed per second before DynamoDB returns a ``ThrottlingException``. For more information, see [Specifying Read and Write Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) in the *Amazon DynamoDB Developer Guide*.\n If read/write capacity mode is ``PAY_PER_REQUEST`` the value is set to 0.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents the provisioned throughput settings for the specified global secondary index.\n For current minimum and maximum provisioned throughput values, see [Service, Account, and Table Quotas](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) in the *Amazon DynamoDB Developer Guide*.", @@ -504,7 +580,14 @@ func tableResource(ctx context.Context) (resource.Resource, error) { // Property: InputFormat "input_format": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The format of the source data. Valid values for ``ImportFormat`` are ``CSV``, ``DYNAMODB_JSON`` or ``ION``.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InputFormatOptions "input_format_options": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -556,7 +639,14 @@ func tableResource(ctx context.Context) (resource.Resource, error) { // Property: S3Bucket "s3_bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The S3 bucket that is being imported from.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3BucketOwner "s3_bucket_owner": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -578,7 +668,14 @@ func tableResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The S3 bucket that provides the source for the import.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the properties of data being imported from the S3 bucket source to the table.\n If you specify the ``ImportSourceSpecification`` property, and also specify either the ``StreamSpecification``, the ``TableClass`` property, or the ``DeletionProtectionEnabled`` property, the IAM entity creating/updating stack must have ``UpdateTable`` permission.", @@ -651,7 +748,14 @@ func tableResource(ctx context.Context) (resource.Resource, error) { // Property: StreamArn "stream_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN for a specific Kinesis data stream.\n Length Constraints: Minimum length of 37. Maximum length of 1024.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The Kinesis Data Streams configuration for the specified table.", @@ -734,7 +838,14 @@ func tableResource(ctx context.Context) (resource.Resource, error) { // Property: IndexName "index_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the local secondary index. The name must be unique among all other indexes on this table.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeySchema "key_schema": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -743,20 +854,39 @@ func tableResource(ctx context.Context) (resource.Resource, error) { // Property: AttributeName "attribute_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of a key attribute.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeyType "key_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The role that this key attribute will assume:\n + ``HASH`` - partition key\n + ``RANGE`` - sort key\n \n The partition key of an item is also known as its *hash attribute*. The term \"hash attribute\" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.\n The sort key of an item is also known as its *range attribute*. The term \"range attribute\" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types:\n + ``HASH`` - partition key\n + ``RANGE`` - sort key\n \n The partition key of an item is also known as its *hash attribute*. The term \"hash attribute\" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.\n The sort key of an item is also known as its *range attribute*. The term \"range attribute\" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Projection "projection": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -782,7 +912,14 @@ func tableResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents attributes that are copied (projected) from the table into the local secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -907,12 +1044,26 @@ func tableResource(ctx context.Context) (resource.Resource, error) { // Property: ReadCapacityUnits "read_capacity_units": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ``ThrottlingException``. For more information, see [Specifying Read and Write Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) in the *Amazon DynamoDB Developer Guide*.\n If read/write capacity mode is ``PAY_PER_REQUEST`` the value is set to 0.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WriteCapacityUnits "write_capacity_units": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum number of writes consumed per second before DynamoDB returns a ``ThrottlingException``. For more information, see [Specifying Read and Write Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) in the *Amazon DynamoDB Developer Guide*.\n If read/write capacity mode is ``PAY_PER_REQUEST`` the value is set to 0.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Throughput for the specified table, which consists of values for ``ReadCapacityUnits`` and ``WriteCapacityUnits``. For more information about the contents of a provisioned throughput structure, see [Amazon DynamoDB Table ProvisionedThroughput](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ProvisionedThroughput.html). \n If you set ``BillingMode`` as ``PROVISIONED``, you must specify this property. If you set ``BillingMode`` as ``PAY_PER_REQUEST``, you cannot specify this property.", @@ -945,7 +1096,14 @@ func tableResource(ctx context.Context) (resource.Resource, error) { "policy_document": schema.StringAttribute{ /*START ATTRIBUTE*/ CustomType: jsontypes.NormalizedType{}, Description: "A resource-based policy document that contains permissions to add to the specified DDB table, index, or both. In a CFNshort template, you can provide the policy in JSON or YAML format because CFNshort converts YAML to JSON before submitting it to DDB. For more information about resource-based policies, see [Using resource-based policies for](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/access-control-resource-based.html) and [Resource-based policy examples](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-examples.html).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A resource-based policy document that contains permissions to add to the specified table. In a CFNshort template, you can provide the policy in JSON or YAML format because CFNshort converts YAML to JSON before submitting it to DDB. For more information about resource-based policies, see [Using resource-based policies for](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/access-control-resource-based.html) and [Resource-based policy examples](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-examples.html).\n When you attach a resource-based policy while creating a table, the policy creation is *strongly consistent*. For information about the considerations that you should keep in mind while attaching a resource-based policy, see [Resource-based policy considerations](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-considerations.html).", @@ -999,7 +1157,14 @@ func tableResource(ctx context.Context) (resource.Resource, error) { // Property: SSEEnabled "sse_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether server-side encryption is done using an AWS managed key or an AWS owned key. If enabled (true), server-side encryption type is set to ``KMS`` and an AWS managed key is used (KMS charges apply). If disabled (false) or not specified, server-side encryption is set to AWS owned key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SSEType "sse_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1072,7 +1237,14 @@ func tableResource(ctx context.Context) (resource.Resource, error) { "policy_document": schema.StringAttribute{ /*START ATTRIBUTE*/ CustomType: jsontypes.NormalizedType{}, Description: "A resource-based policy document that contains permissions to add to the specified DDB table, index, or both. In a CFNshort template, you can provide the policy in JSON or YAML format because CFNshort converts YAML to JSON before submitting it to DDB. For more information about resource-based policies, see [Using resource-based policies for](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/access-control-resource-based.html) and [Resource-based policy examples](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-examples.html).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Creates or updates a resource-based policy document that contains the permissions for DDB resources, such as a table's streams. Resource-based policies let you define access permissions by specifying who has access to each resource, and the actions they are allowed to perform on each resource.\n In a CFNshort template, you can provide the policy in JSON or YAML format because CFNshort converts YAML to JSON before submitting it to DDB. For more information about resource-based policies, see [Using resource-based policies for](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/access-control-resource-based.html) and [Resource-based policy examples](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-examples.html).", @@ -1085,7 +1257,14 @@ func tableResource(ctx context.Context) (resource.Resource, error) { // Property: StreamViewType "stream_view_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "When an item in the table is modified, ``StreamViewType`` determines what information is written to the stream for this table. Valid values for ``StreamViewType`` are:\n + ``KEYS_ONLY`` - Only the key attributes of the modified item are written to the stream.\n + ``NEW_IMAGE`` - The entire item, as it appears after it was modified, is written to the stream.\n + ``OLD_IMAGE`` - The entire item, as it appeared before it was modified, is written to the stream.\n + ``NEW_AND_OLD_IMAGES`` - Both the new and the old item images of the item are written to the stream.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The settings for the DDB table stream, which capture changes to items stored in the table.", @@ -1159,12 +1338,26 @@ func tableResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key of the tag. Tag keys are case sensitive. Each DynamoDB table can only have up to one tag with the same key. If you try to add an existing tag (same key), the existing tag value will be updated to the new value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the tag. Tag values are case-sensitive and can be null.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1210,7 +1403,14 @@ func tableResource(ctx context.Context) (resource.Resource, error) { // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether TTL is to be enabled (true) or disabled (false) on the table.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the Time to Live (TTL) settings for the table.\n For detailed information about the limits in DynamoDB, see [Limits in Amazon DynamoDB](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) in the Amazon DynamoDB Developer Guide.", diff --git a/internal/aws/ec2/capacity_reservation_fleet_resource_gen.go b/internal/aws/ec2/capacity_reservation_fleet_resource_gen.go index 0e38bc8577..4b199ae78b 100644 --- a/internal/aws/ec2/capacity_reservation_fleet_resource_gen.go +++ b/internal/aws/ec2/capacity_reservation_fleet_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -288,11 +289,25 @@ func capacityReservationFleetResource(ctx context.Context) (resource.Resource, e Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/capacity_reservation_resource_gen.go b/internal/aws/ec2/capacity_reservation_resource_gen.go index b1289996ca..e442782317 100644 --- a/internal/aws/ec2/capacity_reservation_resource_gen.go +++ b/internal/aws/ec2/capacity_reservation_resource_gen.go @@ -15,8 +15,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -246,11 +248,25 @@ func capacityReservationResource(ctx context.Context) (resource.Resource, error) Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/customer_gateway_resource_gen.go b/internal/aws/ec2/customer_gateway_resource_gen.go index 96ae11b04c..14b9c6c027 100644 --- a/internal/aws/ec2/customer_gateway_resource_gen.go +++ b/internal/aws/ec2/customer_gateway_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -169,12 +170,26 @@ func customerGatewayResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/dhcp_options_resource_gen.go b/internal/aws/ec2/dhcp_options_resource_gen.go index 2ff190da7e..d6d5950a1b 100644 --- a/internal/aws/ec2/dhcp_options_resource_gen.go +++ b/internal/aws/ec2/dhcp_options_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -193,17 +194,27 @@ func dHCPOptionsResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/ec2_fleet_resource_gen.go b/internal/aws/ec2/ec2_fleet_resource_gen.go index 86a07840fa..169548a989 100644 --- a/internal/aws/ec2/ec2_fleet_resource_gen.go +++ b/internal/aws/ec2/ec2_fleet_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -454,7 +455,14 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Version "version": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1547,11 +1555,25 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/eip_resource_gen.go b/internal/aws/ec2/eip_resource_gen.go index 579f422772..e82ee72a43 100644 --- a/internal/aws/ec2/eip_resource_gen.go +++ b/internal/aws/ec2/eip_resource_gen.go @@ -13,8 +13,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -149,12 +151,26 @@ func eIPResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/flow_log_resource_gen.go b/internal/aws/ec2/flow_log_resource_gen.go index 11182c069e..b6ed6d4606 100644 --- a/internal/aws/ec2/flow_log_resource_gen.go +++ b/internal/aws/ec2/flow_log_resource_gen.go @@ -11,6 +11,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" @@ -19,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -92,21 +94,40 @@ func flowLogResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: FileFormat "file_format": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "plain-text", "parquet", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HiveCompatiblePartitions "hive_compatible_partitions": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PerHourPartition "per_hour_partition": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -295,11 +316,25 @@ func flowLogResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/instance_connect_endpoint_resource_gen.go b/internal/aws/ec2/instance_connect_endpoint_resource_gen.go index aff8e94a57..dcec6a730d 100644 --- a/internal/aws/ec2/instance_connect_endpoint_resource_gen.go +++ b/internal/aws/ec2/instance_connect_endpoint_resource_gen.go @@ -15,9 +15,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -143,11 +145,25 @@ func instanceConnectEndpointResource(ctx context.Context) (resource.Resource, er Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/instance_resource_gen.go b/internal/aws/ec2/instance_resource_gen.go index a57ff357a9..17bf582cbb 100644 --- a/internal/aws/ec2/instance_resource_gen.go +++ b/internal/aws/ec2/instance_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -161,7 +162,14 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { // Property: DeviceName "device_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The device name (for example, /dev/sdh or xvdh).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Ebs "ebs": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -396,7 +404,14 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of Elastic Graphics accelerator.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -454,7 +469,14 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of elastic inference accelerator.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -688,7 +710,14 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { // Property: Ipv6Address "ipv_6_address": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The IPv6 address.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -836,7 +865,14 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { // Property: LicenseConfigurationArn "license_configuration_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the license configuration.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1016,7 +1052,14 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { // Property: DeviceIndex "device_index": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The position of the network interface in the attachment order. A primary network interface has a device index of 0.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: GroupSet "group_set": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -1045,7 +1088,14 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { // Property: Ipv6Address "ipv_6_address": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The IPv6 address.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1082,12 +1132,26 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { // Property: Primary "primary": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be designated as primary.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PrivateIpAddress "private_ip_address": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The private IPv4 addresses.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1437,15 +1501,27 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of an input parameter that is in the associated SSM document.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The value of an input parameter.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1461,7 +1537,14 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { // Property: DocumentName "document_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of an SSM document to associate with the instance.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1556,11 +1639,25 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1635,12 +1732,26 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { // Property: Device "device": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The device name (for example, /dev/sdh or xvdh).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VolumeId "volume_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID of the EBS volume. The volume and instance must be within the same Availability Zone.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/internet_gateway_resource_gen.go b/internal/aws/ec2/internet_gateway_resource_gen.go index 13215a790e..0cb1034109 100644 --- a/internal/aws/ec2/internet_gateway_resource_gen.go +++ b/internal/aws/ec2/internet_gateway_resource_gen.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -78,18 +79,28 @@ func internetGatewayResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/ipam_pool_resource_gen.go b/internal/aws/ec2/ipam_pool_resource_gen.go index a4b3a7a6b3..2dc9b1f2af 100644 --- a/internal/aws/ec2/ipam_pool_resource_gen.go +++ b/internal/aws/ec2/ipam_pool_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -127,18 +128,28 @@ func iPAMPoolResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -348,7 +359,14 @@ func iPAMPoolResource(ctx context.Context) (resource.Resource, error) { // Property: Cidr "cidr": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Represents a single IPv4 or IPv6 CIDR", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -449,19 +467,47 @@ func iPAMPoolResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ResourceId "resource_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceOwner "resource_owner": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceRegion "resource_region": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceType "resource_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The resource associated with this pool's space. Depending on the ResourceType, setting a SourceResource changes which space can be provisioned in this pool and which types of resources can receive allocations", @@ -546,18 +592,28 @@ func iPAMPoolResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/ipam_resource_discovery_association_resource_gen.go b/internal/aws/ec2/ipam_resource_discovery_association_resource_gen.go index 08f09e7771..8081b8a18b 100644 --- a/internal/aws/ec2/ipam_resource_discovery_association_resource_gen.go +++ b/internal/aws/ec2/ipam_resource_discovery_association_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -206,18 +207,28 @@ func iPAMResourceDiscoveryAssociationResource(ctx context.Context) (resource.Res // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/ipam_resource_discovery_resource_gen.go b/internal/aws/ec2/ipam_resource_discovery_resource_gen.go index 5832d3e3b2..3fc48ef71b 100644 --- a/internal/aws/ec2/ipam_resource_discovery_resource_gen.go +++ b/internal/aws/ec2/ipam_resource_discovery_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -126,7 +127,14 @@ func iPAMResourceDiscoveryResource(ctx context.Context) (resource.Resource, erro // Property: RegionName "region_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the region.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -203,18 +211,28 @@ func iPAMResourceDiscoveryResource(ctx context.Context) (resource.Resource, erro // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/ipam_resource_gen.go b/internal/aws/ec2/ipam_resource_gen.go index b404edc443..57ee6ae2b2 100644 --- a/internal/aws/ec2/ipam_resource_gen.go +++ b/internal/aws/ec2/ipam_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -142,7 +143,14 @@ func iPAMResource(ctx context.Context) (resource.Resource, error) { // Property: RegionName "region_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the region.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -248,18 +256,28 @@ func iPAMResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/ipam_scope_resource_gen.go b/internal/aws/ec2/ipam_scope_resource_gen.go index 65ffaa690c..6623c8df4d 100644 --- a/internal/aws/ec2/ipam_scope_resource_gen.go +++ b/internal/aws/ec2/ipam_scope_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -182,18 +183,28 @@ func iPAMScopeResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/key_pair_resource_gen.go b/internal/aws/ec2/key_pair_resource_gen.go index d139272925..9f683148d3 100644 --- a/internal/aws/ec2/key_pair_resource_gen.go +++ b/internal/aws/ec2/key_pair_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -181,18 +182,28 @@ func keyPairResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/launch_template_resource_gen.go b/internal/aws/ec2/launch_template_resource_gen.go index 3b3c6f9689..73f3477104 100644 --- a/internal/aws/ec2/launch_template_resource_gen.go +++ b/internal/aws/ec2/launch_template_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -2504,12 +2505,26 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2635,12 +2650,26 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/nat_gateway_resource_gen.go b/internal/aws/ec2/nat_gateway_resource_gen.go index 502bf6e2e8..66bdd4b873 100644 --- a/internal/aws/ec2/nat_gateway_resource_gen.go +++ b/internal/aws/ec2/nat_gateway_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -223,12 +224,26 @@ func natGatewayResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/network_acl_resource_gen.go b/internal/aws/ec2/network_acl_resource_gen.go index a78c6553b9..4df401ae65 100644 --- a/internal/aws/ec2/network_acl_resource_gen.go +++ b/internal/aws/ec2/network_acl_resource_gen.go @@ -13,8 +13,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -73,12 +75,26 @@ func networkAclResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/network_insights_access_scope_analysis_resource_gen.go b/internal/aws/ec2/network_insights_access_scope_analysis_resource_gen.go index 8cf20ffb43..e54e8e67d6 100644 --- a/internal/aws/ec2/network_insights_access_scope_analysis_resource_gen.go +++ b/internal/aws/ec2/network_insights_access_scope_analysis_resource_gen.go @@ -14,8 +14,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -171,7 +173,14 @@ func networkInsightsAccessScopeAnalysisResource(ctx context.Context) (resource.R Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/ec2/network_insights_access_scope_resource_gen.go b/internal/aws/ec2/network_insights_access_scope_resource_gen.go index b24573eb2d..a51195f779 100644 --- a/internal/aws/ec2/network_insights_access_scope_resource_gen.go +++ b/internal/aws/ec2/network_insights_access_scope_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -1101,7 +1102,14 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/ec2/network_insights_analysis_resource_gen.go b/internal/aws/ec2/network_insights_analysis_resource_gen.go index 15d50c34dd..da6123994a 100644 --- a/internal/aws/ec2/network_insights_analysis_resource_gen.go +++ b/internal/aws/ec2/network_insights_analysis_resource_gen.go @@ -14,9 +14,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -2522,7 +2524,14 @@ func networkInsightsAnalysisResource(ctx context.Context) (resource.Resource, er Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/ec2/network_insights_path_resource_gen.go b/internal/aws/ec2/network_insights_path_resource_gen.go index 436933d926..2028d9dfb9 100644 --- a/internal/aws/ec2/network_insights_path_resource_gen.go +++ b/internal/aws/ec2/network_insights_path_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -440,7 +441,14 @@ func networkInsightsPathResource(ctx context.Context) (resource.Resource, error) Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/ec2/network_interface_resource_gen.go b/internal/aws/ec2/network_interface_resource_gen.go index e457f631e4..0aae7d12b0 100644 --- a/internal/aws/ec2/network_interface_resource_gen.go +++ b/internal/aws/ec2/network_interface_resource_gen.go @@ -17,9 +17,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -204,7 +206,14 @@ func networkInterfaceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Ipv4Prefix "ipv_4_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -257,7 +266,14 @@ func networkInterfaceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Ipv6Address "ipv_6_address": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -309,7 +325,14 @@ func networkInterfaceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Ipv6Prefix "ipv_6_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -395,11 +418,25 @@ func networkInterfaceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Primary "primary": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PrivateIpAddress "private_ip_address": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -506,11 +543,25 @@ func networkInterfaceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/placement_group_resource_gen.go b/internal/aws/ec2/placement_group_resource_gen.go index 0a46c25c2f..4aee3fb68c 100644 --- a/internal/aws/ec2/placement_group_resource_gen.go +++ b/internal/aws/ec2/placement_group_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -128,18 +129,28 @@ func placementGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/prefix_list_resource_gen.go b/internal/aws/ec2/prefix_list_resource_gen.go index 91890c302c..8922cc3d1b 100644 --- a/internal/aws/ec2/prefix_list_resource_gen.go +++ b/internal/aws/ec2/prefix_list_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -95,10 +96,15 @@ func prefixListResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Cidr "cidr": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 46), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Description "description": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -213,10 +219,15 @@ func prefixListResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/ec2/route_table_resource_gen.go b/internal/aws/ec2/route_table_resource_gen.go index af579e75cf..6da5fddb82 100644 --- a/internal/aws/ec2/route_table_resource_gen.go +++ b/internal/aws/ec2/route_table_resource_gen.go @@ -13,8 +13,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -73,12 +75,26 @@ func routeTableResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/security_group_resource_gen.go b/internal/aws/ec2/security_group_resource_gen.go index 8fc6d3e35b..c26e403158 100644 --- a/internal/aws/ec2/security_group_resource_gen.go +++ b/internal/aws/ec2/security_group_resource_gen.go @@ -14,8 +14,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -179,7 +181,14 @@ func securityGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IpProtocol "ip_protocol": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ToPort "to_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -284,7 +293,14 @@ func securityGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IpProtocol "ip_protocol": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourcePrefixListId "source_prefix_list_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -366,11 +382,25 @@ func securityGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/spot_fleet_resource_gen.go b/internal/aws/ec2/spot_fleet_resource_gen.go index 092124a255..e31006df78 100644 --- a/internal/aws/ec2/spot_fleet_resource_gen.go +++ b/internal/aws/ec2/spot_fleet_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -1260,7 +1261,14 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DeviceName "device_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Ebs "ebs": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1387,7 +1395,14 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: ImageId "image_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InstanceRequirements "instance_requirements": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1962,7 +1977,14 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Ipv6Address "ipv_6_address": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1997,7 +2019,14 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: PrivateIpAddress "private_ip_address": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2092,7 +2121,14 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: GroupId "group_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2190,11 +2226,25 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2272,7 +2322,14 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Version "version": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2836,14 +2893,26 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2861,14 +2930,26 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Arn "arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3051,11 +3132,25 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/subnet_resource_gen.go b/internal/aws/ec2/subnet_resource_gen.go index 0025b7869e..87b8822992 100644 --- a/internal/aws/ec2/subnet_resource_gen.go +++ b/internal/aws/ec2/subnet_resource_gen.go @@ -16,9 +16,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -386,12 +388,26 @@ func subnetResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/transit_gateway_attachment_resource_gen.go b/internal/aws/ec2/transit_gateway_attachment_resource_gen.go index b51b7b4908..798f8b93f3 100644 --- a/internal/aws/ec2/transit_gateway_attachment_resource_gen.go +++ b/internal/aws/ec2/transit_gateway_attachment_resource_gen.go @@ -14,9 +14,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -149,11 +151,25 @@ func transitGatewayAttachmentResource(ctx context.Context) (resource.Resource, e Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/transit_gateway_resource_gen.go b/internal/aws/ec2/transit_gateway_resource_gen.go index 06bb8d1877..20f0087156 100644 --- a/internal/aws/ec2/transit_gateway_resource_gen.go +++ b/internal/aws/ec2/transit_gateway_resource_gen.go @@ -14,9 +14,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -187,11 +189,25 @@ func transitGatewayResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/transit_gateway_route_table_resource_gen.go b/internal/aws/ec2/transit_gateway_route_table_resource_gen.go index 1eb1669fdd..71d04fc5aa 100644 --- a/internal/aws/ec2/transit_gateway_route_table_resource_gen.go +++ b/internal/aws/ec2/transit_gateway_route_table_resource_gen.go @@ -13,8 +13,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -58,12 +60,26 @@ func transitGatewayRouteTableResource(ctx context.Context) (resource.Resource, e // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key of the associated tag key-value pair", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the associated tag key-value pair", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/transit_gateway_vpc_attachment_resource_gen.go b/internal/aws/ec2/transit_gateway_vpc_attachment_resource_gen.go index 3d2040505f..bba5c37b41 100644 --- a/internal/aws/ec2/transit_gateway_vpc_attachment_resource_gen.go +++ b/internal/aws/ec2/transit_gateway_vpc_attachment_resource_gen.go @@ -14,9 +14,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -188,11 +190,25 @@ func transitGatewayVpcAttachmentResource(ctx context.Context) (resource.Resource Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/verified_access_endpoint_resource_gen.go b/internal/aws/ec2/verified_access_endpoint_resource_gen.go index 90f47c1554..326b4cd81a 100644 --- a/internal/aws/ec2/verified_access_endpoint_resource_gen.go +++ b/internal/aws/ec2/verified_access_endpoint_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -474,18 +475,28 @@ func verifiedAccessEndpointResource(ctx context.Context) (resource.Resource, err // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/verified_access_group_resource_gen.go b/internal/aws/ec2/verified_access_group_resource_gen.go index 8907e95b0e..01049427c8 100644 --- a/internal/aws/ec2/verified_access_group_resource_gen.go +++ b/internal/aws/ec2/verified_access_group_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -200,18 +201,28 @@ func verifiedAccessGroupResource(ctx context.Context) (resource.Resource, error) // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/verified_access_instance_resource_gen.go b/internal/aws/ec2/verified_access_instance_resource_gen.go index 1d8236d5c5..2cf5775d37 100644 --- a/internal/aws/ec2/verified_access_instance_resource_gen.go +++ b/internal/aws/ec2/verified_access_instance_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -330,18 +331,28 @@ func verifiedAccessInstanceResource(ctx context.Context) (resource.Resource, err // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/verified_access_trust_provider_resource_gen.go b/internal/aws/ec2/verified_access_trust_provider_resource_gen.go index 2543aa0c95..72cb09a5f7 100644 --- a/internal/aws/ec2/verified_access_trust_provider_resource_gen.go +++ b/internal/aws/ec2/verified_access_trust_provider_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -344,18 +345,28 @@ func verifiedAccessTrustProviderResource(ctx context.Context) (resource.Resource // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/volume_resource_gen.go b/internal/aws/ec2/volume_resource_gen.go index 4d2df86b50..d64c75b635 100644 --- a/internal/aws/ec2/volume_resource_gen.go +++ b/internal/aws/ec2/volume_resource_gen.go @@ -15,8 +15,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -192,12 +194,26 @@ func volumeResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/vpc_peering_connection_resource_gen.go b/internal/aws/ec2/vpc_peering_connection_resource_gen.go index d206dc248e..a0cb5fde74 100644 --- a/internal/aws/ec2/vpc_peering_connection_resource_gen.go +++ b/internal/aws/ec2/vpc_peering_connection_resource_gen.go @@ -13,8 +13,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -133,12 +135,26 @@ func vPCPeeringConnectionResource(ctx context.Context) (resource.Resource, error // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/vpc_resource_gen.go b/internal/aws/ec2/vpc_resource_gen.go index 7d20dddb2f..3d835d1951 100644 --- a/internal/aws/ec2/vpc_resource_gen.go +++ b/internal/aws/ec2/vpc_resource_gen.go @@ -15,9 +15,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -229,12 +231,26 @@ func vPCResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/vpn_connection_resource_gen.go b/internal/aws/ec2/vpn_connection_resource_gen.go index 9d21d13504..5b1fc9ef15 100644 --- a/internal/aws/ec2/vpn_connection_resource_gen.go +++ b/internal/aws/ec2/vpn_connection_resource_gen.go @@ -14,8 +14,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -186,12 +188,26 @@ func vPNConnectionResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/vpn_gateway_resource_gen.go b/internal/aws/ec2/vpn_gateway_resource_gen.go index 433b21e1a8..125b66702d 100644 --- a/internal/aws/ec2/vpn_gateway_resource_gen.go +++ b/internal/aws/ec2/vpn_gateway_resource_gen.go @@ -14,8 +14,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -77,12 +79,26 @@ func vPNGatewayResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ecr/public_repository_resource_gen.go b/internal/aws/ecr/public_repository_resource_gen.go index 26653d00ec..938f3a7c0f 100644 --- a/internal/aws/ecr/public_repository_resource_gen.go +++ b/internal/aws/ecr/public_repository_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -247,18 +248,28 @@ func publicRepositoryResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ecr/replication_configuration_resource_gen.go b/internal/aws/ecr/replication_configuration_resource_gen.go index ff6b860ecd..cd931811cb 100644 --- a/internal/aws/ecr/replication_configuration_resource_gen.go +++ b/internal/aws/ecr/replication_configuration_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -169,20 +170,30 @@ func replicationConfigurationResource(ctx context.Context) (resource.Resource, e // Property: Filter "filter": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The repository filter to be applied for replication.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^(?:[a-z0-9]+(?:[._-][a-z0-9]*)*/)*[a-z0-9]*(?:[._-][a-z0-9]*)*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FilterType "filter_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Type of repository filter", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PREFIX_MATCH", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ecr/repository_creation_template_resource_gen.go b/internal/aws/ecr/repository_creation_template_resource_gen.go index 03fbb0ab9a..dc09513115 100644 --- a/internal/aws/ecr/repository_creation_template_resource_gen.go +++ b/internal/aws/ecr/repository_creation_template_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -148,13 +149,18 @@ func repositoryCreationTemplateResource(ctx context.Context) (resource.Resource, // Property: EncryptionType "encryption_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The encryption type to use.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "AES256", "KMS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KmsKey "kms_key": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -296,18 +302,28 @@ func repositoryCreationTemplateResource(ctx context.Context) (resource.Resource, // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ecr/repository_resource_gen.go b/internal/aws/ecr/repository_resource_gen.go index e05d6c5239..a804374476 100644 --- a/internal/aws/ecr/repository_resource_gen.go +++ b/internal/aws/ecr/repository_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -94,16 +95,19 @@ func repositoryResource(ctx context.Context) (resource.Resource, error) { // Property: EncryptionType "encryption_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The encryption type to use.\n If you use the ``KMS`` encryption type, the contents of the repository will be encrypted using server-side encryption with KMSlong key stored in KMS. When you use KMS to encrypt your data, you can either use the default AWS managed KMS key for Amazon ECR, or specify your own KMS key, which you already created. For more information, see [Protecting data using server-side encryption with an key stored in (SSE-KMS)](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) in the *Amazon Simple Storage Service Console Developer Guide*.\n If you use the ``AES256`` encryption type, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts the images in the repository using an AES-256 encryption algorithm. For more information, see [Protecting data using server-side encryption with Amazon S3-managed encryption keys (SSE-S3)](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html) in the *Amazon Simple Storage Service Console Developer Guide*.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "AES256", "KMS", "KMS_DSSE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.RequiresReplace(), + stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KmsKey @@ -334,18 +338,28 @@ func repositoryResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "One part of a key-value pair that make up a tag. A ``key`` is a general label that acts like a category for more specific tag values.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A ``value`` acts as a descriptor within a tag category (key).", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ecs/service_resource_gen.go b/internal/aws/ecs/service_resource_gen.go index 8a143dc3a5..63b708445a 100644 --- a/internal/aws/ecs/service_resource_gen.go +++ b/internal/aws/ecs/service_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -187,17 +188,38 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { "alarm_names": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "One or more CloudWatch alarm names. Use a \",\" to separate the alarms.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Enable "enable": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Determines whether to use the CloudWatch alarm option in the service deployment process.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Rollback "rollback": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is used, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information about the CloudWatch alarms.", @@ -213,12 +235,26 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { // Property: Enable "enable": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Determines whether to use the deployment circuit breaker logic for the service.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Rollback "rollback": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is on, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The deployment circuit breaker can only be used for services using the rolling update (``ECS``) deployment type.\n The *deployment circuit breaker* determines whether a service deployment will fail if the service can't reach a steady state. If you use the deployment circuit breaker, a service deployment will transition to a failed state and stop launching new tasks. If you use the rollback option, when a service deployment fails, the service is rolled back to the last deployment that completed successfully. For more information, see [Rolling update](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html) in the *Amazon Elastic Container Service Developer Guide*", @@ -619,13 +655,18 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of constraint. Use ``distinctInstance`` to ensure that each task in a particular group is running on a different container instance. Use ``memberOf`` to restrict the selection to a group of valid candidates.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "distinctInstance", "memberOf", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -681,14 +722,19 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of placement strategy. The ``random`` placement strategy randomly places tasks on available candidates. The ``spread`` placement strategy spreads placement across available candidates evenly based on the ``field`` parameter. The ``binpack`` strategy places tasks on available candidates that have the least available amount of the resource that's specified with the ``field`` parameter. For example, if you binpack on memory, a task is placed on the instance with the least amount of remaining memory but still enough to run the task.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "binpack", "random", "spread", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -960,7 +1006,14 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether to use Service Connect with this service.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LogConfiguration "log_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -992,12 +1045,26 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the secret.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ValueFrom "value_from": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The secret to expose to the container. The supported values are either the full ARN of the ASMlong secret or the full ARN of the parameter in the SSM Parameter Store.\n For information about the require IAMlong permissions, see [Required IAM permissions for Amazon ECS secrets](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data-secrets.html#secrets-iam) (for Secrets Manager) or [Required IAM permissions for Amazon ECS secrets](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data-parameters.html) (for Systems Manager Parameter store) in the *Amazon Elastic Container Service Developer Guide*.\n If the SSM Parameter Store parameter exists in the same Region as the task you're launching, then you can use either the full ARN or name of the parameter. If the parameter exists in a different Region, then the full ARN must be specified.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1046,7 +1113,14 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { // Property: Port "port": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The listening port number for the Service Connect proxy. This port is available inside of all of the tasks within the same namespace.\n To avoid changing your applications in client Amazon ECS services, set this to the same port that the client application uses by default. For more information, see [Service Connect](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html) in the *Amazon Elastic Container Service Developer Guide*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1078,7 +1152,14 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { // Property: PortName "port_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ``portName`` must match the name of one of the ``portMappings`` from all the containers in the task definition of this Amazon ECS service.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Timeout "timeout": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1126,7 +1207,14 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The signer certificate authority.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KmsKey "kms_key": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1490,7 +1578,14 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the IAM role to associate with this volume. This is the Amazon ECS infrastructure IAM role that is used to manage your AWS infrastructure. We recommend using the Amazon ECS-managed ``AmazonECSInfrastructureRolePolicyForVolumes`` IAM policy with this role. For more information, see [Amazon ECS infrastructure IAM role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/infrastructure_IAM_role.html) in the *Amazon ECS Developer Guide*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SizeInGiB "size_in_gi_b": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -1532,7 +1627,14 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { // Property: ResourceType "resource_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of volume resource.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Tags "tags": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1603,7 +1705,14 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the volume. This value must match the volume name from the ``Volume`` object in the task definition.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ecs/task_definition_resource_gen.go b/internal/aws/ecs/task_definition_resource_gen.go index dc4681ba02..4f9a62f457 100644 --- a/internal/aws/ecs/task_definition_resource_gen.go +++ b/internal/aws/ecs/task_definition_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -1022,7 +1023,14 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { // Property: Image "image": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The image used to start a container. This string is passed directly to the Docker daemon. By default, images in the Docker Hub registry are available. Other repositories are specified with either ``repository-url/image:tag`` or ``repository-url/image@digest``. Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to ``Image`` in the docker container create command and the ``IMAGE`` parameter of docker run.\n + When a new task starts, the Amazon ECS container agent pulls the latest version of the specified image and tag for the container to use. However, subsequent updates to a repository image aren't propagated to already running tasks.\n + Images in Amazon ECR repositories can be specified by either using the full ``registry/repository:tag`` or ``registry/repository@digest``. For example, ``012345678910.dkr.ecr..amazonaws.com/:latest`` or ``012345678910.dkr.ecr..amazonaws.com/@sha256:94afd1f2e64d908bc90dbca0035a5b567EXAMPLE``. \n + Images in official repositories on Docker Hub use a single name (for example, ``ubuntu`` or ``mongo``).\n + Images in other repositories on Docker Hub are qualified with an organization name (for example, ``amazon/amazon-ecs-agent``).\n + Images in other online repositories are qualified further by a domain name (for example, ``quay.io/assemblyline/ubuntu``).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Interactive "interactive": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -1184,7 +1192,14 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { // Property: Size "size": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum size (in MiB) of the tmpfs volume.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1210,7 +1225,14 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { // Property: LogDriver "log_driver": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The log driver to use for the container.\n For tasks on FARGATElong, the supported log drivers are ``awslogs``, ``splunk``, and ``awsfirelens``.\n For tasks hosted on Amazon EC2 instances, the supported log drivers are ``awslogs``, ``fluentd``, ``gelf``, ``json-file``, ``journald``, ``syslog``, ``splunk``, and ``awsfirelens``.\n For more information about using the ``awslogs`` log driver, see [Send Amazon ECS logs to CloudWatch](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html) in the *Amazon Elastic Container Service Developer Guide*.\n For more information about using the ``awsfirelens`` log driver, see [Send Amazon ECS logs to an service or Partner](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html).\n If you have a custom driver that isn't listed, you can fork the Amazon ECS container agent project that's [available on GitHub](https://docs.aws.amazon.com/https://github.com/aws/amazon-ecs-agent) and customize it to work with that driver. We encourage you to submit pull requests for changes that you would like to have included. However, we don't currently provide support for running modified copies of this software.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Options "options": // Pattern: "" @@ -1230,12 +1252,26 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the secret.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ValueFrom "value_from": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The secret to expose to the container. The supported values are either the full ARN of the ASMlong secret or the full ARN of the parameter in the SSM Parameter Store.\n For information about the require IAMlong permissions, see [Required IAM permissions for Amazon ECS secrets](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data-secrets.html#secrets-iam) (for Secrets Manager) or [Required IAM permissions for Amazon ECS secrets](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data-parameters.html) (for Systems Manager Parameter store) in the *Amazon Elastic Container Service Developer Guide*.\n If the SSM Parameter Store parameter exists in the same Region as the task you're launching, then you can use either the full ARN or name of the parameter. If the parameter exists in a different Region, then the full ARN must be specified.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1319,7 +1355,14 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of a container. If you're linking multiple containers together in a task definition, the ``name`` of one container can be entered in the ``links`` of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. This parameter maps to ``name`` in tthe docker container create command and the ``--name`` option to docker run.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PortMappings "port_mappings": schema.SetNestedAttribute{ /*START ATTRIBUTE*/ @@ -1449,12 +1492,26 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of resource to assign to a container.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the specified resource type.\n When the type is ``GPU``, the value is the number of physical ``GPUs`` the Amazon ECS container agent reserves for the container. The number of GPUs that's reserved for all containers in a task can't exceed the number of available GPUs on the container instance that the task is launched on.\n When the type is ``InferenceAccelerator``, the ``value`` matches the ``deviceName`` for an [InferenceAccelerator](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_InferenceAccelerator.html) specified in a task definition.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1513,12 +1570,26 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the secret.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ValueFrom "value_from": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The secret to expose to the container. The supported values are either the full ARN of the ASMlong secret or the full ARN of the parameter in the SSM Parameter Store.\n For information about the require IAMlong permissions, see [Required IAM permissions for Amazon ECS secrets](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data-secrets.html#secrets-iam) (for Secrets Manager) or [Required IAM permissions for Amazon ECS secrets](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data-parameters.html) (for Systems Manager Parameter store) in the *Amazon Elastic Container Service Developer Guide*.\n If the SSM Parameter Store parameter exists in the same Region as the task you're launching, then you can use either the full ARN or name of the parameter. If the parameter exists in a different Region, then the full ARN must be specified.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1587,17 +1658,38 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { // Property: HardLimit "hard_limit": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The hard limit for the ``ulimit`` type.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ``type`` of the ``ulimit``.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SoftLimit "soft_limit": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The soft limit for the ``ulimit`` type.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1911,7 +2003,14 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of constraint. The ``MemberOf`` constraint restricts selection to be from a group of valid candidates.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1970,7 +2069,14 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { // Property: ContainerName "container_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the container that will serve as the App Mesh proxy.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProxyConfigurationProperties "proxy_configuration_properties": schema.SetNestedAttribute{ /*START ATTRIBUTE*/ @@ -2448,7 +2554,14 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { // Property: FilesystemId "filesystem_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon EFS file system ID to use.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RootDirectory "root_directory": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2500,12 +2613,26 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { // Property: CredentialsParameter "credentials_parameter": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The authorization credential option to use. The authorization credential options can be provided using either the Amazon Resource Name (ARN) of an ASMlong secret or SSM Parameter Store parameter. The ARN refers to the stored credentials.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Domain "domain": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A fully qualified domain name hosted by an [](https://docs.aws.amazon.com/directoryservice/latest/admin-guide/directory_microsoft_ad.html) Managed Microsoft AD (Active Directory) or self-hosted AD on Amazon EC2.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The authorization configuration details for the Amazon FSx for Windows File Server file system.", @@ -2518,12 +2645,26 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { // Property: FileSystemId "file_system_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon FSx for Windows File Server file system ID to use.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RootDirectory "root_directory": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The directory within the Amazon FSx for Windows File Server file system to mount as the root directory inside the host.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "This parameter is specified when you use Amazon FSx for Windows File Server file system for task storage.", diff --git a/internal/aws/ecs/task_set_resource_gen.go b/internal/aws/ecs/task_set_resource_gen.go index 51ae11e88a..363ca2efa5 100644 --- a/internal/aws/ecs/task_set_resource_gen.go +++ b/internal/aws/ecs/task_set_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -248,10 +249,15 @@ func taskSetResource(ctx context.Context) (resource.Resource, error) { "subnets": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The subnets associated with the task or service. There is a limit of 16 subnets that can be specified per AwsVpcConfiguration.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(16), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The VPC subnets and security groups associated with a task. All specified subnets and security groups must be from the same VPC.", diff --git a/internal/aws/efs/access_point_resource_gen.go b/internal/aws/efs/access_point_resource_gen.go index bc69ab2fc5..81560e4df4 100644 --- a/internal/aws/efs/access_point_resource_gen.go +++ b/internal/aws/efs/access_point_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -187,9 +188,14 @@ func accessPointResource(ctx context.Context) (resource.Resource, error) { // Property: Gid "gid": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The POSIX group ID used for all file system operations using this access point.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.RequiresReplace(), + stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecondaryGids @@ -206,9 +212,14 @@ func accessPointResource(ctx context.Context) (resource.Resource, error) { // Property: Uid "uid": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The POSIX user ID used for all file system operations using this access point.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.RequiresReplace(), + stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -269,20 +280,39 @@ func accessPointResource(ctx context.Context) (resource.Resource, error) { // Property: OwnerGid "owner_gid": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the POSIX group ID to apply to the ``RootDirectory``. Accepts values from 0 to 2^32 (4294967295).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OwnerUid "owner_uid": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the POSIX user ID to apply to the ``RootDirectory``. Accepts values from 0 to 2^32 (4294967295).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Permissions "permissions": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the POSIX permissions to apply to the ``RootDirectory``, in the format of an octal number representing the file's mode bits.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[0-7]{3,4}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "(Optional) Specifies the POSIX IDs and permissions to apply to the access point's ``RootDirectory``. If the ``RootDirectory`` > ``Path`` specified does not exist, EFS creates the root directory using the ``CreationInfo`` settings when a client connects to an access point. When specifying the ``CreationInfo``, you must provide values for all properties. \n If you do not provide ``CreationInfo`` and the specified ``RootDirectory`` > ``Path`` does not exist, attempts to mount the file system using the access point will fail.", diff --git a/internal/aws/efs/file_system_resource_gen.go b/internal/aws/efs/file_system_resource_gen.go index 8d4f5156cb..fe3f6c9f05 100644 --- a/internal/aws/efs/file_system_resource_gen.go +++ b/internal/aws/efs/file_system_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -86,13 +87,18 @@ func fileSystemResource(ctx context.Context) (resource.Resource, error) { // Property: Status "status": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Set the backup policy status for the file system.\n + *ENABLED* - Turns automatic backups on for the file system. \n + *DISABLED* - Turns automatic backups off for the file system.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DISABLED", "ENABLED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Use the ``BackupPolicy`` to turn automatic backups on or off for the file system.", @@ -240,12 +246,26 @@ func fileSystemResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key (String). The key can't start with ``aws:``.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the tag key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/eks/access_entry_resource_gen.go b/internal/aws/eks/access_entry_resource_gen.go index 60c7e505b2..a07f89af6e 100644 --- a/internal/aws/eks/access_entry_resource_gen.go +++ b/internal/aws/eks/access_entry_resource_gen.go @@ -12,6 +12,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" @@ -19,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -114,22 +116,41 @@ func accessEntryResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of the access scope.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "namespace", "cluster", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The access scope of the access policy.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PolicyArn "policy_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the access policy to add to the access entry.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -238,18 +259,28 @@ func accessEntryResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/eks/addon_resource_gen.go b/internal/aws/eks/addon_resource_gen.go index 8584ac01c1..96e116e40d 100644 --- a/internal/aws/eks/addon_resource_gen.go +++ b/internal/aws/eks/addon_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -152,15 +153,27 @@ func addonResource(ctx context.Context) (resource.Resource, error) { // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The IAM role ARN that the pod identity association is created for.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(-cn|-us-gov|-iso(-[a-z])?)?:iam::\\d{12}:(role)\\/*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ServiceAccount "service_account": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Kubernetes service account that the pod identity association is created for.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -275,18 +288,28 @@ func addonResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/eks/cluster_resource_gen.go b/internal/aws/eks/cluster_resource_gen.go index 2188c35bce..2038fa96eb 100644 --- a/internal/aws/eks/cluster_resource_gen.go +++ b/internal/aws/eks/cluster_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -512,7 +513,14 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { // Property: ControlPlaneInstanceType "control_plane_instance_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specify the Instance type of the machines that should be used to create your cluster.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ControlPlanePlacement "control_plane_placement": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -538,9 +546,14 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { "outpost_arns": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "Specify one or more Arn(s) of Outpost(s) on which you would like to create your cluster.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -707,18 +720,28 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/eks/fargate_profile_resource_gen.go b/internal/aws/eks/fargate_profile_resource_gen.go index 10bcde7acf..562ad694d3 100644 --- a/internal/aws/eks/fargate_profile_resource_gen.go +++ b/internal/aws/eks/fargate_profile_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -153,18 +154,28 @@ func fargateProfileResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the label.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the label. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -246,18 +257,28 @@ func fargateProfileResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/eks/identity_provider_config_resource_gen.go b/internal/aws/eks/identity_provider_config_resource_gen.go index 2b4d29eafc..47a98d908d 100644 --- a/internal/aws/eks/identity_provider_config_resource_gen.go +++ b/internal/aws/eks/identity_provider_config_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -143,7 +144,14 @@ func identityProviderConfigResource(ctx context.Context) (resource.Resource, err // Property: ClientId "client_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "This is also known as audience. The ID for the client application that makes authentication requests to the OpenID identity provider.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: GroupsClaim "groups_claim": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -166,7 +174,14 @@ func identityProviderConfigResource(ctx context.Context) (resource.Resource, err // Property: IssuerUrl "issuer_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of the OpenID identity provider that allows the API server to discover public signing keys for verifying tokens.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RequiredClaims "required_claims": schema.SetNestedAttribute{ /*START ATTRIBUTE*/ @@ -175,18 +190,28 @@ func identityProviderConfigResource(ctx context.Context) (resource.Resource, err // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key of the requiredClaims.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 63), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the requiredClaims.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 253), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -261,18 +286,28 @@ func identityProviderConfigResource(ctx context.Context) (resource.Resource, err // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/eks/nodegroup_resource_gen.go b/internal/aws/eks/nodegroup_resource_gen.go index abcfdfdd95..3ef9596b59 100644 --- a/internal/aws/eks/nodegroup_resource_gen.go +++ b/internal/aws/eks/nodegroup_resource_gen.go @@ -26,6 +26,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -332,7 +333,14 @@ func nodegroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Ec2SshKey "ec_2_ssh_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceSecurityGroups "source_security_groups": schema.ListAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/eks/pod_identity_association_resource_gen.go b/internal/aws/eks/pod_identity_association_resource_gen.go index 8783324345..a097976acf 100644 --- a/internal/aws/eks/pod_identity_association_resource_gen.go +++ b/internal/aws/eks/pod_identity_association_resource_gen.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -151,18 +152,28 @@ func podIdentityAssociationResource(ctx context.Context) (resource.Resource, err // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/elasticache/parameter_group_resource_gen.go b/internal/aws/elasticache/parameter_group_resource_gen.go index 0ed553b71b..a6f2419216 100644 --- a/internal/aws/elasticache/parameter_group_resource_gen.go +++ b/internal/aws/elasticache/parameter_group_resource_gen.go @@ -14,9 +14,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -119,11 +121,25 @@ func parameterGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/elasticache/serverless_cache_resource_gen.go b/internal/aws/elasticache/serverless_cache_resource_gen.go index d308fd97f0..dc460ce2eb 100644 --- a/internal/aws/elasticache/serverless_cache_resource_gen.go +++ b/internal/aws/elasticache/serverless_cache_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -121,12 +122,17 @@ func serverlessCacheResource(ctx context.Context) (resource.Resource, error) { // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The unit of cached data capacity of the Serverless Cache.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "GB", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The cached data capacity of the Serverless Cache.", @@ -529,10 +535,15 @@ func serverlessCacheResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with 'aws:'. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/elasticache/subnet_group_resource_gen.go b/internal/aws/elasticache/subnet_group_resource_gen.go index c9e9239701..b252992f17 100644 --- a/internal/aws/elasticache/subnet_group_resource_gen.go +++ b/internal/aws/elasticache/subnet_group_resource_gen.go @@ -13,9 +13,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -103,11 +105,25 @@ func subnetGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/elasticache/user_group_resource_gen.go b/internal/aws/elasticache/user_group_resource_gen.go index 81b92ea8b4..797be16011 100644 --- a/internal/aws/elasticache/user_group_resource_gen.go +++ b/internal/aws/elasticache/user_group_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -120,10 +121,15 @@ func userGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with 'aws:'. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/elasticache/user_resource_gen.go b/internal/aws/elasticache/user_resource_gen.go index 40311ec29f..c861a69f58 100644 --- a/internal/aws/elasticache/user_resource_gen.go +++ b/internal/aws/elasticache/user_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -113,14 +114,19 @@ func userResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Authentication Type", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "password", "no-password-required", "iam", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -248,10 +254,15 @@ func userResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with 'aws:'. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/elasticbeanstalk/configuration_template_resource_gen.go b/internal/aws/elasticbeanstalk/configuration_template_resource_gen.go index 3c4a42805f..a3d31afdd7 100644 --- a/internal/aws/elasticbeanstalk/configuration_template_resource_gen.go +++ b/internal/aws/elasticbeanstalk/configuration_template_resource_gen.go @@ -14,8 +14,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -114,12 +116,26 @@ func configurationTemplateResource(ctx context.Context) (resource.Resource, erro // Property: Namespace "namespace": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A unique namespace that identifies the option's associated AWS resource.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OptionName "option_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the configuration option.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceName "resource_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -208,13 +224,27 @@ func configurationTemplateResource(ctx context.Context) (resource.Resource, erro // Property: ApplicationName "application_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the application associated with the configuration.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ // ApplicationName is a write-only property. }, /*END ATTRIBUTE*/ // Property: TemplateName "template_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the configuration template.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ // TemplateName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/elasticbeanstalk/environment_resource_gen.go b/internal/aws/elasticbeanstalk/environment_resource_gen.go index 152cb7ca61..bb93ad61f2 100644 --- a/internal/aws/elasticbeanstalk/environment_resource_gen.go +++ b/internal/aws/elasticbeanstalk/environment_resource_gen.go @@ -14,8 +14,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -155,12 +157,26 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { // Property: Namespace "namespace": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A unique namespace that identifies the option's associated AWS resource.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OptionName "option_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the configuration option.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceName "resource_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -255,12 +271,26 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/elasticloadbalancingv2/load_balancer_resource_gen.go b/internal/aws/elasticloadbalancingv2/load_balancer_resource_gen.go index 0552aa0434..63dd69ca8a 100644 --- a/internal/aws/elasticloadbalancingv2/load_balancer_resource_gen.go +++ b/internal/aws/elasticloadbalancingv2/load_balancer_resource_gen.go @@ -14,9 +14,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -303,7 +305,14 @@ func loadBalancerResource(ctx context.Context) (resource.Resource, error) { // Property: SubnetId "subnet_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID of the subnet.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -368,7 +377,14 @@ func loadBalancerResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key of the tag.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/elasticloadbalancingv2/target_group_resource_gen.go b/internal/aws/elasticloadbalancingv2/target_group_resource_gen.go index 065313bcb2..6aab28da0d 100644 --- a/internal/aws/elasticloadbalancingv2/target_group_resource_gen.go +++ b/internal/aws/elasticloadbalancingv2/target_group_resource_gen.go @@ -17,9 +17,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -315,12 +317,26 @@ func targetGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. ", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. ", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -489,7 +505,14 @@ func targetGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID of the target. If the target type of the target group is instance, specify an instance ID. If the target type is ip, specify an IP address. If the target type is lambda, specify the ARN of the Lambda function. If the target type is alb, specify the ARN of the Application Load Balancer target. ", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Int64Attribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/elasticloadbalancingv2/trust_store_resource_gen.go b/internal/aws/elasticloadbalancingv2/trust_store_resource_gen.go index ea7ba00215..67b394aa6d 100644 --- a/internal/aws/elasticloadbalancingv2/trust_store_resource_gen.go +++ b/internal/aws/elasticloadbalancingv2/trust_store_resource_gen.go @@ -14,8 +14,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -148,11 +150,25 @@ func trustStoreResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/emr/studio_resource_gen.go b/internal/aws/emr/studio_resource_gen.go index 95cb0157ad..6f7a4bdbad 100644 --- a/internal/aws/emr/studio_resource_gen.go +++ b/internal/aws/emr/studio_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -351,19 +352,29 @@ func studioResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 255 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z+-=._:/]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/emr/wal_workspace_resource_gen.go b/internal/aws/emr/wal_workspace_resource_gen.go index bdb95c0cd3..f143c16d58 100644 --- a/internal/aws/emr/wal_workspace_resource_gen.go +++ b/internal/aws/emr/wal_workspace_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -66,18 +67,28 @@ func wALWorkspaceResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/emrcontainers/virtual_cluster_resource_gen.go b/internal/aws/emrcontainers/virtual_cluster_resource_gen.go index f7ff8e5829..34b14f0694 100644 --- a/internal/aws/emrcontainers/virtual_cluster_resource_gen.go +++ b/internal/aws/emrcontainers/virtual_cluster_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -205,12 +206,26 @@ func virtualClusterResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/emrserverless/application_resource_gen.go b/internal/aws/emrserverless/application_resource_gen.go index 42c0fdf151..267f9de2a9 100644 --- a/internal/aws/emrserverless/application_resource_gen.go +++ b/internal/aws/emrserverless/application_resource_gen.go @@ -26,6 +26,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -294,11 +295,16 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Worker type for an analytics framework.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z]+[-_]*[a-zA-Z]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -309,11 +315,16 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: Cpu "cpu": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Per worker CPU resource. vCPU is the only supported unit and specifying vCPU is optional.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 15), stringvalidator.RegexMatches(regexp.MustCompile("^[1-9][0-9]*(\\s)?(vCPU|vcpu|VCPU)?$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Disk "disk": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -331,25 +342,49 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: Memory "memory": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Per worker memory resource. GB is the only supported unit and specifying GB is optional.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 15), stringvalidator.RegexMatches(regexp.MustCompile("^[1-9][0-9]*(\\s)?(GB|gb|gB|Gb)?$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WorkerCount "worker_count": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Initial count of workers to be initialized when an Application is started. This count will be continued to be maintained until the Application is stopped", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 1000000), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -400,11 +435,16 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: Cpu "cpu": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Per worker CPU resource. vCPU is the only supported unit and specifying vCPU is optional.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 15), stringvalidator.RegexMatches(regexp.MustCompile("^[1-9][0-9]*(\\s)?(vCPU|vcpu|VCPU)?$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Disk "disk": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -422,11 +462,16 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: Memory "memory": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Per worker memory resource. GB is the only supported unit and specifying GB is optional.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 15), stringvalidator.RegexMatches(regexp.MustCompile("^[1-9][0-9]*(\\s)?(GB|gb|gB|Gb)?$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Maximum allowed cumulative resources for an Application. No new resources will be created once the limit is hit.", @@ -601,20 +646,30 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 128 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[A-Za-z0-9 /_.:=+@-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[A-Za-z0-9 /_.:=+@-]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/entityresolution/id_mapping_workflow_resource_gen.go b/internal/aws/entityresolution/id_mapping_workflow_resource_gen.go index 057a195c93..b4087f17e8 100644 --- a/internal/aws/entityresolution/id_mapping_workflow_resource_gen.go +++ b/internal/aws/entityresolution/id_mapping_workflow_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -211,7 +212,14 @@ func idMappingWorkflowResource(ctx context.Context) (resource.Resource, error) { // Property: IntermediateS3Path "intermediate_s3_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The s3 path that would be used to stage the intermediate data being generated during workflow execution.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -234,10 +242,15 @@ func idMappingWorkflowResource(ctx context.Context) (resource.Resource, error) { // Property: ProviderServiceArn "provider_service_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Arn of the Provider Service being used.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:(aws|aws-us-gov|aws-cn):(entityresolution):([a-z]{2}-[a-z]{1,10}-[0-9])::providerservice/([a-zA-Z0-9_-]{1,255})/([a-zA-Z0-9_-]{1,255})$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -251,23 +264,33 @@ func idMappingWorkflowResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AttributeMatchingModel "attribute_matching_model": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ONE_TO_ONE", "MANY_TO_MANY", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RecordMatchingModel "record_matching_model": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ONE_SOURCE_TO_ONE_TARGET", "MANY_SOURCE_TO_ONE_TARGET", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RuleDefinitionType "rule_definition_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -290,25 +313,33 @@ func idMappingWorkflowResource(ctx context.Context) (resource.Resource, error) { // Property: MatchingKeys "matching_keys": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 15), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(0, 255), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z_0-9- \\t]*$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RuleName "rule_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 255), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z_0-9- \\t]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -458,10 +489,15 @@ func idMappingWorkflowResource(ctx context.Context) (resource.Resource, error) { // Property: OutputS3Path "output_s3_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The S3 path to which Entity Resolution will write the output table", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^s3://([^/]+)/?(.*?([^/]+)/?)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -527,18 +563,28 @@ func idMappingWorkflowResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/entityresolution/id_namespace_resource_gen.go b/internal/aws/entityresolution/id_namespace_resource_gen.go index 243ab56628..fc25192a98 100644 --- a/internal/aws/entityresolution/id_namespace_resource_gen.go +++ b/internal/aws/entityresolution/id_namespace_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -190,13 +191,18 @@ func idNamespaceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: IdMappingType "id_mapping_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PROVIDER", "RULE_BASED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProviderProperties "provider_properties": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -214,11 +220,16 @@ func idNamespaceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: ProviderServiceArn "provider_service_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 255), stringvalidator.RegexMatches(regexp.MustCompile("^arn:(aws|aws-us-gov|aws-cn):(entityresolution):([a-z]{2}-[a-z]{1,10}-[0-9])::providerservice/([a-zA-Z0-9_-]{1,255})/([a-zA-Z0-9_-]{1,255})$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -287,25 +298,33 @@ func idNamespaceResource(ctx context.Context) (resource.Resource, error) { // Property: MatchingKeys "matching_keys": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 25), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(0, 255), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z_0-9- \\t]*$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RuleName "rule_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 255), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z_0-9- \\t]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -405,10 +424,15 @@ func idNamespaceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: InputSourceARN "input_source_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:(aws|aws-us-gov|aws-cn):entityresolution:[a-z]{2}-[a-z]{1,10}-[0-9]:[0-9]{12}:(idnamespace/[a-zA-Z_0-9-]{1,255})$|^arn:(aws|aws-us-gov|aws-cn):glue:[a-z]{2}-[a-z]{1,10}-[0-9]:[0-9]{12}:(table/[a-zA-Z_0-9-]{1,255}/[a-zA-Z_0-9-]{1,255})$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SchemaName "schema_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -493,18 +517,28 @@ func idNamespaceResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/entityresolution/matching_workflow_resource_gen.go b/internal/aws/entityresolution/matching_workflow_resource_gen.go index 0c3efbf8ba..c393711c65 100644 --- a/internal/aws/entityresolution/matching_workflow_resource_gen.go +++ b/internal/aws/entityresolution/matching_workflow_resource_gen.go @@ -15,6 +15,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -24,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -90,12 +92,17 @@ func matchingWorkflowResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: IncrementalRunType "incremental_run_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "IMMEDIATE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -420,7 +427,14 @@ func matchingWorkflowResource(ctx context.Context) (resource.Resource, error) { // Property: IntermediateS3Path "intermediate_s3_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The s3 path that would be used to stage the intermediate data being generated during workflow execution.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -443,7 +457,14 @@ func matchingWorkflowResource(ctx context.Context) (resource.Resource, error) { // Property: ProviderServiceArn "provider_service_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Arn of the Provider service being used.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -472,13 +493,18 @@ func matchingWorkflowResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AttributeMatchingModel "attribute_matching_model": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ONE_TO_ONE", "MANY_TO_MANY", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MatchPurpose "match_purpose": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -501,34 +527,45 @@ func matchingWorkflowResource(ctx context.Context) (resource.Resource, error) { // Property: MatchingKeys "matching_keys": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 15), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(0, 255), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z_0-9- \\t]*$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RuleName "rule_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 255), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z_0-9- \\t]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 15), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -593,18 +630,28 @@ func matchingWorkflowResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/entityresolution/schema_mapping_resource_gen.go b/internal/aws/entityresolution/schema_mapping_resource_gen.go index af365e183e..7ffcb5c3e2 100644 --- a/internal/aws/entityresolution/schema_mapping_resource_gen.go +++ b/internal/aws/entityresolution/schema_mapping_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -315,18 +316,28 @@ func schemaMappingResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/events/endpoint_resource_gen.go b/internal/aws/events/endpoint_resource_gen.go index dae1dbc44f..ceb6aa9f03 100644 --- a/internal/aws/events/endpoint_resource_gen.go +++ b/internal/aws/events/endpoint_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -182,13 +183,18 @@ func endpointResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: State "state": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ENABLED", "DISABLED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/events/event_bus_resource_gen.go b/internal/aws/events/event_bus_resource_gen.go index 9f428f6f79..80904208dc 100644 --- a/internal/aws/events/event_bus_resource_gen.go +++ b/internal/aws/events/event_bus_resource_gen.go @@ -14,8 +14,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -175,11 +177,25 @@ func eventBusResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/events/rule_resource_gen.go b/internal/aws/events/rule_resource_gen.go index dee07d671d..466f8174b6 100644 --- a/internal/aws/events/rule_resource_gen.go +++ b/internal/aws/events/rule_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -593,7 +594,14 @@ func ruleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: GraphQLOperation "graph_ql_operation": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -604,7 +612,14 @@ func ruleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Arn "arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BatchParameters "batch_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -629,11 +644,25 @@ func ruleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: JobDefinition "job_definition": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: JobName "job_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RetryStrategy "retry_strategy": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -695,7 +724,14 @@ func ruleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: CapacityProvider "capacity_provider": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Weight "weight": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -777,7 +813,14 @@ func ruleResource(ctx context.Context) (resource.Resource, error) { // Property: Subnets "subnets": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -920,7 +963,14 @@ func ruleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TaskDefinitionArn "task_definition_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -973,7 +1023,14 @@ func ruleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Input "input": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1006,7 +1063,14 @@ func ruleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: InputTemplate "input_template": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1020,7 +1084,14 @@ func ruleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: PartitionKeyPath "partition_key_path": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1034,7 +1105,14 @@ func ruleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DbUser "db_user": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1135,22 +1213,39 @@ func ruleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1168,11 +1263,25 @@ func ruleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1197,7 +1306,14 @@ func ruleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: MessageGroupId "message_group_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/eventschemas/discoverer_resource_gen.go b/internal/aws/eventschemas/discoverer_resource_gen.go index 9259d32999..e774901b32 100644 --- a/internal/aws/eventschemas/discoverer_resource_gen.go +++ b/internal/aws/eventschemas/discoverer_resource_gen.go @@ -15,8 +15,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -144,11 +146,25 @@ func discovererResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/eventschemas/registry_resource_gen.go b/internal/aws/eventschemas/registry_resource_gen.go index 71d22f5635..4191e6ba46 100644 --- a/internal/aws/eventschemas/registry_resource_gen.go +++ b/internal/aws/eventschemas/registry_resource_gen.go @@ -13,8 +13,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -99,11 +101,25 @@ func registryResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/eventschemas/schema_resource_gen.go b/internal/aws/eventschemas/schema_resource_gen.go index c56438a58f..3fbd4cbc7f 100644 --- a/internal/aws/eventschemas/schema_resource_gen.go +++ b/internal/aws/eventschemas/schema_resource_gen.go @@ -13,8 +13,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -152,11 +154,25 @@ func schemaResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/evidently/experiment_resource_gen.go b/internal/aws/evidently/experiment_resource_gen.go index 951b8c28f8..d40618460e 100644 --- a/internal/aws/evidently/experiment_resource_gen.go +++ b/internal/aws/evidently/experiment_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -257,18 +258,28 @@ func experimentResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: SplitWeight "split_weight": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 100000), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Treatment "treatment": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), stringvalidator.RegexMatches(regexp.MustCompile("[-a-zA-Z0-9._]*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -501,18 +512,28 @@ func experimentResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/evidently/feature_resource_gen.go b/internal/aws/evidently/feature_resource_gen.go index 04097722b4..ec5faa26b9 100644 --- a/internal/aws/evidently/feature_resource_gen.go +++ b/internal/aws/evidently/feature_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -244,18 +245,28 @@ func featureResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/evidently/launch_resource_gen.go b/internal/aws/evidently/launch_resource_gen.go index 67c0714f58..b60386c4d1 100644 --- a/internal/aws/evidently/launch_resource_gen.go +++ b/internal/aws/evidently/launch_resource_gen.go @@ -13,6 +13,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -21,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -110,7 +112,14 @@ func launchResource(ctx context.Context) (resource.Resource, error) { // Property: Status "status": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Provide START or STOP action to apply on a launch", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Start or Stop Launch Launch. Default is not started.", @@ -247,7 +256,14 @@ func launchResource(ctx context.Context) (resource.Resource, error) { // Property: EntityIdKey "entity_id_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The JSON path to reference the entity id in the event.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EventPattern "event_pattern": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -260,11 +276,16 @@ func launchResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: MetricName "metric_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), stringvalidator.RegexMatches(regexp.MustCompile("^[\\S]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: UnitLabel "unit_label": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -281,7 +302,14 @@ func launchResource(ctx context.Context) (resource.Resource, error) { // Property: ValueKey "value_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The JSON path to reference the numerical metric value in the event.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -478,15 +506,27 @@ func launchResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: EvaluationOrder "evaluation_order": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Segment "segment": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("([-a-zA-Z0-9._]*)|(arn:[^:]*:[^:]*:[^:]*:[^:]*:segment/[-a-zA-Z0-9._]*)"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Weights "weights": schema.SetNestedAttribute{ /*START ATTRIBUTE*/ @@ -494,19 +534,38 @@ func launchResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: GroupName "group_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), stringvalidator.RegexMatches(regexp.MustCompile("[-a-zA-Z0-9._]*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SplitWeight "split_weight": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Set{ /*START VALIDATORS*/ + fwvalidators.NotNullSet(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -567,18 +626,28 @@ func launchResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/evidently/project_resource_gen.go b/internal/aws/evidently/project_resource_gen.go index 554247b561..6e9c58fc44 100644 --- a/internal/aws/evidently/project_resource_gen.go +++ b/internal/aws/evidently/project_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -54,17 +55,27 @@ func projectResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ApplicationId "application_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("[a-z0-9]{4,7}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EnvironmentId "environment_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("[a-z0-9]{4,7}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -156,11 +167,16 @@ func projectResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketName "bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-z0-9][-a-z0-9]*[a-z0-9]$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Prefix "prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -265,18 +281,28 @@ func projectResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/evidently/segment_resource_gen.go b/internal/aws/evidently/segment_resource_gen.go index be8895f73b..c52aa97c03 100644 --- a/internal/aws/evidently/segment_resource_gen.go +++ b/internal/aws/evidently/segment_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -134,18 +135,28 @@ func segmentResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/finspace/environment_resource_gen.go b/internal/aws/finspace/environment_resource_gen.go index 1aa54d6691..45020f9226 100644 --- a/internal/aws/finspace/environment_resource_gen.go +++ b/internal/aws/finspace/environment_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -541,18 +542,28 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/fis/experiment_template_resource_gen.go b/internal/aws/fis/experiment_template_resource_gen.go index bb53bc5abc..2bb950ce26 100644 --- a/internal/aws/fis/experiment_template_resource_gen.go +++ b/internal/aws/fis/experiment_template_resource_gen.go @@ -13,6 +13,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" @@ -22,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -314,10 +316,15 @@ func experimentTemplateResource(ctx context.Context) (resource.Resource, error) Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: LogGroupArn "log_group_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -328,20 +335,30 @@ func experimentTemplateResource(ctx context.Context) (resource.Resource, error) }, /*END ATTRIBUTE*/ // Property: LogSchemaVersion "log_schema_version": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Configuration "s3_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketName "bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Prefix "prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -553,21 +570,31 @@ func experimentTemplateResource(ctx context.Context) (resource.Resource, error) // Property: Path "path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The attribute path for the filter.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The attribute values for the filter.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthAtMost(128), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/fms/policy_resource_gen.go b/internal/aws/fms/policy_resource_gen.go index bb64b33b94..45d69d386d 100644 --- a/internal/aws/fms/policy_resource_gen.go +++ b/internal/aws/fms/policy_resource_gen.go @@ -15,6 +15,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -23,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -338,10 +340,15 @@ func policyResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -785,7 +792,14 @@ func policyResource(ctx context.Context) (resource.Resource, error) { // Property: Egress "egress": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Whether the entry is an egress entry.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IcmpTypeCode "icmp_type_code": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -793,18 +807,28 @@ func policyResource(ctx context.Context) (resource.Resource, error) { // Property: Code "code": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Code.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 255), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Type.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 255), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "ICMP type and code.", @@ -832,18 +856,28 @@ func policyResource(ctx context.Context) (resource.Resource, error) { // Property: From "from": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "From Port.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 65535), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: To "to": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "To Port.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 65535), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Port range.", @@ -856,21 +890,31 @@ func policyResource(ctx context.Context) (resource.Resource, error) { // Property: Protocol "protocol": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Protocol.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^(tcp|udp|icmp|([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]))$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RuleAction "rule_action": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Rule Action.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "allow", "deny", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -883,11 +927,25 @@ func policyResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: ForceRemediateForFirstEntries "force_remediate_for_first_entries": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ForceRemediateForLastEntries "force_remediate_for_last_entries": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LastEntries "last_entries": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -908,7 +966,14 @@ func policyResource(ctx context.Context) (resource.Resource, error) { // Property: Egress "egress": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Whether the entry is an egress entry.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IcmpTypeCode "icmp_type_code": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -916,18 +981,28 @@ func policyResource(ctx context.Context) (resource.Resource, error) { // Property: Code "code": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Code.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 255), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Type.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 255), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "ICMP type and code.", @@ -955,18 +1030,28 @@ func policyResource(ctx context.Context) (resource.Resource, error) { // Property: From "from": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "From Port.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 65535), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: To "to": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "To Port.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 65535), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Port range.", @@ -979,21 +1064,31 @@ func policyResource(ctx context.Context) (resource.Resource, error) { // Property: Protocol "protocol": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Protocol.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^(tcp|udp|icmp|([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]))$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RuleAction "rule_action": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Rule Action.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "allow", "deny", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1006,7 +1101,14 @@ func policyResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Network ACL entry set.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Network ACL common policy.", @@ -1022,13 +1124,18 @@ func policyResource(ctx context.Context) (resource.Resource, error) { // Property: FirewallDeploymentModel "firewall_deployment_model": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Firewall deployment mode.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DISTRIBUTED", "CENTRALIZED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Network firewall policy.", @@ -1044,13 +1151,18 @@ func policyResource(ctx context.Context) (resource.Resource, error) { // Property: FirewallDeploymentModel "firewall_deployment_model": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Firewall deployment mode.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DISTRIBUTED", "CENTRALIZED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Third party firewall policy.", @@ -1126,19 +1238,29 @@ func policyResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([^\\s]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^([^\\s]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/fms/resource_set_resource_gen.go b/internal/aws/fms/resource_set_resource_gen.go index 7d157e31db..955692b8aa 100644 --- a/internal/aws/fms/resource_set_resource_gen.go +++ b/internal/aws/fms/resource_set_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -174,19 +175,29 @@ func resourceSetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([^\\s]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^([^\\s]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/forecast/dataset_group_resource_gen.go b/internal/aws/forecast/dataset_group_resource_gen.go index ef7a55c0c6..a599ef127a 100644 --- a/internal/aws/forecast/dataset_group_resource_gen.go +++ b/internal/aws/forecast/dataset_group_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -165,18 +166,28 @@ func datasetGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/forecast/dataset_resource_gen.go b/internal/aws/forecast/dataset_resource_gen.go index 7c6ec03a22..094c5314d8 100644 --- a/internal/aws/forecast/dataset_resource_gen.go +++ b/internal/aws/forecast/dataset_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -319,18 +320,28 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/frauddetector/detector_resource_gen.go b/internal/aws/frauddetector/detector_resource_gen.go index 23f9e82387..b3740d08cb 100644 --- a/internal/aws/frauddetector/detector_resource_gen.go +++ b/internal/aws/frauddetector/detector_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -583,17 +584,27 @@ func detectorResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -721,17 +732,27 @@ func detectorResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -875,17 +896,27 @@ func detectorResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -939,17 +970,27 @@ func detectorResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1278,17 +1319,27 @@ func detectorResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1337,17 +1388,27 @@ func detectorResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1407,17 +1468,27 @@ func detectorResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/frauddetector/entity_type_resource_gen.go b/internal/aws/frauddetector/entity_type_resource_gen.go index 15b1f1a5be..d9e5f716f4 100644 --- a/internal/aws/frauddetector/entity_type_resource_gen.go +++ b/internal/aws/frauddetector/entity_type_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -147,17 +148,27 @@ func entityTypeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/frauddetector/event_type_resource_gen.go b/internal/aws/frauddetector/event_type_resource_gen.go index e15f0ae90a..a6a9c402e5 100644 --- a/internal/aws/frauddetector/event_type_resource_gen.go +++ b/internal/aws/frauddetector/event_type_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -206,17 +207,27 @@ func eventTypeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -462,17 +473,27 @@ func eventTypeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -670,17 +691,27 @@ func eventTypeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -775,17 +806,27 @@ func eventTypeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/frauddetector/label_resource_gen.go b/internal/aws/frauddetector/label_resource_gen.go index fefacc4c47..29fa1105a2 100644 --- a/internal/aws/frauddetector/label_resource_gen.go +++ b/internal/aws/frauddetector/label_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -147,17 +148,27 @@ func labelResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/frauddetector/list_resource_gen.go b/internal/aws/frauddetector/list_resource_gen.go index 672d4c31af..e612579779 100644 --- a/internal/aws/frauddetector/list_resource_gen.go +++ b/internal/aws/frauddetector/list_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -186,18 +187,28 @@ func listResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/frauddetector/outcome_resource_gen.go b/internal/aws/frauddetector/outcome_resource_gen.go index 4a34acd45a..f93729988a 100644 --- a/internal/aws/frauddetector/outcome_resource_gen.go +++ b/internal/aws/frauddetector/outcome_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -147,17 +148,27 @@ func outcomeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/frauddetector/variable_resource_gen.go b/internal/aws/frauddetector/variable_resource_gen.go index 93312ea0d3..f7cc65e9b1 100644 --- a/internal/aws/frauddetector/variable_resource_gen.go +++ b/internal/aws/frauddetector/variable_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -201,17 +202,27 @@ func variableResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/fsx/data_repository_association_resource_gen.go b/internal/aws/fsx/data_repository_association_resource_gen.go index cac8c98218..4931e4bc3a 100644 --- a/internal/aws/fsx/data_repository_association_resource_gen.go +++ b/internal/aws/fsx/data_repository_association_resource_gen.go @@ -17,11 +17,13 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -202,7 +204,8 @@ func dataRepositoryAssociationResource(ctx context.Context) (resource.Resource, "events": schema.SetAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The ``AutoExportPolicy`` can have the following event values:\n + ``NEW`` - New files and directories are automatically exported to the data repository as they are added to the file system.\n + ``CHANGED`` - Changes to files and directories on the file system are automatically exported to the data repository.\n + ``DELETED`` - Files and directories are automatically deleted on the data repository when they are deleted on the file system.\n \n You can define any combination of event types for your ``AutoExportPolicy``.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeAtMost(3), setvalidator.ValueStringsAre( @@ -212,7 +215,11 @@ func dataRepositoryAssociationResource(ctx context.Context) (resource.Resource, "DELETED", ), ), + fwvalidators.NotNullSet(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Describes a data repository association's automatic export policy. The ``AutoExportPolicy`` defines the types of updated objects on the file system that will be automatically exported to the data repository. As you create, modify, or delete files, Amazon FSx for Lustre automatically exports the defined changes asynchronously once your application finishes modifying the file.\n The ``AutoExportPolicy`` is only supported on Amazon FSx for Lustre file systems with a data repository association.", @@ -229,7 +236,8 @@ func dataRepositoryAssociationResource(ctx context.Context) (resource.Resource, "events": schema.SetAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The ``AutoImportPolicy`` can have the following event values:\n + ``NEW`` - Amazon FSx automatically imports metadata of files added to the linked S3 bucket that do not currently exist in the FSx file system.\n + ``CHANGED`` - Amazon FSx automatically updates file metadata and invalidates existing file content on the file system as files change in the data repository.\n + ``DELETED`` - Amazon FSx automatically deletes files on the file system as corresponding files are deleted in the data repository.\n \n You can define any combination of event types for your ``AutoImportPolicy``.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeAtMost(3), setvalidator.ValueStringsAre( @@ -239,7 +247,11 @@ func dataRepositoryAssociationResource(ctx context.Context) (resource.Resource, "DELETED", ), ), + fwvalidators.NotNullSet(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Describes the data repository association's automatic import policy. The AutoImportPolicy defines how Amazon FSx keeps your file metadata and directory listings up to date by importing changes to your Amazon FSx for Lustre file system as you modify objects in a linked S3 bucket.\n The ``AutoImportPolicy`` is only supported on Amazon FSx for Lustre file systems with a data repository association.", @@ -295,18 +307,28 @@ func dataRepositoryAssociationResource(ctx context.Context) (resource.Resource, // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A value that specifies the ``TagKey``, the name of the tag. Tag keys must be unique for the resource to which they are attached.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A value that specifies the ``TagValue``, the value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key-value pair in a tag set of ``finances : April`` and also of ``payroll : April``.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/gamelift/build_resource_gen.go b/internal/aws/gamelift/build_resource_gen.go index 5ed67d0f3c..57caccedcb 100644 --- a/internal/aws/gamelift/build_resource_gen.go +++ b/internal/aws/gamelift/build_resource_gen.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -142,12 +143,26 @@ func buildResource(ctx context.Context) (resource.Resource, error) { // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "An Amazon S3 bucket identifier. This is the name of the S3 bucket.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the zip file that contains the build files or script files.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ObjectVersion "object_version": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -161,7 +176,14 @@ func buildResource(ctx context.Context) (resource.Resource, error) { // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) for an IAM role that allows Amazon GameLift to access the S3 bucket.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information indicating where your game build files are stored. Use this parameter only when creating a build with files stored in an Amazon S3 bucket that you own. The storage location must specify an Amazon S3 bucket name and key. The location must also specify a role ARN that you set up to allow Amazon GameLift to access your Amazon S3 bucket. The S3 bucket and your new build must be in the same Region.", diff --git a/internal/aws/gamelift/container_group_definition_resource_gen.go b/internal/aws/gamelift/container_group_definition_resource_gen.go index 11dc578d2a..8aaf969e81 100644 --- a/internal/aws/gamelift/container_group_definition_resource_gen.go +++ b/internal/aws/gamelift/container_group_definition_resource_gen.go @@ -26,6 +26,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -355,7 +356,8 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e // Property: Condition "condition": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of dependency.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "START", @@ -363,16 +365,25 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e "SUCCESS", "HEALTHY", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContainerName "container_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A descriptive label for the container definition. The container being defined depends on this container's condition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -410,20 +421,30 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The environment variable name.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The environment variable value.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -453,14 +474,19 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e "command": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "A string array representing the command that the container runs to determine if it is healthy.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 20), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 255), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Interval "interval": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -572,37 +598,57 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e // Property: FromPort "from_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "A starting value for the range of allowed port numbers.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 60000), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Protocol "protocol": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Defines the protocol of these ports.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "TCP", "UDP", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ToPort "to_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "An ending value for the range of allowed port numbers. Port numbers are end-inclusive. This value must be equal to or greater than FromPort.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 60000), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Specifies one or more ranges of ports on a container.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeBetween(1, 100), + fwvalidators.NotNullSet(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Defines the ports on the container.", @@ -790,20 +836,30 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/gamelift/fleet_resource_gen.go b/internal/aws/gamelift/fleet_resource_gen.go index 2c6527ed84..14ae351c2d 100644 --- a/internal/aws/gamelift/fleet_resource_gen.go +++ b/internal/aws/gamelift/fleet_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -58,11 +59,16 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { // Property: Cost "cost": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Cost of compute can be specified on Anywhere Fleets to prioritize placement across Queue destinations based on Cost.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 11), stringvalidator.RegexMatches(regexp.MustCompile("^\\d{1,5}(?:\\.\\d{1,5})?$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration for Anywhere fleet.", @@ -143,13 +149,18 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: CertificateType "certificate_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DISABLED", "GENERATED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Indicates whether to generate a TLS/SSL certificate for the new fleet. TLS certificates are used for encrypting traffic between game clients and game servers running on GameLift. If this parameter is not set, certificate generation is disabled. This fleet setting cannot be changed once the fleet is created.", @@ -265,37 +276,57 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { // Property: FromPort "from_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "A starting value for a range of allowed port numbers.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 60000), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ToPort "to_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than FromPort.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 60000), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Defines the range of ports on the instance that allow inbound traffic to connect with containers in a fleet.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContainerGroupDefinitionNames "container_group_definition_names": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The names of the container group definitions that will be created in an instance. You must specify exactly one REPLICA container group. You have the option to also specify one DAEMON container group.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 2), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9\\-]+$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContainerGroupsPerInstance @@ -430,37 +461,57 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { // Property: FromPort "from_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "A starting value for a range of allowed port numbers.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 60000), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IpRange "ip_range": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A range of allowed IP addresses. This value must be expressed in CIDR notation. Example: \"000.000.000.000/[subnet mask]\" or optionally the shortened version \"0.0.0.0/[subnet mask]\".", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(/([0-9]|[1-2][0-9]|3[0-2]))$)"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Protocol "protocol": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The network communication protocol used by the fleet.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "TCP", "UDP", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ToPort "to_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "An ending value for a range of allowed port numbers. Port numbers are end-inclusive. This value must be higher than FromPort.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 60000), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -639,11 +690,16 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Location "location": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), stringvalidator.RegexMatches(regexp.MustCompile("^[A-Za-z0-9\\-]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LocationCapacity "location_capacity": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -651,26 +707,41 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { // Property: DesiredEC2Instances "desired_ec2_instances": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of EC2 instances you want to maintain in the specified fleet location. This value must fall between the minimum and maximum size limits.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(0), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaxSize "max_size": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum value that is allowed for the fleet's instance count for a location. When creating a new fleet, GameLift automatically sets this value to \"1\". Once the fleet is active, you can change this value.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(0), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinSize "min_size": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The minimum value allowed for the fleet's instance count for a location. When creating a new fleet, GameLift automatically sets this value to \"0\". After the fleet is active, you can change this value.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(0), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Current resource capacity settings in a specified fleet or location. The location value might refer to a fleet's remote location or its home Region.", @@ -1008,19 +1079,29 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { // Property: ConcurrentExecutions "concurrent_executions": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of server processes that use this configuration to run concurrently on an instance.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LaunchPath "launch_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location of the server executable in a custom game build or the name of the Realtime script file that contains the Init() function. Game builds and Realtime scripts are installed on instances at the root:\n\nWindows (for custom game builds only): C:\\game. Example: \"C:\\game\\MyGame\\server.exe\"\n\nLinux: /local/game. Examples: \"/local/game/MyGame/server.exe\" or \"/local/game/MyRealtimeScript.js\"", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), stringvalidator.RegexMatches(regexp.MustCompile("^([Cc]:\\\\game\\S+|/local/game/\\S+)"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Parameters "parameters": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1226,7 +1307,8 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { // Property: MetricName "metric_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Name of the Amazon GameLift-defined metric that is used to trigger a scaling adjustment.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ActivatingGameSessions", @@ -1242,15 +1324,24 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { "WaitTime", "ConcurrentActivatableGameSessions", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A descriptive label that is associated with a fleet's scaling policy. Policy names do not need to be unique.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PolicyType "policy_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1318,7 +1409,14 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { // Property: TargetValue "target_value": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "Desired value to use with a target-based scaling policy. The value must be relevant for whatever metric the scaling policy is using. For example, in a policy using the metric PercentAvailableGameSessions, the target value should be the preferred size of the fleet's buffer (the percent of capacity that should be idle and ready for new game sessions).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "An object that contains settings for a target-based scaling policy.", diff --git a/internal/aws/gamelift/game_server_group_resource_gen.go b/internal/aws/gamelift/game_server_group_resource_gen.go index 264196bd5f..1954941000 100644 --- a/internal/aws/gamelift/game_server_group_resource_gen.go +++ b/internal/aws/gamelift/game_server_group_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -98,11 +99,25 @@ func gameServerGroupResource(ctx context.Context) (resource.Resource, error) { // Property: TargetValue "target_value": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "Desired value to use with a game server group target-based scaling policy.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Settings for a target-based scaling policy applied to Auto Scaling group.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration settings to define a scaling policy for the Auto Scaling group that is optimized for game hosting. Updating this game server group property will not take effect for the created EC2 Auto Scaling group, please update the EC2 Auto Scaling group directly after creating the resource.", diff --git a/internal/aws/gamelift/game_session_queue_resource_gen.go b/internal/aws/gamelift/game_session_queue_resource_gen.go index 54ce655282..ec0e4a57d7 100644 --- a/internal/aws/gamelift/game_session_queue_resource_gen.go +++ b/internal/aws/gamelift/game_session_queue_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -401,18 +402,28 @@ func gameSessionQueueResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/gamelift/location_resource_gen.go b/internal/aws/gamelift/location_resource_gen.go index 60c7a269af..f2e6a9c5e4 100644 --- a/internal/aws/gamelift/location_resource_gen.go +++ b/internal/aws/gamelift/location_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -100,18 +101,28 @@ func locationResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/gamelift/matchmaking_configuration_resource_gen.go b/internal/aws/gamelift/matchmaking_configuration_resource_gen.go index 2149c3f7c6..6525a98450 100644 --- a/internal/aws/gamelift/matchmaking_configuration_resource_gen.go +++ b/internal/aws/gamelift/matchmaking_configuration_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -241,18 +242,28 @@ func matchmakingConfigurationResource(ctx context.Context) (resource.Resource, e // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The game property identifier.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(32), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The game property value.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(96), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -449,18 +460,28 @@ func matchmakingConfigurationResource(ctx context.Context) (resource.Resource, e // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/gamelift/matchmaking_rule_set_resource_gen.go b/internal/aws/gamelift/matchmaking_rule_set_resource_gen.go index 292d2dbbc2..3d1a40d1a6 100644 --- a/internal/aws/gamelift/matchmaking_rule_set_resource_gen.go +++ b/internal/aws/gamelift/matchmaking_rule_set_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -137,18 +138,28 @@ func matchmakingRuleSetResource(ctx context.Context) (resource.Resource, error) // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/gamelift/script_resource_gen.go b/internal/aws/gamelift/script_resource_gen.go index e89ff14288..11e1f8f21f 100644 --- a/internal/aws/gamelift/script_resource_gen.go +++ b/internal/aws/gamelift/script_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -225,18 +226,28 @@ func scriptResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/globalaccelerator/accelerator_resource_gen.go b/internal/aws/globalaccelerator/accelerator_resource_gen.go index bfb5c15ea5..d4100e9e20 100644 --- a/internal/aws/globalaccelerator/accelerator_resource_gen.go +++ b/internal/aws/globalaccelerator/accelerator_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -238,18 +239,28 @@ func acceleratorResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Key of the tag. Value can be 1 to 127 characters.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Value for the tag. Value can be 1 to 255 characters.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/globalaccelerator/cross_account_attachment_resource_gen.go b/internal/aws/globalaccelerator/cross_account_attachment_resource_gen.go index e405acc77f..6843dd0330 100644 --- a/internal/aws/globalaccelerator/cross_account_attachment_resource_gen.go +++ b/internal/aws/globalaccelerator/cross_account_attachment_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -174,18 +175,28 @@ func crossAccountAttachmentResource(ctx context.Context) (resource.Resource, err // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Key of the tag. Value can be 1 to 127 characters.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Value for the tag. Value can be 1 to 255 characters.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/globalaccelerator/endpoint_group_resource_gen.go b/internal/aws/globalaccelerator/endpoint_group_resource_gen.go index df87779654..3cd8d8b537 100644 --- a/internal/aws/globalaccelerator/endpoint_group_resource_gen.go +++ b/internal/aws/globalaccelerator/endpoint_group_resource_gen.go @@ -26,6 +26,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -98,7 +99,14 @@ func endpointGroupResource(ctx context.Context) (resource.Resource, error) { // Property: EndpointId "endpoint_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Id of the endpoint. For Network/Application Load Balancer this value is the ARN. For EIP, this value is the allocation ID. For EC2 instances, this is the EC2 instance ID", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Weight "weight": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -284,18 +292,28 @@ func endpointGroupResource(ctx context.Context) (resource.Resource, error) { // Property: EndpointPort "endpoint_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "A network port number", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 65535), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ListenerPort "listener_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "A network port number", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 65535), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/glue/registry_resource_gen.go b/internal/aws/glue/registry_resource_gen.go index 56a247aa91..59e42bf877 100644 --- a/internal/aws/glue/registry_resource_gen.go +++ b/internal/aws/glue/registry_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -119,18 +120,28 @@ func registryResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A key to identify the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Corresponding tag value for the key.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/glue/schema_resource_gen.go b/internal/aws/glue/schema_resource_gen.go index f1e380975e..3c040b9a2e 100644 --- a/internal/aws/glue/schema_resource_gen.go +++ b/internal/aws/glue/schema_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -325,18 +326,28 @@ func schemaResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A key to identify the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Corresponding tag value for the key.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/glue/trigger_resource_gen.go b/internal/aws/glue/trigger_resource_gen.go index c45abb8bff..04fc65608d 100644 --- a/internal/aws/glue/trigger_resource_gen.go +++ b/internal/aws/glue/trigger_resource_gen.go @@ -17,8 +17,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -190,7 +192,14 @@ func triggerResource(ctx context.Context) (resource.Resource, error) { // Property: BatchSize "batch_size": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Number of events that must be received from Amazon EventBridge before EventBridge event trigger fires.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BatchWindow "batch_window": schema.Int64Attribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/grafana/workspace_resource_gen.go b/internal/aws/grafana/workspace_resource_gen.go index d6a5149974..a2c604487b 100644 --- a/internal/aws/grafana/workspace_resource_gen.go +++ b/internal/aws/grafana/workspace_resource_gen.go @@ -26,6 +26,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -730,7 +731,14 @@ func workspaceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "IdP Metadata used to configure SAML authentication in Grafana.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LoginValidityDuration "login_validity_duration": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -916,25 +924,35 @@ func workspaceResource(ctx context.Context) (resource.Resource, error) { "security_group_ids": schema.SetAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The list of Amazon EC2 security group IDs attached to the Amazon VPC for your Grafana workspace to connect.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeBetween(1, 5), setvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 255), ), + fwvalidators.NotNullSet(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetIds "subnet_ids": schema.SetAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The list of Amazon EC2 subnet IDs created in the Amazon VPC for your Grafana workspace to connect.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeBetween(2, 6), setvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 255), ), + fwvalidators.NotNullSet(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.", diff --git a/internal/aws/greengrassv2/deployment_resource_gen.go b/internal/aws/greengrassv2/deployment_resource_gen.go index ecf5e85fa6..00c8d16533 100644 --- a/internal/aws/greengrassv2/deployment_resource_gen.go +++ b/internal/aws/greengrassv2/deployment_resource_gen.go @@ -26,6 +26,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -516,16 +517,22 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Action "action": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "CANCEL", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FailureType "failure_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "FAILED", @@ -533,30 +540,47 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { "TIMED_OUT", "ALL", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinNumberOfExecutedThings "min_number_of_executed_things": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 2147483647), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ThresholdPercentage "threshold_percentage": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(0.000000, 100.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -574,17 +598,27 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BaseRatePerMinute "base_rate_per_minute": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 1000), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IncrementFactor "increment_factor": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(1.000000, 5.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RateIncreaseCriteria "rate_increase_criteria": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -612,7 +646,14 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/groundstation/dataflow_endpoint_group_resource_gen.go b/internal/aws/groundstation/dataflow_endpoint_group_resource_gen.go index 1fc7c3c454..c9a6ea592c 100644 --- a/internal/aws/groundstation/dataflow_endpoint_group_resource_gen.go +++ b/internal/aws/groundstation/dataflow_endpoint_group_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -551,17 +552,27 @@ func dataflowEndpointGroupResource(ctx context.Context) (resource.Resource, erro Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[ a-zA-Z0-9\\+\\-=._:/@]{1,128}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[ a-zA-Z0-9\\+\\-=._:/@]{1,256}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/groundstation/mission_profile_resource_gen.go b/internal/aws/groundstation/mission_profile_resource_gen.go index 6f8496f879..b463c00b33 100644 --- a/internal/aws/groundstation/mission_profile_resource_gen.go +++ b/internal/aws/groundstation/mission_profile_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -277,17 +278,27 @@ func missionProfileResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[ a-zA-Z0-9\\+\\-=._:/@]{1,128}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[ a-zA-Z0-9\\+\\-=._:/@]{1,256}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/guardduty/detector_resource_gen.go b/internal/aws/guardduty/detector_resource_gen.go index 2682c90547..fb634f3381 100644 --- a/internal/aws/guardduty/detector_resource_gen.go +++ b/internal/aws/guardduty/detector_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -96,10 +97,24 @@ func detectorResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Enable "enable": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -141,7 +156,14 @@ func detectorResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Enable "enable": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -251,20 +273,30 @@ func detectorResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Status "status": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ENABLED", "DISABLED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -330,17 +362,27 @@ func detectorResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/guardduty/filter_resource_gen.go b/internal/aws/guardduty/filter_resource_gen.go index 0cbe65f1bb..5544033076 100644 --- a/internal/aws/guardduty/filter_resource_gen.go +++ b/internal/aws/guardduty/filter_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -335,17 +336,27 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/guardduty/ip_set_resource_gen.go b/internal/aws/guardduty/ip_set_resource_gen.go index 1d1eafc13b..bc1e49e520 100644 --- a/internal/aws/guardduty/ip_set_resource_gen.go +++ b/internal/aws/guardduty/ip_set_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -148,17 +149,27 @@ func iPSetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/guardduty/malware_protection_plan_resource_gen.go b/internal/aws/guardduty/malware_protection_plan_resource_gen.go index 78f14de5fe..4e6a85c679 100644 --- a/internal/aws/guardduty/malware_protection_plan_resource_gen.go +++ b/internal/aws/guardduty/malware_protection_plan_resource_gen.go @@ -14,9 +14,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -278,11 +280,25 @@ func malwareProtectionPlanResource(ctx context.Context) (resource.Resource, erro Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/guardduty/threat_intel_set_resource_gen.go b/internal/aws/guardduty/threat_intel_set_resource_gen.go index 06731b3548..c2fe0d82ff 100644 --- a/internal/aws/guardduty/threat_intel_set_resource_gen.go +++ b/internal/aws/guardduty/threat_intel_set_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -148,17 +149,27 @@ func threatIntelSetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/healthlake/fhir_datastore_resource_gen.go b/internal/aws/healthlake/fhir_datastore_resource_gen.go index 73a47d3e8b..2bdcd24767 100644 --- a/internal/aws/healthlake/fhir_datastore_resource_gen.go +++ b/internal/aws/healthlake/fhir_datastore_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -221,13 +222,18 @@ func fHIRDatastoreResource(ctx context.Context) (resource.Resource, error) { // Property: AuthorizationStrategy "authorization_strategy": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Type of Authorization Strategy. The two types of supported Authorization strategies are SMART_ON_FHIR_V1 and AWS_AUTH.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "SMART_ON_FHIR_V1", "AWS_AUTH", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FineGrainedAuthorizationEnabled "fine_grained_authorization_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -294,12 +300,17 @@ func fHIRDatastoreResource(ctx context.Context) (resource.Resource, error) { // Property: PreloadDataType "preload_data_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of preloaded data. Only Synthea preloaded data is supported.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "SYNTHEA", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The preloaded data configuration for the Data Store. Only data preloaded from Synthea is supported.", @@ -356,13 +367,18 @@ func fHIRDatastoreResource(ctx context.Context) (resource.Resource, error) { // Property: CmkType "cmk_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of customer-managed-key (CMK) used for encryption. The two types of supported CMKs are customer owned CMKs and AWS owned CMKs.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "CUSTOMER_MANAGED_KMS_KEY", "AWS_OWNED_KMS_KEY", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KmsKeyId "kms_key_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -379,7 +395,14 @@ func fHIRDatastoreResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The customer-managed-key (CMK) used when creating a Data Store. If a customer owned key is not specified, an AWS owned key will be used for encryption.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The server-side encryption key configuration for a customer provided encryption key.", @@ -426,18 +449,28 @@ func fHIRDatastoreResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key of the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iam/group_resource_gen.go b/internal/aws/iam/group_resource_gen.go index 0bf46889fb..2c048c90d2 100644 --- a/internal/aws/iam/group_resource_gen.go +++ b/internal/aws/iam/group_resource_gen.go @@ -14,9 +14,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -127,12 +129,26 @@ func groupResource(ctx context.Context) (resource.Resource, error) { // Property: PolicyDocument "policy_document": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The policy document.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PolicyName "policy_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The friendly name (not ARN) identifying the policy.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iam/oidc_provider_resource_gen.go b/internal/aws/iam/oidc_provider_resource_gen.go index 7725455800..29c1e02f28 100644 --- a/internal/aws/iam/oidc_provider_resource_gen.go +++ b/internal/aws/iam/oidc_provider_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -109,18 +110,28 @@ func oIDCProviderResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iam/role_resource_gen.go b/internal/aws/iam/role_resource_gen.go index 0462e88471..cf2c8c6fd4 100644 --- a/internal/aws/iam/role_resource_gen.go +++ b/internal/aws/iam/role_resource_gen.go @@ -16,9 +16,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -172,12 +174,26 @@ func roleResource(ctx context.Context) (resource.Resource, error) { // Property: PolicyDocument "policy_document": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The entire contents of the policy that defines permissions. For more information, see [Overview of JSON policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#access_policies-json).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PolicyName "policy_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The friendly name (not ARN) identifying the policy.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -253,12 +269,26 @@ func roleResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name that can be used to look up or retrieve the associated value. For example, ``Department`` or ``Cost Center`` are common choices.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value associated with this tag. For example, tags with a key name of ``Department`` could have values such as ``Human Resources``, ``Accounting``, and ``Support``. Tags with a key name of ``Cost Center`` might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.\n AWS always interprets the tag ``Value`` as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iam/saml_provider_resource_gen.go b/internal/aws/iam/saml_provider_resource_gen.go index d10099cfab..a49461c03e 100644 --- a/internal/aws/iam/saml_provider_resource_gen.go +++ b/internal/aws/iam/saml_provider_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -116,18 +117,28 @@ func sAMLProviderResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iam/server_certificate_resource_gen.go b/internal/aws/iam/server_certificate_resource_gen.go index 8797c16c8d..7dfbe8489e 100644 --- a/internal/aws/iam/server_certificate_resource_gen.go +++ b/internal/aws/iam/server_certificate_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -184,18 +185,28 @@ func serverCertificateResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iam/user_resource_gen.go b/internal/aws/iam/user_resource_gen.go index 6a1b2b0010..284b956d64 100644 --- a/internal/aws/iam/user_resource_gen.go +++ b/internal/aws/iam/user_resource_gen.go @@ -16,9 +16,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -91,7 +93,14 @@ func userResource(ctx context.Context) (resource.Resource, error) { // Property: Password "password": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The user's password.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ // Password is a write-only property. }, /*END ATTRIBUTE*/ // Property: PasswordResetRequired @@ -196,12 +205,26 @@ func userResource(ctx context.Context) (resource.Resource, error) { // Property: PolicyDocument "policy_document": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The entire contents of the policy that defines permissions. For more information, see [Overview of JSON policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#access_policies-json).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PolicyName "policy_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The friendly name (not ARN) identifying the policy.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -247,12 +270,26 @@ func userResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name that can be used to look up or retrieve the associated value. For example, ``Department`` or ``Cost Center`` are common choices.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value associated with this tag. For example, tags with a key name of ``Department`` could have values such as ``Human Resources``, ``Accounting``, and ``Support``. Tags with a key name of ``Cost Center`` might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.\n AWS always interprets the tag ``Value`` as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iam/virtual_mfa_device_resource_gen.go b/internal/aws/iam/virtual_mfa_device_resource_gen.go index 37abbea054..6c9656ee01 100644 --- a/internal/aws/iam/virtual_mfa_device_resource_gen.go +++ b/internal/aws/iam/virtual_mfa_device_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -100,18 +101,28 @@ func virtualMFADeviceResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/imagebuilder/container_recipe_resource_gen.go b/internal/aws/imagebuilder/container_recipe_resource_gen.go index 5992200b5f..d3325de7b2 100644 --- a/internal/aws/imagebuilder/container_recipe_resource_gen.go +++ b/internal/aws/imagebuilder/container_recipe_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -112,13 +113,27 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the component parameter to set.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "Sets the value for the named component parameter.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/imagebuilder/image_recipe_resource_gen.go b/internal/aws/imagebuilder/image_recipe_resource_gen.go index 7f88fe5bc2..6ab7875502 100644 --- a/internal/aws/imagebuilder/image_recipe_resource_gen.go +++ b/internal/aws/imagebuilder/image_recipe_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -386,13 +387,27 @@ func imageRecipeResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the component parameter to set.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "Sets the value for the named component parameter.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/imagebuilder/lifecycle_policy_resource_gen.go b/internal/aws/imagebuilder/lifecycle_policy_resource_gen.go index 07510761c8..8e2b39eeec 100644 --- a/internal/aws/imagebuilder/lifecycle_policy_resource_gen.go +++ b/internal/aws/imagebuilder/lifecycle_policy_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -340,7 +341,8 @@ func lifecyclePolicyResource(ctx context.Context) (resource.Resource, error) { // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value's time unit.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DAYS", @@ -348,12 +350,23 @@ func lifecyclePolicyResource(ctx context.Context) (resource.Resource, error) { "MONTHS", "YEARS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The last launched value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Use to apply lifecycle policy actions on AMIs launched before a certain time.", @@ -533,12 +546,26 @@ func lifecyclePolicyResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The recipe name.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SemanticVersion "semantic_version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The recipe version.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/inspector/assessment_template_resource_gen.go b/internal/aws/inspector/assessment_template_resource_gen.go index 413017b70b..a8fa1c2076 100644 --- a/internal/aws/inspector/assessment_template_resource_gen.go +++ b/internal/aws/inspector/assessment_template_resource_gen.go @@ -14,9 +14,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -122,11 +124,25 @@ func assessmentTemplateResource(ctx context.Context) (resource.Resource, error) Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/inspectorv2/cis_scan_configuration_resource_gen.go b/internal/aws/inspectorv2/cis_scan_configuration_resource_gen.go index 971ae94fb8..b2c7050b8e 100644 --- a/internal/aws/inspectorv2/cis_scan_configuration_resource_gen.go +++ b/internal/aws/inspectorv2/cis_scan_configuration_resource_gen.go @@ -14,6 +14,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -22,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -192,17 +194,36 @@ func cisScanConfigurationResource(ctx context.Context) (resource.Resource, error Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: TimeOfDay "time_of_day": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TimeZone "time_zone": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -216,7 +237,8 @@ func cisScanConfigurationResource(ctx context.Context) (resource.Resource, error Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Day "day": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "MON", @@ -227,24 +249,47 @@ func cisScanConfigurationResource(ctx context.Context) (resource.Resource, error "SAT", "SUN", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StartTime "start_time": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: TimeOfDay "time_of_day": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TimeZone "time_zone": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -268,7 +313,8 @@ func cisScanConfigurationResource(ctx context.Context) (resource.Resource, error // Property: Days "days": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 7), listvalidator.UniqueValues(), @@ -283,24 +329,47 @@ func cisScanConfigurationResource(ctx context.Context) (resource.Resource, error "SUN", ), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StartTime "start_time": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: TimeOfDay "time_of_day": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TimeZone "time_zone": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/inspectorv2/filter_resource_gen.go b/internal/aws/inspectorv2/filter_resource_gen.go index c1e1b06886..231a416c39 100644 --- a/internal/aws/inspectorv2/filter_resource_gen.go +++ b/internal/aws/inspectorv2/filter_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -1064,21 +1065,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1098,21 +1109,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1132,21 +1153,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1166,21 +1197,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1200,21 +1241,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1234,21 +1285,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1268,21 +1329,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1302,21 +1373,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1368,21 +1449,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1402,21 +1493,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1436,21 +1537,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1470,21 +1581,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1504,21 +1625,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1538,21 +1669,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1668,21 +1809,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1740,21 +1891,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1774,21 +1935,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1808,12 +1979,17 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1855,21 +2031,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1889,21 +2075,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1923,21 +2119,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1989,21 +2195,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2023,21 +2239,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2057,21 +2283,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2094,21 +2330,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2148,21 +2394,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2176,21 +2432,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2204,21 +2470,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2232,21 +2508,31 @@ func filterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "PREFIX", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/iot/authorizer_resource_gen.go b/internal/aws/iot/authorizer_resource_gen.go index 9f19b199fa..ce146e7536 100644 --- a/internal/aws/iot/authorizer_resource_gen.go +++ b/internal/aws/iot/authorizer_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -152,11 +153,25 @@ func authorizerResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iot/billing_group_resource_gen.go b/internal/aws/iot/billing_group_resource_gen.go index eac0f57cae..38ba1f5b54 100644 --- a/internal/aws/iot/billing_group_resource_gen.go +++ b/internal/aws/iot/billing_group_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -149,19 +150,29 @@ func billingGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iot/ca_certificate_resource_gen.go b/internal/aws/iot/ca_certificate_resource_gen.go index aad17b0f27..15ac0978f3 100644 --- a/internal/aws/iot/ca_certificate_resource_gen.go +++ b/internal/aws/iot/ca_certificate_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -263,18 +264,28 @@ func cACertificateResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iot/certificate_provider_resource_gen.go b/internal/aws/iot/certificate_provider_resource_gen.go index b68affc981..705dce33ac 100644 --- a/internal/aws/iot/certificate_provider_resource_gen.go +++ b/internal/aws/iot/certificate_provider_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -144,18 +145,28 @@ func certificateProviderResource(ctx context.Context) (resource.Resource, error) // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iot/custom_metric_resource_gen.go b/internal/aws/iot/custom_metric_resource_gen.go index 26b42d8910..d233c318a8 100644 --- a/internal/aws/iot/custom_metric_resource_gen.go +++ b/internal/aws/iot/custom_metric_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -154,18 +155,28 @@ func customMetricResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's key.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's value.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iot/dimension_resource_gen.go b/internal/aws/iot/dimension_resource_gen.go index 31387411d5..7677ea7ce4 100644 --- a/internal/aws/iot/dimension_resource_gen.go +++ b/internal/aws/iot/dimension_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -133,18 +134,28 @@ func dimensionResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's key.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's value.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iot/domain_configuration_resource_gen.go b/internal/aws/iot/domain_configuration_resource_gen.go index 016f811adf..ac431a6e6b 100644 --- a/internal/aws/iot/domain_configuration_resource_gen.go +++ b/internal/aws/iot/domain_configuration_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -339,11 +340,25 @@ func domainConfigurationResource(ctx context.Context) (resource.Resource, error) Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iot/fleet_metric_resource_gen.go b/internal/aws/iot/fleet_metric_resource_gen.go index 2186b95880..2743cda4eb 100644 --- a/internal/aws/iot/fleet_metric_resource_gen.go +++ b/internal/aws/iot/fleet_metric_resource_gen.go @@ -14,6 +14,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" @@ -22,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -78,15 +80,27 @@ func fleetMetricResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Fleet Indexing aggregation type names such as Statistics, Percentiles and Cardinality", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "Fleet Indexing aggregation type values", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -269,18 +283,28 @@ func fleetMetricResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's key", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's value", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iot/job_template_resource_gen.go b/internal/aws/iot/job_template_resource_gen.go index dbdf0f1cfc..4d52ee3f66 100644 --- a/internal/aws/iot/job_template_resource_gen.go +++ b/internal/aws/iot/job_template_resource_gen.go @@ -16,6 +16,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" @@ -26,6 +27,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -103,17 +105,23 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { // Property: Action "action": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of job action to take to initiate the job abort.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "CANCEL", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FailureType "failure_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of job execution failures that can initiate a job abort.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "FAILED", @@ -121,32 +129,49 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { "TIMED_OUT", "ALL", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinNumberOfExecutedThings "min_number_of_executed_things": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The minimum number of things which must receive job execution notifications before the job can be aborted.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ThresholdPercentage "threshold_percentage": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The minimum percentage of job execution failures that must occur to initiate the job abort.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.AtMost(100.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -429,18 +454,28 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { // Property: BaseRatePerMinute "base_rate_per_minute": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The minimum number of things that will be notified of a pending job, per minute at the start of job rollout. This parameter allows you to define the initial rate of rollout.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IncrementFactor "increment_factor": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The exponential factor to increase the rate of rollout for a job.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(1.000000, 5.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RateIncreaseCriteria "rate_increase_criteria": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -469,7 +504,14 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The criteria to initiate the increase in rate of rollout for a job.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The rate of increase for a job rollout. This parameter allows you to define an exponential rate for a job rollout.", @@ -622,10 +664,15 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of an IAM role that grants grants permission to download files from the S3 bucket where the job data/updates are stored. The role must also grant permission for IoT to download the files.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration for pre-signed S3 URLs.", @@ -676,18 +723,28 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's key.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's value.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -727,10 +784,15 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { // Property: InProgressTimeoutInMinutes "in_progress_timeout_in_minutes": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Specifies the amount of time, in minutes, this device has to finish execution of this job.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 10080), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the amount of time each device has to finish its execution of the job.", diff --git a/internal/aws/iot/mitigation_action_resource_gen.go b/internal/aws/iot/mitigation_action_resource_gen.go index c88a6c75e6..b153c2d83b 100644 --- a/internal/aws/iot/mitigation_action_resource_gen.go +++ b/internal/aws/iot/mitigation_action_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -205,13 +206,18 @@ func mitigationActionResource(ctx context.Context) (resource.Resource, error) { "thing_group_names": schema.SetAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The list of groups to which you want to add the things that triggered the mitigation action.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeBetween(1, 10), setvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 128), ), + fwvalidators.NotNullSet(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Parameters to define a mitigation action that moves devices associated with a certificate to one or more specified thing groups, typically for quarantine.", @@ -227,7 +233,8 @@ func mitigationActionResource(ctx context.Context) (resource.Resource, error) { // Property: LogLevel "log_level": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: " Specifies which types of information are logged.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DEBUG", @@ -236,15 +243,24 @@ func mitigationActionResource(ctx context.Context) (resource.Resource, error) { "WARN", "UNSET_VALUE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArnForLogging "role_arn_for_logging": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: " The ARN of the IAM role used for logging.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Parameters to define a mitigation action that enables AWS IoT logging at a specified level of detail.", @@ -260,10 +276,15 @@ func mitigationActionResource(ctx context.Context) (resource.Resource, error) { // Property: TopicArn "topic_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the topic to which you want to publish the findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Parameters, to define a mitigation action that publishes findings to Amazon SNS. You can implement your own custom actions in response to the Amazon SNS messages.", @@ -278,13 +299,18 @@ func mitigationActionResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: TemplateName "template_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "BLANK_POLICY", "UNSET_VALUE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Parameters to define a mitigation action that adds a blank policy to restrict permissions.", @@ -299,13 +325,18 @@ func mitigationActionResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Action "action": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DEACTIVATE", "UNSET_VALUE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Parameters to define a mitigation action that changes the state of the CA certificate to inactive.", @@ -320,13 +351,18 @@ func mitigationActionResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Action "action": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DEACTIVATE", "UNSET_VALUE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Parameters to define a mitigation action that changes the state of the device certificate to inactive.", @@ -412,18 +448,28 @@ func mitigationActionResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's key.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's value.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iot/policy_resource_gen.go b/internal/aws/iot/policy_resource_gen.go index 063b42a6c3..10167b4f35 100644 --- a/internal/aws/iot/policy_resource_gen.go +++ b/internal/aws/iot/policy_resource_gen.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -108,11 +109,25 @@ func policyResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iot/provisioning_template_resource_gen.go b/internal/aws/iot/provisioning_template_resource_gen.go index 637dcb2b21..7205464a06 100644 --- a/internal/aws/iot/provisioning_template_resource_gen.go +++ b/internal/aws/iot/provisioning_template_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -138,11 +139,25 @@ func provisioningTemplateResource(ctx context.Context) (resource.Resource, error Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iot/role_alias_resource_gen.go b/internal/aws/iot/role_alias_resource_gen.go index 3b06adc268..4f801b36cd 100644 --- a/internal/aws/iot/role_alias_resource_gen.go +++ b/internal/aws/iot/role_alias_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -142,20 +143,30 @@ func roleAliasResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iot/scheduled_audit_resource_gen.go b/internal/aws/iot/scheduled_audit_resource_gen.go index 37dee3bcd6..5beb7e1886 100644 --- a/internal/aws/iot/scheduled_audit_resource_gen.go +++ b/internal/aws/iot/scheduled_audit_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -189,18 +190,28 @@ func scheduledAuditResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's key.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's value.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iot/security_profile_resource_gen.go b/internal/aws/iot/security_profile_resource_gen.go index 953a01392c..4e74bbbca6 100644 --- a/internal/aws/iot/security_profile_resource_gen.go +++ b/internal/aws/iot/security_profile_resource_gen.go @@ -26,6 +26,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -106,11 +107,16 @@ func securityProfileResource(ctx context.Context) (resource.Resource, error) { // Property: Metric "metric": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "What is measured by the behavior.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9:_-]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MetricDimension "metric_dimension": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -118,11 +124,16 @@ func securityProfileResource(ctx context.Context) (resource.Resource, error) { // Property: DimensionName "dimension_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A unique identifier for the dimension.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9:_-]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -661,11 +672,16 @@ func securityProfileResource(ctx context.Context) (resource.Resource, error) { // Property: DimensionName "dimension_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A unique identifier for the dimension.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9:_-]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -693,11 +709,16 @@ func securityProfileResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name for the behavior.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9:_-]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SuppressAlerts "suppress_alerts": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -748,18 +769,28 @@ func securityProfileResource(ctx context.Context) (resource.Resource, error) { // Property: MqttTopic "mqtt_topic": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The topic for metrics export.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the role that grants permission to publish to mqtt topic.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A structure containing the mqtt topic for metrics export.", @@ -864,18 +895,28 @@ func securityProfileResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's key.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's value.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iot/software_package_resource_gen.go b/internal/aws/iot/software_package_resource_gen.go index 564206c679..c0276ba933 100644 --- a/internal/aws/iot/software_package_resource_gen.go +++ b/internal/aws/iot/software_package_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -122,19 +123,29 @@ func softwarePackageResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iot/software_package_version_resource_gen.go b/internal/aws/iot/software_package_version_resource_gen.go index 5c3282e074..3afa0b4c6c 100644 --- a/internal/aws/iot/software_package_version_resource_gen.go +++ b/internal/aws/iot/software_package_version_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -174,19 +175,29 @@ func softwarePackageVersionResource(ctx context.Context) (resource.Resource, err // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iot/thing_group_resource_gen.go b/internal/aws/iot/thing_group_resource_gen.go index 1703794f72..c08f07d830 100644 --- a/internal/aws/iot/thing_group_resource_gen.go +++ b/internal/aws/iot/thing_group_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -135,19 +136,29 @@ func thingGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iot/thing_type_resource_gen.go b/internal/aws/iot/thing_type_resource_gen.go index 797aab27b4..be5f28e0e6 100644 --- a/internal/aws/iot/thing_type_resource_gen.go +++ b/internal/aws/iot/thing_type_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -111,19 +112,29 @@ func thingTypeResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iot/topic_rule_resource_gen.go b/internal/aws/iot/topic_rule_resource_gen.go index a89f1ac330..f17009eafe 100644 --- a/internal/aws/iot/topic_rule_resource_gen.go +++ b/internal/aws/iot/topic_rule_resource_gen.go @@ -15,6 +15,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" @@ -22,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -86,11 +88,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1648,19 +1664,47 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AlarmName "alarm_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StateReason "state_reason": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StateValue "state_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1682,11 +1726,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: LogGroupName "log_group_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1700,11 +1758,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: MetricName "metric_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MetricNamespace "metric_namespace": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MetricTimestamp "metric_timestamp": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1716,15 +1788,36 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: MetricUnit "metric_unit": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MetricValue "metric_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1738,7 +1831,14 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: HashKeyField "hash_key_field": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HashKeyType "hash_key_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1750,7 +1850,14 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: HashKeyValue "hash_key_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PayloadField "payload_field": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1786,11 +1893,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1807,7 +1928,14 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1836,23 +1964,58 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Endpoint "endpoint": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Index "index": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1874,11 +2037,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: DeliveryStreamName "delivery_stream_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Separator "separator": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1906,15 +2083,36 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ServiceName "service_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SigningRegion "signing_region": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1944,11 +2142,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1963,7 +2175,14 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Url "url": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1985,11 +2204,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: ChannelName "channel_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2011,7 +2244,14 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: InputName "input_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MessageId "message_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2023,7 +2263,14 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2096,10 +2343,24 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TimeInSeconds "time_in_seconds": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2137,25 +2398,49 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2171,11 +2456,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { "client_properties": // Pattern: "" schema.MapAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Map{ /*START VALIDATORS*/ + fwvalidators.NotNullMap(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ + mapplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DestinationArn "destination_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Headers "headers": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2183,12 +2482,26 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, - }, /*END ATTRIBUTE*/ + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ + }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, @@ -2218,7 +2531,14 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Topic "topic": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2240,11 +2560,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StreamName "stream_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2276,19 +2610,47 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DeviceId "device_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Latitude "latitude": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Longitude "longitude": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Timestamp "timestamp": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2303,7 +2665,14 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2314,7 +2683,14 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TrackerName "tracker_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2328,23 +2704,58 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Endpoint "endpoint": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Index "index": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2420,17 +2831,27 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2460,11 +2881,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Topic "topic": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2478,7 +2913,14 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketName "bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CannedAcl "canned_acl": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2502,11 +2944,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2528,11 +2984,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TargetArn "target_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2546,11 +3016,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: QueueUrl "queue_url": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: UseBase64 "use_base_64": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -2580,11 +3064,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StateMachineName "state_machine_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2598,7 +3096,14 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Dimensions "dimensions": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2606,37 +3111,84 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 128), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Timestamp "timestamp": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2680,19 +3232,47 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AlarmName "alarm_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, - }, /*END ATTRIBUTE*/ - // Property: StateReason - "state_reason": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, - }, /*END ATTRIBUTE*/ - // Property: StateValue + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ + }, /*END ATTRIBUTE*/ + // Property: StateReason + "state_reason": schema.StringAttribute{ /*START ATTRIBUTE*/ + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ + }, /*END ATTRIBUTE*/ + // Property: StateValue "state_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2714,11 +3294,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: LogGroupName "log_group_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2732,11 +3326,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: MetricName "metric_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MetricNamespace "metric_namespace": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MetricTimestamp "metric_timestamp": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2748,15 +3356,36 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: MetricUnit "metric_unit": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MetricValue "metric_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2770,7 +3399,14 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: HashKeyField "hash_key_field": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HashKeyType "hash_key_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2782,7 +3418,14 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: HashKeyValue "hash_key_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PayloadField "payload_field": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2818,11 +3461,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2839,7 +3496,14 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2868,23 +3532,58 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Endpoint "endpoint": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Index "index": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2906,11 +3605,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: DeliveryStreamName "delivery_stream_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Separator "separator": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2938,15 +3651,36 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ServiceName "service_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SigningRegion "signing_region": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2976,11 +3710,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2995,7 +3743,14 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Url "url": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3017,11 +3772,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: ChannelName "channel_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3043,7 +3812,14 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: InputName "input_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MessageId "message_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3055,7 +3831,14 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3128,10 +3911,24 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TimeInSeconds "time_in_seconds": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3169,25 +3966,49 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3203,11 +4024,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { "client_properties": // Pattern: "" schema.MapAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Map{ /*START VALIDATORS*/ + fwvalidators.NotNullMap(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ + mapplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DestinationArn "destination_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Headers "headers": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -3215,11 +4050,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3250,7 +4099,14 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Topic "topic": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3272,11 +4128,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StreamName "stream_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3308,19 +4178,47 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DeviceId "device_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Latitude "latitude": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Longitude "longitude": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Timestamp "timestamp": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3335,7 +4233,14 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3346,7 +4251,14 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TrackerName "tracker_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3360,23 +4272,58 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Endpoint "endpoint": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Index "index": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3452,17 +4399,27 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3492,11 +4449,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Topic "topic": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3510,7 +4481,14 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketName "bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CannedAcl "canned_acl": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3534,11 +4512,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3560,11 +4552,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TargetArn "target_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3578,11 +4584,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: QueueUrl "queue_url": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: UseBase64 "use_base_64": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -3612,11 +4632,25 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StateMachineName "state_machine_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3630,7 +4664,14 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Dimensions "dimensions": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -3638,37 +4679,84 @@ func topicRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 128), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Timestamp "timestamp": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/iotanalytics/channel_resource_gen.go b/internal/aws/iotanalytics/channel_resource_gen.go index 7b33b6ca15..0621477d1c 100644 --- a/internal/aws/iotanalytics/channel_resource_gen.go +++ b/internal/aws/iotanalytics/channel_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -101,11 +102,16 @@ func channelResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 255), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9.\\-_]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeyPrefix "key_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -121,10 +127,15 @@ func channelResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -241,17 +252,27 @@ func channelResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iotanalytics/dataset_resource_gen.go b/internal/aws/iotanalytics/dataset_resource_gen.go index b7e5dd24c6..25ea071412 100644 --- a/internal/aws/iotanalytics/dataset_resource_gen.go +++ b/internal/aws/iotanalytics/dataset_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -215,40 +216,67 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ExecutionRoleArn "execution_role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Image "image": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceConfiguration "resource_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ComputeType "compute_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ACU_1", "ACU_2", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VolumeSizeInGB "volume_size_in_gb": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 50), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Variables "variables": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -259,10 +287,15 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DatasetName "dataset_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -284,10 +317,15 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: FileName "file_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[\\w\\.-]{1,255}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -309,10 +347,15 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: VariableName "variable_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -345,11 +388,25 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: OffsetSeconds "offset_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TimeExpression "time_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -372,7 +429,14 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: SqlQuery "sql_query": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -499,18 +563,28 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: InputName "input_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z][a-zA-Z0-9_]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -524,28 +598,43 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 255), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9.\\-_]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: GlueConfiguration "glue_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 150), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 150), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -556,18 +645,28 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9!_.*'()/{}:-]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -577,7 +676,14 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EntryName "entry_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -687,10 +793,15 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: TimeoutInMinutes "timeout_in_minutes": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 60), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -700,7 +811,14 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RuleName "rule_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -806,17 +924,27 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -881,7 +1009,14 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ScheduleExpression "schedule_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -895,10 +1030,15 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DatasetName "dataset_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/iotanalytics/datastore_resource_gen.go b/internal/aws/iotanalytics/datastore_resource_gen.go index ff0206e209..aa5db15848 100644 --- a/internal/aws/iotanalytics/datastore_resource_gen.go +++ b/internal/aws/iotanalytics/datastore_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -118,10 +119,15 @@ func datastoreResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AttributeName "attribute_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9_]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -135,10 +141,15 @@ func datastoreResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AttributeName "attribute_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9_]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TimestampFormat "timestamp_format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -251,11 +262,16 @@ func datastoreResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 255), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9.\\-_]*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeyPrefix "key_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -271,10 +287,15 @@ func datastoreResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -291,11 +312,16 @@ func datastoreResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 255), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9.\\-_]*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeyPrefix "key_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -410,11 +436,25 @@ func datastoreResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -541,17 +581,27 @@ func datastoreResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iotanalytics/pipeline_resource_gen.go b/internal/aws/iotanalytics/pipeline_resource_gen.go index 712f907f1a..ecf2e798a9 100644 --- a/internal/aws/iotanalytics/pipeline_resource_gen.go +++ b/internal/aws/iotanalytics/pipeline_resource_gen.go @@ -14,7 +14,9 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" @@ -22,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -374,14 +377,26 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { "attributes": // Pattern: "" schema.MapAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Map{ /*START VALIDATORS*/ + fwvalidators.NotNullMap(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ + mapplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Next "next": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -406,18 +421,28 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ChannelName "channel_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9_]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Next "next": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -442,18 +467,28 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DatastoreName "datastore_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9_]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -467,17 +502,27 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Attribute "attribute": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Next "next": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -492,17 +537,27 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ThingName "thing_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -516,17 +571,27 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Attribute "attribute": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Next "next": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -541,17 +606,27 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ThingName "thing_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -565,17 +640,27 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Filter "filter": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Next "next": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -600,25 +685,40 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BatchSize "batch_size": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 1000), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LambdaName "lambda_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9_-]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Next "next": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -643,24 +743,39 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Attribute "attribute": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Math "math": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Next "next": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -686,23 +801,31 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: Attributes "attributes": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 50), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 256), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Next "next": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -728,23 +851,31 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: Attributes "attributes": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 50), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 256), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Next "next": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -830,17 +961,27 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iotcoredeviceadvisor/suite_definition_resource_gen.go b/internal/aws/iotcoredeviceadvisor/suite_definition_resource_gen.go index 57ae1a26d4..4428885d75 100644 --- a/internal/aws/iotcoredeviceadvisor/suite_definition_resource_gen.go +++ b/internal/aws/iotcoredeviceadvisor/suite_definition_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -253,18 +254,28 @@ func suiteDefinitionResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iotevents/alarm_model_resource_gen.go b/internal/aws/iotevents/alarm_model_resource_gen.go index 84729c9750..61b3ac2a55 100644 --- a/internal/aws/iotevents/alarm_model_resource_gen.go +++ b/internal/aws/iotevents/alarm_model_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -557,7 +558,14 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { // Property: HashKeyField "hash_key_field": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the hash key (also called the partition key).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HashKeyType "hash_key_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -571,7 +579,14 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { // Property: HashKeyValue "hash_key_value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the hash key (also called the partition key).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operation "operation": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -588,15 +603,27 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the alarm model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -645,7 +672,14 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the DynamoDB table.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the alarm model instance and the event that triggered the action. You can also customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html). One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify. For more information, see [Actions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html) in *AWS IoT Events Developer Guide*.", @@ -664,15 +698,27 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the alarm model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -685,7 +731,14 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the DynamoDB table.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Defines an action to write to the Amazon DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the alarm model instance and the event that triggered the action. You can also customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html). A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify.\n\nYou can use expressions for parameters that are strings. For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *AWS IoT Events Developer Guide*.", @@ -701,7 +754,14 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { // Property: DeliveryStreamName "delivery_stream_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the Kinesis Data Firehose delivery stream where the data is written.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Payload "payload": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -709,15 +769,27 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the alarm model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -753,11 +825,16 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { // Property: InputName "input_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the AWS IoT Events input where the data is sent.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z][a-zA-Z0-9_]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Payload "payload": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -765,15 +842,27 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the alarm model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -857,7 +946,14 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { // Property: TimeInSeconds "time_in_seconds": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The nanosecond offset converted from `timeInSeconds`. The valid range is between `0-999999999`. You can also specify an expression.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A structure that contains timestamp information. For more information, see [TimeInNanos](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_TimeInNanos.html) in the *AWS IoT SiteWise API Reference*.", @@ -908,7 +1004,14 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A structure that contains an asset property value. For more information, see [Variant](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_Variant.html) in the *AWS IoT SiteWise API Reference*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A structure that contains value information. For more information, see [AssetPropertyValue](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetPropertyValue.html) in the *AWS IoT SiteWise API Reference*.", @@ -932,10 +1035,15 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { // Property: MqttTopic "mqtt_topic": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The MQTT topic of the message. You can use a string expression that includes variables (`$variable.`) and input values (`$input..`) as the topic string.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Payload "payload": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -943,15 +1051,27 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the alarm model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -975,10 +1095,15 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { // Property: FunctionArn "function_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the Lambda function that is executed.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Payload "payload": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -986,15 +1111,27 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the alarm model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -1020,15 +1157,27 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the alarm model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -1041,10 +1190,15 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { // Property: TargetArn "target_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the Amazon SNS target where the message is sent.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information required to publish the Amazon SNS message.", @@ -1063,15 +1217,27 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the alarm model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -1084,7 +1250,14 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { // Property: QueueUrl "queue_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of the SQS queue where the data is written.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: UseBase64 "use_base_64": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -1216,7 +1389,8 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { // Property: ComparisonOperator "comparison_operator": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The comparison operator.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "GREATER", @@ -1226,23 +1400,37 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { "EQUAL", "NOT_EQUAL", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InputProperty "input_property": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value on the left side of the comparison operator. You can specify an AWS IoT Events input attribute as an input property.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Threshold "threshold": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value on the right side of the comparison operator. You can enter a number or specify an AWS IoT Events input attribute.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A rule that compares an input property value to a threshold value with a comparison operator.", @@ -1349,12 +1537,26 @@ func alarmModelResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Key of the Tag.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Value of the Tag.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iotevents/detector_model_resource_gen.go b/internal/aws/iotevents/detector_model_resource_gen.go index ccb460e398..10926d00aa 100644 --- a/internal/aws/iotevents/detector_model_resource_gen.go +++ b/internal/aws/iotevents/detector_model_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -2236,10 +2237,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: TimerName "timer_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to clear the timer.", @@ -2255,7 +2261,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: HashKeyField "hash_key_field": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the hash key (also called the partition key).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HashKeyType "hash_key_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2269,7 +2282,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: HashKeyValue "hash_key_value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the hash key (also called the partition key).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operation "operation": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2286,15 +2306,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -2343,7 +2375,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the DynamoDB table.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can also customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html). One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify. For more information, see [Actions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html) in *AWS IoT Events Developer Guide*.", @@ -2362,15 +2401,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -2383,7 +2434,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the DynamoDB table.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Defines an action to write to the Amazon DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can also customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html). A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify.\n\nYou can use expressions for parameters that are strings. For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *AWS IoT Events Developer Guide*.", @@ -2399,7 +2457,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: DeliveryStreamName "delivery_stream_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the Kinesis Data Firehose delivery stream where the data is written.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Payload "payload": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2407,15 +2472,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -2451,11 +2528,16 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: InputName "input_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the AWS IoT Events input where the data is sent.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z][a-zA-Z0-9_]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Payload "payload": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2463,15 +2545,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -2555,7 +2649,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TimeInSeconds "time_in_seconds": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The nanosecond offset converted from `timeInSeconds`. The valid range is between `0-999999999`. You can also specify an expression.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A structure that contains timestamp information. For more information, see [TimeInNanos](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_TimeInNanos.html) in the *AWS IoT SiteWise API Reference*.", @@ -2606,11 +2707,25 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A structure that contains an asset property value. For more information, see [Variant](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_Variant.html) in the *AWS IoT SiteWise API Reference*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A structure that contains value information. For more information, see [AssetPropertyValue](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetPropertyValue.html) in the *AWS IoT SiteWise API Reference*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Sends information about the detector model instance and the event that triggered the action to a specified asset property in AWS IoT SiteWise.", @@ -2626,10 +2741,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: MqttTopic "mqtt_topic": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The MQTT topic of the message. You can use a string expression that includes variables (`$variable.`) and input values (`$input..`) as the topic string.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Payload "payload": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2637,15 +2757,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -2669,10 +2801,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: FunctionArn "function_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the Lambda function that is executed.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Payload "payload": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2680,15 +2817,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -2711,10 +2860,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TimerName "timer_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the timer to reset.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information required to reset the timer. The timer is reset to the previously evaluated result of the duration. The duration expression isn't reevaluated when you reset the timer.", @@ -2754,10 +2908,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TimerName "timer_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the timer.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to set the timer.", @@ -2773,19 +2932,29 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The new value of the variable.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VariableName "variable_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the variable.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z][a-zA-Z0-9_]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information about the variable and its new value.", @@ -2804,15 +2973,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -2825,10 +3006,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TargetArn "target_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the Amazon SNS target where the message is sent.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information required to publish the Amazon SNS message.", @@ -2847,15 +3033,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -2868,7 +3066,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: QueueUrl "queue_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of the SQS queue where the data is written.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: UseBase64 "use_base_64": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -2911,10 +3116,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: EventName "event_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the event.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2950,10 +3160,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: TimerName "timer_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to clear the timer.", @@ -2969,7 +3184,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: HashKeyField "hash_key_field": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the hash key (also called the partition key).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HashKeyType "hash_key_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2983,7 +3205,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: HashKeyValue "hash_key_value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the hash key (also called the partition key).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operation "operation": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3000,15 +3229,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -3057,7 +3298,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the DynamoDB table.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can also customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html). One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify. For more information, see [Actions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html) in *AWS IoT Events Developer Guide*.", @@ -3076,15 +3324,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -3097,12 +3357,19 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the DynamoDB table.", - Required: true, - }, /*END ATTRIBUTE*/ - }, /*END SCHEMA*/ - Description: "Defines an action to write to the Amazon DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can also customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html). A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify.\n\nYou can use expressions for parameters that are strings. For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *AWS IoT Events Developer Guide*.", - Optional: true, - Computed: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ + }, /*END ATTRIBUTE*/ + }, /*END SCHEMA*/ + Description: "Defines an action to write to the Amazon DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can also customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html). A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify.\n\nYou can use expressions for parameters that are strings. For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *AWS IoT Events Developer Guide*.", + Optional: true, + Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ @@ -3113,7 +3380,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: DeliveryStreamName "delivery_stream_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the Kinesis Data Firehose delivery stream where the data is written.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Payload "payload": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3121,15 +3395,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -3165,11 +3451,16 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: InputName "input_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the AWS IoT Events input where the data is sent.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z][a-zA-Z0-9_]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Payload "payload": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3177,15 +3468,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -3269,7 +3572,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TimeInSeconds "time_in_seconds": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The nanosecond offset converted from `timeInSeconds`. The valid range is between `0-999999999`. You can also specify an expression.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A structure that contains timestamp information. For more information, see [TimeInNanos](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_TimeInNanos.html) in the *AWS IoT SiteWise API Reference*.", @@ -3320,11 +3630,25 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A structure that contains an asset property value. For more information, see [Variant](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_Variant.html) in the *AWS IoT SiteWise API Reference*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A structure that contains value information. For more information, see [AssetPropertyValue](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetPropertyValue.html) in the *AWS IoT SiteWise API Reference*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Sends information about the detector model instance and the event that triggered the action to a specified asset property in AWS IoT SiteWise.", @@ -3340,10 +3664,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: MqttTopic "mqtt_topic": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The MQTT topic of the message. You can use a string expression that includes variables (`$variable.`) and input values (`$input..`) as the topic string.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Payload "payload": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3351,15 +3680,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -3383,10 +3724,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: FunctionArn "function_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the Lambda function that is executed.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Payload "payload": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3394,15 +3740,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -3425,10 +3783,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TimerName "timer_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the timer to reset.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information required to reset the timer. The timer is reset to the previously evaluated result of the duration. The duration expression isn't reevaluated when you reset the timer.", @@ -3468,10 +3831,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TimerName "timer_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the timer.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to set the timer.", @@ -3487,19 +3855,29 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The new value of the variable.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VariableName "variable_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the variable.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z][a-zA-Z0-9_]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information about the variable and its new value.", @@ -3518,15 +3896,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -3539,10 +3929,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TargetArn "target_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the Amazon SNS target where the message is sent.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information required to publish the Amazon SNS message.", @@ -3561,15 +3956,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -3582,7 +3989,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: QueueUrl "queue_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of the SQS queue where the data is written.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: UseBase64 "use_base_64": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -3625,10 +4039,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: EventName "event_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the event.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3664,10 +4083,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: TimerName "timer_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to clear the timer.", @@ -3683,7 +4107,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: HashKeyField "hash_key_field": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the hash key (also called the partition key).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HashKeyType "hash_key_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3697,7 +4128,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: HashKeyValue "hash_key_value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the hash key (also called the partition key).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operation "operation": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3714,15 +4152,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -3771,7 +4221,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the DynamoDB table.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can also customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html). One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify. For more information, see [Actions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html) in *AWS IoT Events Developer Guide*.", @@ -3790,15 +4247,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -3811,7 +4280,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the DynamoDB table.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Defines an action to write to the Amazon DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can also customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html). A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify.\n\nYou can use expressions for parameters that are strings. For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *AWS IoT Events Developer Guide*.", @@ -3827,7 +4303,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: DeliveryStreamName "delivery_stream_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the Kinesis Data Firehose delivery stream where the data is written.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Payload "payload": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3835,15 +4318,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -3879,11 +4374,16 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: InputName "input_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the AWS IoT Events input where the data is sent.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z][a-zA-Z0-9_]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Payload "payload": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3891,15 +4391,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -3983,7 +4495,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TimeInSeconds "time_in_seconds": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The nanosecond offset converted from `timeInSeconds`. The valid range is between `0-999999999`. You can also specify an expression.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A structure that contains timestamp information. For more information, see [TimeInNanos](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_TimeInNanos.html) in the *AWS IoT SiteWise API Reference*.", @@ -4034,11 +4553,25 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A structure that contains an asset property value. For more information, see [Variant](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_Variant.html) in the *AWS IoT SiteWise API Reference*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A structure that contains value information. For more information, see [AssetPropertyValue](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetPropertyValue.html) in the *AWS IoT SiteWise API Reference*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Sends information about the detector model instance and the event that triggered the action to a specified asset property in AWS IoT SiteWise.", @@ -4054,10 +4587,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: MqttTopic "mqtt_topic": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The MQTT topic of the message. You can use a string expression that includes variables (`$variable.`) and input values (`$input..`) as the topic string.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Payload "payload": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4065,15 +4603,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -4097,10 +4647,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: FunctionArn "function_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the Lambda function that is executed.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Payload "payload": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4108,15 +4663,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -4139,10 +4706,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TimerName "timer_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the timer to reset.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information required to reset the timer. The timer is reset to the previously evaluated result of the duration. The duration expression isn't reevaluated when you reset the timer.", @@ -4182,10 +4754,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TimerName "timer_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the timer.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to set the timer.", @@ -4201,19 +4778,29 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The new value of the variable.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VariableName "variable_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the variable.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z][a-zA-Z0-9_]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information about the variable and its new value.", @@ -4232,15 +4819,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -4253,10 +4852,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TargetArn "target_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the Amazon SNS target where the message is sent.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information required to publish the Amazon SNS message.", @@ -4275,15 +4879,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -4296,7 +4912,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: QueueUrl "queue_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of the SQS queue where the data is written.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: UseBase64 "use_base_64": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -4339,10 +4962,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: EventName "event_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the event.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4367,10 +4995,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: TimerName "timer_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to clear the timer.", @@ -4386,7 +5019,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: HashKeyField "hash_key_field": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the hash key (also called the partition key).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HashKeyType "hash_key_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -4400,7 +5040,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: HashKeyValue "hash_key_value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the hash key (also called the partition key).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operation "operation": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -4417,15 +5064,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -4474,7 +5133,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the DynamoDB table.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can also customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html). One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify. For more information, see [Actions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html) in *AWS IoT Events Developer Guide*.", @@ -4493,15 +5159,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -4514,7 +5192,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the DynamoDB table.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Defines an action to write to the Amazon DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can also customize the [payload](https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html). A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify.\n\nYou can use expressions for parameters that are strings. For more information, see [Expressions](https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html) in the *AWS IoT Events Developer Guide*.", @@ -4530,7 +5215,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: DeliveryStreamName "delivery_stream_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the Kinesis Data Firehose delivery stream where the data is written.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Payload "payload": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4538,15 +5230,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -4582,11 +5286,16 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: InputName "input_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the AWS IoT Events input where the data is sent.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z][a-zA-Z0-9_]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Payload "payload": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4594,15 +5303,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -4686,7 +5407,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TimeInSeconds "time_in_seconds": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The nanosecond offset converted from `timeInSeconds`. The valid range is between `0-999999999`. You can also specify an expression.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A structure that contains timestamp information. For more information, see [TimeInNanos](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_TimeInNanos.html) in the *AWS IoT SiteWise API Reference*.", @@ -4737,11 +5465,25 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A structure that contains an asset property value. For more information, see [Variant](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_Variant.html) in the *AWS IoT SiteWise API Reference*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A structure that contains value information. For more information, see [AssetPropertyValue](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetPropertyValue.html) in the *AWS IoT SiteWise API Reference*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Sends information about the detector model instance and the event that triggered the action to a specified asset property in AWS IoT SiteWise.", @@ -4757,10 +5499,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: MqttTopic "mqtt_topic": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The MQTT topic of the message. You can use a string expression that includes variables (`$variable.`) and input values (`$input..`) as the topic string.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Payload "payload": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4768,15 +5515,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -4800,10 +5559,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: FunctionArn "function_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the Lambda function that is executed.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Payload "payload": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4811,15 +5575,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -4842,10 +5618,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TimerName "timer_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the timer to reset.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information required to reset the timer. The timer is reset to the previously evaluated result of the duration. The duration expression isn't reevaluated when you reset the timer.", @@ -4885,10 +5666,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TimerName "timer_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the timer.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to set the timer.", @@ -4904,19 +5690,29 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The new value of the variable.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VariableName "variable_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the variable.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z][a-zA-Z0-9_]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information about the variable and its new value.", @@ -4935,15 +5731,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -4956,10 +5764,15 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: TargetArn "target_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the Amazon SNS target where the message is sent.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information required to publish the Amazon SNS message.", @@ -4978,15 +5791,27 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: ContentExpression "content_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the payload. You can use a string expression that includes quoted strings (`''`), variables (`$variable.`), input values (`$input..`), string concatenations, and quoted strings that contain `${}` as the content. The recommended maximum size of a content expression is 1 KB.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the payload type can be either `STRING` or `JSON`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information needed to configure the payload.\n\nBy default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use `contentExpression`.", @@ -4999,7 +5824,14 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: QueueUrl "queue_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of the SQS queue where the data is written.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: UseBase64 "use_base_64": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -5030,26 +5862,41 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: Condition "condition": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A Boolean expression that when `TRUE` causes the `actions` to be performed and the `nextState` to be entered.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EventName "event_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the event.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NextState "next_state": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The next state to enter.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5231,12 +6078,26 @@ func detectorModelResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Key of the Tag.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Value of the Tag.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iotevents/input_resource_gen.go b/internal/aws/iotevents/input_resource_gen.go index ddec8aaa85..d608526701 100644 --- a/internal/aws/iotevents/input_resource_gen.go +++ b/internal/aws/iotevents/input_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -171,12 +172,26 @@ func inputResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Key of the Tag.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Value of the Tag.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iotfleethub/application_resource_gen.go b/internal/aws/iotfleethub/application_resource_gen.go index 65452f3c52..27af10afda 100644 --- a/internal/aws/iotfleethub/application_resource_gen.go +++ b/internal/aws/iotfleethub/application_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -246,18 +247,28 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iotfleetwise/campaign_resource_gen.go b/internal/aws/iotfleetwise/campaign_resource_gen.go index e39f23fee2..fe84124b89 100644 --- a/internal/aws/iotfleetwise/campaign_resource_gen.go +++ b/internal/aws/iotfleetwise/campaign_resource_gen.go @@ -31,6 +31,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -147,10 +148,15 @@ func campaignResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Expression "expression": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinimumTriggerIntervalMs "minimum_trigger_interval_ms": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -189,10 +195,15 @@ func campaignResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: PeriodMs "period_ms": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(10000.000000, 60000.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -348,18 +359,28 @@ func campaignResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ExecutionRoleArn "execution_role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MqttTopicArn "mqtt_topic_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -373,11 +394,16 @@ func campaignResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketArn "bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(16, 100), stringvalidator.RegexMatches(regexp.MustCompile("^arn:(aws[a-zA-Z0-9-]*):s3:::.+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DataFormat "data_format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -431,18 +457,28 @@ func campaignResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ExecutionRoleArn "execution_role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TimestreamTableArn "timestream_table_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:(aws[a-zA-Z0-9-]*):timestream:[a-zA-Z0-9-]+:[0-9]{12}:database\\/[a-zA-Z0-9_.-]+\\/table\\/[a-zA-Z0-9_.-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -704,11 +740,16 @@ func campaignResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 150), stringvalidator.RegexMatches(regexp.MustCompile("^[\\w|*|-]+(\\.[\\w|*|-]+)*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -819,17 +860,27 @@ func campaignResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iotfleetwise/fleet_resource_gen.go b/internal/aws/iotfleetwise/fleet_resource_gen.go index 11862c3ce9..f432370dee 100644 --- a/internal/aws/iotfleetwise/fleet_resource_gen.go +++ b/internal/aws/iotfleetwise/fleet_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -155,17 +156,27 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iotfleetwise/model_manifest_resource_gen.go b/internal/aws/iotfleetwise/model_manifest_resource_gen.go index fe2aaa7012..47d72facef 100644 --- a/internal/aws/iotfleetwise/model_manifest_resource_gen.go +++ b/internal/aws/iotfleetwise/model_manifest_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -202,17 +203,27 @@ func modelManifestResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iotfleetwise/signal_catalog_resource_gen.go b/internal/aws/iotfleetwise/signal_catalog_resource_gen.go index d66b2cdc98..86e0108736 100644 --- a/internal/aws/iotfleetwise/signal_catalog_resource_gen.go +++ b/internal/aws/iotfleetwise/signal_catalog_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -458,7 +459,8 @@ func signalCatalogResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: DataType "data_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "INT8", @@ -489,7 +491,11 @@ func signalCatalogResource(ctx context.Context) (resource.Resource, error) { "UNIX_TIMESTAMP_ARRAY", "UNKNOWN", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Description "description": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -504,7 +510,14 @@ func signalCatalogResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: FullyQualifiedName "fully_qualified_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Max "max": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -563,7 +576,8 @@ func signalCatalogResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: DataType "data_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "INT8", @@ -594,7 +608,11 @@ func signalCatalogResource(ctx context.Context) (resource.Resource, error) { "UNIX_TIMESTAMP_ARRAY", "UNKNOWN", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DefaultValue "default_value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -617,7 +635,14 @@ func signalCatalogResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: FullyQualifiedName "fully_qualified_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Max "max": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -666,7 +691,14 @@ func signalCatalogResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: FullyQualifiedName "fully_qualified_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -693,7 +725,8 @@ func signalCatalogResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: DataType "data_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "INT8", @@ -724,7 +757,11 @@ func signalCatalogResource(ctx context.Context) (resource.Resource, error) { "UNIX_TIMESTAMP_ARRAY", "UNKNOWN", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Description "description": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -739,7 +776,14 @@ func signalCatalogResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: FullyQualifiedName "fully_qualified_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Max "max": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -818,17 +862,27 @@ func signalCatalogResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iotfleetwise/vehicle_resource_gen.go b/internal/aws/iotfleetwise/vehicle_resource_gen.go index 37d07f69b8..55a88fd67b 100644 --- a/internal/aws/iotfleetwise/vehicle_resource_gen.go +++ b/internal/aws/iotfleetwise/vehicle_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -189,17 +190,27 @@ func vehicleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iotsitewise/asset_model_resource_gen.go b/internal/aws/iotsitewise/asset_model_resource_gen.go index b0a2853018..4c8d8122b7 100644 --- a/internal/aws/iotsitewise/asset_model_resource_gen.go +++ b/internal/aws/iotsitewise/asset_model_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -443,7 +444,8 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { // Property: DataType "data_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The data type of the asset model property.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "STRING", @@ -452,7 +454,11 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { "BOOLEAN", "STRUCT", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DataTypeSpec "data_type_spec": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -509,7 +515,14 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the asset model property.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -538,7 +551,14 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { // Property: Expression "expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The mathematical expression that defines the metric aggregation function. You can specify up to 10 functions per expression.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Variables "variables": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -547,7 +567,14 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The friendly name of the variable to be used in the expression.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -633,7 +660,14 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the property", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -646,14 +680,26 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The variable that identifies an asset property from which to use values.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The list of variables used in the expression.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Window @@ -665,7 +711,14 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { // Property: Interval "interval": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The time interval for the tumbling window.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Offset "offset": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -686,7 +739,14 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The window (time interval) over which AWS IoT SiteWise computes the metric's aggregation expression", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -701,7 +761,14 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { // Property: Expression "expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The mathematical expression that defines the transformation function. You can specify up to 10 functions per expression.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Variables "variables": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -710,7 +777,14 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The friendly name of the variable to be used in the expression.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -796,7 +870,14 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the property", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -809,14 +890,26 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The variable that identifies an asset property from which to use values.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The list of variables used in the expression.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -828,7 +921,8 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TypeName "type_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Measurement", @@ -836,11 +930,22 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { "Transform", "Metric", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The property type", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -899,7 +1004,14 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A unique, friendly name for the asset composite model.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParentAssetModelCompositeModelExternalId "parent_asset_model_composite_model_external_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -927,7 +1039,14 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of the composite model. For alarm composite models, this type is AWS/ALARM", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1030,7 +1149,14 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { // Property: ChildAssetModelId "child_asset_model_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID of the asset model. All assets in this hierarchy must be instances of the child AssetModelId asset model.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ExternalId "external_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1073,7 +1199,14 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the asset model hierarchy.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1438,7 +1571,8 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { // Property: DataType "data_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The data type of the asset model property.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "STRING", @@ -1447,7 +1581,11 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { "BOOLEAN", "STRUCT", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DataTypeSpec "data_type_spec": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1504,7 +1642,14 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the asset model property.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1533,7 +1678,14 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { // Property: Expression "expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The mathematical expression that defines the metric aggregation function. You can specify up to 10 functions per expression.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Variables "variables": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1542,7 +1694,14 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The friendly name of the variable to be used in the expression.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1628,7 +1787,14 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the property", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1641,14 +1807,26 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The variable that identifies an asset property from which to use values.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The list of variables used in the expression.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Window @@ -1660,7 +1838,14 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { // Property: Interval "interval": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The time interval for the tumbling window.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Offset "offset": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1681,7 +1866,14 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The window (time interval) over which AWS IoT SiteWise computes the metric's aggregation expression", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1696,7 +1888,14 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { // Property: Expression "expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The mathematical expression that defines the transformation function. You can specify up to 10 functions per expression.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Variables "variables": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1705,7 +1904,14 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The friendly name of the variable to be used in the expression.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1791,7 +1997,14 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the property", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1804,14 +2017,26 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The variable that identifies an asset property from which to use values.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The list of variables used in the expression.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1823,7 +2048,8 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TypeName "type_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Measurement", @@ -1831,11 +2057,22 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { "Transform", "Metric", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The property type", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1901,11 +2138,25 @@ func assetModelResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iotsitewise/asset_resource_gen.go b/internal/aws/iotsitewise/asset_resource_gen.go index 81b1f19161..1af2c617ec 100644 --- a/internal/aws/iotsitewise/asset_resource_gen.go +++ b/internal/aws/iotsitewise/asset_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -127,7 +128,14 @@ func assetResource(ctx context.Context) (resource.Resource, error) { // Property: ChildAssetId "child_asset_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID of the child asset to be associated.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ExternalId "external_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -379,11 +387,25 @@ func assetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iotsitewise/dashboard_resource_gen.go b/internal/aws/iotsitewise/dashboard_resource_gen.go index dd100c279e..92632406bd 100644 --- a/internal/aws/iotsitewise/dashboard_resource_gen.go +++ b/internal/aws/iotsitewise/dashboard_resource_gen.go @@ -13,8 +13,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -133,11 +135,25 @@ func dashboardResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iotsitewise/gateway_resource_gen.go b/internal/aws/iotsitewise/gateway_resource_gen.go index 3c267f86be..ecab56405f 100644 --- a/internal/aws/iotsitewise/gateway_resource_gen.go +++ b/internal/aws/iotsitewise/gateway_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -70,7 +71,14 @@ func gatewayResource(ctx context.Context) (resource.Resource, error) { // Property: CapabilityNamespace "capability_namespace": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The namespace of the capability configuration.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -186,7 +194,14 @@ func gatewayResource(ctx context.Context) (resource.Resource, error) { // Property: GroupArn "group_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the Greengrass group.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A gateway that runs on AWS IoT Greengrass V1.", @@ -202,7 +217,14 @@ func gatewayResource(ctx context.Context) (resource.Resource, error) { // Property: CoreDeviceThingName "core_device_thing_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the CoreDevice in GreenGrass V2.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A gateway that runs on AWS IoT Greengrass V2.", @@ -218,7 +240,14 @@ func gatewayResource(ctx context.Context) (resource.Resource, error) { // Property: IotCoreThingName "iot_core_thing_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the IoT Core Thing.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A gateway that runs on Siemens Industrial Edge.", @@ -266,11 +295,25 @@ func gatewayResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iotsitewise/portal_resource_gen.go b/internal/aws/iotsitewise/portal_resource_gen.go index a945364186..bd33dc3825 100644 --- a/internal/aws/iotsitewise/portal_resource_gen.go +++ b/internal/aws/iotsitewise/portal_resource_gen.go @@ -14,8 +14,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -238,11 +240,25 @@ func portalResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iotsitewise/project_resource_gen.go b/internal/aws/iotsitewise/project_resource_gen.go index 0c7a1b77bd..9fa564e764 100644 --- a/internal/aws/iotsitewise/project_resource_gen.go +++ b/internal/aws/iotsitewise/project_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -151,11 +152,25 @@ func projectResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iotwireless/network_analyzer_configuration_resource_gen.go b/internal/aws/iotwireless/network_analyzer_configuration_resource_gen.go index 0a3f9c58e0..edce0c315e 100644 --- a/internal/aws/iotwireless/network_analyzer_configuration_resource_gen.go +++ b/internal/aws/iotwireless/network_analyzer_configuration_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -125,18 +126,28 @@ func networkAnalyzerConfigurationResource(ctx context.Context) (resource.Resourc // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iotwireless/partner_account_resource_gen.go b/internal/aws/iotwireless/partner_account_resource_gen.go index 89bfd7512a..908898b972 100644 --- a/internal/aws/iotwireless/partner_account_resource_gen.go +++ b/internal/aws/iotwireless/partner_account_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -140,11 +141,16 @@ func partnerAccountResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AppServerPrivateKey "app_server_private_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 4096), stringvalidator.RegexMatches(regexp.MustCompile("[a-fA-F0-9]{64}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The Sidewalk account credentials.", diff --git a/internal/aws/iotwireless/wireless_device_import_task_resource_gen.go b/internal/aws/iotwireless/wireless_device_import_task_resource_gen.go index 7673daa41d..bba713247f 100644 --- a/internal/aws/iotwireless/wireless_device_import_task_resource_gen.go +++ b/internal/aws/iotwireless/wireless_device_import_task_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -325,18 +326,28 @@ func wirelessDeviceImportTaskResource(ctx context.Context) (resource.Resource, e // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/iotwireless/wireless_device_resource_gen.go b/internal/aws/iotwireless/wireless_device_resource_gen.go index cc28dc0f04..243bb62b6f 100644 --- a/internal/aws/iotwireless/wireless_device_resource_gen.go +++ b/internal/aws/iotwireless/wireless_device_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -317,30 +318,52 @@ func wirelessDeviceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DevAddr "dev_addr": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("[a-fA-F0-9]{8}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SessionKeys "session_keys": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AppSKey "app_s_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("[a-fA-F0-9]{32}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NwkSKey "nwk_s_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("[a-fA-F0-9]{32}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -354,44 +377,76 @@ func wirelessDeviceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DevAddr "dev_addr": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("[a-fA-F0-9]{8}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SessionKeys "session_keys": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AppSKey "app_s_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("[a-fA-F0-9]{32}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FNwkSIntKey "f_nwk_s_int_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("[a-fA-F0-9]{32}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NwkSEncKey "nwk_s_enc_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("[a-fA-F0-9]{32}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SNwkSIntKey "s_nwk_s_int_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("[a-fA-F0-9]{32}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -492,17 +547,27 @@ func wirelessDeviceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AppEui "app_eui": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("[a-fA-F0-9]{16}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AppKey "app_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("[a-fA-F0-9]{32}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -516,24 +581,39 @@ func wirelessDeviceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AppKey "app_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("[a-fA-F0-9]{32}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: JoinEui "join_eui": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("[a-fA-F0-9]{16}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NwkKey "nwk_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("[a-fA-F0-9]{32}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/ivs/channel_resource_gen.go b/internal/aws/ivs/channel_resource_gen.go index 39b55f4b94..1950ad90ea 100644 --- a/internal/aws/ivs/channel_resource_gen.go +++ b/internal/aws/ivs/channel_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -248,17 +249,27 @@ func channelResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ivs/encoder_configuration_resource_gen.go b/internal/aws/ivs/encoder_configuration_resource_gen.go index 299d49dd81..4c877d1974 100644 --- a/internal/aws/ivs/encoder_configuration_resource_gen.go +++ b/internal/aws/ivs/encoder_configuration_resource_gen.go @@ -26,6 +26,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -115,18 +116,28 @@ func encoderConfigurationResource(ctx context.Context) (resource.Resource, error // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ivs/playback_key_pair_resource_gen.go b/internal/aws/ivs/playback_key_pair_resource_gen.go index 4b563e4e5e..b0677db010 100644 --- a/internal/aws/ivs/playback_key_pair_resource_gen.go +++ b/internal/aws/ivs/playback_key_pair_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -135,17 +136,27 @@ func playbackKeyPairResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ivs/playback_restriction_policy_resource_gen.go b/internal/aws/ivs/playback_restriction_policy_resource_gen.go index 193cd1d64f..0f78f502a5 100644 --- a/internal/aws/ivs/playback_restriction_policy_resource_gen.go +++ b/internal/aws/ivs/playback_restriction_policy_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-provider-awscc/internal/defaults" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -175,18 +176,28 @@ func playbackRestrictionPolicyResource(ctx context.Context) (resource.Resource, // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ivs/public_key_resource_gen.go b/internal/aws/ivs/public_key_resource_gen.go index 40d8a92fa7..026492f93e 100644 --- a/internal/aws/ivs/public_key_resource_gen.go +++ b/internal/aws/ivs/public_key_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -138,17 +139,27 @@ func publicKeyResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ivs/recording_configuration_resource_gen.go b/internal/aws/ivs/recording_configuration_resource_gen.go index 3aec5549ab..5090bb4dd9 100644 --- a/internal/aws/ivs/recording_configuration_resource_gen.go +++ b/internal/aws/ivs/recording_configuration_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -85,13 +86,16 @@ func recordingConfigurationResource(ctx context.Context) (resource.Resource, err Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketName "bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-z0-9-.]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.RequiresReplace(), + stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -298,17 +302,27 @@ func recordingConfigurationResource(ctx context.Context) (resource.Resource, err Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ivs/stage_resource_gen.go b/internal/aws/ivs/stage_resource_gen.go index 985f8a6195..735b4624ff 100644 --- a/internal/aws/ivs/stage_resource_gen.go +++ b/internal/aws/ivs/stage_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-provider-awscc/internal/defaults" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -133,11 +134,16 @@ func stageResource(ctx context.Context) (resource.Resource, error) { // Property: StorageConfigurationArn "storage_configuration_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "ARN of the StorageConfiguration resource to use for individual participant recording.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 128), stringvalidator.RegexMatches(regexp.MustCompile("^$|^arn:aws:ivs:[a-z0-9-]+:[0-9]+:storage-configuration/[a-zA-Z0-9-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration object for individual participant recording, to attach to the new stage.", @@ -203,17 +209,27 @@ func stageResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ivs/storage_configuration_resource_gen.go b/internal/aws/ivs/storage_configuration_resource_gen.go index b9029269dc..0b20eecd16 100644 --- a/internal/aws/ivs/storage_configuration_resource_gen.go +++ b/internal/aws/ivs/storage_configuration_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -146,17 +147,27 @@ func storageConfigurationResource(ctx context.Context) (resource.Resource, error Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ivs/stream_key_resource_gen.go b/internal/aws/ivs/stream_key_resource_gen.go index 9d49b12774..d7fc11c250 100644 --- a/internal/aws/ivs/stream_key_resource_gen.go +++ b/internal/aws/ivs/stream_key_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -99,17 +100,27 @@ func streamKeyResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ivschat/logging_configuration_resource_gen.go b/internal/aws/ivschat/logging_configuration_resource_gen.go index 546d0712ae..4468fc76e7 100644 --- a/internal/aws/ivschat/logging_configuration_resource_gen.go +++ b/internal/aws/ivschat/logging_configuration_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -115,11 +116,16 @@ func loggingConfigurationResource(ctx context.Context) (resource.Resource, error // Property: LogGroupName "log_group_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Name of the Amazon CloudWatch Logs log group where chat activity will be logged.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("^[\\.\\-_/#A-Za-z0-9]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "CloudWatch destination configuration for IVS Chat logging.", @@ -135,11 +141,16 @@ func loggingConfigurationResource(ctx context.Context) (resource.Resource, error // Property: DeliveryStreamName "delivery_stream_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Name of the Amazon Kinesis Firehose delivery stream where chat activity will be logged.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_.-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Kinesis Firehose destination configuration for IVS Chat logging.", @@ -155,11 +166,16 @@ func loggingConfigurationResource(ctx context.Context) (resource.Resource, error // Property: BucketName "bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Name of the Amazon S3 bucket where chat activity will be logged.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-z0-9-.]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "S3 destination configuration for IVS Chat logging.", @@ -273,18 +289,28 @@ func loggingConfigurationResource(ctx context.Context) (resource.Resource, error // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ivschat/room_resource_gen.go b/internal/aws/ivschat/room_resource_gen.go index f55a064fe0..5803545ebe 100644 --- a/internal/aws/ivschat/room_resource_gen.go +++ b/internal/aws/ivschat/room_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -271,18 +272,28 @@ func roomResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/kafkaconnect/connector_resource_gen.go b/internal/aws/kafkaconnect/connector_resource_gen.go index 9de471fe3b..dfd4207c59 100644 --- a/internal/aws/kafkaconnect/connector_resource_gen.go +++ b/internal/aws/kafkaconnect/connector_resource_gen.go @@ -14,6 +14,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" @@ -24,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -152,12 +154,20 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { // Property: MaxWorkerCount "max_worker_count": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum number of workers for a connector.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: McuCount "mcu_count": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Specifies how many MSK Connect Units (MCU) as the minimum scaling unit.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.OneOf( 1, @@ -165,12 +175,23 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { 4, 8, ), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinWorkerCount "min_worker_count": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The minimum number of workers for a connector.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ScaleInPolicy "scale_in_policy": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -178,14 +199,26 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { // Property: CpuUtilizationPercentage "cpu_utilization_percentage": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Specifies the CPU utilization percentage threshold at which connector scale in should trigger.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 100), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information about the scale in policy of the connector.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ScaleOutPolicy "scale_out_policy": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -193,14 +226,26 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { // Property: CpuUtilizationPercentage "cpu_utilization_percentage": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Specifies the CPU utilization percentage threshold at which connector scale out should trigger.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 100), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information about the scale out policy of the connector.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Details about auto scaling of a connector.", @@ -233,7 +278,14 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { // Property: WorkerCount "worker_count": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Number of workers for a connector.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Details about a fixed capacity allocated to a connector.", @@ -609,7 +661,14 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether the logs get sent to the specified CloudWatch Logs destination.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LogGroup "log_group": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -643,7 +702,14 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether the logs get sent to the specified Kinesis Data Firehose delivery stream.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Details about delivering logs to Amazon Kinesis Data Firehose.", @@ -668,7 +734,14 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether the logs get sent to the specified Amazon S3 destination.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Prefix "prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -689,7 +762,14 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies where worker logs are delivered.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Details of what logs are delivered and where they are delivered.", @@ -830,17 +910,27 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -881,18 +971,28 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { // Property: Revision "revision": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The revision of the worker configuration to use.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WorkerConfigurationArn "worker_configuration_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the worker configuration to use.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("arn:(aws|aws-us-gov|aws-cn):kafkaconnect:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the worker configuration to use with the connector.", diff --git a/internal/aws/kafkaconnect/custom_plugin_resource_gen.go b/internal/aws/kafkaconnect/custom_plugin_resource_gen.go index e44cdd421e..e97ffc1d67 100644 --- a/internal/aws/kafkaconnect/custom_plugin_resource_gen.go +++ b/internal/aws/kafkaconnect/custom_plugin_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -269,18 +270,28 @@ func customPluginResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/kafkaconnect/worker_configuration_resource_gen.go b/internal/aws/kafkaconnect/worker_configuration_resource_gen.go index e57d879f42..6661fb4d57 100644 --- a/internal/aws/kafkaconnect/worker_configuration_resource_gen.go +++ b/internal/aws/kafkaconnect/worker_configuration_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -129,17 +130,27 @@ func workerConfigurationResource(ctx context.Context) (resource.Resource, error) Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/kendra/data_source_resource_gen.go b/internal/aws/kendra/data_source_resource_gen.go index a3702da8bb..4d59cc28b7 100644 --- a/internal/aws/kendra/data_source_resource_gen.go +++ b/internal/aws/kendra/data_source_resource_gen.go @@ -26,6 +26,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -342,11 +343,16 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ConditionDocumentAttributeKey "condition_document_attribute_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9_][a-zA-Z0-9_-]*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConditionOnValue "condition_on_value": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -396,7 +402,8 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "GreaterThan", @@ -411,7 +418,11 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { "NotExists", "BeginsWith", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -433,11 +444,16 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: TargetDocumentAttributeKey "target_document_attribute_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9_][a-zA-Z0-9_-]*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TargetDocumentAttributeValue "target_document_attribute_value": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -520,11 +536,16 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ConditionDocumentAttributeKey "condition_document_attribute_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9_][a-zA-Z0-9_-]*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConditionOnValue "condition_on_value": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -574,7 +595,8 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "GreaterThan", @@ -589,7 +611,11 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { "NotExists", "BeginsWith", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -600,18 +626,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: LambdaArn "lambda_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Bucket "s3_bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -628,11 +664,16 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ConditionDocumentAttributeKey "condition_document_attribute_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9_][a-zA-Z0-9_-]*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConditionOnValue "condition_on_value": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -682,7 +723,8 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "GreaterThan", @@ -697,7 +739,11 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { "NotExists", "BeginsWith", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -708,18 +754,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: LambdaArn "lambda_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Bucket "s3_bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2478,7 +2534,8 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DataSourceFieldName "data_source_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "AUTHOR", @@ -2493,7 +2550,11 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { "URL", "VERSION", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DateFieldFormat "date_field_format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2508,10 +2569,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IndexFieldName "index_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2548,7 +2614,8 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DataSourceFieldName "data_source_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "AUTHOR", @@ -2561,7 +2628,11 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { "URL", "VERSION", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DateFieldFormat "date_field_format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2576,10 +2647,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IndexFieldName "index_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2638,7 +2714,8 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DataSourceFieldName "data_source_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "AUTHOR", @@ -2654,7 +2731,11 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { "URL", "VERSION", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DateFieldFormat "date_field_format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2669,10 +2750,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IndexFieldName "index_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2694,18 +2780,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: SecretArn "secret_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1284), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ServerUrl "server_url": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^(https?|ftp|file)://([^\\s]*)"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SpaceConfiguration "space_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2762,7 +2858,8 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DataSourceFieldName "data_source_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DISPLAY_URL", @@ -2770,7 +2867,11 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { "SPACE_KEY", "URL", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DateFieldFormat "date_field_format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2785,10 +2886,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IndexFieldName "index_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2810,13 +2916,18 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Version "version": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "CLOUD", "SERVER", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VpcConfiguration "vpc_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2824,26 +2935,36 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: SecurityGroupIds "security_group_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(10), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("[\\-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetIds "subnet_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(6), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("[\\-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2867,10 +2988,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AllowedGroupsColumnName "allowed_groups_column_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2885,27 +3011,42 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: ChangeDetectingColumns "change_detecting_columns": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 100), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DocumentDataColumnName "document_data_column_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DocumentIdColumnName "document_id_column_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DocumentTitleColumnName "document_title_column_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2924,10 +3065,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DataSourceFieldName "data_source_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DateFieldFormat "date_field_format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2942,10 +3088,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IndexFieldName "index_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2959,52 +3110,92 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConnectionConfiguration "connection_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DatabaseHost "database_host": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 253), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabasePort "database_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 65535), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretArn "secret_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1284), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabaseEngineType "database_engine_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "RDS_AURORA_MYSQL", @@ -3012,7 +3203,11 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { "RDS_MYSQL", "RDS_POSTGRESQL", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SqlConfiguration "sql_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3044,26 +3239,36 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: SecurityGroupIds "security_group_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(10), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("[\\-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetIds "subnet_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(6), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("[\\-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3148,10 +3353,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DataSourceFieldName "data_source_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DateFieldFormat "date_field_format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3166,10 +3376,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IndexFieldName "index_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3199,10 +3414,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: SecretArn "secret_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1284), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3243,10 +3463,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DataSourceFieldName "data_source_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DateFieldFormat "date_field_format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3261,10 +3486,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IndexFieldName "index_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3315,18 +3545,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3336,22 +3576,39 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretArn "secret_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1284), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TenantDomain "tenant_domain": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^([a-zA-Z0-9]+(-[a-zA-Z0-9]+)*\\.)+[a-z]{2,}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3386,11 +3643,16 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: BucketName "bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DocumentsMetadataConfiguration "documents_metadata_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3474,10 +3736,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DocumentDataFieldName "document_data_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DocumentTitleFieldName "document_title_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3496,10 +3763,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DataSourceFieldName "data_source_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DateFieldFormat "date_field_format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3514,10 +3786,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IndexFieldName "index_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3602,10 +3879,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DocumentDataFieldName "document_data_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DocumentTitleFieldName "document_title_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3624,10 +3906,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DataSourceFieldName "data_source_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DateFieldFormat "date_field_format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3642,10 +3929,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IndexFieldName "index_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3660,10 +3952,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3679,7 +3976,8 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: IncludedStates "included_states": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 3), listvalidator.ValueStringsAre( @@ -3689,17 +3987,26 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { "ARCHIVED", ), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StandardKnowledgeArticleTypeConfiguration "standard_knowledge_article_type_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DocumentDataFieldName "document_data_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DocumentTitleFieldName "document_title_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3718,10 +4025,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DataSourceFieldName "data_source_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DateFieldFormat "date_field_format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3736,10 +4048,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IndexFieldName "index_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3768,18 +4085,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: SecretArn "secret_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1284), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ServerUrl "server_url": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^(https?|ftp|file)://([^\\s]*)"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StandardObjectAttachmentConfiguration "standard_object_attachment_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3801,10 +4128,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DataSourceFieldName "data_source_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DateFieldFormat "date_field_format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3819,10 +4151,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IndexFieldName "index_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3848,10 +4185,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DocumentDataFieldName "document_data_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DocumentTitleFieldName "document_title_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3870,10 +4212,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DataSourceFieldName "data_source_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DateFieldFormat "date_field_format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3888,10 +4235,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IndexFieldName "index_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3906,7 +4258,8 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ACCOUNT", @@ -3927,7 +4280,11 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { "TASK", "USER", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3966,10 +4323,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: HostUrl "host_url": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KnowledgeArticleConfiguration "knowledge_article_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3984,10 +4346,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: DocumentDataFieldName "document_data_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DocumentTitleFieldName "document_title_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -4021,10 +4388,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DataSourceFieldName "data_source_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DateFieldFormat "date_field_format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -4039,10 +4411,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IndexFieldName "index_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4090,10 +4467,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: SecretArn "secret_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1284), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ServiceCatalogConfiguration "service_catalog_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4108,10 +4490,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: DocumentDataFieldName "document_data_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DocumentTitleFieldName "document_title_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -4145,10 +4532,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DataSourceFieldName "data_source_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DateFieldFormat "date_field_format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -4163,10 +4555,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IndexFieldName "index_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4203,13 +4600,18 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: ServiceNowBuildVersion "service_now_build_version": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "LONDON", "OTHERS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -4269,10 +4671,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DataSourceFieldName "data_source_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DateFieldFormat "date_field_format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -4287,10 +4694,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IndexFieldName "index_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4320,39 +4732,59 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: SecretArn "secret_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1284), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SharePointVersion "share_point_version": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "SHAREPOINT_ONLINE", "SHAREPOINT_2013", "SHAREPOINT_2016", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SslCertificateS3Path "ssl_certificate_s3_path": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -4364,14 +4796,19 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Urls "urls": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(100), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^(https?|ftp|file)://([^\\s]*)"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: UseChangeLog "use_change_log": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -4387,26 +4824,36 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: SecurityGroupIds "security_group_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(10), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("[\\-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetIds "subnet_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(6), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("[\\-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -4435,25 +4882,40 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Credentials "credentials": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1284), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 253), stringvalidator.RegexMatches(regexp.MustCompile("([^\\s]*)"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 65535), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4533,18 +4995,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 253), stringvalidator.RegexMatches(regexp.MustCompile("([^\\s]*)"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 65535), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -4592,14 +5064,19 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: SeedUrls "seed_urls": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 100), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^(https?)://([^\\s]*)"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WebCrawlerMode "web_crawler_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -4629,14 +5106,19 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: SiteMaps "site_maps": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 3), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^(https?):\\/\\/([^\\s]*)"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -4646,7 +5128,14 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -4687,10 +5176,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DataSourceFieldName "data_source_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DateFieldFormat "date_field_format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -4705,10 +5199,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IndexFieldName "index_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4738,11 +5237,16 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: OrganizationId "organization_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(12, 12), stringvalidator.RegexMatches(regexp.MustCompile("d-[0-9a-fA-F]{10}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: UseChangeLog "use_change_log": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -4933,18 +5437,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string used to identify this tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string containing the value for the tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/kendra/faq_resource_gen.go b/internal/aws/kendra/faq_resource_gen.go index 8619cf9b13..88c7321f3d 100644 --- a/internal/aws/kendra/faq_resource_gen.go +++ b/internal/aws/kendra/faq_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -274,18 +275,28 @@ func faqResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string used to identify this tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string containing the value for the tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/kendra/index_resource_gen.go b/internal/aws/kendra/index_resource_gen.go index 944828d598..70e6c04e51 100644 --- a/internal/aws/kendra/index_resource_gen.go +++ b/internal/aws/kendra/index_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -72,17 +73,27 @@ func indexResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: QueryCapacityUnits "query_capacity_units": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(0), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StorageCapacityUnits "storage_capacity_units": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(0), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Capacity units", @@ -212,10 +223,15 @@ func indexResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Relevance "relevance": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -350,7 +366,8 @@ func indexResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "STRING_VALUE", @@ -358,7 +375,11 @@ func indexResource(ctx context.Context) (resource.Resource, error) { "LONG_VALUE", "DATE_VALUE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -519,18 +540,28 @@ func indexResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string used to identify this tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string containing the value for the tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -657,17 +688,27 @@ func indexResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: GroupAttributeField "group_attribute_field": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: UserNameAttributeField "user_name_attribute_field": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -714,13 +755,18 @@ func indexResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: KeyLocation "key_location": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "URL", "SECRET_MANAGER", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretManagerArn "secret_manager_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/kendraranking/execution_plan_resource_gen.go b/internal/aws/kendraranking/execution_plan_resource_gen.go index baa08cff2d..128228c987 100644 --- a/internal/aws/kendraranking/execution_plan_resource_gen.go +++ b/internal/aws/kendraranking/execution_plan_resource_gen.go @@ -13,6 +13,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -20,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -64,10 +66,15 @@ func executionPlanResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: RescoreCapacityUnits "rescore_capacity_units": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(0), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Capacity units", @@ -166,18 +173,28 @@ func executionPlanResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string used to identify this tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string containing the value for the tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/kinesis/stream_resource_gen.go b/internal/aws/kinesis/stream_resource_gen.go index 55ea47e4bd..7673656c80 100644 --- a/internal/aws/kinesis/stream_resource_gen.go +++ b/internal/aws/kinesis/stream_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-provider-awscc/internal/defaults" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -144,20 +145,30 @@ func streamResource(ctx context.Context) (resource.Resource, error) { // Property: EncryptionType "encryption_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The encryption type to use. The only valid value is KMS. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "KMS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeyId "key_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The GUID for the customer-managed AWS KMS key to use for encryption. This value can be a globally unique identifier, a fully specified Amazon Resource Name (ARN) to either an alias or a key, or an alias name prefixed by \"alias/\".You can also use a master key owned by Kinesis Data Streams by specifying the alias aws/kinesis.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "When specified, enables or updates server-side encryption using an AWS KMS key for a specified stream.", @@ -196,13 +207,18 @@ func streamResource(ctx context.Context) (resource.Resource, error) { // Property: StreamMode "stream_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The mode of the stream", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ON_DEMAND", "PROVISIONED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The mode in which the stream is running.", @@ -254,18 +270,28 @@ func streamResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/kinesisanalyticsv2/application_resource_gen.go b/internal/aws/kinesisanalyticsv2/application_resource_gen.go index 6dadcf88fc..71644eedd6 100644 --- a/internal/aws/kinesisanalyticsv2/application_resource_gen.go +++ b/internal/aws/kinesisanalyticsv2/application_resource_gen.go @@ -26,6 +26,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -737,19 +738,29 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: BucketARN "bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) for the S3 bucket containing the application code.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FileKey "file_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The file key for the object containing the application code.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ObjectVersion "object_version": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -795,18 +806,30 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The location and type of the application code.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CodeContentType "code_content_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether the code content is in text or zip format.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PLAINTEXT", "ZIPFILE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The code location and type parameters for a Flink-based Kinesis Data Analytics application.", @@ -822,7 +845,14 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: SnapshotsEnabled "snapshots_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Describes whether snapshots are enabled for a Flink-based Kinesis Data Analytics application.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Describes whether snapshots are enabled for a Flink-based Kinesis Data Analytics application.", @@ -838,7 +868,14 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: RollbackEnabled "rollback_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Describes whether system initiated rollbacks are enabled for a Flink-based Kinesis Data Analytics application.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Describes whether system initiated rollbacks are enabled for a Flink-based Kinesis Data Analytics application.", @@ -931,13 +968,18 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: ConfigurationType "configuration_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Describes whether the application uses Kinesis Data Analytics' default checkpointing behavior. You must set this property to `CUSTOM` in order to set the `CheckpointingEnabled`, `CheckpointInterval`, or `MinPauseBetweenCheckpoints` parameters.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DEFAULT", "CUSTOM", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinPauseBetweenCheckpoints "min_pause_between_checkpoints": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -965,13 +1007,18 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: ConfigurationType "configuration_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Describes whether to use the default CloudWatch logging configuration for an application. You must set this property to CUSTOM in order to set the LogLevel or MetricsLevel parameters.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DEFAULT", "CUSTOM", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LogLevel "log_level": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1030,13 +1077,18 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: ConfigurationType "configuration_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Describes whether the application uses the default parallelism for the Kinesis Data Analytics service. You must set this property to `CUSTOM` in order to change your application's `AutoScalingEnabled`, `Parallelism`, or `ParallelismPerKPU` properties.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "CUSTOM", "DEFAULT", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Parallelism "parallelism": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -1117,11 +1169,16 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: ResourceARN "resource_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the Amazon Lambda function that operates on records in the stream.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The InputLambdaProcessor that is used to preprocess the records in the stream before being processed by your application code.", @@ -1161,29 +1218,42 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the column that is created in the in-application input stream or reference table.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[^-\\s<>&]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SqlType "sql_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of column created in the in-application input stream or reference table.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of `RecordColumn` objects.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(1000), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RecordEncoding @@ -1212,18 +1282,28 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: RecordColumnDelimiter "record_column_delimiter": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The column delimiter. For example, in a CSV format, a comma (\",\") is the typical column delimiter.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RecordRowDelimiter "record_row_delimiter": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The row delimiter. For example, in a CSV format, '\\n' is the typical row delimiter.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Provides additional mapping information when the record format uses delimiters (for example, CSV).", @@ -1239,10 +1319,15 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: RecordRowPath "record_row_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The path to the top-level parent that contains the records.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 65535), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Provides additional mapping information when JSON is the record format on the streaming source.", @@ -1263,21 +1348,40 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: RecordFormatType "record_format_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of record format.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "CSV", "JSON", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the format of the records on the streaming source.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Describes the format of the data in the streaming source, and how each data element maps to corresponding columns in the in-application stream that is being created.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KinesisFirehoseInput "kinesis_firehose_input": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1285,11 +1389,16 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: ResourceARN "resource_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the delivery stream.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "If the streaming source is an Amazon Kinesis Data Firehose delivery stream, identifies the delivery stream's ARN.", @@ -1305,11 +1414,16 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: ResourceARN "resource_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the input Kinesis data stream to read.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "If the streaming source is an Amazon Kinesis data stream, identifies the stream's Amazon Resource Name (ARN).", @@ -1322,11 +1436,16 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: NamePrefix "name_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name prefix to use when creating an in-application stream. Suppose that you specify a prefix `\"MyInApplicationStream\"`. Kinesis Data Analytics then creates one or more (as per the InputParallelism count you specified) in-application streams with the names `\"MyInApplicationStream_001\"`, `\"MyInApplicationStream_002\"`, and so on.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 32), stringvalidator.RegexMatches(regexp.MustCompile("^[^-\\s<>&]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1357,24 +1476,30 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "security_group_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The array of SecurityGroup IDs used by the VPC configuration.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetIds "subnet_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The array of Subnet IDs used by the VPC configuration.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 16), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1435,13 +1560,18 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: ArtifactType "artifact_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Set this to either `UDF` or `DEPENDENCY_JAR`. `UDF` stands for user-defined functions. This type of artifact must be in an S3 bucket. A `DEPENDENCY_JAR` can be in either Maven or an S3 bucket.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DEPENDENCY_JAR", "UDF", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MavenReference "maven_reference": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1449,29 +1579,44 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: ArtifactId "artifact_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The artifact ID of the Maven reference.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_.-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: GroupId "group_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The group ID of the Maven reference.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_.-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Version "version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The version of the Maven reference.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_.-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The parameters required to fully specify a Maven reference.", @@ -1487,19 +1632,29 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: BucketARN "bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) for the S3 bucket containing the application code.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FileKey "file_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The file key for the object containing the application code.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ObjectVersion "object_version": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1556,15 +1711,27 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: BucketARN "bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the S3 bucket.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The description of an Amazon S3 object that contains the Amazon Data Analytics application, including the Amazon Resource Name (ARN) of the S3 bucket, the name of the Amazon S3 object that contains the data, and the version number of the Amazon S3 object that contains the data.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The information required to deploy a Kinesis Data Analytics Studio notebook as an application with durable state.", @@ -1663,10 +1830,15 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: ApplicationMaintenanceWindowStartTime "application_maintenance_window_start_time": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The start time for the maintenance window.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^([01][0-9]|2[0-3]):[0-5][0-9]$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Used to configure start of maintenance window.", @@ -1780,14 +1952,19 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: ApplicationRestoreType "application_restore_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies how the application should be restored.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "SKIP_RESTORE_FROM_SNAPSHOT", "RESTORE_FROM_LATEST_SNAPSHOT", "RESTORE_FROM_CUSTOM_SNAPSHOT", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SnapshotName "snapshot_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1908,18 +2085,28 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that's 1 to 128 Unicode characters in length and can't be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that's 0 to 256 characters in length.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/kinesisfirehose/delivery_stream_resource_gen.go b/internal/aws/kinesisfirehose/delivery_stream_resource_gen.go index b4af91ed91..5d417d1dde 100644 --- a/internal/aws/kinesisfirehose/delivery_stream_resource_gen.go +++ b/internal/aws/kinesisfirehose/delivery_stream_resource_gen.go @@ -26,6 +26,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -424,10 +425,15 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IndexName "index_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 80), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProcessingConfiguration "processing_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -450,11 +456,25 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ParameterName "parameter_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParameterValue "parameter_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -469,7 +489,8 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "RecordDeAggregation", @@ -479,7 +500,11 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { "MetadataExtraction", "AppendDelimiterToRecord", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -519,11 +544,16 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3BackupMode "s3_backup_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -544,11 +574,16 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketARN "bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BufferingHints "buffering_hints": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -635,7 +670,14 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AWSKMSKeyARN "awskms_key_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -688,49 +730,76 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VpcConfiguration "vpc_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecurityGroupIds "security_group_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), listvalidator.UniqueValues(), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 1024), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetIds "subnet_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 16), listvalidator.UniqueValues(), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 1024), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1171,13 +1240,18 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DefaultDocumentIdFormat "default_document_id_format": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "FIREHOSE_DEFAULT", "NO_DOCUMENT_ID", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1200,10 +1274,15 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IndexName "index_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 80), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IndexRotationPeriod "index_rotation_period": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1243,11 +1322,25 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ParameterName "parameter_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParameterValue "parameter_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1262,7 +1355,8 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "RecordDeAggregation", @@ -1272,7 +1366,11 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { "MetadataExtraction", "AppendDelimiterToRecord", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1312,11 +1410,16 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3BackupMode "s3_backup_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1337,11 +1440,16 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketARN "bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BufferingHints "buffering_hints": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1428,7 +1536,14 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AWSKMSKeyARN "awskms_key_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1481,14 +1596,26 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TypeName "type_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1506,35 +1633,50 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecurityGroupIds "security_group_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), listvalidator.UniqueValues(), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 1024), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetIds "subnet_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 16), listvalidator.UniqueValues(), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 1024), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1608,13 +1750,18 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: KeyType "key_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "AWS_OWNED_CMK", "CUSTOMER_MANAGED_CMK", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2098,13 +2245,18 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DefaultDocumentIdFormat "default_document_id_format": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "FIREHOSE_DEFAULT", "NO_DOCUMENT_ID", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2127,10 +2279,15 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: IndexName "index_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 80), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IndexRotationPeriod "index_rotation_period": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2170,11 +2327,25 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ParameterName "parameter_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParameterValue "parameter_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2189,7 +2360,8 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "RecordDeAggregation", @@ -2199,7 +2371,11 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { "MetadataExtraction", "AppendDelimiterToRecord", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2239,11 +2415,16 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3BackupMode "s3_backup_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2264,11 +2445,16 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketARN "bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BufferingHints "buffering_hints": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2355,7 +2541,14 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AWSKMSKeyARN "awskms_key_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2408,14 +2601,26 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TypeName "type_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2433,35 +2638,50 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecurityGroupIds "security_group_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), listvalidator.UniqueValues(), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 1024), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetIds "subnet_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 16), listvalidator.UniqueValues(), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 1024), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2975,11 +3195,16 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketARN "bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BufferingHints "buffering_hints": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3443,7 +3668,14 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AWSKMSKeyARN "awskms_key_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3527,11 +3759,25 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ParameterName "parameter_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParameterValue "parameter_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3546,7 +3792,8 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "RecordDeAggregation", @@ -3556,7 +3803,11 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { "MetadataExtraction", "AppendDelimiterToRecord", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3578,22 +3829,32 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3BackupConfiguration "s3_backup_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketARN "bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BufferingHints "buffering_hints": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3680,7 +3941,14 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AWSKMSKeyARN "awskms_key_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3733,11 +4001,16 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -4192,13 +4465,25 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Url "url": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProcessingConfiguration "processing_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4221,11 +4506,25 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ParameterName "parameter_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParameterValue "parameter_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4240,7 +4539,8 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "RecordDeAggregation", @@ -4250,7 +4550,11 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { "MetadataExtraction", "AppendDelimiterToRecord", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4279,17 +4583,27 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AttributeName "attribute_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AttributeValue "attribute_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4367,11 +4681,16 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketARN "bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BufferingHints "buffering_hints": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4458,7 +4777,14 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AWSKMSKeyARN "awskms_key_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -4511,21 +4837,40 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretsManagerConfiguration "secrets_manager_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -4904,7 +5249,14 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CloudWatchLoggingOptions "cloudwatch_logging_options": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4946,17 +5298,27 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DestinationDatabaseName "destination_database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DestinationTableName "destination_table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3ErrorOutputPrefix "s3_error_output_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -5013,11 +5375,25 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ParameterName "parameter_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParameterValue "parameter_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5032,7 +5408,8 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "RecordDeAggregation", @@ -5042,7 +5419,11 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { "MetadataExtraction", "AppendDelimiterToRecord", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5082,22 +5463,32 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Configuration "s3_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketARN "bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BufferingHints "buffering_hints": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -5184,7 +5575,14 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AWSKMSKeyARN "awskms_key_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -5237,14 +5635,26 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: s3BackupMode "s_3_backup_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -5305,19 +5715,29 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: KinesisStreamARN "kinesis_stream_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -5394,32 +5814,54 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Connectivity "connectivity": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PUBLIC", "PRIVATE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MSKClusterARN "msk_cluster_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ReadFromTimestamp "read_from_timestamp": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -5431,11 +5873,16 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TopicName "topic_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9\\._\\-]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -5902,10 +6349,15 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: ClusterJDBCURL "cluster_jdbcurl": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CopyCommand "copy_command": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -5934,13 +6386,25 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: DataTableName "data_table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Password "password": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -5974,11 +6438,25 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ParameterName "parameter_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParameterValue "parameter_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5993,7 +6471,8 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "RecordDeAggregation", @@ -6003,7 +6482,11 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { "MetadataExtraction", "AppendDelimiterToRecord", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6043,22 +6526,32 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3BackupConfiguration "s3_backup_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketARN "bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BufferingHints "buffering_hints": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -6145,7 +6638,14 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AWSKMSKeyARN "awskms_key_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -6198,11 +6698,16 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -6230,11 +6735,16 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketARN "bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BufferingHints "buffering_hints": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -6321,7 +6831,14 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AWSKMSKeyARN "awskms_key_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -6374,21 +6891,40 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretsManagerConfiguration "secrets_manager_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -6559,11 +7095,16 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketARN "bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BufferingHints "buffering_hints": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -6650,7 +7191,14 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AWSKMSKeyARN "awskms_key_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -6703,11 +7251,16 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -7085,11 +7638,16 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AccountUrl "account_url": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(24, 2048), stringvalidator.RegexMatches(regexp.MustCompile(".+?\\.snowflakecomputing\\.com"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BufferingHints "buffering_hints": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -7179,10 +7737,15 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeyPassphrase "key_passphrase": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -7239,11 +7802,25 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ParameterName "parameter_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParameterValue "parameter_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -7258,7 +7835,8 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "RecordDeAggregation", @@ -7268,7 +7846,11 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { "MetadataExtraction", "AppendDelimiterToRecord", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -7308,11 +7890,16 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3BackupMode "s3_backup_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -7333,11 +7920,16 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketARN "bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BufferingHints "buffering_hints": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -7424,7 +8016,14 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AWSKMSKeyARN "awskms_key_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -7477,28 +8076,52 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Schema "schema": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretsManagerConfiguration "secrets_manager_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -7565,11 +8188,16 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: PrivateLinkVpceId "private_link_vpce_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(47, 255), stringvalidator.RegexMatches(regexp.MustCompile("([a-zA-Z0-9\\-\\_]+\\.){2,3}vpce\\.[a-zA-Z0-9\\-]*\\.vpce-svc\\-[a-zA-Z0-9\\-]{17}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -7581,10 +8209,15 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Table "table": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: User "user": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -7965,20 +8598,30 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: HECEndpoint "hec_endpoint": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HECEndpointType "hec_endpoint_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Raw", "Event", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HECToken "hec_token": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -8012,11 +8655,25 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ParameterName "parameter_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParameterValue "parameter_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -8031,7 +8688,8 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "RecordDeAggregation", @@ -8041,7 +8699,11 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { "MetadataExtraction", "AppendDelimiterToRecord", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -8092,11 +8754,16 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketARN "bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BufferingHints "buffering_hints": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -8183,7 +8850,14 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AWSKMSKeyARN "awskms_key_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -8236,21 +8910,40 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("arn:.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretsManagerConfiguration "secrets_manager_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleARN "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -8324,10 +9017,15 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/kinesisvideo/signaling_channel_resource_gen.go b/internal/aws/kinesisvideo/signaling_channel_resource_gen.go index 19d5228bba..f0bcf7626c 100644 --- a/internal/aws/kinesisvideo/signaling_channel_resource_gen.go +++ b/internal/aws/kinesisvideo/signaling_channel_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -128,18 +129,28 @@ func signalingChannelResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. Specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. The following characters can be used: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. Specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. The following characters can be used: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/kinesisvideo/stream_resource_gen.go b/internal/aws/kinesisvideo/stream_resource_gen.go index a1e53683c6..9abd5a0d48 100644 --- a/internal/aws/kinesisvideo/stream_resource_gen.go +++ b/internal/aws/kinesisvideo/stream_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -194,18 +195,28 @@ func streamResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. Specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. The following characters can be used: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. Specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. The following characters can be used: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/kms/key_resource_gen.go b/internal/aws/kms/key_resource_gen.go index 67a2a11bb3..41591a3b8f 100644 --- a/internal/aws/kms/key_resource_gen.go +++ b/internal/aws/kms/key_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -352,18 +353,28 @@ func keyResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that's 1 to 128 Unicode characters in length and can't be prefixed with ``aws:``. digits, whitespace, ``_``, ``.``, ``:``, ``/``, ``=``, ``+``, ``@``, ``-``, and ``\"``.\n For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html).", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that's 1 to 256 characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, ``_``, ``.``, ``/``, ``=``, ``+``, and ``-``.\n For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html).", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/kms/replica_key_resource_gen.go b/internal/aws/kms/replica_key_resource_gen.go index d5eedc8cc7..1fd1e2bb56 100644 --- a/internal/aws/kms/replica_key_resource_gen.go +++ b/internal/aws/kms/replica_key_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -178,18 +179,28 @@ func replicaKeyResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/lakeformation/principal_permissions_resource_gen.go b/internal/aws/lakeformation/principal_permissions_resource_gen.go index 48407db2ee..75351b2542 100644 --- a/internal/aws/lakeformation/principal_permissions_resource_gen.go +++ b/internal/aws/lakeformation/principal_permissions_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -506,34 +507,54 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A database in the GLUDC.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name given by the user to the data filter cell.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableCatalogId "table_catalog_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID of the catalog to which the table belongs.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(12, 12), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the table.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A data cell filter.", @@ -549,15 +570,27 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error // Property: CatalogId "catalog_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identifier for the GLUDC where the location is registered with LFlong.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(12, 12), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceArn "resource_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) that uniquely identifies the data location resource.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The location of an Amazon S3 path where permissions are granted or revoked.", @@ -573,18 +606,28 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error // Property: CatalogId "catalog_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identifier for the Data Catalog. By default, it is the account ID of the caller.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(12, 12), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the database resource. Unique to the Data Catalog.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The database for the resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database permissions to a principal.", @@ -600,32 +643,45 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error // Property: CatalogId "catalog_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identifier for the GLUDC where the location is registered with GLUDC.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(12, 12), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TagKey "tag_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key-name for the LF-tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TagValues "tag_values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "A list of possible values for the corresponding ``TagKey`` of an LF-tag key-value pair.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 50), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(0, 256), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -642,10 +698,15 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error // Property: CatalogId "catalog_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identifier for the GLUDC. The GLUDC is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your LFlong environment.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(12, 12), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Expression "expression": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -683,24 +744,32 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of LF-tag conditions that apply to the resource's LF-tag policy.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceType "resource_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The resource type for which the LF-tag policy applies.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DATABASE", "TABLE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A list of LF-tag conditions that define a resource's LF-tag policy.", @@ -716,18 +785,28 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error // Property: CatalogId "catalog_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identifier for the Data Catalog. By default, it is the account ID of the caller.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(12, 12), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -765,10 +844,15 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error // Property: CatalogId "catalog_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identifier for the GLUDC where the location is registered with LFlong.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(12, 12), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ColumnNames "column_names": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -816,18 +900,28 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The table with columns for the resource. A principal with permissions to this resource can select metadata from the columns of a table in the Data Catalog and the underlying data in Amazon S3.", diff --git a/internal/aws/lakeformation/tag_association_resource_gen.go b/internal/aws/lakeformation/tag_association_resource_gen.go index 9fa2860dd5..f5be05f5c8 100644 --- a/internal/aws/lakeformation/tag_association_resource_gen.go +++ b/internal/aws/lakeformation/tag_association_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -226,17 +227,27 @@ func tagAssociationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: CatalogId "catalog_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(12, 12), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -250,17 +261,27 @@ func tagAssociationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: CatalogId "catalog_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(12, 12), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -294,37 +315,55 @@ func tagAssociationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: CatalogId "catalog_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(12, 12), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ColumnNames "column_names": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 255), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/lambda/alias_resource_gen.go b/internal/aws/lambda/alias_resource_gen.go index 12c4dcaa08..c17ed1e9c4 100644 --- a/internal/aws/lambda/alias_resource_gen.go +++ b/internal/aws/lambda/alias_resource_gen.go @@ -10,12 +10,16 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -116,7 +120,14 @@ func aliasResource(ctx context.Context) (resource.Resource, error) { // Property: ProvisionedConcurrentExecutions "provisioned_concurrent_executions": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The amount of provisioned concurrency to allocate for the alias.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies a provisioned concurrency configuration for a function's alias.", @@ -170,12 +181,26 @@ func aliasResource(ctx context.Context) (resource.Resource, error) { // Property: FunctionVersion "function_version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The qualifier of the second version.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FunctionWeight "function_weight": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The percentage of traffic that the alias routes to the second version.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/lambda/event_invoke_config_resource_gen.go b/internal/aws/lambda/event_invoke_config_resource_gen.go index 944716c24f..fcb64d6632 100644 --- a/internal/aws/lambda/event_invoke_config_resource_gen.go +++ b/internal/aws/lambda/event_invoke_config_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -82,11 +83,16 @@ func eventInvokeConfigResource(ctx context.Context) (resource.Resource, error) { // Property: Destination "destination": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the destination resource.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 350), stringvalidator.RegexMatches(regexp.MustCompile("^$|arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:([a-z]{2}(-gov)?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The destination configuration for failed invocations.", @@ -102,11 +108,16 @@ func eventInvokeConfigResource(ctx context.Context) (resource.Resource, error) { // Property: Destination "destination": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the destination resource.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 350), stringvalidator.RegexMatches(regexp.MustCompile("^$|arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:([a-z]{2}(-gov)?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The destination configuration for successful invocations.", diff --git a/internal/aws/lambda/function_resource_gen.go b/internal/aws/lambda/function_resource_gen.go index 8aee38c119..d86ee89c64 100644 --- a/internal/aws/lambda/function_resource_gen.go +++ b/internal/aws/lambda/function_resource_gen.go @@ -26,6 +26,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -346,10 +347,15 @@ func functionResource(ctx context.Context) (resource.Resource, error) { // Property: Size "size": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The size of the function's ``/tmp`` directory.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(512, 10240), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The size of the function's ``/tmp`` directory in MB. The default value is 512, but it can be any whole number between 512 and 10,240 MB.", @@ -396,20 +402,30 @@ func functionResource(ctx context.Context) (resource.Resource, error) { // Property: Arn "arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the Amazon EFS access point that provides access to the file system.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(200), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws[a-zA-Z-]*:elasticfilesystem:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:access-point/fsap-[a-f0-9]{17}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LocalMountPath "local_mount_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The path where the function can access the file system, starting with ``/mnt/``.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(160), stringvalidator.RegexMatches(regexp.MustCompile("^/mnt/[a-zA-Z0-9-_.]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -855,14 +871,19 @@ func functionResource(ctx context.Context) (resource.Resource, error) { // Property: UpdateRuntimeOn "update_runtime_on": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specify the runtime update mode.\n + *Auto (default)* - Automatically update to the most recent and secure runtime version using a [Two-phase runtime version rollout](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-two-phase). This is the best choice for most customers to ensure they always benefit from runtime updates.\n + *FunctionUpdate* - LAM updates the runtime of you function to the most recent and secure runtime version when you update your function. This approach synchronizes runtime updates with function deployments, giving you control over when runtime updates are applied and allowing you to detect and mitigate rare runtime update incompatibilities early. When using this setting, you need to regularly update your functions to keep their runtime up-to-date.\n + *Manual* - You specify a runtime version in your function configuration. The function will use this runtime version indefinitely. In the rare case where a new runtime version is incompatible with an existing function, this allows you to roll back your function to an earlier runtime version. For more information, see [Roll back a runtime version](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-rollback).\n \n *Valid Values*: ``Auto`` | ``FunctionUpdate`` | ``Manual``", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Auto", "FunctionUpdate", "Manual", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Sets the runtime management configuration for a function's version. For more information, see [Runtime updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html).", @@ -898,13 +919,18 @@ func functionResource(ctx context.Context) (resource.Resource, error) { // Property: ApplyOn "apply_on": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Set ``ApplyOn`` to ``PublishedVersions`` to create a snapshot of the initialized execution environment when you publish a function version.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PublishedVersions", "None", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ // ApplyOn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -998,10 +1024,15 @@ func functionResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/lambda/version_resource_gen.go b/internal/aws/lambda/version_resource_gen.go index 7a4863fcee..1dc76e52b5 100644 --- a/internal/aws/lambda/version_resource_gen.go +++ b/internal/aws/lambda/version_resource_gen.go @@ -13,12 +13,14 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -144,7 +146,14 @@ func versionResource(ctx context.Context) (resource.Resource, error) { // Property: ProvisionedConcurrentExecutions "provisioned_concurrent_executions": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The amount of provisioned concurrency to allocate for the version.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.", @@ -197,7 +206,14 @@ func versionResource(ctx context.Context) (resource.Resource, error) { // Property: UpdateRuntimeOn "update_runtime_on": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The runtime update mode.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the runtime management configuration of a function. Displays runtimeVersionArn only for Manual.", diff --git a/internal/aws/launchwizard/deployment_resource_gen.go b/internal/aws/launchwizard/deployment_resource_gen.go index c0f70c8937..dba8f652fb 100644 --- a/internal/aws/launchwizard/deployment_resource_gen.go +++ b/internal/aws/launchwizard/deployment_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -233,11 +234,16 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z+-=._:/]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/lex/bot_alias_resource_gen.go b/internal/aws/lex/bot_alias_resource_gen.go index 67357ad2ba..76c4c194cc 100644 --- a/internal/aws/lex/bot_alias_resource_gen.go +++ b/internal/aws/lex/bot_alias_resource_gen.go @@ -13,6 +13,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" @@ -20,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -149,22 +151,39 @@ func botAliasResource(ctx context.Context) (resource.Resource, error) { // Property: CodeHookInterfaceVersion "code_hook_interface_version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The version of the request-response that you want Amazon Lex to use to invoke your Lambda function.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 5), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LambdaArn "lambda_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the Lambda function.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Contains information about code hooks that Amazon Lex calls during a conversation.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Contains information about code hooks that Amazon Lex calls during a conversation.", @@ -177,19 +196,38 @@ func botAliasResource(ctx context.Context) (resource.Resource, error) { // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Whether the Lambda code hook is enabled", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "You can use this parameter to specify a specific Lambda function to run different functions in different locales.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LocaleId "locale_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string used to identify the locale", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -278,18 +316,28 @@ func botAliasResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string used to identify this tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string containing the value for the tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -502,32 +550,63 @@ func botAliasResource(ctx context.Context) (resource.Resource, error) { // Property: LogPrefix "log_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 key of the deployment package.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3BucketArn "s3_bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of an Amazon S3 bucket where audio log files are stored.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:[\\w\\-]+:s3:::[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies an Amazon S3 bucket for logging audio conversations", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The location of audio log files collected when conversation logging is enabled for a bot.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -554,30 +633,61 @@ func botAliasResource(ctx context.Context) (resource.Resource, error) { // Property: CloudWatchLogGroupArn "cloudwatch_log_group_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string used to identify the groupArn for the Cloudwatch Log Group", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LogPrefix "log_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string containing the value for the Log Prefix", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Defines the Amazon CloudWatch Logs destination log group for conversation text logs.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -640,7 +750,14 @@ func botAliasResource(ctx context.Context) (resource.Resource, error) { // Property: DetectSentiment "detect_sentiment": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Enable to call Amazon Comprehend for Sentiment natively within Lex", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Determines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.", diff --git a/internal/aws/lex/bot_resource_gen.go b/internal/aws/lex/bot_resource_gen.go index d15b96163c..3a33086536 100644 --- a/internal/aws/lex/bot_resource_gen.go +++ b/internal/aws/lex/bot_resource_gen.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier" @@ -27,6 +28,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -107,20 +109,30 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: S3Bucket "s3_bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "An Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3ObjectKey "s3_object_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 key of the deployment package.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), stringvalidator.RegexMatches(regexp.MustCompile("[\\.\\-\\!\\*\\_\\'\\(\\)a-zA-Z0-9][\\.\\-\\!\\*\\_\\'\\(\\)\\/a-zA-Z0-9]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3ObjectVersion "s3_object_version": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -4266,10 +4278,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Phrase "phrase": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Phrase that should be recognized.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Weight "weight": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -4285,10 +4302,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeAtMost(500), + fwvalidators.NotNullSet(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A custom vocabulary is a list of specific phrases that you want Amazon Lex V2 to recognize in the audio input.", @@ -4331,7 +4353,14 @@ func botResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Settings that determine the Lambda function that Amazon Lex uses for processing user responses.", @@ -4346,7 +4375,14 @@ func botResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FulfillmentUpdatesSpecification "fulfillment_updates_specification": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4354,7 +4390,14 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Active "active": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Determines whether fulfillment updates are sent to the user. When this field is true, updates are sent.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StartResponse "start_response": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4371,10 +4414,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: DelayInSeconds "delay_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The delay between when the Lambda fulfillment function starts running and the start message is played. If the Lambda function returns before the delay is over, the start message isn't played.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 900), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MessageGroups "message_groups": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -4389,10 +4437,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -4412,18 +4465,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4465,10 +4528,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -4484,10 +4552,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -4503,10 +4576,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -4518,7 +4596,14 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -4530,10 +4615,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -4553,18 +4643,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4606,10 +4706,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -4625,10 +4730,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -4644,10 +4754,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -4673,12 +4788,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -4716,10 +4834,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: FrequencyInSeconds "frequency_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The frequency that a message is sent to the user. When the period ends, Amazon Lex chooses a message from the message groups and plays it to the user. If the fulfillment Lambda returns before the first period ends, an update message is not played to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 900), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MessageGroups "message_groups": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -4734,10 +4857,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -4757,18 +4885,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4810,10 +4948,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -4829,10 +4972,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -4848,10 +4996,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -4863,7 +5016,14 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -4875,10 +5035,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -4898,18 +5063,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4951,10 +5126,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -4970,10 +5150,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -4989,10 +5174,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -5018,12 +5208,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -5070,10 +5263,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -5093,18 +5291,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5146,10 +5354,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -5165,10 +5378,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -5184,10 +5402,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -5199,7 +5422,14 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -5211,10 +5441,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -5234,18 +5469,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5287,10 +5532,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -5306,10 +5556,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -5325,10 +5580,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -5354,12 +5614,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -5395,10 +5658,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -5418,18 +5686,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5471,10 +5749,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -5490,10 +5773,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -5509,10 +5797,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -5524,7 +5817,14 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -5536,10 +5836,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -5559,18 +5864,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5612,10 +5927,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -5631,10 +5951,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -5650,10 +5975,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -5679,12 +6009,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -5720,10 +6053,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -5743,18 +6081,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5796,10 +6144,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -5815,10 +6168,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -5834,10 +6192,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -5849,7 +6212,14 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -5861,10 +6231,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -5884,18 +6259,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5937,10 +6322,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -5956,10 +6346,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -5975,10 +6370,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -6004,12 +6404,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -6043,11 +6446,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the context.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), stringvalidator.RegexMatches(regexp.MustCompile("^([0-9a-zA-Z][_-]?)+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6090,10 +6498,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -6113,18 +6526,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6166,10 +6589,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -6185,10 +6613,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -6204,10 +6637,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -6219,7 +6657,14 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -6231,10 +6676,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -6254,18 +6704,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6307,10 +6767,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -6326,10 +6791,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -6345,10 +6815,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -6374,17 +6849,27 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A list of message groups that Amazon Lex uses to respond the user input.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IsActive "is_active": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -6430,10 +6915,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -6453,18 +6943,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6506,10 +7006,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -6525,10 +7030,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -6544,10 +7054,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -6559,7 +7074,14 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -6571,10 +7093,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -6594,18 +7121,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6647,10 +7184,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -6666,10 +7208,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -6685,10 +7232,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -6714,17 +7266,27 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A list of message groups that Amazon Lex uses to respond the user input.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IsActive "is_active": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -6749,10 +7311,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: MaxRetries "max_retries": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum number of times the bot tries to elicit a resonse from the user using this prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 5), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MessageGroupsList "message_groups_list": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -6767,10 +7334,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -6790,18 +7362,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6843,10 +7425,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -6862,10 +7449,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -6881,10 +7473,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -6896,7 +7493,14 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -6908,10 +7512,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -6931,18 +7540,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6984,10 +7603,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -7003,10 +7627,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -7022,10 +7651,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -7051,12 +7685,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MessageSelectionStrategy @@ -7094,12 +7731,26 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: AllowAudioInput "allow_audio_input": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether audio input is allowed.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AllowDTMFInput "allow_dtmf_input": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether DTMF input is allowed.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the allowed input types.", @@ -7118,18 +7769,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: EndTimeoutMs "end_timeout_ms": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Time for which a bot waits after the customer stops speaking to assume the utterance is finished.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaxLengthMs "max_length_ms": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Time for how long Amazon Lex waits before speech input is truncated and the speech is returned to application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the audio input specifications.", @@ -7145,34 +7806,54 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: DeletionCharacter "deletion_character": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The DTMF character that clears the accumulated DTMF digits and immediately ends the input.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[A-D0-9#*]{1}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EndCharacter "end_character": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The DTMF character that immediately ends input. If the user does not press this character, the input ends after the end timeout.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[A-D0-9#*]{1}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EndTimeoutMs "end_timeout_ms": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "How long the bot should wait after the last DTMF character input before assuming that the input has concluded.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaxLength "max_length": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum number of DTMF digits allowed in an utterance.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 1024), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the settings on DTMF input.", @@ -7185,10 +7866,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: StartTimeoutMs "start_timeout_ms": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Time for which a bot waits before assuming that the customer isn't going to speak or press a key. This timeout is shared between Audio and DTMF inputs.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the audio and DTMF input specification.", @@ -7204,10 +7890,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: StartTimeoutMs "start_timeout_ms": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Time for which a bot waits before re-prompting a customer for text input.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the text input specifications.", @@ -7228,7 +7919,14 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Prompts the user to confirm the intent.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Prompts that Amazon Lex sends to the user to confirm the completion of an intent.", @@ -7244,11 +7942,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: KendraIndex "kendra_index": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the Amazon Kendra index that you want the AMAZON.KendraSearchIntent intent to search.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(32, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws[a-zA-Z-]*:kendra:[a-z]+-[a-z]+-[0-9]:[0-9]{12}:index/[a-zA-Z0-9][a-zA-Z0-9_-]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: QueryFilterString "query_filter_string": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -7282,11 +7985,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Unique name for a resource.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), stringvalidator.RegexMatches(regexp.MustCompile("^([0-9a-zA-Z][_-]?)+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OutputContexts "output_contexts": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -7295,27 +8003,42 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Unique name for a resource.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), stringvalidator.RegexMatches(regexp.MustCompile("^([0-9a-zA-Z][_-]?)+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TimeToLiveInSeconds "time_to_live_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The amount of time, in seconds, that the output context should remain active.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(5, 86400), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TurnsToLive "turns_to_live": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of conversation turns that the output context should remain active.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 20), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -7346,7 +8069,14 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Utterance "utterance": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The sample utterance that Amazon Lex uses to build its machine-learning model to recognize intents/slots.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -7365,19 +8095,29 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Priority "priority": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The priority that a slot should be elicited.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 100), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SlotName "slot_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the slot.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), stringvalidator.RegexMatches(regexp.MustCompile("^([0-9a-zA-Z][_-]?)+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -7427,11 +8167,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Unique name for a resource.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), stringvalidator.RegexMatches(regexp.MustCompile("^([0-9a-zA-Z][_-]?)+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ObfuscationSetting "obfuscation_setting": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -7439,13 +8184,18 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: ObfuscationSettingType "obfuscation_setting_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Value that determines whether Amazon Lex obscures slot values in conversation logs. The default is to obscure the values.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "None", "DefaultObfuscation", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Determines whether Amazon Lex obscures slot values in conversation logs.", @@ -7458,7 +8208,14 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: SlotTypeName "slot_type_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The slot type name that is used in the slot. Allows for custom and built-in slot type names", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ValueElicitationSetting "value_elicitation_setting": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -7473,20 +8230,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: DefaultValue "default_value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The default value to use when a user doesn't provide a value for a slot.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 202), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of slot default values", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(10), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -7512,10 +8277,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: MaxRetries "max_retries": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum number of times the bot tries to elicit a resonse from the user using this prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 5), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MessageGroupsList "message_groups_list": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -7530,10 +8300,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -7553,18 +8328,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -7606,10 +8391,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -7625,10 +8415,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -7644,10 +8439,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -7659,7 +8459,14 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -7671,10 +8478,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -7694,18 +8506,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -7747,10 +8569,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -7766,10 +8593,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -7785,10 +8617,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -7814,12 +8651,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MessageSelectionStrategy @@ -7857,12 +8697,26 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: AllowAudioInput "allow_audio_input": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether audio input is allowed.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AllowDTMFInput "allow_dtmf_input": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether DTMF input is allowed.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the allowed input types.", @@ -7881,18 +8735,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: EndTimeoutMs "end_timeout_ms": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Time for which a bot waits after the customer stops speaking to assume the utterance is finished.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaxLengthMs "max_length_ms": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Time for how long Amazon Lex waits before speech input is truncated and the speech is returned to application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the audio input specifications.", @@ -7908,34 +8772,54 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: DeletionCharacter "deletion_character": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The DTMF character that clears the accumulated DTMF digits and immediately ends the input.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[A-D0-9#*]{1}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EndCharacter "end_character": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The DTMF character that immediately ends input. If the user does not press this character, the input ends after the end timeout.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[A-D0-9#*]{1}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EndTimeoutMs "end_timeout_ms": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "How long the bot should wait after the last DTMF character input before assuming that the input has concluded.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaxLength "max_length": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum number of DTMF digits allowed in an utterance.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 1024), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the settings on DTMF input.", @@ -7948,10 +8832,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: StartTimeoutMs "start_timeout_ms": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Time for which a bot waits before assuming that the customer isn't going to speak or press a key. This timeout is shared between Audio and DTMF inputs.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the audio and DTMF input specification.", @@ -7967,10 +8856,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: StartTimeoutMs "start_timeout_ms": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Time for which a bot waits before re-prompting a customer for text input.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the text input specifications.", @@ -8004,7 +8898,14 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Utterance "utterance": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The sample utterance that Amazon Lex uses to build its machine-learning model to recognize intents/slots.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -8019,13 +8920,18 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: SlotConstraint "slot_constraint": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether the slot is required or optional.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Required", "Optional", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WaitAndContinueSpecification "wait_and_continue_specification": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -8055,10 +8961,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -8078,18 +8989,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -8131,10 +9052,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -8150,10 +9076,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -8169,10 +9100,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -8184,7 +9120,14 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -8196,10 +9139,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -8219,18 +9167,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -8272,10 +9230,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -8291,10 +9254,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -8310,10 +9278,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -8339,17 +9312,27 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The response that Amazon Lex sends to indicate that the bot is ready to continue the conversation.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IsActive "is_active": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -8375,10 +9358,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: FrequencyInSeconds "frequency_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "How often a message should be sent to the user in seconds.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 300), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MessageGroupsList "message_groups_list": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -8393,10 +9381,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -8416,18 +9409,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -8469,10 +9472,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -8488,10 +9496,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -8507,10 +9520,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -8522,7 +9540,14 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -8534,10 +9559,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -8557,18 +9587,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -8610,10 +9650,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -8629,10 +9674,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -8648,10 +9698,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -8677,21 +9732,29 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TimeoutInSeconds "timeout_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "If Amazon Lex waits longer than this length of time in seconds for a response, it will stop sending messages.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 900), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The response that Amazon Lex sends periodically to the user to indicate that the bot is still waiting for input from the user.", @@ -8726,10 +9789,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -8749,18 +9817,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -8802,10 +9880,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -8821,10 +9904,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -8840,10 +9928,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -8855,7 +9948,14 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -8867,10 +9967,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", @@ -8890,18 +9995,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -8943,10 +10058,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", @@ -8962,10 +10082,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", @@ -8981,10 +10106,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", @@ -9010,17 +10140,27 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "One to 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The response that Amazon Lex sends to indicate that the bot is waiting for the conversation to continue.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the prompts that Amazon Lex uses while a bot is waiting for customer input.", @@ -9032,7 +10172,14 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Settings that you can use for eliciting a slot value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -9061,15 +10208,27 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: LocaleId "locale_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identifier of the language and locale that the bot will be used in.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NluConfidenceThreshold "nlu_confidence_threshold": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The specified confidence threshold for inserting the AMAZON.FallbackIntent and AMAZON.KendraSearchIntent intents.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(0.000000, 1.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SlotTypes "slot_types": schema.SetNestedAttribute{ /*START ATTRIBUTE*/ @@ -9112,20 +10271,30 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: S3BucketName "s3_bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the S3 bucket that contains the grammar source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3ObjectKey "s3_object_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The path to the grammar in the S3 bucket.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), stringvalidator.RegexMatches(regexp.MustCompile("[\\.\\-\\!\\*\\_\\'\\(\\)a-zA-Z0-9][\\.\\-\\!\\*\\_\\'\\(\\)\\/a-zA-Z0-9]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Describes the Amazon S3 bucket name and location for the grammar that is the source for the slot type.", @@ -9154,11 +10323,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Unique name for a resource.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), stringvalidator.RegexMatches(regexp.MustCompile("^([0-9a-zA-Z][_-]?)+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParentSlotTypeSignature "parent_slot_type_signature": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -9179,14 +10353,26 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value that can be used for a slot type.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 140), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Defines one of the values for a slot type.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Synonyms "synonyms": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -9195,10 +10381,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value that can be used for a slot type.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 140), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -9260,10 +10451,15 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Pattern "pattern": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Regex pattern", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 300), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A regular expression used to validate the value of a slot.", @@ -9275,13 +10471,18 @@ func botResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: ResolutionStrategy "resolution_strategy": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ORIGINAL_VALUE", "TOP_RESOLUTION", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Contains settings used by Amazon Lex to select a slot value.", @@ -9324,7 +10525,14 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: VoiceId "voice_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Settings for using an Amazon Polly voice to communicate with a user.", @@ -9383,18 +10591,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -9767,22 +10985,39 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: CodeHookInterfaceVersion "code_hook_interface_version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The version of the request-response that you want Amazon Lex to use to invoke your Lambda function.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 5), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LambdaArn "lambda_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the Lambda function.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Contains information about code hooks that Amazon Lex calls during a conversation.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Contains information about code hooks that Amazon Lex calls during a conversation.", @@ -9795,19 +11030,38 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Whether the Lambda code hook is enabled", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "You can use this parameter to specify a specific Lambda function to run different functions in different locales.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LocaleId "locale_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string used to identify the locale", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -9850,32 +11104,63 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: LogPrefix "log_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 key of the deployment package.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3BucketArn "s3_bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of an Amazon S3 bucket where audio log files are stored.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:[\\w\\-]+:s3:::[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies an Amazon S3 bucket for logging audio conversations", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The location of audio log files collected when conversation logging is enabled for a bot.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -9902,30 +11187,61 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: CloudWatchLogGroupArn "cloudwatch_log_group_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string used to identify the groupArn for the Cloudwatch Log Group", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LogPrefix "log_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string containing the value for the Log Prefix", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Defines the Amazon CloudWatch Logs destination log group for conversation text logs.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -9965,7 +11281,14 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: DetectSentiment "detect_sentiment": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Enable to call Amazon Comprehend for Sentiment natively within Lex", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Determines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.", @@ -10022,18 +11345,28 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/licensemanager/license_resource_gen.go b/internal/aws/licensemanager/license_resource_gen.go index c759de2bc8..2d46dbee8b 100644 --- a/internal/aws/licensemanager/license_resource_gen.go +++ b/internal/aws/licensemanager/license_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -94,11 +95,25 @@ func licenseResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AllowEarlyCheckIn "allow_early_check_in": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaxTimeToLiveInMinutes "max_time_to_live_in_minutes": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -112,7 +127,14 @@ func licenseResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: MaxTimeToLiveInMinutes "max_time_to_live_in_minutes": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -306,11 +328,25 @@ func licenseResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/lightsail/bucket_resource_gen.go b/internal/aws/lightsail/bucket_resource_gen.go index 185cb9dda7..6344cd8cae 100644 --- a/internal/aws/lightsail/bucket_resource_gen.go +++ b/internal/aws/lightsail/bucket_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -229,10 +230,15 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/lightsail/certificate_resource_gen.go b/internal/aws/lightsail/certificate_resource_gen.go index 5791ffd76e..bdd6119d78 100644 --- a/internal/aws/lightsail/certificate_resource_gen.go +++ b/internal/aws/lightsail/certificate_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -141,10 +142,15 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/lightsail/container_resource_gen.go b/internal/aws/lightsail/container_resource_gen.go index 6e35c80409..3fe43d8359 100644 --- a/internal/aws/lightsail/container_resource_gen.go +++ b/internal/aws/lightsail/container_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -605,10 +606,15 @@ func containerResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/lightsail/database_resource_gen.go b/internal/aws/lightsail/database_resource_gen.go index dba131b6bc..7d1056f7a0 100644 --- a/internal/aws/lightsail/database_resource_gen.go +++ b/internal/aws/lightsail/database_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -441,10 +442,15 @@ func databaseResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/lightsail/disk_resource_gen.go b/internal/aws/lightsail/disk_resource_gen.go index 2b2168264d..5528aeb190 100644 --- a/internal/aws/lightsail/disk_resource_gen.go +++ b/internal/aws/lightsail/disk_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -87,10 +88,15 @@ func diskResource(ctx context.Context) (resource.Resource, error) { // Property: AddOnType "add_on_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The add-on type", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AutoSnapshotAddOnRequest "auto_snapshot_add_on_request": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -406,10 +412,15 @@ func diskResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/lightsail/distribution_resource_gen.go b/internal/aws/lightsail/distribution_resource_gen.go index 0a5a277341..9e447026b0 100644 --- a/internal/aws/lightsail/distribution_resource_gen.go +++ b/internal/aws/lightsail/distribution_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -560,10 +561,15 @@ func distributionResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/lightsail/instance_resource_gen.go b/internal/aws/lightsail/instance_resource_gen.go index d867daebe4..e69b1b1631 100644 --- a/internal/aws/lightsail/instance_resource_gen.go +++ b/internal/aws/lightsail/instance_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -88,10 +89,15 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { // Property: AddOnType "add_on_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The add-on type", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AutoSnapshotAddOnRequest "auto_snapshot_add_on_request": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -306,11 +312,16 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { // Property: DiskName "disk_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The names to use for your new Lightsail disk.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 254), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9][\\w\\-.]*[a-zA-Z0-9]$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IOPS "iops": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -333,7 +344,14 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { // Property: Path "path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Path of the disk attached to the instance.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SizeInGb "size_in_gb": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -708,7 +726,14 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Ports to the Instance.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Set{ /*START VALIDATORS*/ + fwvalidators.NotNullSet(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Networking of the Instance.", @@ -869,10 +894,15 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/lightsail/load_balancer_resource_gen.go b/internal/aws/lightsail/load_balancer_resource_gen.go index b1b906f561..8374ad3525 100644 --- a/internal/aws/lightsail/load_balancer_resource_gen.go +++ b/internal/aws/lightsail/load_balancer_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -194,10 +195,15 @@ func loadBalancerResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/location/api_key_resource_gen.go b/internal/aws/location/api_key_resource_gen.go index f379334763..98f55d04de 100644 --- a/internal/aws/location/api_key_resource_gen.go +++ b/internal/aws/location/api_key_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -315,20 +316,30 @@ func aPIKeyResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z+-=._:/]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[A-Za-z0-9 _=@:.+-/]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/location/geofence_collection_resource_gen.go b/internal/aws/location/geofence_collection_resource_gen.go index e108bfb4b9..f6b9dc9573 100644 --- a/internal/aws/location/geofence_collection_resource_gen.go +++ b/internal/aws/location/geofence_collection_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -206,20 +207,30 @@ func geofenceCollectionResource(ctx context.Context) (resource.Resource, error) // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z+-=._:/]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[A-Za-z0-9 _=@:.+-/]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/location/map_resource_gen.go b/internal/aws/location/map_resource_gen.go index 4a2fa00371..bce7e4e8b3 100644 --- a/internal/aws/location/map_resource_gen.go +++ b/internal/aws/location/map_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -254,20 +255,30 @@ func mapResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z+-=._:/]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[A-Za-z0-9 _=@:.+-/]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/location/place_index_resource_gen.go b/internal/aws/location/place_index_resource_gen.go index 0a77485f53..63781755e1 100644 --- a/internal/aws/location/place_index_resource_gen.go +++ b/internal/aws/location/place_index_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -224,20 +225,30 @@ func placeIndexResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z+-=._:/]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[A-Za-z0-9 _=@:.+-/]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/location/route_calculator_resource_gen.go b/internal/aws/location/route_calculator_resource_gen.go index 22910a87be..cc1500cc76 100644 --- a/internal/aws/location/route_calculator_resource_gen.go +++ b/internal/aws/location/route_calculator_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -184,20 +185,30 @@ func routeCalculatorResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z+-=._:/]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[A-Za-z0-9 _=@:.+-/]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/location/tracker_resource_gen.go b/internal/aws/location/tracker_resource_gen.go index 45ab6c150a..233a1e5378 100644 --- a/internal/aws/location/tracker_resource_gen.go +++ b/internal/aws/location/tracker_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -225,20 +226,30 @@ func trackerResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z+-=._:/]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[A-Za-z0-9 _=@:.+-/]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/logs/delivery_destination_resource_gen.go b/internal/aws/logs/delivery_destination_resource_gen.go index 9eb1382827..1c68f2e625 100644 --- a/internal/aws/logs/delivery_destination_resource_gen.go +++ b/internal/aws/logs/delivery_destination_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -164,18 +165,28 @@ func deliveryDestinationResource(ctx context.Context) (resource.Resource, error) // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/logs/delivery_resource_gen.go b/internal/aws/logs/delivery_resource_gen.go index 0db2a9fa39..e4ce98d09d 100644 --- a/internal/aws/logs/delivery_resource_gen.go +++ b/internal/aws/logs/delivery_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -159,18 +160,28 @@ func deliveryResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/logs/delivery_source_resource_gen.go b/internal/aws/logs/delivery_source_resource_gen.go index 28389324de..5f508f4e7d 100644 --- a/internal/aws/logs/delivery_source_resource_gen.go +++ b/internal/aws/logs/delivery_source_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -191,18 +192,28 @@ func deliverySourceResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/logs/log_group_resource_gen.go b/internal/aws/logs/log_group_resource_gen.go index d38e54d990..68e8266736 100644 --- a/internal/aws/logs/log_group_resource_gen.go +++ b/internal/aws/logs/log_group_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -233,18 +234,28 @@ func logGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/logs/metric_filter_resource_gen.go b/internal/aws/logs/metric_filter_resource_gen.go index 3228c193f9..db3e033a54 100644 --- a/internal/aws/logs/metric_filter_resource_gen.go +++ b/internal/aws/logs/metric_filter_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -221,18 +222,28 @@ func metricFilterResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name for the CW metric dimension that the metric filter creates.\n Dimension names must contain only ASCII characters, must include at least one non-whitespace character, and cannot start with a colon (:).", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The log event field that will contain the value for this dimension. This dimension will only be published for a metric if the value is found in the log event. For example, ``$.eventType`` for JSON log events, or ``$server`` for space-delimited log events.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/lookoutequipment/inference_scheduler_resource_gen.go b/internal/aws/lookoutequipment/inference_scheduler_resource_gen.go index 8801d3b422..f9d39dedac 100644 --- a/internal/aws/lookoutequipment/inference_scheduler_resource_gen.go +++ b/internal/aws/lookoutequipment/inference_scheduler_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -444,19 +445,29 @@ func inferenceSchedulerResource(ctx context.Context) (resource.Resource, error) // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key for the specified tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the specified tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("[\\s\\w+-=\\.:/@]*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/lookoutmetrics/alert_resource_gen.go b/internal/aws/lookoutmetrics/alert_resource_gen.go index a692672fc8..6242e3cc8c 100644 --- a/internal/aws/lookoutmetrics/alert_resource_gen.go +++ b/internal/aws/lookoutmetrics/alert_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -94,20 +95,30 @@ func alertResource(ctx context.Context) (resource.Resource, error) { // Property: LambdaArn "lambda_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "ARN of a Lambda to send alert notifications to.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("arn:([a-z\\d-]+):.*:.*:.*:.+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "ARN of an IAM role that LookoutMetrics should assume to access the Lambda function.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("arn:([a-z\\d-]+):.*:.*:.*:.+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration options for a Lambda alert action.", @@ -123,20 +134,30 @@ func alertResource(ctx context.Context) (resource.Resource, error) { // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "ARN of an IAM role that LookoutMetrics should assume to access the SNS topic.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("arn:([a-z\\d-]+):.*:.*:.*:.+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SnsTopicArn "sns_topic_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "ARN of an SNS topic to send alert notifications to.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("arn:([a-z\\d-]+):.*:.*:.*:.+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration options for an SNS alert action.", diff --git a/internal/aws/lookoutmetrics/anomaly_detector_resource_gen.go b/internal/aws/lookoutmetrics/anomaly_detector_resource_gen.go index 1c88b7581d..5aba0be82a 100644 --- a/internal/aws/lookoutmetrics/anomaly_detector_resource_gen.go +++ b/internal/aws/lookoutmetrics/anomaly_detector_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -698,19 +699,29 @@ func anomalyDetectorResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: FlowName "flow_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9][\\w!@#.-]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("arn:([a-z\\d-]+):.*:.*:.*:.+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -724,11 +735,16 @@ func anomalyDetectorResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("arn:([a-z\\d-]+):.*:.*:.*:.+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -742,57 +758,92 @@ func anomalyDetectorResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DBInstanceIdentifier "db_instance_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 63), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabaseHost "database_host": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 253), stringvalidator.RegexMatches(regexp.MustCompile(".*\\S.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9_]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabasePort "database_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 65535), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("arn:([a-z\\d-]+):.*:.*:.*:.+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretManagerArn "secret_manager_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("arn:([a-z\\d-]+):.*:.*:secret:AmazonLookoutMetrics-.+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z][a-zA-Z0-9_]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VpcConfiguration "vpc_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -800,27 +851,44 @@ func anomalyDetectorResource(ctx context.Context) (resource.Resource, error) { // Property: SecurityGroupIdList "security_group_id_list": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 255), stringvalidator.RegexMatches(regexp.MustCompile("[-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetIdList "subnet_id_list": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthAtMost(255), stringvalidator.RegexMatches(regexp.MustCompile("[\\-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -834,57 +902,92 @@ func anomalyDetectorResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ClusterIdentifier "cluster_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 63), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabaseHost "database_host": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 253), stringvalidator.RegexMatches(regexp.MustCompile(".*\\S.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), stringvalidator.RegexMatches(regexp.MustCompile("[a-z0-9]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabasePort "database_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 65535), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("arn:([a-z\\d-]+):.*:.*:.*:.+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretManagerArn "secret_manager_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("arn:([a-z\\d-]+):.*:.*:secret:AmazonLookoutMetrics-.+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z][a-zA-Z0-9_]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VpcConfiguration "vpc_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -892,27 +995,44 @@ func anomalyDetectorResource(ctx context.Context) (resource.Resource, error) { // Property: SecurityGroupIdList "security_group_id_list": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 255), stringvalidator.RegexMatches(regexp.MustCompile("[-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetIdList "subnet_id_list": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthAtMost(255), stringvalidator.RegexMatches(regexp.MustCompile("[\\-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1047,7 +1167,14 @@ func anomalyDetectorResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HistoricalDataPathList "historical_data_path_list": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -1067,11 +1194,16 @@ func anomalyDetectorResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("arn:([a-z\\d-]+):.*:.*:.*:.+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TemplatedPathList "templated_path_list": schema.ListAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/m2/environment_resource_gen.go b/internal/aws/m2/environment_resource_gen.go index 11abe6fa98..2e202244d6 100644 --- a/internal/aws/m2/environment_resource_gen.go +++ b/internal/aws/m2/environment_resource_gen.go @@ -15,6 +15,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" @@ -24,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -150,10 +152,15 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DesiredCapacity "desired_capacity": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 100), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Defines the details of a high availability configuration.", @@ -344,18 +351,28 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { // Property: FileSystemId "file_system_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The file system identifier.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^\\S{1,200}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MountPoint "mount_point": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The mount point for the file system.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^\\S{1,200}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Defines the storage configuration for an Amazon EFS file system.", @@ -371,18 +388,28 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { // Property: FileSystemId "file_system_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The file system identifier.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^\\S{1,200}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MountPoint "mount_point": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The mount point for the file system.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^\\S{1,200}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Defines the storage configuration for an Amazon FSx file system.", diff --git a/internal/aws/macie/allow_list_resource_gen.go b/internal/aws/macie/allow_list_resource_gen.go index 7bf4926fd0..54e3ed09db 100644 --- a/internal/aws/macie/allow_list_resource_gen.go +++ b/internal/aws/macie/allow_list_resource_gen.go @@ -14,8 +14,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -86,11 +88,25 @@ func allowListResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketName "bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ObjectKey "object_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The S3 location for the AllowList.", @@ -201,12 +217,26 @@ func allowListResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/macie/custom_data_identifier_resource_gen.go b/internal/aws/macie/custom_data_identifier_resource_gen.go index af21abd75a..9998454385 100644 --- a/internal/aws/macie/custom_data_identifier_resource_gen.go +++ b/internal/aws/macie/custom_data_identifier_resource_gen.go @@ -14,9 +14,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -188,12 +190,26 @@ func customDataIdentifierResource(ctx context.Context) (resource.Resource, error // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/macie/findings_filter_resource_gen.go b/internal/aws/macie/findings_filter_resource_gen.go index 77ca1a2024..b88c2d48f9 100644 --- a/internal/aws/macie/findings_filter_resource_gen.go +++ b/internal/aws/macie/findings_filter_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -278,12 +279,26 @@ func findingsFilterResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/managedblockchain/accessor_resource_gen.go b/internal/aws/managedblockchain/accessor_resource_gen.go index 998e299883..de1a0ceb52 100644 --- a/internal/aws/managedblockchain/accessor_resource_gen.go +++ b/internal/aws/managedblockchain/accessor_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -189,18 +190,28 @@ func accessorResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/mediaconnect/bridge_resource_gen.go b/internal/aws/mediaconnect/bridge_resource_gen.go index 71d02fba19..4ae7b158c1 100644 --- a/internal/aws/mediaconnect/bridge_resource_gen.go +++ b/internal/aws/mediaconnect/bridge_resource_gen.go @@ -12,6 +12,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -19,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -89,7 +91,14 @@ func bridgeResource(ctx context.Context) (resource.Resource, error) { // Property: MaxBitrate "max_bitrate": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum expected bitrate of the egress bridge.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -124,12 +133,26 @@ func bridgeResource(ctx context.Context) (resource.Resource, error) { // Property: MaxBitrate "max_bitrate": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum expected bitrate of the ingress bridge.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaxOutputs "max_outputs": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum number of outputs on the ingress bridge.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -219,39 +242,79 @@ func bridgeResource(ctx context.Context) (resource.Resource, error) { // Property: IpAddress "ip_address": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The network output IP Address.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The network output name.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NetworkName "network_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The network output's gateway network name.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The network output port.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Protocol "protocol": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The network output protocol.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "rtp-fec", "rtp", "udp", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Ttl "ttl": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The network output TTL.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The output of the bridge. A network output is delivered to your premises.", @@ -327,12 +390,17 @@ func bridgeResource(ctx context.Context) (resource.Resource, error) { // Property: FailoverMode "failover_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of failover you choose for this flow. FAILOVER allows switching between different streams.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "FAILOVER", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourcePriority "source_priority": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -471,7 +539,14 @@ func bridgeResource(ctx context.Context) (resource.Resource, error) { // Property: FlowArn "flow_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the cloud flow used as a source of this bridge.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FlowVpcInterfaceAttachment "flow_vpc_interface_attachment": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -496,7 +571,14 @@ func bridgeResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the flow source.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The source of the bridge. A flow source originates in MediaConnect as an existing cloud flow.", @@ -512,34 +594,67 @@ func bridgeResource(ctx context.Context) (resource.Resource, error) { // Property: MulticastIp "multicast_ip": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The network source multicast IP.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the network source.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NetworkName "network_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The network source's gateway network name.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The network source port.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Protocol "protocol": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The network source protocol.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "rtp-fec", "rtp", "udp", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The source of the bridge. A network source originates at your premises.", diff --git a/internal/aws/mediaconnect/bridge_source_resource_gen.go b/internal/aws/mediaconnect/bridge_source_resource_gen.go index 55f2b39b0d..a359f8394f 100644 --- a/internal/aws/mediaconnect/bridge_source_resource_gen.go +++ b/internal/aws/mediaconnect/bridge_source_resource_gen.go @@ -11,12 +11,14 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -74,7 +76,14 @@ func bridgeSourceResource(ctx context.Context) (resource.Resource, error) { // Property: FlowArn "flow_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the cloud flow used as a source of this bridge.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FlowVpcInterfaceAttachment "flow_vpc_interface_attachment": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -160,29 +169,55 @@ func bridgeSourceResource(ctx context.Context) (resource.Resource, error) { // Property: MulticastIp "multicast_ip": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The network source multicast IP.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NetworkName "network_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The network source's gateway network name.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The network source port.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Protocol "protocol": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The network source protocol.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "rtp-fec", "rtp", "udp", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The source of the bridge. A network source originates at your premises.", diff --git a/internal/aws/mediaconnect/flow_entitlement_resource_gen.go b/internal/aws/mediaconnect/flow_entitlement_resource_gen.go index 2460d340ce..2c41ce4479 100644 --- a/internal/aws/mediaconnect/flow_entitlement_resource_gen.go +++ b/internal/aws/mediaconnect/flow_entitlement_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -125,14 +126,19 @@ func flowEntitlementResource(ctx context.Context) (resource.Resource, error) { // Property: Algorithm "algorithm": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "aes128", "aes192", "aes256", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConstantInitializationVector "constant_initialization_vector": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -189,7 +195,14 @@ func flowEntitlementResource(ctx context.Context) (resource.Resource, error) { // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretArn "secret_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/mediaconnect/flow_output_resource_gen.go b/internal/aws/mediaconnect/flow_output_resource_gen.go index 2ed8ab03b4..ab24652a9d 100644 --- a/internal/aws/mediaconnect/flow_output_resource_gen.go +++ b/internal/aws/mediaconnect/flow_output_resource_gen.go @@ -11,6 +11,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" @@ -21,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -157,12 +159,26 @@ func flowOutputResource(ctx context.Context) (resource.Resource, error) { // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretArn "secret_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: " The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key).", @@ -300,12 +316,26 @@ func flowOutputResource(ctx context.Context) (resource.Resource, error) { // Property: DestinationIp "destination_ip": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The IP address where contents of the media stream will be sent.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DestinationPort "destination_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The port to use when the content of the media stream is distributed to the output.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Interface "interface": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -313,11 +343,25 @@ func flowOutputResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the VPC interface that you want to use for the media stream associated with the output.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The VPC interface that is used for the media stream associated with the output.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -331,7 +375,8 @@ func flowOutputResource(ctx context.Context) (resource.Resource, error) { // Property: EncodingName "encoding_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The format that will be used to encode the data. For ancillary data streams, set the encoding name to smpte291. For audio streams, set the encoding name to pcm. For video streams on sources or outputs that use the CDI protocol, set the encoding name to raw. For video streams on sources or outputs that use the ST 2110 JPEG XS protocol, set the encoding name to jxsv.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "jxsv", @@ -339,7 +384,11 @@ func flowOutputResource(ctx context.Context) (resource.Resource, error) { "smpte291", "pcm", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EncodingParameters "encoding_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -347,7 +396,14 @@ func flowOutputResource(ctx context.Context) (resource.Resource, error) { // Property: CompressionFactor "compression_factor": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "A value that is used to calculate compression for an output. The bitrate of the output is calculated as follows: Output bitrate = (1 / compressionFactor) * (source bitrate) This property only applies to outputs that use the ST 2110 JPEG XS protocol, with a flow source that uses the CDI protocol. Valid values are in the range of 3.0 to 10.0, inclusive.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EncoderProfile "encoder_profile": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -375,7 +431,14 @@ func flowOutputResource(ctx context.Context) (resource.Resource, error) { // Property: MediaStreamName "media_stream_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A name that helps you distinguish one media stream from another.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/mediaconnect/flow_resource_gen.go b/internal/aws/mediaconnect/flow_resource_gen.go index e4b4f908a3..f0eed1dd80 100644 --- a/internal/aws/mediaconnect/flow_resource_gen.go +++ b/internal/aws/mediaconnect/flow_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -125,7 +126,8 @@ func flowResource(ctx context.Context) (resource.Resource, error) { // Property: MaintenanceDay "maintenance_day": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A day of a week when the maintenance will happen. Use Monday/Tuesday/Wednesday/Thursday/Friday/Saturday/Sunday.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Monday", @@ -136,12 +138,23 @@ func flowResource(ctx context.Context) (resource.Resource, error) { "Saturday", "Sunday", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaintenanceStartHour "maintenance_start_hour": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "UTC time when the maintenance will happen. Use 24-hour HH:MM format. Minutes must be 00. Example: 13:00. The default value is 02:00.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The maintenance settings you want to use for the flow.", @@ -451,24 +464,43 @@ func flowResource(ctx context.Context) (resource.Resource, error) { // Property: MediaStreamId "media_stream_id": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "A unique identifier for the media stream.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MediaStreamName "media_stream_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A name that helps you distinguish one media stream from another.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MediaStreamType "media_stream_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of media stream.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "video", "audio", "ancillary-data", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VideoFormat "video_format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -829,7 +861,14 @@ func flowResource(ctx context.Context) (resource.Resource, error) { // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretArn "secret_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -881,7 +920,14 @@ func flowResource(ctx context.Context) (resource.Resource, error) { // Property: BridgeArn "bridge_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the bridge feeding this flow.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VpcInterfaceAttachment "vpc_interface_attachment": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -962,7 +1008,8 @@ func flowResource(ctx context.Context) (resource.Resource, error) { // Property: EncodingName "encoding_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The format that was used to encode the data. For ancillary data streams, set the encoding name to smpte291. For audio streams, set the encoding name to pcm. For video, 2110 streams, set the encoding name to raw. For video, JPEG XS streams, set the encoding name to jxsv.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "jxsv", @@ -970,7 +1017,11 @@ func flowResource(ctx context.Context) (resource.Resource, error) { "smpte291", "pcm", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InputConfigurations "input_configurations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -979,7 +1030,14 @@ func flowResource(ctx context.Context) (resource.Resource, error) { // Property: InputPort "input_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The port that the flow listens on for an incoming media stream.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Interface "interface": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -987,11 +1045,25 @@ func flowResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the VPC interface that you want to use for the media stream associated with the output.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The VPC interface where the media stream comes in from.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1005,7 +1077,14 @@ func flowResource(ctx context.Context) (resource.Resource, error) { // Property: MediaStreamName "media_stream_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A name that helps you distinguish one media stream from another.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1215,7 +1294,14 @@ func flowResource(ctx context.Context) (resource.Resource, error) { // Property: PrimarySource "primary_source": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the source you choose as the primary source for this flow.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The priority you want to assign to a source. You can have a primary stream and a backup stream or two equally prioritized streams.", @@ -1273,13 +1359,18 @@ func flowResource(ctx context.Context) (resource.Resource, error) { // Property: ThumbnailState "thumbnail_state": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The state of thumbnail monitoring.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ENABLED", "DISABLED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The source monitoring config of the flow.", @@ -1349,7 +1440,14 @@ func flowResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Immutable and has to be a unique against other VpcInterfaces in this Flow.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NetworkInterfaceIds "network_interface_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -1379,18 +1477,39 @@ func flowResource(ctx context.Context) (resource.Resource, error) { // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Role Arn MediaConnect can assume to create ENIs in customer's account.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecurityGroupIds "security_group_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "Security Group IDs to be used on ENI.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetId "subnet_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Subnet must be in the AZ of the Flow", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/mediaconnect/flow_source_resource_gen.go b/internal/aws/mediaconnect/flow_source_resource_gen.go index 9e420f82cf..64417e4d08 100644 --- a/internal/aws/mediaconnect/flow_source_resource_gen.go +++ b/internal/aws/mediaconnect/flow_source_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -163,7 +164,14 @@ func flowSourceResource(ctx context.Context) (resource.Resource, error) { // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretArn "secret_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -265,7 +273,14 @@ func flowSourceResource(ctx context.Context) (resource.Resource, error) { // Property: BridgeArn "bridge_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the bridge feeding this flow.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VpcInterfaceAttachment "vpc_interface_attachment": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/medialive/event_bridge_rule_template_resource_gen.go b/internal/aws/medialive/event_bridge_rule_template_resource_gen.go index 0c7dae0a8b..0bde857a62 100644 --- a/internal/aws/medialive/event_bridge_rule_template_resource_gen.go +++ b/internal/aws/medialive/event_bridge_rule_template_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -112,11 +113,16 @@ func eventBridgeRuleTemplateResource(ctx context.Context) (resource.Resource, er // Property: Arn "arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Target ARNs must be either an SNS topic or CloudWatch log group.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn.+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/medialive/multiplexprogram_resource_gen.go b/internal/aws/medialive/multiplexprogram_resource_gen.go index 2d0a1a948f..1340a6ed41 100644 --- a/internal/aws/medialive/multiplexprogram_resource_gen.go +++ b/internal/aws/medialive/multiplexprogram_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -170,10 +171,15 @@ func multiplexprogramResource(ctx context.Context) (resource.Resource, error) { // Property: ProgramNumber "program_number": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Unique program number.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 65535), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ServiceDescriptor "service_descriptor": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -181,18 +187,28 @@ func multiplexprogramResource(ctx context.Context) (resource.Resource, error) { // Property: ProviderName "provider_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Name of the provider.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ServiceName "service_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Name of the service.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Transport stream service descriptor configuration for the Multiplex program.", diff --git a/internal/aws/mediapackage/asset_resource_gen.go b/internal/aws/mediapackage/asset_resource_gen.go index f0c7e81f9d..6b5d9b0a7d 100644 --- a/internal/aws/mediapackage/asset_resource_gen.go +++ b/internal/aws/mediapackage/asset_resource_gen.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -87,12 +88,26 @@ func assetResource(ctx context.Context) (resource.Resource, error) { // Property: PackagingConfigurationId "packaging_configuration_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID of the PackagingConfiguration being applied to the Asset.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Url "url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of the parent manifest for the repackaged Asset.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -191,11 +206,25 @@ func assetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/mediapackage/channel_resource_gen.go b/internal/aws/mediapackage/channel_resource_gen.go index 3d1753f77a..0200e60953 100644 --- a/internal/aws/mediapackage/channel_resource_gen.go +++ b/internal/aws/mediapackage/channel_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -149,22 +150,50 @@ func channelResource(ctx context.Context) (resource.Resource, error) { // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The system generated unique identifier for the IngestEndpoint", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Password "password": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The system generated password for ingest authentication.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Url "url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ingest URL to which the source stream should be sent.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Username "username": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The system generated username for ingest authentication.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -271,11 +300,25 @@ func channelResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/mediapackage/origin_endpoint_resource_gen.go b/internal/aws/mediapackage/origin_endpoint_resource_gen.go index 9c707661a9..7aa25d576b 100644 --- a/internal/aws/mediapackage/origin_endpoint_resource_gen.go +++ b/internal/aws/mediapackage/origin_endpoint_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -73,12 +74,26 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { // Property: CdnIdentifierSecret "cdn_identifier_secret": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) for the secret in Secrets Manager that your Content Distribution Network (CDN) uses for authorization to access your endpoint.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretsRoleArn "secrets_role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to communicate with AWS Secrets Manager.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "CDN Authorization credentials", @@ -387,7 +402,8 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { // Property: PresetSpeke20Audio "preset_speke_20_audio": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A collection of audio encryption presets.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PRESET-AUDIO-1", @@ -396,12 +412,17 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { "SHARED", "UNENCRYPTED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PresetSpeke20Video "preset_speke_20_video": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A collection of video encryption presets.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PRESET-VIDEO-1", @@ -415,7 +436,11 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { "SHARED", "UNENCRYPTED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration to use for encrypting one or more content tracks separately for endpoints that use SPEKE 2.0.", @@ -428,27 +453,62 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { // Property: ResourceId "resource_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The resource ID to include in key requests.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SystemIds "system_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The system IDs to include in key requests.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Url "url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of the external key provider service.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A Common Media Application Format (CMAF) encryption configuration.", @@ -523,7 +583,14 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID of the manifest. The ID must be unique within the OriginEndpoint and it cannot be changed after it is created.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IncludeIframeOnlyStream "include_iframe_only_stream": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -964,7 +1031,8 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { // Property: PresetSpeke20Audio "preset_speke_20_audio": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A collection of audio encryption presets.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PRESET-AUDIO-1", @@ -973,12 +1041,17 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { "SHARED", "UNENCRYPTED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PresetSpeke20Video "preset_speke_20_video": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A collection of video encryption presets.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PRESET-VIDEO-1", @@ -992,7 +1065,11 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { "SHARED", "UNENCRYPTED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration to use for encrypting one or more content tracks separately for endpoints that use SPEKE 2.0.", @@ -1005,27 +1082,62 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { // Property: ResourceId "resource_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The resource ID to include in key requests.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SystemIds "system_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The system IDs to include in key requests.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Url "url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of the external key provider service.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration.", @@ -1580,7 +1692,8 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { // Property: PresetSpeke20Audio "preset_speke_20_audio": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A collection of audio encryption presets.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PRESET-AUDIO-1", @@ -1589,12 +1702,17 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { "SHARED", "UNENCRYPTED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PresetSpeke20Video "preset_speke_20_video": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A collection of video encryption presets.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PRESET-VIDEO-1", @@ -1608,7 +1726,11 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { "SHARED", "UNENCRYPTED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration to use for encrypting one or more content tracks separately for endpoints that use SPEKE 2.0.", @@ -1621,27 +1743,62 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { // Property: ResourceId "resource_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The resource ID to include in key requests.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SystemIds "system_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The system IDs to include in key requests.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Url "url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of the external key provider service.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "An HTTP Live Streaming (HLS) encryption configuration.", @@ -1958,7 +2115,8 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { // Property: PresetSpeke20Audio "preset_speke_20_audio": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A collection of audio encryption presets.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PRESET-AUDIO-1", @@ -1967,12 +2125,17 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { "SHARED", "UNENCRYPTED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PresetSpeke20Video "preset_speke_20_video": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A collection of video encryption presets.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PRESET-VIDEO-1", @@ -1986,7 +2149,11 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { "SHARED", "UNENCRYPTED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration to use for encrypting one or more content tracks separately for endpoints that use SPEKE 2.0.", @@ -1999,27 +2166,62 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { // Property: ResourceId "resource_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The resource ID to include in key requests.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SystemIds "system_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The system IDs to include in key requests.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Url "url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of the external key provider service.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A Microsoft Smooth Streaming (MSS) encryption configuration.", @@ -2169,11 +2371,25 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/mediapackage/packaging_configuration_resource_gen.go b/internal/aws/mediapackage/packaging_configuration_resource_gen.go index 0d933ff8db..fe2c86e16a 100644 --- a/internal/aws/mediapackage/packaging_configuration_resource_gen.go +++ b/internal/aws/mediapackage/packaging_configuration_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -216,7 +217,8 @@ func packagingConfigurationResource(ctx context.Context) (resource.Resource, err // Property: PresetSpeke20Audio "preset_speke_20_audio": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A collection of audio encryption presets.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PRESET-AUDIO-1", @@ -225,12 +227,17 @@ func packagingConfigurationResource(ctx context.Context) (resource.Resource, err "SHARED", "UNENCRYPTED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PresetSpeke20Video "preset_speke_20_video": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A collection of video encryption presets.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PRESET-VIDEO-1", @@ -244,7 +251,11 @@ func packagingConfigurationResource(ctx context.Context) (resource.Resource, err "SHARED", "UNENCRYPTED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration to use for encrypting one or more content tracks separately for endpoints that use SPEKE 2.0.", @@ -257,22 +268,50 @@ func packagingConfigurationResource(ctx context.Context) (resource.Resource, err // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SystemIds "system_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The system IDs to include in key requests.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Url "url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of the external key provider service.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A CMAF encryption configuration.", @@ -386,7 +425,14 @@ func packagingConfigurationResource(ctx context.Context) (resource.Resource, err }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of HLS manifest configurations.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IncludeEncoderConfigurationInSegments "include_encoder_configuration_in_segments": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -717,7 +763,14 @@ func packagingConfigurationResource(ctx context.Context) (resource.Resource, err }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of DASH manifest configurations.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Encryption "encryption": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -731,7 +784,8 @@ func packagingConfigurationResource(ctx context.Context) (resource.Resource, err // Property: PresetSpeke20Audio "preset_speke_20_audio": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A collection of audio encryption presets.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PRESET-AUDIO-1", @@ -740,12 +794,17 @@ func packagingConfigurationResource(ctx context.Context) (resource.Resource, err "SHARED", "UNENCRYPTED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PresetSpeke20Video "preset_speke_20_video": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A collection of video encryption presets.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PRESET-VIDEO-1", @@ -759,7 +818,11 @@ func packagingConfigurationResource(ctx context.Context) (resource.Resource, err "SHARED", "UNENCRYPTED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration to use for encrypting one or more content tracks separately for endpoints that use SPEKE 2.0.", @@ -772,22 +835,50 @@ func packagingConfigurationResource(ctx context.Context) (resource.Resource, err // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SystemIds "system_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The system IDs to include in key requests.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Url "url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of the external key provider service.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration.", @@ -1075,7 +1166,8 @@ func packagingConfigurationResource(ctx context.Context) (resource.Resource, err // Property: PresetSpeke20Audio "preset_speke_20_audio": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A collection of audio encryption presets.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PRESET-AUDIO-1", @@ -1084,12 +1176,17 @@ func packagingConfigurationResource(ctx context.Context) (resource.Resource, err "SHARED", "UNENCRYPTED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PresetSpeke20Video "preset_speke_20_video": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A collection of video encryption presets.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PRESET-VIDEO-1", @@ -1103,7 +1200,11 @@ func packagingConfigurationResource(ctx context.Context) (resource.Resource, err "SHARED", "UNENCRYPTED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration to use for encrypting one or more content tracks separately for endpoints that use SPEKE 2.0.", @@ -1116,22 +1217,50 @@ func packagingConfigurationResource(ctx context.Context) (resource.Resource, err // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SystemIds "system_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The system IDs to include in key requests.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Url "url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of the external key provider service.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "An HTTP Live Streaming (HLS) encryption configuration.", @@ -1245,7 +1374,14 @@ func packagingConfigurationResource(ctx context.Context) (resource.Resource, err }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of HLS manifest configurations.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IncludeDvbSubtitles "include_dvb_subtitles": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -1441,7 +1577,8 @@ func packagingConfigurationResource(ctx context.Context) (resource.Resource, err // Property: PresetSpeke20Audio "preset_speke_20_audio": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A collection of audio encryption presets.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PRESET-AUDIO-1", @@ -1450,12 +1587,17 @@ func packagingConfigurationResource(ctx context.Context) (resource.Resource, err "SHARED", "UNENCRYPTED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PresetSpeke20Video "preset_speke_20_video": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A collection of video encryption presets.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PRESET-VIDEO-1", @@ -1469,7 +1611,11 @@ func packagingConfigurationResource(ctx context.Context) (resource.Resource, err "SHARED", "UNENCRYPTED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration to use for encrypting one or more content tracks separately for endpoints that use SPEKE 2.0.", @@ -1482,22 +1628,50 @@ func packagingConfigurationResource(ctx context.Context) (resource.Resource, err // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SystemIds "system_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The system IDs to include in key requests.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Url "url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of the external key provider service.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A CMAF encryption configuration.", @@ -1568,7 +1742,14 @@ func packagingConfigurationResource(ctx context.Context) (resource.Resource, err }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of MSS manifest configurations.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SegmentDurationSeconds "segment_duration_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -1627,11 +1808,25 @@ func packagingConfigurationResource(ctx context.Context) (resource.Resource, err Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/mediapackage/packaging_group_resource_gen.go b/internal/aws/mediapackage/packaging_group_resource_gen.go index 5f412ba3f3..cec3148b72 100644 --- a/internal/aws/mediapackage/packaging_group_resource_gen.go +++ b/internal/aws/mediapackage/packaging_group_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -70,12 +71,26 @@ func packagingGroupResource(ctx context.Context) (resource.Resource, error) { // Property: CdnIdentifierSecret "cdn_identifier_secret": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) for the secret in AWS Secrets Manager that is used for CDN authorization.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretsRoleArn "secrets_role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to communicate with AWS Secrets Manager.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "CDN Authorization", @@ -187,11 +202,25 @@ func packagingGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/mediapackagev2/origin_endpoint_resource_gen.go b/internal/aws/mediapackagev2/origin_endpoint_resource_gen.go index e7e542e322..96bef15568 100644 --- a/internal/aws/mediapackagev2/origin_endpoint_resource_gen.go +++ b/internal/aws/mediapackagev2/origin_endpoint_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -347,11 +348,16 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { // Property: ManifestName "manifest_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

A short string that's appended to the endpoint URL. The manifest name creates a unique path to this endpoint. If you don't enter a value, MediaPackage uses the default manifest name, index.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ManifestWindowSeconds "manifest_window_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -745,11 +751,16 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { // Property: ManifestName "manifest_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

A short short string that's appended to the endpoint URL. The manifest name creates a unique path to this endpoint. If you don't enter a value, MediaPackage uses the default manifest name, index. MediaPackage automatically inserts the format extension, such as .m3u8. You can't use the same manifest name if you use HLS manifest and low-latency HLS manifest. The manifestName on the HLSManifest object overrides the manifestName you provided on the originEndpoint object.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ManifestWindowSeconds "manifest_window_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -986,11 +997,16 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { // Property: ManifestName "manifest_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

A short short string that's appended to the endpoint URL. The manifest name creates a unique path to this endpoint. If you don't enter a value, MediaPackage uses the default manifest name, index. MediaPackage automatically inserts the format extension, such as .m3u8. You can't use the same manifest name if you use HLS manifest and low-latency HLS manifest. The manifestName on the HLSManifest object overrides the manifestName you provided on the originEndpoint object.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ManifestWindowSeconds "manifest_window_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -1330,7 +1346,14 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The encryption type.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeyRotationIntervalSeconds "key_rotation_interval_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -1351,7 +1374,8 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { "drm_systems": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "

The DRM solution provider you're using to protect your content during distribution.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 4), listvalidator.ValueStringsAre( @@ -1363,14 +1387,19 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { "IRDETO", ), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EncryptionContractConfiguration "encryption_contract_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: PresetSpeke20Audio "preset_speke_20_audio": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PRESET_AUDIO_1", @@ -1379,11 +1408,16 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { "SHARED", "UNENCRYPTED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PresetSpeke20Video "preset_speke_20_video": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PRESET_VIDEO_1", @@ -1397,40 +1431,73 @@ func originEndpointResource(ctx context.Context) (resource.Resource, error) { "SHARED", "UNENCRYPTED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

Configure one or more content encryption keys for your endpoints that use SPEKE Version 2.0. The encryption contract defines which content keys are used to encrypt the audio and video tracks in your stream. To configure the encryption contract, specify which audio and video encryption presets to use.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceId "resource_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The unique identifier for the content. The service sends this to the key server to identify the current endpoint. How unique you make this depends on how fine-grained you want access controls to be. The service does not permit you to use the same ID for two simultaneous encryption processes. The resource ID is also known as the content ID.

\n

The following example shows a resource ID: MovieNight20171126093045\n

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-zA-Z_-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The ARN for the IAM role granted by the key provider that provides access to the key provider API. This role must have a trust policy that allows MediaPackage to assume the role, and it must have a sufficient permissions policy to allow access to the specific key retrieval URL. Get this from your DRM solution provider.

\n

Valid format: arn:aws:iam::{accountID}:role/{name}. The following example shows a role ARN: arn:aws:iam::444455556666:role/SpekeAccess\n

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Url "url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The URL of the API Gateway proxy that you set up to talk to your key server. The API Gateway proxy must reside in the same AWS Region as MediaPackage and must start with https://.

\n

The following example shows a URL: https://1wm2dx1f33.execute-api.us-west-2.amazonaws.com/SpekeSample/copyProtection\n

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for the SPEKE key provider.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for encrypting content.

", diff --git a/internal/aws/mediatailor/channel_resource_gen.go b/internal/aws/mediatailor/channel_resource_gen.go index 5ec082a345..962c700e67 100644 --- a/internal/aws/mediatailor/channel_resource_gen.go +++ b/internal/aws/mediatailor/channel_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -400,11 +401,25 @@ func channelResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -461,7 +476,14 @@ func channelResource(ctx context.Context) (resource.Resource, error) { // Property: MaxTimeDelaySeconds "max_time_delay_seconds": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "

The maximum time delay for time-shifted viewing. The minimum allowed maximum time delay is 0 seconds, and the maximum allowed maximum time delay is 21600 seconds (6 hours).

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The configuration for time-shifted viewing.

", diff --git a/internal/aws/mediatailor/live_source_resource_gen.go b/internal/aws/mediatailor/live_source_resource_gen.go index 2ce5d2c80a..66d9cda1ea 100644 --- a/internal/aws/mediatailor/live_source_resource_gen.go +++ b/internal/aws/mediatailor/live_source_resource_gen.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -157,11 +158,25 @@ func liveSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/mediatailor/source_location_resource_gen.go b/internal/aws/mediatailor/source_location_resource_gen.go index 487a1d13bc..d7d54961bb 100644 --- a/internal/aws/mediatailor/source_location_resource_gen.go +++ b/internal/aws/mediatailor/source_location_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -300,11 +301,25 @@ func sourceLocationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/mediatailor/vod_source_resource_gen.go b/internal/aws/mediatailor/vod_source_resource_gen.go index 624a98b00c..53b66eeff9 100644 --- a/internal/aws/mediatailor/vod_source_resource_gen.go +++ b/internal/aws/mediatailor/vod_source_resource_gen.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -145,11 +146,25 @@ func vodSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/memorydb/acl_resource_gen.go b/internal/aws/memorydb/acl_resource_gen.go index 37380c115f..f6b0055151 100644 --- a/internal/aws/memorydb/acl_resource_gen.go +++ b/internal/aws/memorydb/acl_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -118,10 +119,15 @@ func aCLResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with 'aws:'. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/memorydb/cluster_resource_gen.go b/internal/aws/memorydb/cluster_resource_gen.go index a139a9a0b4..51b512fd41 100644 --- a/internal/aws/memorydb/cluster_resource_gen.go +++ b/internal/aws/memorydb/cluster_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -539,18 +540,28 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key for the tag. May not be null.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's value. May be null.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/memorydb/parameter_group_resource_gen.go b/internal/aws/memorydb/parameter_group_resource_gen.go index b84a3e134b..f8a72fc5cc 100644 --- a/internal/aws/memorydb/parameter_group_resource_gen.go +++ b/internal/aws/memorydb/parameter_group_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -145,18 +146,28 @@ func parameterGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key for the tag. May not be null.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's value. May be null.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/memorydb/subnet_group_resource_gen.go b/internal/aws/memorydb/subnet_group_resource_gen.go index 82829ad187..37dc71e2f9 100644 --- a/internal/aws/memorydb/subnet_group_resource_gen.go +++ b/internal/aws/memorydb/subnet_group_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -135,18 +136,28 @@ func subnetGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key for the tag. May not be null.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag's value. May be null.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/memorydb/user_resource_gen.go b/internal/aws/memorydb/user_resource_gen.go index a161a1daf0..557825977f 100644 --- a/internal/aws/memorydb/user_resource_gen.go +++ b/internal/aws/memorydb/user_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -185,10 +186,15 @@ func userResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with 'aws:'. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/msk/cluster_resource_gen.go b/internal/aws/msk/cluster_resource_gen.go index 205aa1c6d6..5154ce3cbb 100644 --- a/internal/aws/msk/cluster_resource_gen.go +++ b/internal/aws/msk/cluster_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -245,7 +246,14 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -259,7 +267,14 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -280,7 +295,14 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -466,7 +488,14 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -480,7 +509,14 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -529,7 +565,14 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -585,11 +628,25 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Arn "arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Revision "revision": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -658,7 +715,14 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DataVolumeKMSKeyId "data_volume_kms_key_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -829,7 +893,14 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LogGroup "log_group": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -859,7 +930,14 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -881,7 +959,14 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Prefix "prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -899,7 +984,14 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -969,7 +1061,14 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: EnabledInBroker "enabled_in_broker": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -983,7 +1082,14 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: EnabledInBroker "enabled_in_broker": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -993,7 +1099,14 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/msk/replicator_resource_gen.go b/internal/aws/msk/replicator_resource_gen.go index 0ce434e4b9..a027db938f 100644 --- a/internal/aws/msk/replicator_resource_gen.go +++ b/internal/aws/msk/replicator_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -653,17 +654,27 @@ func replicatorResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/neptune/db_cluster_resource_gen.go b/internal/aws/neptune/db_cluster_resource_gen.go index 9300f86db9..5eb6402e20 100644 --- a/internal/aws/neptune/db_cluster_resource_gen.go +++ b/internal/aws/neptune/db_cluster_resource_gen.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64default" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" @@ -29,6 +30,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -81,7 +83,14 @@ func dBClusterResource(ctx context.Context) (resource.Resource, error) { // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -479,18 +488,28 @@ func dBClusterResource(ctx context.Context) (resource.Resource, error) { // Property: MaxCapacity "max_capacity": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum number of Neptune capacity units (NCUs) for a DB instance in an Neptune Serverless cluster. You can specify NCU values in half-step increments, such as 40, 40.5, 41, and so on. The smallest value you can use is 2.5, whereas the largest is 128.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(2.500000, 128.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinCapacity "min_capacity": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The minimum number of Neptune capacity units (NCUs) for a DB instance in an Neptune Serverless cluster. You can specify NCU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value you can use is 1, whereas the largest is 128.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(1.000000, 128.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Contains the scaling configuration used by the Neptune Serverless Instances within this DB cluster.", @@ -588,10 +607,15 @@ func dBClusterResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/neptunegraph/graph_resource_gen.go b/internal/aws/neptunegraph/graph_resource_gen.go index 77dc9cb237..a2d7eb34dd 100644 --- a/internal/aws/neptunegraph/graph_resource_gen.go +++ b/internal/aws/neptunegraph/graph_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -192,10 +193,15 @@ func graphResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -243,7 +249,14 @@ func graphResource(ctx context.Context) (resource.Resource, error) { // Property: VectorSearchDimension "vector_search_dimension": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The vector search dimension", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Vector Search Configuration", diff --git a/internal/aws/networkfirewall/firewall_policy_resource_gen.go b/internal/aws/networkfirewall/firewall_policy_resource_gen.go index c0120c1685..aa472715f7 100644 --- a/internal/aws/networkfirewall/firewall_policy_resource_gen.go +++ b/internal/aws/networkfirewall/firewall_policy_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -398,11 +399,16 @@ func firewallPolicyResource(ctx context.Context) (resource.Resource, error) { // Property: ResourceArn "resource_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A resource ARN.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^(arn:aws.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -428,15 +434,27 @@ func firewallPolicyResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9-_ ]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -446,15 +464,27 @@ func firewallPolicyResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ActionName "action_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -480,19 +510,29 @@ func firewallPolicyResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Priority "priority": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 65535), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceArn "resource_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A resource ARN.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^(arn:aws.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -604,19 +644,29 @@ func firewallPolicyResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 255), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/networkfirewall/firewall_resource_gen.go b/internal/aws/networkfirewall/firewall_resource_gen.go index 3e8abd6369..202aacc93f 100644 --- a/internal/aws/networkfirewall/firewall_resource_gen.go +++ b/internal/aws/networkfirewall/firewall_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -261,17 +262,27 @@ func firewallResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/networkfirewall/rule_group_resource_gen.go b/internal/aws/networkfirewall/rule_group_resource_gen.go index ee4d32e986..ab89644491 100644 --- a/internal/aws/networkfirewall/rule_group_resource_gen.go +++ b/internal/aws/networkfirewall/rule_group_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -712,18 +713,24 @@ func ruleGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: GeneratedRulesType "generated_rules_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ALLOWLIST", "DENYLIST", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TargetTypes "target_types": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.OneOf( @@ -731,12 +738,23 @@ func ruleGroupResource(ctx context.Context) (resource.Resource, error) { "HTTP_HOST", ), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Targets "targets": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -762,7 +780,8 @@ func ruleGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Action "action": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PASS", @@ -770,40 +789,60 @@ func ruleGroupResource(ctx context.Context) (resource.Resource, error) { "ALERT", "REJECT", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Header "header": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Destination "destination": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DestinationPort "destination_port": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Direction "direction": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "FORWARD", "ANY", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Protocol "protocol": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "IP", @@ -826,26 +865,47 @@ func ruleGroupResource(ctx context.Context) (resource.Resource, error) { "NTP", "DHCP", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Source "source": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourcePort "source_port": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RuleOptions "rule_options": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -853,11 +913,16 @@ func ruleGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Keyword "keyword": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Settings "settings": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -876,7 +941,14 @@ func ruleGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -905,15 +977,27 @@ func ruleGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9-_ ]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -923,15 +1007,27 @@ func ruleGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ActionName "action_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -947,10 +1043,15 @@ func ruleGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Priority "priority": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 65535), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RuleDefinition "rule_definition": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -958,7 +1059,14 @@ func ruleGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Actions "actions": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MatchAttributes "match_attributes": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -969,17 +1077,27 @@ func ruleGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: FromPort "from_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 65535), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ToPort "to_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 65535), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -995,11 +1113,16 @@ func ruleGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AddressDefinition "address_definition": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), stringvalidator.RegexMatches(regexp.MustCompile("^([a-fA-F\\d:\\.]+/\\d{1,3})$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1029,17 +1152,27 @@ func ruleGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: FromPort "from_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 65535), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ToPort "to_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 65535), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1055,11 +1188,16 @@ func ruleGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AddressDefinition "address_definition": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), stringvalidator.RegexMatches(regexp.MustCompile("^([a-fA-F\\d:\\.]+/\\d{1,3})$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1076,7 +1214,8 @@ func ruleGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Flags "flags": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.OneOf( @@ -1090,7 +1229,11 @@ func ruleGroupResource(ctx context.Context) (resource.Resource, error) { "CWR", ), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Masks "masks": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -1124,14 +1267,35 @@ func ruleGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1141,7 +1305,14 @@ func ruleGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StatefulRuleOptions "stateful_rule_options": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1260,19 +1431,29 @@ func ruleGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 255), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/networkfirewall/tls_inspection_configuration_resource_gen.go b/internal/aws/networkfirewall/tls_inspection_configuration_resource_gen.go index c1f877d79d..b3f049d08d 100644 --- a/internal/aws/networkfirewall/tls_inspection_configuration_resource_gen.go +++ b/internal/aws/networkfirewall/tls_inspection_configuration_resource_gen.go @@ -14,6 +14,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -23,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -300,17 +302,27 @@ func tLSInspectionConfigurationResource(ctx context.Context) (resource.Resource, Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: FromPort "from_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 65535), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ToPort "to_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 65535), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -326,11 +338,16 @@ func tLSInspectionConfigurationResource(ctx context.Context) (resource.Resource, Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AddressDefinition "address_definition": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), stringvalidator.RegexMatches(regexp.MustCompile("^([a-fA-F\\d:\\.]+/\\d{1,3})$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -360,17 +377,27 @@ func tLSInspectionConfigurationResource(ctx context.Context) (resource.Resource, Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: FromPort "from_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 65535), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ToPort "to_port": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 65535), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -386,11 +413,16 @@ func tLSInspectionConfigurationResource(ctx context.Context) (resource.Resource, Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AddressDefinition "address_definition": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), stringvalidator.RegexMatches(regexp.MustCompile("^([a-fA-F\\d:\\.]+/\\d{1,3})$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -530,19 +562,29 @@ func tLSInspectionConfigurationResource(ctx context.Context) (resource.Resource, Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 255), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/networkmanager/connect_attachment_resource_gen.go b/internal/aws/networkmanager/connect_attachment_resource_gen.go index b1a2af10f7..78e50e9632 100644 --- a/internal/aws/networkmanager/connect_attachment_resource_gen.go +++ b/internal/aws/networkmanager/connect_attachment_resource_gen.go @@ -15,8 +15,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -256,12 +258,26 @@ func connectAttachmentResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -350,12 +366,26 @@ func connectAttachmentResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -450,12 +480,26 @@ func connectAttachmentResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/networkmanager/connect_peer_resource_gen.go b/internal/aws/networkmanager/connect_peer_resource_gen.go index 88747ce5db..8edbd6b108 100644 --- a/internal/aws/networkmanager/connect_peer_resource_gen.go +++ b/internal/aws/networkmanager/connect_peer_resource_gen.go @@ -16,9 +16,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -371,12 +373,26 @@ func connectPeerResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/networkmanager/core_network_resource_gen.go b/internal/aws/networkmanager/core_network_resource_gen.go index 36139a2372..9e4cda4b60 100644 --- a/internal/aws/networkmanager/core_network_resource_gen.go +++ b/internal/aws/networkmanager/core_network_resource_gen.go @@ -15,9 +15,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -399,12 +401,26 @@ func coreNetworkResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/networkmanager/device_resource_gen.go b/internal/aws/networkmanager/device_resource_gen.go index d45a64e656..f44c2afd0c 100644 --- a/internal/aws/networkmanager/device_resource_gen.go +++ b/internal/aws/networkmanager/device_resource_gen.go @@ -14,8 +14,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -295,12 +297,26 @@ func deviceResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/networkmanager/global_network_resource_gen.go b/internal/aws/networkmanager/global_network_resource_gen.go index 8acdb20136..99b0a6d869 100644 --- a/internal/aws/networkmanager/global_network_resource_gen.go +++ b/internal/aws/networkmanager/global_network_resource_gen.go @@ -13,8 +13,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -132,12 +134,26 @@ func globalNetworkResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/networkmanager/link_resource_gen.go b/internal/aws/networkmanager/link_resource_gen.go index 8102500f60..064f6d61c4 100644 --- a/internal/aws/networkmanager/link_resource_gen.go +++ b/internal/aws/networkmanager/link_resource_gen.go @@ -14,8 +14,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -216,12 +218,26 @@ func linkResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/networkmanager/site_resource_gen.go b/internal/aws/networkmanager/site_resource_gen.go index 1a9e9757fa..bdc629759e 100644 --- a/internal/aws/networkmanager/site_resource_gen.go +++ b/internal/aws/networkmanager/site_resource_gen.go @@ -14,8 +14,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -204,12 +206,26 @@ func siteResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/networkmanager/site_to_site_vpn_attachment_resource_gen.go b/internal/aws/networkmanager/site_to_site_vpn_attachment_resource_gen.go index a3806b0f5d..11fc0ac0c8 100644 --- a/internal/aws/networkmanager/site_to_site_vpn_attachment_resource_gen.go +++ b/internal/aws/networkmanager/site_to_site_vpn_attachment_resource_gen.go @@ -15,8 +15,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -224,12 +226,26 @@ func siteToSiteVpnAttachmentResource(ctx context.Context) (resource.Resource, er // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -318,12 +334,26 @@ func siteToSiteVpnAttachmentResource(ctx context.Context) (resource.Resource, er // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -418,12 +448,26 @@ func siteToSiteVpnAttachmentResource(ctx context.Context) (resource.Resource, er // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/networkmanager/transit_gateway_peering_resource_gen.go b/internal/aws/networkmanager/transit_gateway_peering_resource_gen.go index 333d824193..56f612f170 100644 --- a/internal/aws/networkmanager/transit_gateway_peering_resource_gen.go +++ b/internal/aws/networkmanager/transit_gateway_peering_resource_gen.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -191,18 +192,28 @@ func transitGatewayPeeringResource(ctx context.Context) (resource.Resource, erro // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/networkmanager/transit_gateway_route_table_attachment_resource_gen.go b/internal/aws/networkmanager/transit_gateway_route_table_attachment_resource_gen.go index 92a8e8d263..43ffed5e6f 100644 --- a/internal/aws/networkmanager/transit_gateway_route_table_attachment_resource_gen.go +++ b/internal/aws/networkmanager/transit_gateway_route_table_attachment_resource_gen.go @@ -15,8 +15,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -239,12 +241,26 @@ func transitGatewayRouteTableAttachmentResource(ctx context.Context) (resource.R // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -334,12 +350,26 @@ func transitGatewayRouteTableAttachmentResource(ctx context.Context) (resource.R // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -435,12 +465,26 @@ func transitGatewayRouteTableAttachmentResource(ctx context.Context) (resource.R // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/networkmanager/vpc_attachment_resource_gen.go b/internal/aws/networkmanager/vpc_attachment_resource_gen.go index 64ed171ec5..7bc4a031d8 100644 --- a/internal/aws/networkmanager/vpc_attachment_resource_gen.go +++ b/internal/aws/networkmanager/vpc_attachment_resource_gen.go @@ -17,9 +17,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -276,12 +278,26 @@ func vpcAttachmentResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -370,12 +386,26 @@ func vpcAttachmentResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -489,12 +519,26 @@ func vpcAttachmentResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/nimblestudio/launch_profile_resource_gen.go b/internal/aws/nimblestudio/launch_profile_resource_gen.go index f8cbe775fe..08e6c3a82b 100644 --- a/internal/aws/nimblestudio/launch_profile_resource_gen.go +++ b/internal/aws/nimblestudio/launch_profile_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -445,7 +446,8 @@ func launchProfileResource(ctx context.Context) (resource.Resource, error) { "mode": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "

Allows artists to upload files to their workstations. The only valid option is\n UPLOAD.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), listvalidator.ValueStringsAre( @@ -453,7 +455,11 @@ func launchProfileResource(ctx context.Context) (resource.Resource, error) { "UPLOAD", ), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Root "root": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/nimblestudio/studio_resource_gen.go b/internal/aws/nimblestudio/studio_resource_gen.go index 7eea0c6606..48ef0e8477 100644 --- a/internal/aws/nimblestudio/studio_resource_gen.go +++ b/internal/aws/nimblestudio/studio_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -133,13 +134,18 @@ func studioResource(ctx context.Context) (resource.Resource, error) { // Property: KeyType "key_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The type of KMS key that is used to encrypt studio data.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "AWS_OWNED_KEY", "CUSTOMER_MANAGED_KEY", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

Configuration of the encryption method that is used for the studio.

", diff --git a/internal/aws/oam/link_resource_gen.go b/internal/aws/oam/link_resource_gen.go index 7a2386dd97..c65c74c90b 100644 --- a/internal/aws/oam/link_resource_gen.go +++ b/internal/aws/oam/link_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -119,10 +120,15 @@ func linkResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Filter "filter": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -136,10 +142,15 @@ func linkResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Filter "filter": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/omics/reference_store_resource_gen.go b/internal/aws/omics/reference_store_resource_gen.go index cdd1d33a2d..a6598a8bf8 100644 --- a/internal/aws/omics/reference_store_resource_gen.go +++ b/internal/aws/omics/reference_store_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -166,12 +167,17 @@ func referenceStoreResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "KMS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Server-side encryption (SSE) settings for a store.", diff --git a/internal/aws/omics/sequence_store_resource_gen.go b/internal/aws/omics/sequence_store_resource_gen.go index 600132d2c2..47a0d25daa 100644 --- a/internal/aws/omics/sequence_store_resource_gen.go +++ b/internal/aws/omics/sequence_store_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -187,12 +188,17 @@ func sequenceStoreResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "KMS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Server-side encryption (SSE) settings for a store.", diff --git a/internal/aws/omics/variant_store_resource_gen.go b/internal/aws/omics/variant_store_resource_gen.go index 109749eee1..68883ed8da 100644 --- a/internal/aws/omics/variant_store_resource_gen.go +++ b/internal/aws/omics/variant_store_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -167,12 +168,17 @@ func variantStoreResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "KMS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/opensearchserverless/collection_resource_gen.go b/internal/aws/opensearchserverless/collection_resource_gen.go index dac6ed2a7f..697cebfbdb 100644 --- a/internal/aws/opensearchserverless/collection_resource_gen.go +++ b/internal/aws/opensearchserverless/collection_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -191,18 +192,28 @@ func collectionResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key in the key-value pair", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value in the key-value pair", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/opensearchserverless/security_config_resource_gen.go b/internal/aws/opensearchserverless/security_config_resource_gen.go index 13ae647392..7fc9701c37 100644 --- a/internal/aws/opensearchserverless/security_config_resource_gen.go +++ b/internal/aws/opensearchserverless/security_config_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -145,10 +146,15 @@ func securityConfigResource(ctx context.Context) (resource.Resource, error) { // Property: Metadata "metadata": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The XML saml provider metadata document that you want to use", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 51200), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SessionTimeout "session_timeout": schema.Int64Attribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/opensearchservice/domain_resource_gen.go b/internal/aws/opensearchservice/domain_resource_gen.go index ae5f6e3f19..d44732cec8 100644 --- a/internal/aws/opensearchservice/domain_resource_gen.go +++ b/internal/aws/opensearchservice/domain_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -293,14 +294,26 @@ func domainResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: EntityId "entity_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MetadataContent "metadata_content": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1048576), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1049,17 +1062,27 @@ func domainResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Hours "hours": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 23), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Minutes "minutes": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 59), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1262,18 +1285,28 @@ func domainResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key of the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/opsworkscm/server_resource_gen.go b/internal/aws/opsworkscm/server_resource_gen.go index 452c3bc15b..68f9904b74 100644 --- a/internal/aws/opsworkscm/server_resource_gen.go +++ b/internal/aws/opsworkscm/server_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -507,19 +508,29 @@ func serverResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/organizations/account_resource_gen.go b/internal/aws/organizations/account_resource_gen.go index e4a1df8a1f..64acb31ffa 100644 --- a/internal/aws/organizations/account_resource_gen.go +++ b/internal/aws/organizations/account_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -240,20 +241,30 @@ func accountResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key identifier, or name, of the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("[\\s\\S]*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string value that's associated with the key of the tag. You can set the value of a tag to an empty string, but you can't set the value of a tag to null.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("[\\s\\S]*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/organizations/organizational_unit_resource_gen.go b/internal/aws/organizations/organizational_unit_resource_gen.go index dd16abd8f3..78c6ad822e 100644 --- a/internal/aws/organizations/organizational_unit_resource_gen.go +++ b/internal/aws/organizations/organizational_unit_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -135,18 +136,28 @@ func organizationalUnitResource(ctx context.Context) (resource.Resource, error) // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key identifier, or name, of the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string value that's associated with the key of the tag. You can set the value of a tag to an empty string, but you can't set the value of a tag to null.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/organizations/policy_resource_gen.go b/internal/aws/organizations/policy_resource_gen.go index 96ab367e64..97cb735931 100644 --- a/internal/aws/organizations/policy_resource_gen.go +++ b/internal/aws/organizations/policy_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -173,20 +174,30 @@ func policyResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key identifier, or name, of the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("[\\s\\S]*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string value that's associated with the key of the tag. You can set the value of a tag to an empty string, but you can't set the value of a tag to null.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("[\\s\\S]*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/organizations/resource_policy_resource_gen.go b/internal/aws/organizations/resource_policy_resource_gen.go index 77644e44ea..395ef7a58f 100644 --- a/internal/aws/organizations/resource_policy_resource_gen.go +++ b/internal/aws/organizations/resource_policy_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -115,18 +116,28 @@ func resourcePolicyResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key identifier, or name, of the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string value that's associated with the key of the tag. You can set the value of a tag to an empty string, but you can't set the value of a tag to null.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/osis/pipeline_resource_gen.go b/internal/aws/osis/pipeline_resource_gen.go index 9e058ca54a..410e595cbf 100644 --- a/internal/aws/osis/pipeline_resource_gen.go +++ b/internal/aws/osis/pipeline_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -56,7 +57,14 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: PersistentBufferEnabled "persistent_buffer_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Whether persistent buffering should be enabled.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Key-value pairs to configure buffering.", @@ -88,7 +96,14 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: KmsKeyArn "kms_key_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The KMS key to use for encrypting data. By default an AWS owned key is used", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Key-value pairs to configure encryption at rest.", @@ -155,11 +170,16 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: LogGroup "log_group": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("\\/aws\\/vendedlogs\\/[\\.\\-_/#A-Za-z0-9]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The destination for OpenSearch Ingestion Service logs sent to Amazon CloudWatch.", @@ -310,18 +330,28 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -586,15 +616,18 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { "subnet_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "A list of subnet IDs associated with the VPC endpoint.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthBetween(15, 24), stringvalidator.RegexMatches(regexp.MustCompile("subnet-\\w{8}(\\w{9})?"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VpcAttachmentOptions @@ -603,15 +636,27 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: AttachToVpc "attach_to_vpc": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Whether the pipeline should be attached to the provided VPC", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CidrBlock "cidr_block": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The CIDR block to be reserved for OpenSearch Ingestion to create elastic network interfaces (ENIs).", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/(3[0-2]|[12]?[0-9])$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Options for attaching a VPC to the pipeline.", diff --git a/internal/aws/panorama/application_instance_resource_gen.go b/internal/aws/panorama/application_instance_resource_gen.go index 1d1725c768..65a010a281 100644 --- a/internal/aws/panorama/application_instance_resource_gen.go +++ b/internal/aws/panorama/application_instance_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -387,20 +388,30 @@ func applicationInstanceResource(ctx context.Context) (resource.Resource, error) // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^.+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^.+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/panorama/package_resource_gen.go b/internal/aws/panorama/package_resource_gen.go index d0a84c9a11..63d836355d 100644 --- a/internal/aws/panorama/package_resource_gen.go +++ b/internal/aws/panorama/package_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -212,20 +213,30 @@ func packageResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^.+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^.+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/paymentcryptography/key_resource_gen.go b/internal/aws/paymentcryptography/key_resource_gen.go index b4eefbfd03..6d48104006 100644 --- a/internal/aws/paymentcryptography/key_resource_gen.go +++ b/internal/aws/paymentcryptography/key_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -424,17 +425,27 @@ func keyResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/pcaconnectorad/template_resource_gen.go b/internal/aws/pcaconnectorad/template_resource_gen.go index 781fb6a809..9230f6f51f 100644 --- a/internal/aws/pcaconnectorad/template_resource_gen.go +++ b/internal/aws/pcaconnectorad/template_resource_gen.go @@ -15,6 +15,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" @@ -24,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -1243,14 +1245,20 @@ func templateResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Period "period": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(1.000000, 8766000.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PeriodType "period_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "HOURS", @@ -1259,24 +1267,41 @@ func templateResource(ctx context.Context) (resource.Resource, error) { "MONTHS", "YEARS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ValidityPeriod "validity_period": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Period "period": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(1.000000, 8766000.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PeriodType "period_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "HOURS", @@ -1285,13 +1310,31 @@ func templateResource(ctx context.Context) (resource.Resource, error) { "MONTHS", "YEARS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EnrollmentFlags "enrollment_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1337,7 +1380,14 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Extensions "extensions": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1450,11 +1500,16 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 100), listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1518,13 +1573,34 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: GeneralFlags "general_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1546,7 +1622,14 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PrivateKeyAttributes "private_key_attributes": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1569,30 +1652,48 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: KeySpec "key_spec": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "KEY_EXCHANGE", "SIGNATURE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinimalKeyLength "minimal_key_length": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.AtLeast(1.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PrivateKeyFlags "private_key_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ClientVersion "client_version": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "WINDOWS_SERVER_2003", @@ -1602,7 +1703,11 @@ func templateResource(ctx context.Context) (resource.Resource, error) { "WINDOWS_SERVER_2012_R2", "WINDOWS_SERVER_2016", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ExportableKey "exportable_key": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -1621,7 +1726,14 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubjectNameFlags "subject_name_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1707,7 +1819,14 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SupersededTemplates "superseded_templates": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -1743,14 +1862,20 @@ func templateResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Period "period": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(1.000000, 8766000.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PeriodType "period_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "HOURS", @@ -1759,24 +1884,41 @@ func templateResource(ctx context.Context) (resource.Resource, error) { "MONTHS", "YEARS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ValidityPeriod "validity_period": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Period "period": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(1.000000, 8766000.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PeriodType "period_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "HOURS", @@ -1785,13 +1927,31 @@ func templateResource(ctx context.Context) (resource.Resource, error) { "MONTHS", "YEARS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EnrollmentFlags "enrollment_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1837,7 +1997,14 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Extensions "extensions": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1950,11 +2117,16 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 100), listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2018,13 +2190,34 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: GeneralFlags "general_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2046,25 +2239,38 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HashAlgorithm "hash_algorithm": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "SHA256", "SHA384", "SHA512", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PrivateKeyAttributes "private_key_attributes": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Algorithm "algorithm": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "RSA", @@ -2072,7 +2278,11 @@ func templateResource(ctx context.Context) (resource.Resource, error) { "ECDH_P384", "ECDH_P521", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CryptoProviders "crypto_providers": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -2092,13 +2302,18 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: KeySpec "key_spec": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "KEY_EXCHANGE", "SIGNATURE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeyUsageProperty "key_usage_property": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2151,24 +2366,44 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinimalKeyLength "minimal_key_length": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.AtLeast(1.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PrivateKeyFlags "private_key_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ClientVersion "client_version": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "WINDOWS_SERVER_2008", @@ -2177,7 +2412,11 @@ func templateResource(ctx context.Context) (resource.Resource, error) { "WINDOWS_SERVER_2012_R2", "WINDOWS_SERVER_2016", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ExportableKey "exportable_key": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -2204,7 +2443,14 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubjectNameFlags "subject_name_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2290,7 +2536,14 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SupersededTemplates "superseded_templates": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -2326,14 +2579,20 @@ func templateResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Period "period": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(1.000000, 8766000.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PeriodType "period_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "HOURS", @@ -2342,24 +2601,41 @@ func templateResource(ctx context.Context) (resource.Resource, error) { "MONTHS", "YEARS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ValidityPeriod "validity_period": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Period "period": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(1.000000, 8766000.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PeriodType "period_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "HOURS", @@ -2368,13 +2644,31 @@ func templateResource(ctx context.Context) (resource.Resource, error) { "MONTHS", "YEARS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EnrollmentFlags "enrollment_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2420,7 +2714,14 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Extensions "extensions": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2533,11 +2834,16 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 100), listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2601,13 +2907,34 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: GeneralFlags "general_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2629,7 +2956,14 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HashAlgorithm "hash_algorithm": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2683,13 +3017,18 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: KeySpec "key_spec": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "KEY_EXCHANGE", "SIGNATURE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeyUsageProperty "key_usage_property": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2750,27 +3089,44 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: MinimalKeyLength "minimal_key_length": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.AtLeast(1.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PrivateKeyFlags "private_key_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ClientVersion "client_version": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "WINDOWS_SERVER_2012", "WINDOWS_SERVER_2012_R2", "WINDOWS_SERVER_2016", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ExportableKey "exportable_key": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -2813,7 +3169,14 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubjectNameFlags "subject_name_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2899,7 +3262,14 @@ func templateResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SupersededTemplates "superseded_templates": schema.ListAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/pcaconnectorscep/connector_resource_gen.go b/internal/aws/pcaconnectorscep/connector_resource_gen.go index fc536dde6f..c054b113b7 100644 --- a/internal/aws/pcaconnectorscep/connector_resource_gen.go +++ b/internal/aws/pcaconnectorscep/connector_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -115,19 +116,29 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AzureApplicationId "azure_application_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(15, 100), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9]{2,15}-[a-zA-Z0-9]{2,15}-[a-zA-Z0-9]{2,15}-[a-zA-Z0-9]{2,15}-[a-zA-Z0-9]{2,15}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Domain "domain": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9._-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/pipes/pipe_resource_gen.go b/internal/aws/pipes/pipe_resource_gen.go index b8e94518f0..db6671efd0 100644 --- a/internal/aws/pipes/pipe_resource_gen.go +++ b/internal/aws/pipes/pipe_resource_gen.go @@ -28,6 +28,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -1028,7 +1029,14 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaximumBatchingWindowInSeconds "maximum_batching_window_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -1043,13 +1051,16 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: QueueName "queue_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), stringvalidator.RegexMatches(regexp.MustCompile("^[\\s\\S]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.RequiresReplace(), + stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1154,15 +1165,18 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: StartingPosition "starting_position": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "TRIM_HORIZON", "LATEST", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.RequiresReplace(), + stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1303,16 +1317,19 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: StartingPosition "starting_position": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "TRIM_HORIZON", "LATEST", "AT_TIMESTAMP", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.RequiresReplace(), + stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StartingPositionTimestamp @@ -1423,13 +1440,16 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TopicName "topic_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 249), stringvalidator.RegexMatches(regexp.MustCompile("^[^.]([a-zA-Z0-9\\-_.]+)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.RequiresReplace(), + stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1470,7 +1490,14 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaximumBatchingWindowInSeconds "maximum_batching_window_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -1485,13 +1512,16 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: QueueName "queue_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), stringvalidator.RegexMatches(regexp.MustCompile("^[\\s\\S]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.RequiresReplace(), + stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VirtualHost @@ -1661,13 +1691,16 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TopicName "topic_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 249), stringvalidator.RegexMatches(regexp.MustCompile("^[^.]([a-zA-Z0-9\\-_.]+)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.RequiresReplace(), + stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Vpc @@ -2771,18 +2804,30 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "GPU", "MEMORY", "VCPU", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2838,11 +2883,25 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: JobDefinition "job_definition": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: JobName "job_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Parameters "parameters": // Pattern: "" @@ -2937,10 +2996,15 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: CapacityProvider "capacity_provider": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Weight "weight": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -3045,14 +3109,19 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: Subnets "subnets": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 16), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 1024), stringvalidator.RegexMatches(regexp.MustCompile("^subnet-[0-9a-z]*|(\\$(\\.[\\w/_-]+(\\[(\\d+|\\*)\\])*)*)$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3126,16 +3195,28 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "s3", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3175,17 +3256,29 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "GPU", "InferenceAccelerator", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3419,17 +3512,27 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3452,11 +3555,16 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TaskDefinitionArn "task_definition_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1600), stringvalidator.RegexMatches(regexp.MustCompile("^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-]+):([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.+)|(\\$(\\.[\\w/_-]+(\\[(\\d+|\\*)\\])*)*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3592,10 +3700,15 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: PartitionKey "partition_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -3634,10 +3747,15 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Redshift Database", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DbUser "db_user": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3668,13 +3786,18 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { "sqls": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "A list of SQLs.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 40), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 100000), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StatementName "statement_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3713,18 +3836,28 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*|(\\$(\\.[\\w/_-]+(\\[(\\d+|\\*)\\])*)*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3809,33 +3942,53 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DimensionName "dimension_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DimensionValue "dimension_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DimensionValueType "dimension_value_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "VARCHAR", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 128), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EpochTimeUnit "epoch_time_unit": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3863,14 +4016,20 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: MeasureValue "measure_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MeasureValueType "measure_value_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DOUBLE", @@ -3879,28 +4038,47 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { "BOOLEAN", "TIMESTAMP", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MultiMeasureAttributeName "multi_measure_attribute_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 256), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MultiMeasureName "multi_measure_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3919,21 +4097,32 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: MeasureName "measure_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MeasureValue "measure_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MeasureValueType "measure_value_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DOUBLE", @@ -3942,7 +4131,11 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { "BOOLEAN", "TIMESTAMP", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3971,10 +4164,15 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: TimeValue "time_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TimestampFormat "timestamp_format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3989,10 +4187,15 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: VersionValue "version_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/proton/environment_account_connection_resource_gen.go b/internal/aws/proton/environment_account_connection_resource_gen.go index 810d09776b..b1e719b86a 100644 --- a/internal/aws/proton/environment_account_connection_resource_gen.go +++ b/internal/aws/proton/environment_account_connection_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -240,18 +241,28 @@ func environmentAccountConnectionResource(ctx context.Context) (resource.Resourc // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The key of the resource tag.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The value of the resource tag.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/proton/environment_template_resource_gen.go b/internal/aws/proton/environment_template_resource_gen.go index e40f88973c..54d6282367 100644 --- a/internal/aws/proton/environment_template_resource_gen.go +++ b/internal/aws/proton/environment_template_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -188,18 +189,28 @@ func environmentTemplateResource(ctx context.Context) (resource.Resource, error) // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The key of the resource tag.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The value of the resource tag.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/proton/service_template_resource_gen.go b/internal/aws/proton/service_template_resource_gen.go index bf857ef427..58bbf67fba 100644 --- a/internal/aws/proton/service_template_resource_gen.go +++ b/internal/aws/proton/service_template_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -191,18 +192,28 @@ func serviceTemplateResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The key of the resource tag.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The value of the resource tag.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/qbusiness/application_resource_gen.go b/internal/aws/qbusiness/application_resource_gen.go index 3fa57cb6a8..6f61b548d3 100644 --- a/internal/aws/qbusiness/application_resource_gen.go +++ b/internal/aws/qbusiness/application_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -85,13 +86,18 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AttachmentsControlMode "attachments_control_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ENABLED", "DISABLED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -130,13 +136,18 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AutoSubscribe "auto_subscribe": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ENABLED", "DISABLED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DefaultSubscriptionType "default_subscription_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -379,13 +390,18 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: PersonalizationControlMode "personalization_control_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ENABLED", "DISABLED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -417,13 +433,18 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: QAppsControlMode "q_apps_control_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ENABLED", "DISABLED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -504,17 +525,27 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/qbusiness/data_source_resource_gen.go b/internal/aws/qbusiness/data_source_resource_gen.go index 671950c68f..ddfa7af2df 100644 --- a/internal/aws/qbusiness/data_source_resource_gen.go +++ b/internal/aws/qbusiness/data_source_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -443,15 +444,21 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_][a-zA-Z0-9_-]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "GREATER_THAN", @@ -466,7 +473,11 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { "NOT_EXISTS", "BEGINS_WITH", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -558,11 +569,16 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_][a-zA-Z0-9_-]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -643,15 +659,21 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_][a-zA-Z0-9_-]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "GREATER_THAN", @@ -666,7 +688,11 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { "NOT_EXISTS", "BEGINS_WITH", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -777,15 +803,21 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_][a-zA-Z0-9_-]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "GREATER_THAN", @@ -800,7 +832,11 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { "NOT_EXISTS", "BEGINS_WITH", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1021,17 +1057,27 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1113,30 +1159,36 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: SecurityGroupIds "security_group_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 10), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("^[-0-9a-zA-Z]+$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetIds "subnet_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("^[-0-9a-zA-Z]+$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/qbusiness/index_resource_gen.go b/internal/aws/qbusiness/index_resource_gen.go index e077dceb1f..99ef14cf72 100644 --- a/internal/aws/qbusiness/index_resource_gen.go +++ b/internal/aws/qbusiness/index_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -357,17 +358,27 @@ func indexResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/qbusiness/plugin_resource_gen.go b/internal/aws/qbusiness/plugin_resource_gen.go index 7d302584d6..6598487b10 100644 --- a/internal/aws/qbusiness/plugin_resource_gen.go +++ b/internal/aws/qbusiness/plugin_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -114,17 +115,27 @@ func pluginResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 1284), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretArn "secret_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 1284), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -147,17 +158,27 @@ func pluginResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 1284), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretArn "secret_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 1284), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -276,18 +297,28 @@ func pluginResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -297,23 +328,40 @@ func pluginResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ApiSchemaType "api_schema_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "OPEN_API_V3", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Description "description": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 200), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -445,17 +493,27 @@ func pluginResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/qbusiness/retriever_resource_gen.go b/internal/aws/qbusiness/retriever_resource_gen.go index a08f537cd7..b7107d4c9f 100644 --- a/internal/aws/qbusiness/retriever_resource_gen.go +++ b/internal/aws/qbusiness/retriever_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -95,11 +96,16 @@ func retrieverResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: IndexId "index_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(36, 36), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9][a-zA-Z0-9-]{35}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -113,11 +119,16 @@ func retrieverResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: IndexId "index_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(36, 36), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9][a-zA-Z0-9-]{35}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -259,17 +270,27 @@ func retrieverResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/qbusiness/web_experience_resource_gen.go b/internal/aws/qbusiness/web_experience_resource_gen.go index a668ff12b5..a5954871c9 100644 --- a/internal/aws/qbusiness/web_experience_resource_gen.go +++ b/internal/aws/qbusiness/web_experience_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -131,17 +132,27 @@ func webExperienceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: SecretsArn "secrets_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 1284), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretsRole "secrets_role": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 1284), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -155,11 +166,16 @@ func webExperienceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AuthenticationUrl "authentication_url": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1284), stringvalidator.RegexMatches(regexp.MustCompile("^https://.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -290,17 +306,27 @@ func webExperienceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/qldb/stream_resource_gen.go b/internal/aws/qldb/stream_resource_gen.go index d8b183cd66..e76888bbe4 100644 --- a/internal/aws/qldb/stream_resource_gen.go +++ b/internal/aws/qldb/stream_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -204,18 +205,28 @@ func streamResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/quicksight/analysis_resource_gen.go b/internal/aws/quicksight/analysis_resource_gen.go index cad51a477f..a81b9e2e45 100644 --- a/internal/aws/quicksight/analysis_resource_gen.go +++ b/internal/aws/quicksight/analysis_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -374,16 +375,28 @@ func analysisResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

A display name for the date-time parameter.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile(".*\\S.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "

The values for the date-time parameter.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -404,16 +417,28 @@ func analysisResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

A display name for the decimal parameter.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile(".*\\S.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.Float64Type, Description: "

The values for the decimal parameter.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -434,16 +459,28 @@ func analysisResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The name of the integer parameter.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile(".*\\S.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.Float64Type, Description: "

The values for the integer parameter.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -464,16 +501,28 @@ func analysisResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

A display name for a string parameter.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile(".*\\S.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "

The values of a string parameter.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -538,18 +587,28 @@ func analysisResource(ctx context.Context) (resource.Resource, error) { "actions": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "

The IAM action to grant or revoke permissions on.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 16), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Principal "principal": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Resource Name (ARN) of the principal. This can be one of the\n following:

\n
    \n
  • \n

    The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.)

    \n
  • \n
  • \n

    The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)

    \n
  • \n
  • \n

    The ARN of an AWS account root: This is an IAM ARN rather than a QuickSight\n ARN. Use this option only to share resources (templates) across AWS accounts.\n (This is less common.)

    \n
  • \n
", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -671,7 +730,14 @@ func analysisResource(ctx context.Context) (resource.Resource, error) { // Property: Arn "arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Resource Name (ARN) of the source template of an analysis.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DataSetReferences "data_set_references": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -680,23 +746,40 @@ func analysisResource(ctx context.Context) (resource.Resource, error) { // Property: DataSetArn "data_set_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Dataset Amazon Resource Name (ARN).

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DataSetPlaceholder "data_set_placeholder": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Dataset placeholder.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile(".*\\S.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

The dataset references of the source template of an analysis.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The source template of an analysis.

", @@ -771,18 +854,28 @@ func analysisResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Tag key.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Tag value.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/quicksight/dashboard_resource_gen.go b/internal/aws/quicksight/dashboard_resource_gen.go index a677bdedd4..9aa318ae3b 100644 --- a/internal/aws/quicksight/dashboard_resource_gen.go +++ b/internal/aws/quicksight/dashboard_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -426,16 +427,28 @@ func dashboardResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

A display name for the date-time parameter.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile(".*\\S.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "

The values for the date-time parameter.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -456,16 +469,28 @@ func dashboardResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

A display name for the decimal parameter.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile(".*\\S.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.Float64Type, Description: "

The values for the decimal parameter.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -486,16 +511,28 @@ func dashboardResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The name of the integer parameter.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile(".*\\S.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.Float64Type, Description: "

The values for the integer parameter.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -516,16 +553,28 @@ func dashboardResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

A display name for a string parameter.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile(".*\\S.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "

The values of a string parameter.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -590,18 +639,28 @@ func dashboardResource(ctx context.Context) (resource.Resource, error) { "actions": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "

The IAM action to grant or revoke permissions on.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 16), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Principal "principal": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Resource Name (ARN) of the principal. This can be one of the\n following:

\n
    \n
  • \n

    The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.)

    \n
  • \n
  • \n

    The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)

    \n
  • \n
  • \n

    The ARN of an AWS account root: This is an IAM ARN rather than a QuickSight\n ARN. Use this option only to share resources (templates) across AWS accounts.\n (This is less common.)

    \n
  • \n
", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -673,7 +732,14 @@ func dashboardResource(ctx context.Context) (resource.Resource, error) { // Property: Arn "arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Resource Name (ARN) of the resource.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DataSetReferences "data_set_references": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -682,23 +748,40 @@ func dashboardResource(ctx context.Context) (resource.Resource, error) { // Property: DataSetArn "data_set_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Dataset Amazon Resource Name (ARN).

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DataSetPlaceholder "data_set_placeholder": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Dataset placeholder.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile(".*\\S.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

Dataset references.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

Dashboard source template.

", @@ -751,18 +834,28 @@ func dashboardResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Tag key.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Tag value.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/quicksight/data_set_resource_gen.go b/internal/aws/quicksight/data_set_resource_gen.go index d60f8ceeca..c7d0cac4c2 100644 --- a/internal/aws/quicksight/data_set_resource_gen.go +++ b/internal/aws/quicksight/data_set_resource_gen.go @@ -27,6 +27,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -130,13 +131,18 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { "columns": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "

Columns in this hierarchy.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 16), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 128), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CountryCode "country_code": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -154,10 +160,15 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

A display name for the hierarchy.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

Geospatial column group that denotes a hierarchy.

", @@ -802,10 +813,15 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { // Property: ColumnName "column_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Column name.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Format "format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -821,7 +837,8 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: NewColumnType "new_column_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "STRING", @@ -829,7 +846,11 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { "DECIMAL", "DATETIME", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

A transform operation that casts a column to a different type.

", @@ -849,34 +870,54 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { // Property: ColumnId "column_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

A unique ID to identify a calculated column. During a dataset update, if the column ID\n of a calculated column matches that of an existing calculated column, Amazon QuickSight\n preserves the existing calculated column.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ColumnName "column_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Column name.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Expression "expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

An expression that defines the calculated column.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 4096), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

Calculated columns to create.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 128), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

A transform operation that creates calculated columns. Columns created in one such\n operation form a lexical closure.

", @@ -892,10 +933,15 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { // Property: ConditionExpression "condition_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

An expression that must evaluate to a Boolean value. Rows for which the expression\n evaluates to true are kept in the dataset.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 4096), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

A transform operation that filters rows based on a condition.

", @@ -912,10 +958,15 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { "projected_columns": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "

Projected columns.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 2000), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

A transform operation that projects columns. Operations that come after a projection\n can only refer to projected columns.

", @@ -931,18 +982,28 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { // Property: ColumnName "column_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The name of the column to be renamed.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NewColumnName "new_column_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The new name for the column.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

A transform operation that renames a column.

", @@ -958,10 +1019,15 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { // Property: ColumnName "column_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The column that this operation acts on.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Tags "tags": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1013,10 +1079,15 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

The dataset column tag, currently only used for geospatial type tagging. .

\n \n

This is not tags for the AWS tagging feature. .

\n
", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 16), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

A transform operation that tags a column with additional information.

", @@ -1074,19 +1145,29 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { // Property: LeftOperand "left_operand": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Left operand.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-zA-Z-]*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OnClause "on_clause": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

On Clause.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RightJoinKeyProperties "right_join_key_properties": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1109,15 +1190,21 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { // Property: RightOperand "right_operand": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Right operand.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-zA-Z-]*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "INNER", @@ -1125,7 +1212,11 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { "LEFT", "RIGHT", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

Join instruction.

", @@ -1284,18 +1375,28 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { "actions": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "

The IAM action to grant or revoke permissions on.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 16), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Principal "principal": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Resource Name (ARN) of the principal. This can be one of the\n following:

\n
    \n
  • \n

    The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.)

    \n
  • \n
  • \n

    The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)

    \n
  • \n
  • \n

    The ARN of an AWS account root: This is an IAM ARN rather than a QuickSight\n ARN. Use this option only to share resources (templates) across AWS accounts.\n (This is less common.)

    \n
  • \n
", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1553,14 +1654,20 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The name of this column in the underlying data source.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "STRING", @@ -1571,36 +1678,62 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { "BOOLEAN", "JSON", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

The column schema from the SQL query result set.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 2048), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DataSourceArn "data_source_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Resource Name (ARN) of the data source.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

A display name for the SQL query result.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SqlQuery "sql_query": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The SQL query.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 65536), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

A physical table type built from the results of the custom SQL query.

", @@ -1628,7 +1761,14 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { // Property: DataSourceArn "data_source_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Resource Name (ARN) for the data source.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InputColumns "input_columns": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1637,14 +1777,20 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The name of this column in the underlying data source.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "STRING", @@ -1655,23 +1801,37 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { "BOOLEAN", "JSON", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

The column schema of the table.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 2048), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The name of the relational table.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Schema "schema": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1699,7 +1859,14 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { // Property: DataSourceArn "data_source_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The amazon Resource Name (ARN) for the data source.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InputColumns "input_columns": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1708,14 +1875,20 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The name of this column in the underlying data source.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "STRING", @@ -1726,15 +1899,24 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { "BOOLEAN", "JSON", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

A physical table type for as S3 data source.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 2048), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: UploadSettings "upload_settings": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1871,7 +2053,14 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { // Property: Arn "arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Resource Name (ARN) of the permission dataset.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FormatVersion "format_version": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1902,13 +2091,18 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: PermissionPolicy "permission_policy": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "GRANT_ACCESS", "DENY_ACCESS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The row-level security configuration for the dataset.

", @@ -1955,18 +2149,28 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Tag key.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Tag value.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/quicksight/data_source_resource_gen.go b/internal/aws/quicksight/data_source_resource_gen.go index b4e2c76fa8..95f0edcc47 100644 --- a/internal/aws/quicksight/data_source_resource_gen.go +++ b/internal/aws/quicksight/data_source_resource_gen.go @@ -27,6 +27,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -692,10 +693,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Domain "domain": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The OpenSearch domain.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for OpenSearch.

", @@ -711,10 +717,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Domain "domain": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The OpenSearch domain.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for OpenSearch.

", @@ -765,18 +776,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -805,18 +826,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Aurora PostgreSQL database to connect to.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Aurora PostgreSQL-Compatible host to connect to.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -845,10 +876,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The host name of the Databricks data source.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -866,10 +902,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: SqlEndpointPath "sql_endpoint_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The HTTP path of the Databricks data source.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 4096), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters that are required to connect to a Databricks data source.

", @@ -885,18 +926,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -925,18 +976,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -965,18 +1026,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

An Oracle host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -1005,18 +1076,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -1045,18 +1126,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Catalog "catalog": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Catalog.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -1085,18 +1176,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InstanceId "instance_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Instance ID.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for Amazon RDS.

", @@ -1124,10 +1225,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1185,10 +1291,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Use the RoleArn structure to allow Amazon QuickSight to call redshift:GetClusterCredentials on your cluster. The calling principal must have iam:PassRole access to pass the role to Amazon QuickSight. The role's trust policy must allow the Amazon QuickSight service principal to assume the role.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

A structure that grants Amazon QuickSight access to your cluster and make a call to the redshift:GetClusterCredentials API. For more information on the redshift:GetClusterCredentials API, see \n GetClusterCredentials\n .

", @@ -1248,22 +1359,39 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Amazon S3 bucket.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Amazon S3 key that identifies an object.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

Amazon S3 manifest file location.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1291,26 +1419,41 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Warehouse "warehouse": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Warehouse.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for Snowflake.

", @@ -1326,10 +1469,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -1358,18 +1506,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -1398,18 +1556,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Catalog "catalog": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The catalog name for the Starburst data source.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The host name of the Starburst data source.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -1452,18 +1620,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -1492,18 +1670,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Catalog "catalog": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The catalog name for the Trino data source.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The host name of the Trino data source.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -2304,10 +2492,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Domain "domain": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The OpenSearch domain.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for OpenSearch.

", @@ -2323,10 +2516,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Domain "domain": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The OpenSearch domain.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for OpenSearch.

", @@ -2377,18 +2575,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -2417,18 +2625,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Aurora PostgreSQL database to connect to.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Aurora PostgreSQL-Compatible host to connect to.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -2457,10 +2675,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The host name of the Databricks data source.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -2478,10 +2701,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: SqlEndpointPath "sql_endpoint_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The HTTP path of the Databricks data source.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 4096), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters that are required to connect to a Databricks data source.

", @@ -2497,18 +2725,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -2537,18 +2775,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -2577,18 +2825,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

An Oracle host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -2617,18 +2875,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -2657,18 +2925,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Catalog "catalog": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Catalog.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -2697,18 +2975,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InstanceId "instance_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Instance ID.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for Amazon RDS.

", @@ -2736,10 +3024,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2797,10 +3090,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Use the RoleArn structure to allow Amazon QuickSight to call redshift:GetClusterCredentials on your cluster. The calling principal must have iam:PassRole access to pass the role to Amazon QuickSight. The role's trust policy must allow the Amazon QuickSight service principal to assume the role.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

A structure that grants Amazon QuickSight access to your cluster and make a call to the redshift:GetClusterCredentials API. For more information on the redshift:GetClusterCredentials API, see \n GetClusterCredentials\n .

", @@ -2860,22 +3158,39 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Amazon S3 bucket.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Amazon S3 key that identifies an object.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

Amazon S3 manifest file location.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2903,26 +3218,41 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Warehouse "warehouse": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Warehouse.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for Snowflake.

", @@ -2938,10 +3268,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -2970,18 +3305,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -3010,18 +3355,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Catalog "catalog": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The catalog name for the Starburst data source.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The host name of the Starburst data source.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -3064,18 +3419,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -3104,18 +3469,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Catalog "catalog": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The catalog name for the Trino data source.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The host name of the Trino data source.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -3153,18 +3528,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Password "password": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Password.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Username "username": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

User name.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The combination of user name and password that are used as credentials.

", @@ -3858,10 +4243,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Domain "domain": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The OpenSearch domain.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for OpenSearch.

", @@ -3877,10 +4267,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Domain "domain": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The OpenSearch domain.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for OpenSearch.

", @@ -3931,18 +4326,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -3971,18 +4376,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Aurora PostgreSQL database to connect to.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Aurora PostgreSQL-Compatible host to connect to.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -4011,10 +4426,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The host name of the Databricks data source.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -4032,10 +4452,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: SqlEndpointPath "sql_endpoint_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The HTTP path of the Databricks data source.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 4096), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters that are required to connect to a Databricks data source.

", @@ -4051,18 +4476,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -4091,18 +4526,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -4131,18 +4576,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

An Oracle host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -4171,18 +4626,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -4211,18 +4676,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Catalog "catalog": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Catalog.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -4251,18 +4726,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InstanceId "instance_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Instance ID.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for Amazon RDS.

", @@ -4290,10 +4775,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -4351,10 +4841,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Use the RoleArn structure to allow Amazon QuickSight to call redshift:GetClusterCredentials on your cluster. The calling principal must have iam:PassRole access to pass the role to Amazon QuickSight. The role's trust policy must allow the Amazon QuickSight service principal to assume the role.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

A structure that grants Amazon QuickSight access to your cluster and make a call to the redshift:GetClusterCredentials API. For more information on the redshift:GetClusterCredentials API, see \n GetClusterCredentials\n .

", @@ -4414,22 +4909,39 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Amazon S3 bucket.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Amazon S3 key that identifies an object.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

Amazon S3 manifest file location.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -4457,26 +4969,41 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Warehouse "warehouse": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Warehouse.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for Snowflake.

", @@ -4492,10 +5019,15 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -4524,18 +5056,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -4564,18 +5106,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Catalog "catalog": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The catalog name for the Starburst data source.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The host name of the Starburst data source.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -4618,18 +5170,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -4658,18 +5220,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Catalog "catalog": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The catalog name for the Trino data source.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The host name of the Trino data source.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -4840,18 +5412,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { "actions": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "

The IAM action to grant or revoke permissions on.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 20), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Principal "principal": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Resource Name (ARN) of the principal. This can be one of the\n following:

\n
    \n
  • \n

    The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.)

    \n
  • \n
  • \n

    The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)

    \n
  • \n
  • \n

    The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight\n ARN. Use this option only to share resources (templates) across Amazon Web Services accounts.\n (This is less common.)

    \n
  • \n
", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Resource "resource": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -4965,18 +5547,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Tag key.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Tag value.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5113,7 +5705,14 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: VpcConnectionArn "vpc_connection_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Resource Name (ARN) for the VPC connection.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

VPC connection properties.

", diff --git a/internal/aws/quicksight/template_resource_gen.go b/internal/aws/quicksight/template_resource_gen.go index 3fd703382b..9ed7bb4dfd 100644 --- a/internal/aws/quicksight/template_resource_gen.go +++ b/internal/aws/quicksight/template_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -159,18 +160,28 @@ func templateResource(ctx context.Context) (resource.Resource, error) { "actions": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "

The IAM action to grant or revoke permissions on.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 16), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Principal "principal": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Resource Name (ARN) of the principal. This can be one of the\n following:

\n
    \n
  • \n

    The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.)

    \n
  • \n
  • \n

    The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)

    \n
  • \n
  • \n

    The ARN of an AWS account root: This is an IAM ARN rather than a QuickSight\n ARN. Use this option only to share resources (templates) across AWS accounts.\n (This is less common.)

    \n
  • \n
", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -256,7 +267,14 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: Arn "arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Resource Name (ARN) of the resource.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DataSetReferences "data_set_references": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -265,23 +283,40 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: DataSetArn "data_set_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Dataset Amazon Resource Name (ARN).

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DataSetPlaceholder "data_set_placeholder": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Dataset placeholder.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile(".*\\S.*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

A structure containing information about the dataset references used as placeholders\n in the template.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The source analysis of the template.

", @@ -297,7 +332,14 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: Arn "arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Resource Name (ARN) of the resource.

", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The source template of the template.

", @@ -350,18 +392,28 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Tag key.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Tag value.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/quicksight/theme_resource_gen.go b/internal/aws/quicksight/theme_resource_gen.go index e692c82b74..e7509672a9 100644 --- a/internal/aws/quicksight/theme_resource_gen.go +++ b/internal/aws/quicksight/theme_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -764,18 +765,28 @@ func themeResource(ctx context.Context) (resource.Resource, error) { "actions": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "

The IAM action to grant or revoke permissions on.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 20), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Principal "principal": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Resource Name (ARN) of the principal. This can be one of the\n following:

\n
    \n
  • \n

    The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.)

    \n
  • \n
  • \n

    The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)

    \n
  • \n
  • \n

    The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight\n ARN. Use this option only to share resources (templates) across Amazon Web Services accounts.\n (This is less common.)

    \n
  • \n
", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -825,18 +836,28 @@ func themeResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Tag key.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Tag value.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/quicksight/topic_resource_gen.go b/internal/aws/quicksight/topic_resource_gen.go index c59b393a11..600c55e8a2 100644 --- a/internal/aws/quicksight/topic_resource_gen.go +++ b/internal/aws/quicksight/topic_resource_gen.go @@ -26,6 +26,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -1249,10 +1250,15 @@ func topicResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: CalculatedFieldName "calculated_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CalculatedFieldSynonyms "calculated_field_synonyms": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -1567,10 +1573,15 @@ func topicResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Expression "expression": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 4096), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IsIncludedInTopic "is_included_in_topic": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -1854,10 +1865,15 @@ func topicResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: ColumnName "column_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ColumnSynonyms "column_synonyms": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -2325,7 +2341,14 @@ func topicResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: DatasetArn "dataset_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatasetDescription "dataset_description": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2560,10 +2583,15 @@ func topicResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: FilterName "filter_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FilterSynonyms "filter_synonyms": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -2768,10 +2796,15 @@ func topicResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: OperandFieldName "operand_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RelativeDateFilter "relative_date_filter": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2989,10 +3022,15 @@ func topicResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: EntityName "entity_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EntitySynonyms "entity_synonyms": schema.ListAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/quicksight/vpc_connection_resource_gen.go b/internal/aws/quicksight/vpc_connection_resource_gen.go index fe06a4bfd2..684c0b536b 100644 --- a/internal/aws/quicksight/vpc_connection_resource_gen.go +++ b/internal/aws/quicksight/vpc_connection_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -387,18 +388,28 @@ func vPCConnectionResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Tag key.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Tag value.

", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ram/permission_resource_gen.go b/internal/aws/ram/permission_resource_gen.go index a5c847e768..c5ea1e8eab 100644 --- a/internal/aws/ram/permission_resource_gen.go +++ b/internal/aws/ram/permission_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -146,18 +147,28 @@ func permissionResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/rds/custom_db_engine_version_resource_gen.go b/internal/aws/rds/custom_db_engine_version_resource_gen.go index 7717e10222..5f41642e97 100644 --- a/internal/aws/rds/custom_db_engine_version_resource_gen.go +++ b/internal/aws/rds/custom_db_engine_version_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -285,10 +286,15 @@ func customDBEngineVersionResource(ctx context.Context) (resource.Resource, erro // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/rds/db_cluster_parameter_group_resource_gen.go b/internal/aws/rds/db_cluster_parameter_group_resource_gen.go index e169903a7b..e5bc3968f3 100644 --- a/internal/aws/rds/db_cluster_parameter_group_resource_gen.go +++ b/internal/aws/rds/db_cluster_parameter_group_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -127,10 +128,15 @@ func dBClusterParameterGroupResource(ctx context.Context) (resource.Resource, er // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-@]*)$\").", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/rds/db_cluster_resource_gen.go b/internal/aws/rds/db_cluster_resource_gen.go index 4e5418f512..f8aa2cf8f6 100644 --- a/internal/aws/rds/db_cluster_resource_gen.go +++ b/internal/aws/rds/db_cluster_resource_gen.go @@ -28,6 +28,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -94,7 +95,14 @@ func dBClusterResource(ctx context.Context) (resource.Resource, error) { // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1233,10 +1241,15 @@ func dBClusterResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-@]*)$\").", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/rds/db_instance_resource_gen.go b/internal/aws/rds/db_instance_resource_gen.go index 31ae87ab44..c093289b20 100644 --- a/internal/aws/rds/db_instance_resource_gen.go +++ b/internal/aws/rds/db_instance_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -102,12 +103,26 @@ func dBInstanceResource(ctx context.Context) (resource.Resource, error) { // Property: FeatureName "feature_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the feature associated with the AWS Identity and Access Management (IAM) role. IAM roles that are associated with a DB instance grant permission for the DB instance to access other AWS services on your behalf. For the list of supported feature names, see the ``SupportedFeatureNames`` description in [DBEngineVersion](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DBEngineVersion.html) in the *Amazon RDS API Reference*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the IAM role that is associated with the DB instance.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1433,10 +1448,15 @@ func dBInstanceResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-@]*)$\").", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/rds/db_parameter_group_resource_gen.go b/internal/aws/rds/db_parameter_group_resource_gen.go index 3615911ae4..b0d1b648bf 100644 --- a/internal/aws/rds/db_parameter_group_resource_gen.go +++ b/internal/aws/rds/db_parameter_group_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -132,10 +133,15 @@ func dBParameterGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-@]*)$\").", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/rds/db_subnet_group_resource_gen.go b/internal/aws/rds/db_subnet_group_resource_gen.go index d6b24cfb8d..ee5c4147e2 100644 --- a/internal/aws/rds/db_subnet_group_resource_gen.go +++ b/internal/aws/rds/db_subnet_group_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -111,10 +112,15 @@ func dBSubnetGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-@]*)$\").", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/rds/event_subscription_resource_gen.go b/internal/aws/rds/event_subscription_resource_gen.go index f967e3a05e..0a7923bdd1 100644 --- a/internal/aws/rds/event_subscription_resource_gen.go +++ b/internal/aws/rds/event_subscription_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -180,10 +181,15 @@ func eventSubscriptionResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-@]*)$\").", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/rds/integration_resource_gen.go b/internal/aws/rds/integration_resource_gen.go index 1d0f3dc39c..367aa59102 100644 --- a/internal/aws/rds/integration_resource_gen.go +++ b/internal/aws/rds/integration_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -215,10 +216,15 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-@]*)$\").", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/rds/option_group_resource_gen.go b/internal/aws/rds/option_group_resource_gen.go index b6fd744ccc..d81d420eb7 100644 --- a/internal/aws/rds/option_group_resource_gen.go +++ b/internal/aws/rds/option_group_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -143,7 +144,14 @@ func optionGroupResource(ctx context.Context) (resource.Resource, error) { // Property: OptionName "option_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The configuration of options to include in a group.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OptionSettings "option_settings": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -281,10 +289,15 @@ func optionGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-@]*)$\").", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/redshift/cluster_parameter_group_resource_gen.go b/internal/aws/redshift/cluster_parameter_group_resource_gen.go index 1217cd01ba..9e75c6a855 100644 --- a/internal/aws/redshift/cluster_parameter_group_resource_gen.go +++ b/internal/aws/redshift/cluster_parameter_group_resource_gen.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -107,12 +108,26 @@ func clusterParameterGroupResource(ctx context.Context) (resource.Resource, erro // Property: ParameterName "parameter_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the parameter.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParameterValue "parameter_value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of the parameter. If `ParameterName` is `wlm_json_configuration`, then the maximum size of `ParameterValue` is 8000 characters.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -161,18 +176,28 @@ func clusterParameterGroupResource(ctx context.Context) (resource.Resource, erro // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/redshift/cluster_resource_gen.go b/internal/aws/redshift/cluster_resource_gen.go index 372f541e09..1c0f93bc4f 100644 --- a/internal/aws/redshift/cluster_resource_gen.go +++ b/internal/aws/redshift/cluster_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -997,18 +998,28 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/redshift/cluster_subnet_group_resource_gen.go b/internal/aws/redshift/cluster_subnet_group_resource_gen.go index 4e63f362b7..3504362f10 100644 --- a/internal/aws/redshift/cluster_subnet_group_resource_gen.go +++ b/internal/aws/redshift/cluster_subnet_group_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -120,18 +121,28 @@ func clusterSubnetGroupResource(ctx context.Context) (resource.Resource, error) // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/redshift/event_subscription_resource_gen.go b/internal/aws/redshift/event_subscription_resource_gen.go index 6af49cb479..766b98bf99 100644 --- a/internal/aws/redshift/event_subscription_resource_gen.go +++ b/internal/aws/redshift/event_subscription_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -330,18 +331,28 @@ func eventSubscriptionResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/redshift/scheduled_action_resource_gen.go b/internal/aws/redshift/scheduled_action_resource_gen.go index 9814eb62d0..39b4c5d588 100644 --- a/internal/aws/redshift/scheduled_action_resource_gen.go +++ b/internal/aws/redshift/scheduled_action_resource_gen.go @@ -16,9 +16,11 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -262,7 +264,14 @@ func scheduledActionResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ClusterIdentifier "cluster_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Describes a pause cluster operation. For example, a scheduled action to run the `PauseCluster` API operation.", @@ -285,7 +294,14 @@ func scheduledActionResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: ClusterIdentifier "cluster_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ClusterType "cluster_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -324,7 +340,14 @@ func scheduledActionResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ClusterIdentifier "cluster_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Describes a resume cluster operation. For example, a scheduled action to run the `ResumeCluster` API operation.", diff --git a/internal/aws/redshiftserverless/namespace_resource_gen.go b/internal/aws/redshiftserverless/namespace_resource_gen.go index 432dfe8a53..4386899a13 100644 --- a/internal/aws/redshiftserverless/namespace_resource_gen.go +++ b/internal/aws/redshiftserverless/namespace_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -499,7 +500,14 @@ func namespaceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: DestinationRegion "destination_region": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SnapshotRetentionPeriod "snapshot_retention_period": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -557,17 +565,27 @@ func namespaceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/redshiftserverless/workgroup_resource_gen.go b/internal/aws/redshiftserverless/workgroup_resource_gen.go index 959eca6824..afca97c56c 100644 --- a/internal/aws/redshiftserverless/workgroup_resource_gen.go +++ b/internal/aws/redshiftserverless/workgroup_resource_gen.go @@ -26,6 +26,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -306,17 +307,27 @@ func workgroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/refactorspaces/application_resource_gen.go b/internal/aws/refactorspaces/application_resource_gen.go index 7778ab4f3a..9ec1a6eeff 100644 --- a/internal/aws/refactorspaces/application_resource_gen.go +++ b/internal/aws/refactorspaces/application_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -288,18 +289,28 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string used to identify this tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string containing the value for the tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/refactorspaces/environment_resource_gen.go b/internal/aws/refactorspaces/environment_resource_gen.go index 8e7c4c8bf5..3d56d5cc37 100644 --- a/internal/aws/refactorspaces/environment_resource_gen.go +++ b/internal/aws/refactorspaces/environment_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -160,18 +161,28 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string used to identify this tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string containing the value for the tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/refactorspaces/route_resource_gen.go b/internal/aws/refactorspaces/route_resource_gen.go index 5a56a6fc0a..a65805f5a1 100644 --- a/internal/aws/refactorspaces/route_resource_gen.go +++ b/internal/aws/refactorspaces/route_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -89,13 +90,18 @@ func routeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ActivationState "activation_state": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "INACTIVE", "ACTIVE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -232,18 +238,28 @@ func routeResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string used to identify this tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string containing the value for the tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -306,13 +322,18 @@ func routeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ActivationState "activation_state": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "INACTIVE", "ACTIVE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AppendSourcePath "append_source_path": schema.BoolAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/refactorspaces/service_resource_gen.go b/internal/aws/refactorspaces/service_resource_gen.go index 13b5b37689..994c8d4706 100644 --- a/internal/aws/refactorspaces/service_resource_gen.go +++ b/internal/aws/refactorspaces/service_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -149,11 +150,16 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Arn "arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -236,18 +242,28 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string used to identify this tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string containing the value for the tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -299,11 +315,16 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Url "url": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^https?://[-a-zA-Z0-9+\\x38@#/%?=~_|!:,.;]*[-a-zA-Z0-9+\\x38@#/%=~_|]$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/rekognition/collection_resource_gen.go b/internal/aws/rekognition/collection_resource_gen.go index 1d22dedcb7..ea396f3827 100644 --- a/internal/aws/rekognition/collection_resource_gen.go +++ b/internal/aws/rekognition/collection_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -104,19 +105,29 @@ func collectionResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("\\A[a-zA-Z0-9+\\-=\\._\\:\\/@]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/resiliencehub/app_resource_gen.go b/internal/aws/resiliencehub/app_resource_gen.go index 71e89ed898..7d53097b13 100644 --- a/internal/aws/resiliencehub/app_resource_gen.go +++ b/internal/aws/resiliencehub/app_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -172,21 +173,31 @@ func appResource(ctx context.Context) (resource.Resource, error) { // Property: EventType "event_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of event you would like to subscribe and get notification for.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ScheduledAssessmentFailure", "DriftDetected", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Unique name to identify an event subscription.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SnsTopicArn "sns_topic_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -286,13 +297,18 @@ func appResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Defines how AWS Resilience Hub scans your resources. It can scan for the resources by using a pre-existing role in your AWS account, or by using the credentials of the current IAM user.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "LegacyIAMUser", "RoleBased", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Defines the roles and credentials that AWS Resilience Hub would use while creating the application, importing its resources, and running an assessment.", diff --git a/internal/aws/resiliencehub/resiliency_policy_resource_gen.go b/internal/aws/resiliencehub/resiliency_policy_resource_gen.go index aa101bddc8..1b91ee3144 100644 --- a/internal/aws/resiliencehub/resiliency_policy_resource_gen.go +++ b/internal/aws/resiliencehub/resiliency_policy_resource_gen.go @@ -12,6 +12,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -20,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -189,12 +191,26 @@ func resiliencyPolicyResource(ctx context.Context) (resource.Resource, error) { // Property: RpoInSecs "rpo_in_secs": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "RPO in seconds.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RtoInSecs "rto_in_secs": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "RTO in seconds.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Failure Policy.", diff --git a/internal/aws/resourceexplorer2/view_resource_gen.go b/internal/aws/resourceexplorer2/view_resource_gen.go index c5959a5df3..314b1d864b 100644 --- a/internal/aws/resourceexplorer2/view_resource_gen.go +++ b/internal/aws/resourceexplorer2/view_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -52,10 +53,15 @@ func viewResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: FilterString "filter_string": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -89,10 +95,15 @@ func viewResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1011), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/robomaker/robot_application_resource_gen.go b/internal/aws/robomaker/robot_application_resource_gen.go index 5bb9c9d340..461d624e34 100644 --- a/internal/aws/robomaker/robot_application_resource_gen.go +++ b/internal/aws/robomaker/robot_application_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -208,7 +209,8 @@ func robotApplicationResource(ctx context.Context) (resource.Resource, error) { // Property: Architecture "architecture": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The architecture of robot application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), stringvalidator.OneOf( @@ -216,17 +218,35 @@ func robotApplicationResource(ctx context.Context) (resource.Resource, error) { "ARM64", "ARMHF", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Bucket "s3_bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Arn of the S3Bucket that stores the robot application source.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Key "s3_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The s3 key of robot application source.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/robomaker/simulation_application_resource_gen.go b/internal/aws/robomaker/simulation_application_resource_gen.go index d057ce982d..b21aae9587 100644 --- a/internal/aws/robomaker/simulation_application_resource_gen.go +++ b/internal/aws/robomaker/simulation_application_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -128,20 +129,30 @@ func simulationApplicationResource(ctx context.Context) (resource.Resource, erro // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the rendering engine.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "OGRE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Version "version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The version of the rendering engine.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("1.x"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The rendering engine for the simulation application.", @@ -340,30 +351,45 @@ func simulationApplicationResource(ctx context.Context) (resource.Resource, erro // Property: Architecture "architecture": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The target processor architecture for the application.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "X86_64", "ARM64", "ARMHF", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Bucket "s3_bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 bucket name.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("[a-z0-9][a-z0-9.\\-]*[a-z0-9]"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Key "s3_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The s3 object key.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/rolesanywhere/crl_resource_gen.go b/internal/aws/rolesanywhere/crl_resource_gen.go index 627d431d69..dca83c31fc 100644 --- a/internal/aws/rolesanywhere/crl_resource_gen.go +++ b/internal/aws/rolesanywhere/crl_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -107,17 +108,27 @@ func cRLResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/rolesanywhere/profile_resource_gen.go b/internal/aws/rolesanywhere/profile_resource_gen.go index faaaa82e7f..947983882a 100644 --- a/internal/aws/rolesanywhere/profile_resource_gen.go +++ b/internal/aws/rolesanywhere/profile_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -89,14 +90,19 @@ func profileResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: CertificateField "certificate_field": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "x509Subject", "x509Issuer", "x509SAN", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MappingRules "mapping_rules": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -104,11 +110,25 @@ func profileResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Specifier "specifier": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -279,17 +299,27 @@ func profileResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/rolesanywhere/trust_anchor_resource_gen.go b/internal/aws/rolesanywhere/trust_anchor_resource_gen.go index 50b82660b5..3b8b9345af 100644 --- a/internal/aws/rolesanywhere/trust_anchor_resource_gen.go +++ b/internal/aws/rolesanywhere/trust_anchor_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -111,17 +112,29 @@ func trustAnchorResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Event "event": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "CA_CERTIFICATE_EXPIRY", "END_ENTITY_CERTIFICATE_EXPIRY", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Threshold "threshold": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -252,17 +265,27 @@ func trustAnchorResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/route53/cidr_collection_resource_gen.go b/internal/aws/route53/cidr_collection_resource_gen.go index 59b21778ba..a5e16114dc 100644 --- a/internal/aws/route53/cidr_collection_resource_gen.go +++ b/internal/aws/route53/cidr_collection_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -98,15 +99,27 @@ func cidrCollectionResource(ctx context.Context) (resource.Resource, error) { "cidr_list": schema.SetAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "A list of CIDR blocks.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Set{ /*START VALIDATORS*/ + fwvalidators.NotNullSet(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LocationName "location_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the location that is associated with the CIDR collection.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 16), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/route53/health_check_resource_gen.go b/internal/aws/route53/health_check_resource_gen.go index 2ae1c10abc..4420986d75 100644 --- a/internal/aws/route53/health_check_resource_gen.go +++ b/internal/aws/route53/health_check_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -165,15 +166,27 @@ func healthCheckResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the CloudWatch alarm that you want Amazon Route 53 health checkers to use to determine whether this health check is healthy.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Region "region": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "For the CloudWatch alarm that you want Route 53 health checkers to use to determine whether this health check is healthy, the region that the alarm was created in.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A complex type that identifies the CloudWatch alarm that you want Amazon Route 53 health checkers to use to determine whether the specified health check is healthy.", @@ -421,18 +434,28 @@ func healthCheckResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/route53/hosted_zone_resource_gen.go b/internal/aws/route53/hosted_zone_resource_gen.go index 248cedbf0b..fd72b6041d 100644 --- a/internal/aws/route53/hosted_zone_resource_gen.go +++ b/internal/aws/route53/hosted_zone_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -103,18 +104,28 @@ func hostedZoneResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of ``Key`` depends on the operation that you want to perform:\n + *Add a tag to a health check or hosted zone*: ``Key`` is the name that you want to give the new tag.\n + *Edit a tag*: ``Key`` is the name of the tag that you want to change the ``Value`` for.\n + *Delete a key*: ``Key`` is the name of the tag you want to remove.\n + *Give a name to a health check*: Edit the default ``Name`` tag. In the Amazon Route 53 console, the list of your health checks includes a *Name* column that lets you see the name that you've given to each health check.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value of ``Value`` depends on the operation that you want to perform:\n + *Add a tag to a health check or hosted zone*: ``Value`` is the value that you want to give the new tag.\n + *Edit a tag*: ``Value`` is the new value that you want to assign the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -204,7 +215,14 @@ func hostedZoneResource(ctx context.Context) (resource.Resource, error) { // Property: CloudWatchLogsLogGroupArn "cloudwatch_logs_log_group_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the CloudWatch Logs log group that Amazon Route 53 is publishing logs to.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Creates a configuration for DNS query logging. After you create a query logging configuration, Amazon Route 53 begins to publish log data to an Amazon CloudWatch Logs log group.\n DNS query logs contain information about the queries that Route 53 receives for a specified public hosted zone, such as the following:\n + Route 53 edge location that responded to the DNS query\n + Domain or subdomain that was requested\n + DNS record type, such as A or AAAA\n + DNS response code, such as ``NoError`` or ``ServFail`` \n \n + Log Group and Resource Policy Before you create a query logging configuration, perform the following operations. If you create a query logging configuration using the Route 53 console, Route 53 performs these operations automatically. Create a CloudWatch Logs log group, and make note of the ARN, which you specify when you create a query logging configuration. Note the following: You must create the log group in the us-east-1 region. You must use the same to create the log group and the hosted zone that you want to configure query logging for. When you create log groups for query logging, we recommend that you use a consistent prefix, for example: /aws/route53/hosted zone name In the next step, you'll create a resource policy, which controls access to one or more log groups and the associated resources, such as Route 53 hosted zones. There's a limit on the number of resource policies that you can create, so we recommend that you use a consistent prefix so you can use the same resource policy for all the log groups that you create for query logging. Create a CloudWatch Logs resource policy, and give it the permissions that Route 53 needs to create log streams and to send query logs to log streams. You must create the CloudWatch Logs resource policy in the us-east-1 region. For the value of Resource, specify the ARN for the log group that you created in the previous step. To use the same resource policy for all the CloudWatch Logs log groups that you created for query logging configurations, replace the hosted zone name with *, for example: arn:aws:logs:us-east-1:123412341234:log-group:/aws/route53/* To avoid the confused deputy problem, a security issue where an entity without a permission for an action can coerce a more-privileged entity to perform it, you can optionally limit the permissions that a service has to a resource in a resource-based policy by supplying the following values: For aws:SourceArn, supply the hosted zone ARN used in creating the query logging configuration. For example, aws:SourceArn: arn:aws:route53:::hostedzone/hosted zone ID. For aws:SourceAccount, supply the account ID for the account that creates the query logging configuration. For example, aws:SourceAccount:111111111111. For more information, see The confused deputy problem in the IAM User Guide. You can't use the CloudWatch console to create or edit a resource policy. You must use the CloudWatch API, one of the SDKs, or the . + Log Streams and Edge Locations When Route 53 finishes creating the configuration for DNS query logging, it does the following: Creates a log stream for an edge location the first time that the edge location responds to DNS queries for the specified hosted zone. That log stream is used to log all queries that Route 53 responds to for that edge location. Begins to send query logs to the applicable log stream. The name of each log stream is in the following format: hosted zone ID/edge location code The edge location code is a three-letter code and an arbitrarily assigned number, for example, DFW3. The three-letter code typically corresponds with the International Air Transport Association airport code for an airport near the edge location. (These abbreviations might change in the future.) For a list of edge locations, see \"The Route 53 Global Network\" on the Route 53 Product Details page. + Queries That Are Logged Query logs contain only the queries that DNS resolvers forward to Route 53. If a DNS resolver has already cached the response to a query (such as the IP address for a load balancer for example.com), the resolver will continue to return the cached response. It doesn't forward another query to Route 53 until the TTL for the corresponding resource record set expires. Depending on how many DNS queries are submitted for a resource record set, and depending on the TTL for that resource record set, query logs might contain information about only one query out of every several thousand queries that are submitted to DNS. For more information about how DNS works, see Routing Internet Traffic to Your Website or Web Application in the Amazon Route 53 Developer Guide. + Log File Format For a list of the values in each query log and the format of each value, see Logging DNS Queries in the Amazon Route 53 Developer Guide. + Pricing For information about charges for query logs, see Amazon CloudWatch Pricing. + How to Stop Logging If you want Route 53 to stop sending query logs to CloudWatch Logs, delete the query logging configuration. For more information, see DeleteQueryLoggingConfig.", @@ -252,12 +270,26 @@ func hostedZoneResource(ctx context.Context) (resource.Resource, error) { // Property: VPCId "vpc_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "*Private hosted zones only:* The ID of an Amazon VPC.\n For public hosted zones, omit ``VPCs``, ``VPCId``, and ``VPCRegion``.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VPCRegion "vpc_region": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "*Private hosted zones only:* The region that an Amazon VPC was created in.\n For public hosted zones, omit ``VPCs``, ``VPCId``, and ``VPCRegion``.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/route53profiles/profile_association_resource_gen.go b/internal/aws/route53profiles/profile_association_resource_gen.go index dd5a8dee37..c438d53745 100644 --- a/internal/aws/route53profiles/profile_association_resource_gen.go +++ b/internal/aws/route53profiles/profile_association_resource_gen.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -136,18 +137,28 @@ func profileAssociationResource(ctx context.Context) (resource.Resource, error) // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/route53profiles/profile_resource_gen.go b/internal/aws/route53profiles/profile_resource_gen.go index 314631ba67..5dffda8836 100644 --- a/internal/aws/route53profiles/profile_resource_gen.go +++ b/internal/aws/route53profiles/profile_resource_gen.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -127,18 +128,28 @@ func profileResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/route53recoverycontrol/cluster_resource_gen.go b/internal/aws/route53recoverycontrol/cluster_resource_gen.go index 4638277967..a4d563231a 100644 --- a/internal/aws/route53recoverycontrol/cluster_resource_gen.go +++ b/internal/aws/route53recoverycontrol/cluster_resource_gen.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -158,17 +159,27 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/route53recoverycontrol/control_panel_resource_gen.go b/internal/aws/route53recoverycontrol/control_panel_resource_gen.go index ef806b38a3..3744c33824 100644 --- a/internal/aws/route53recoverycontrol/control_panel_resource_gen.go +++ b/internal/aws/route53recoverycontrol/control_panel_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -160,17 +161,27 @@ func controlPanelResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/route53recoverycontrol/safety_rule_resource_gen.go b/internal/aws/route53recoverycontrol/safety_rule_resource_gen.go index dfd68cb488..636ed87ef8 100644 --- a/internal/aws/route53recoverycontrol/safety_rule_resource_gen.go +++ b/internal/aws/route53recoverycontrol/safety_rule_resource_gen.go @@ -11,6 +11,8 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -19,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -61,15 +64,27 @@ func safetyRuleResource(ctx context.Context) (resource.Resource, error) { "asserted_controls": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The routing controls that are part of transactions that are evaluated to determine if a request to change a routing control state is allowed. For example, you might include three routing controls, one for each of three AWS Regions.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WaitPeriodMs "wait_period_ms": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent \"flapping\" of state. The wait period is 5000 ms by default, but you can choose a custom value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "An assertion rule enforces that, when a routing control state is changed, that the criteria set by the rule configuration is met. Otherwise, the change to the routing control is not accepted.", @@ -135,24 +150,41 @@ func safetyRuleResource(ctx context.Context) (resource.Resource, error) { "gating_controls": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The gating controls for the gating rule. That is, routing controls that are evaluated by the rule configuration that you specify.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TargetControls "target_controls": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "Routing controls that can only be set or unset if the specified RuleConfig evaluates to true for the specified GatingControls. For example, say you have three gating controls, one for each of three AWS Regions. Now you specify AtLeast 2 as your RuleConfig. With these settings, you can only change (set or unset) the routing controls that you have specified as TargetControls if that rule evaluates to true. \nIn other words, your ability to change the routing controls that you have specified as TargetControls is gated by the rule that you set for the routing controls in GatingControls.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WaitPeriodMs "wait_period_ms": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent \"flapping\" of state. The wait period is 5000 ms by default, but you can choose a custom value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A gating rule verifies that a set of gating controls evaluates as true, based on a rule configuration that you specify. If the gating rule evaluates to true, Amazon Route 53 Application Recovery Controller allows a set of routing control state changes to run and complete against the set of target controls.", @@ -214,24 +246,43 @@ func safetyRuleResource(ctx context.Context) (resource.Resource, error) { // Property: Inverted "inverted": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Logical negation of the rule. If the rule would usually evaluate true, it's evaluated as false, and vice versa.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Threshold "threshold": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The value of N, when you specify an ATLEAST rule type. That is, Threshold is the number of controls that must be set when you specify an ATLEAST type.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A rule can be one of the following: ATLEAST, AND, or OR.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "AND", "OR", "ATLEAST", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The rule configuration for an assertion rule or gating rule. This is the criteria that you set for specific assertion controls (routing controls) or gating controls. This configuration specifies how many controls must be enabled after a transaction completes.", @@ -306,17 +357,27 @@ func safetyRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/route53recoveryreadiness/cell_resource_gen.go b/internal/aws/route53recoveryreadiness/cell_resource_gen.go index 9eb052ecaa..78151072b4 100644 --- a/internal/aws/route53recoveryreadiness/cell_resource_gen.go +++ b/internal/aws/route53recoveryreadiness/cell_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -142,11 +143,25 @@ func cellResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/route53recoveryreadiness/readiness_check_resource_gen.go b/internal/aws/route53recoveryreadiness/readiness_check_resource_gen.go index 3c84968f04..17295a674b 100644 --- a/internal/aws/route53recoveryreadiness/readiness_check_resource_gen.go +++ b/internal/aws/route53recoveryreadiness/readiness_check_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -117,11 +118,25 @@ func readinessCheckResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/route53recoveryreadiness/recovery_group_resource_gen.go b/internal/aws/route53recoveryreadiness/recovery_group_resource_gen.go index c6dcdde87d..dee81354fe 100644 --- a/internal/aws/route53recoveryreadiness/recovery_group_resource_gen.go +++ b/internal/aws/route53recoveryreadiness/recovery_group_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -127,11 +128,25 @@ func recoveryGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/route53recoveryreadiness/resource_set_resource_gen.go b/internal/aws/route53recoveryreadiness/resource_set_resource_gen.go index 1cfece2366..c5e51731d4 100644 --- a/internal/aws/route53recoveryreadiness/resource_set_resource_gen.go +++ b/internal/aws/route53recoveryreadiness/resource_set_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -356,11 +357,25 @@ func resourceSetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/route53resolver/firewall_domain_list_resource_gen.go b/internal/aws/route53resolver/firewall_domain_list_resource_gen.go index 7aed2dcade..bb948d116d 100644 --- a/internal/aws/route53resolver/firewall_domain_list_resource_gen.go +++ b/internal/aws/route53resolver/firewall_domain_list_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -289,18 +290,28 @@ func firewallDomainListResource(ctx context.Context) (resource.Resource, error) // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/route53resolver/firewall_rule_group_association_resource_gen.go b/internal/aws/route53resolver/firewall_rule_group_association_resource_gen.go index c19256db5c..6980bbb397 100644 --- a/internal/aws/route53resolver/firewall_rule_group_association_resource_gen.go +++ b/internal/aws/route53resolver/firewall_rule_group_association_resource_gen.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -271,18 +272,28 @@ func firewallRuleGroupAssociationResource(ctx context.Context) (resource.Resourc // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/route53resolver/firewall_rule_group_resource_gen.go b/internal/aws/route53resolver/firewall_rule_group_resource_gen.go index f320456773..a4bb8872f3 100644 --- a/internal/aws/route53resolver/firewall_rule_group_resource_gen.go +++ b/internal/aws/route53resolver/firewall_rule_group_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -165,14 +166,19 @@ func firewallRuleGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Action "action": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Rule Action", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ALLOW", "BLOCK", "ALERT", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BlockOverrideDnsType "block_override_dns_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -231,10 +237,15 @@ func firewallRuleGroupResource(ctx context.Context) (resource.Resource, error) { // Property: FirewallDomainListId "firewall_domain_list_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "ResourceId", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FirewallDomainRedirectionAction "firewall_domain_redirection_action": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -254,7 +265,14 @@ func firewallRuleGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Priority "priority": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Rule Priority", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Qtype "qtype": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -452,18 +470,28 @@ func firewallRuleGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/route53resolver/outpost_resolver_resource_gen.go b/internal/aws/route53resolver/outpost_resolver_resource_gen.go index 42f77ccdc9..9e177dd2d6 100644 --- a/internal/aws/route53resolver/outpost_resolver_resource_gen.go +++ b/internal/aws/route53resolver/outpost_resolver_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -255,18 +256,28 @@ func outpostResolverResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/route53resolver/resolver_rule_resource_gen.go b/internal/aws/route53resolver/resolver_rule_resource_gen.go index acad1db41d..10e3bbe97d 100644 --- a/internal/aws/route53resolver/resolver_rule_resource_gen.go +++ b/internal/aws/route53resolver/resolver_rule_resource_gen.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -200,18 +201,28 @@ func resolverRuleResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/rum/app_monitor_resource_gen.go b/internal/aws/rum/app_monitor_resource_gen.go index c45b4d248c..72e932d1ba 100644 --- a/internal/aws/rum/app_monitor_resource_gen.go +++ b/internal/aws/rum/app_monitor_resource_gen.go @@ -27,6 +27,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -325,13 +326,18 @@ func appMonitorResource(ctx context.Context) (resource.Resource, error) { // Property: Destination "destination": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Defines the destination to send the metrics to. Valid values are CloudWatch and Evidently. If you specify Evidently, you must also specify the ARN of the Evidently experiment that is to be the destination and an IAM role that has permission to write to the experiment.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "CloudWatch", "Evidently", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DestinationArn "destination_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -387,10 +393,15 @@ func appMonitorResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name for the metric that is defined in this structure. For extended metrics, valid values are the following:\n\nPerformanceNavigationDuration\n\nPerformanceResourceDuration\n\nNavigationSatisfiedTransaction\n\nNavigationToleratedTransaction\n\nNavigationFrustratedTransaction\n\nWebVitalsCumulativeLayoutShift\n\nWebVitalsFirstInputDelay\n\nWebVitalsLargestContentfulPaint\n\nJsErrorCount\n\nHttpErrorCount\n\nSessionCount", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Namespace "namespace": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -646,18 +657,28 @@ func appMonitorResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/s3/access_grant_resource_gen.go b/internal/aws/s3/access_grant_resource_gen.go index 4b8684f04c..14d2c8c4fb 100644 --- a/internal/aws/s3/access_grant_resource_gen.go +++ b/internal/aws/s3/access_grant_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -81,7 +82,14 @@ func accessGrantResource(ctx context.Context) (resource.Resource, error) { // Property: S3SubPrefix "s3_sub_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The S3 sub prefix of a registered location in your S3 Access Grants instance", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration options of the grant location, which is the S3 path to the data to which you are granting access.", @@ -261,11 +269,25 @@ func accessGrantResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/s3/access_grants_instance_resource_gen.go b/internal/aws/s3/access_grants_instance_resource_gen.go index d3a3321f93..be3031028a 100644 --- a/internal/aws/s3/access_grants_instance_resource_gen.go +++ b/internal/aws/s3/access_grants_instance_resource_gen.go @@ -13,8 +13,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -97,11 +99,25 @@ func accessGrantsInstanceResource(ctx context.Context) (resource.Resource, error Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/s3/access_grants_location_resource_gen.go b/internal/aws/s3/access_grants_location_resource_gen.go index e770259ed7..fb83e94889 100644 --- a/internal/aws/s3/access_grants_location_resource_gen.go +++ b/internal/aws/s3/access_grants_location_resource_gen.go @@ -13,8 +13,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -121,11 +123,25 @@ func accessGrantsLocationResource(ctx context.Context) (resource.Resource, error Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/s3/bucket_resource_gen.go b/internal/aws/s3/bucket_resource_gen.go index 0ab9987861..4e4f5ffcc6 100644 --- a/internal/aws/s3/bucket_resource_gen.go +++ b/internal/aws/s3/bucket_resource_gen.go @@ -21,12 +21,14 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -63,13 +65,18 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: AccelerationStatus "acceleration_status": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the transfer acceleration status of the bucket.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Enabled", "Suspended", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configures the transfer acceleration state for an Amazon S3 bucket. For more information, see [Amazon S3 Transfer Acceleration](https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html) in the *Amazon S3 User Guide*.", @@ -230,7 +237,14 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID that identifies the analytics configuration.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Prefix "prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -262,19 +276,31 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: BucketArn "bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the bucket to which data is exported.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Format "format": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the file format used when exporting data to Amazon S3.\n *Allowed values*: ``CSV`` | ``ORC`` | ``Parquet``", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "CSV", "ORC", "Parquet", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Prefix "prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -287,12 +313,26 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The place to store the data for an analysis.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OutputSchemaVersion "output_schema_version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The version of the output schema to use when exporting data. Must be ``V_1``.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.", @@ -304,7 +344,14 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Contains data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TagFilters "tag_filters": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -313,12 +360,26 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -441,14 +502,19 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: SSEAlgorithm "sse_algorithm": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Server-side encryption algorithm to use for the default encryption.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "aws:kms", "AES256", "aws:kms:dsse", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied.", @@ -461,10 +527,15 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Specifies the default server-side-encryption configuration.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3), AWS KMS-managed keys (SSE-KMS), or dual-layer server-side encryption with KMS-managed keys (DSSE-KMS). For information about the Amazon S3 default encryption feature, see [Amazon S3 Default Encryption for S3 Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) in the *Amazon S3 User Guide*.", @@ -596,7 +667,8 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { "allowed_methods": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "An HTTP method that you allow the origin to run.\n *Allowed values*: ``GET`` | ``PUT`` | ``HEAD`` | ``POST`` | ``DELETE``", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), listvalidator.ValueStringsAre( @@ -608,16 +680,25 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { "DELETE", ), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AllowedOrigins "allowed_origins": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "One or more origins you want customers to be able to access the bucket from.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ExposedHeaders "exposed_headers": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -659,10 +740,15 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A set of origins and methods (cross-origin access that you want to allow). You can add up to 100 rules to the configuration.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more information, see [Enabling Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in the *Amazon S3 User Guide*.", @@ -803,7 +889,14 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID used to identify the S3 Intelligent-Tiering configuration.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Prefix "prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -817,13 +910,18 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Status "status": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the status of the configuration.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Disabled", "Enabled", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TagFilters "tag_filters": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -832,12 +930,26 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -858,26 +970,43 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: AccessTier "access_tier": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "S3 Intelligent-Tiering access tier. See [Storage class for automatically optimizing frequently and infrequently accessed objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-dynamic-data-access) for a list of access tiers in the S3 Intelligent-Tiering storage class.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ARCHIVE_ACCESS", "DEEP_ARCHIVE_ACCESS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Days "days": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of consecutive days of no access after which an object will be eligible to be transitioned to the corresponding tier. The minimum number of days specified for Archive Access tier must be at least 90 days and Deep Archive Access tier must be at least 180 days. The maximum can be up to 2 years (730 days).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Specifies a list of S3 Intelligent-Tiering storage class tiers in the configuration. At least one tier must be defined in the list. At most, you can specify two tiers in the list, one for each available AccessTier: ``ARCHIVE_ACCESS`` and ``DEEP_ARCHIVE_ACCESS``.\n You only need Intelligent Tiering Configuration enabled on a bucket if you want to automatically move objects stored in the Intelligent-Tiering storage class to Archive Access or Deep Archive Access tiers.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1018,19 +1147,31 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: BucketArn "bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the bucket to which data is exported.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Format "format": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the file format used when exporting data to Amazon S3.\n *Allowed values*: ``CSV`` | ``ORC`` | ``Parquet``", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "CSV", "ORC", "Parquet", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Prefix "prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1043,28 +1184,54 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Contains information about where to publish the inventory results.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether the inventory is enabled or disabled. If set to ``True``, an inventory list is generated. If set to ``False``, no inventory list is generated.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID used to identify the inventory configuration.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IncludedObjectVersions "included_object_versions": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Object versions to include in the inventory list. If set to ``All``, the list includes all the object versions, which adds the version-related fields ``VersionId``, ``IsLatest``, and ``DeleteMarker`` to the list. If set to ``Current``, the list does not contain these version-related fields.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "All", "Current", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OptionalFields "optional_fields": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -1110,13 +1277,18 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: ScheduleFrequency "schedule_frequency": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the schedule for generating inventory results.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Daily", "Weekly", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1415,10 +1587,15 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: DaysAfterInitiation "days_after_initiation": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Specifies the number of days after which Amazon S3 stops an incomplete multipart upload.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(0), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies a lifecycle rule that stops incomplete multipart uploads to an Amazon S3 bucket.", @@ -1485,7 +1662,14 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: NoncurrentDays "noncurrent_days": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Specifies the number of days an object is noncurrent before S3 can perform the associated action. For information about the noncurrent days calculations, see [How Amazon S3 Calculates When an Object Became Noncurrent](https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) in the *Amazon S3 User Guide*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies when noncurrent object versions expire. Upon expiration, S3 permanently deletes the noncurrent object versions. You set this lifecycle configuration action on a bucket that has versioning enabled (or suspended) to request that S3 delete noncurrent object versions at a specific period in the object's lifetime.", @@ -1519,7 +1703,8 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: StorageClass "storage_class": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The class of storage used to store the object.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DEEP_ARCHIVE", @@ -1530,12 +1715,23 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { "ONEZONE_IA", "STANDARD_IA", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TransitionInDays "transition_in_days": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. For information about the noncurrent days calculations, see [How Amazon S3 Calculates How Long an Object Has Been Noncurrent](https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) in the *Amazon S3 User Guide*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "(Deprecated.) For buckets with versioning enabled (or suspended), specifies when non-current objects transition to a specified storage class. If you specify a transition and expiration time, the expiration time must be later than the transition time. If you specify this property, don't specify the ``NoncurrentVersionTransitions`` property.", @@ -1561,7 +1757,8 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: StorageClass "storage_class": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The class of storage used to store the object.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DEEP_ARCHIVE", @@ -1572,12 +1769,23 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { "ONEZONE_IA", "STANDARD_IA", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TransitionInDays "transition_in_days": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. For information about the noncurrent days calculations, see [How Amazon S3 Calculates How Long an Object Has Been Noncurrent](https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) in the *Amazon S3 User Guide*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1629,13 +1837,18 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Status "status": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "If ``Enabled``, the rule is currently being applied. If ``Disabled``, the rule is not currently being applied.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Enabled", "Disabled", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TagFilters "tag_filters": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1644,12 +1857,26 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1669,7 +1896,8 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: StorageClass "storage_class": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The storage class to which you want the object to transition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DEEP_ARCHIVE", @@ -1680,7 +1908,11 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { "ONEZONE_IA", "STANDARD_IA", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TransitionDate "transition_date": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1718,7 +1950,8 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: StorageClass "storage_class": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The storage class to which you want the object to transition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DEEP_ARCHIVE", @@ -1729,7 +1962,11 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { "ONEZONE_IA", "STANDARD_IA", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TransitionDate "transition_date": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1767,10 +2004,15 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A lifecycle rule for individual objects in an Amazon S3 bucket.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the lifecycle configuration for objects in an Amazon S3 bucket. For more information, see [Object Lifecycle Management](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) in the *Amazon S3 User Guide*.", @@ -1970,7 +2212,14 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID used to identify the metrics configuration. This can be any value you choose that helps you identify your metrics configuration.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Prefix "prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1988,12 +2237,26 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2287,7 +2550,14 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Event "event": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 bucket event for which to invoke the LAMlong function. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Filter "filter": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2302,24 +2572,50 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The object key name prefix or suffix identifying one or more objects to which the filtering rule applies. The maximum length is 1,024 characters. Overlapping prefixes and suffixes are not supported. For more information, see [Configuring Event Notifications](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value that the filter searches for in object key names.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of containers for the key-value pair that defines the criteria for the filter rule.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Set{ /*START VALIDATORS*/ + fwvalidators.NotNullSet(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A container for object key name prefix and suffix filtering rules.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The filtering rules that determine which objects invoke the AWS Lambda function. For example, you can create a filter so that only image files with a ``.jpg`` extension invoke the function when they are added to the Amazon S3 bucket.", @@ -2332,7 +2628,14 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Function "function": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the LAMlong function that Amazon S3 invokes when the specified event type occurs.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2353,7 +2656,14 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Event "event": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 bucket event about which you want to publish messages to Amazon SQS. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Filter "filter": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2368,24 +2678,50 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The object key name prefix or suffix identifying one or more objects to which the filtering rule applies. The maximum length is 1,024 characters. Overlapping prefixes and suffixes are not supported. For more information, see [Configuring Event Notifications](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value that the filter searches for in object key names.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of containers for the key-value pair that defines the criteria for the filter rule.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Set{ /*START VALIDATORS*/ + fwvalidators.NotNullSet(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A container for object key name prefix and suffix filtering rules.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The filtering rules that determine which objects trigger notifications. For example, you can create a filter so that Amazon S3 sends notifications only when image files with a ``.jpg`` extension are added to the bucket. For more information, see [Configuring event notifications using object key name filtering](https://docs.aws.amazon.com/AmazonS3/latest/user-guide/notification-how-to-filtering.html) in the *Amazon S3 User Guide*.", @@ -2398,7 +2734,14 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Queue "queue": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the Amazon SQS queue to which Amazon S3 publishes a message when it detects events of the specified type. FIFO queues are not allowed when enabling an SQS queue as the event notification destination.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2419,7 +2762,14 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Event "event": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 bucket event about which to send notifications. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Filter "filter": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2434,24 +2784,50 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The object key name prefix or suffix identifying one or more objects to which the filtering rule applies. The maximum length is 1,024 characters. Overlapping prefixes and suffixes are not supported. For more information, see [Configuring Event Notifications](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value that the filter searches for in object key names.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of containers for the key-value pair that defines the criteria for the filter rule.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Set{ /*START VALIDATORS*/ + fwvalidators.NotNullSet(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A container for object key name prefix and suffix filtering rules.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The filtering rules that determine for which objects to send notifications. For example, you can create a filter so that Amazon S3 sends notifications only when image files with a ``.jpg`` extension are added to the bucket.", @@ -2464,7 +2840,14 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Topic "topic": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 publishes a message when it detects events of the specified type.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2679,10 +3062,15 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Specifies the container element for Object Ownership rules.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration that defines how Amazon S3 handles Object Ownership rules.", @@ -3092,7 +3480,14 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Role "role": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the IAMlong (IAM) role that Amazon S3 assumes when replicating objects. For more information, see [How to Set Up Replication](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-how-setup.html) in the *Amazon S3 User Guide*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Rules "rules": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -3133,7 +3528,14 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Owner "owner": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the replica ownership. For default and valid values, see [PUT bucket replication](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTreplication.html) in the *Amazon S3 API Reference*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the AWS-account that owns the destination bucket. If this is not specified in the replication configuration, the replicas are owned by same AWS-account that owns the source object.", @@ -3155,7 +3557,14 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EncryptionConfiguration "encryption_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3163,7 +3572,14 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: ReplicaKmsKeyID "replica_kms_key_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the ID (Key ARN or Alias ARN) of the customer managed AWS KMS key stored in AWS Key Management Service (KMS) for the destination bucket. Amazon S3 uses this key to encrypt replica objects. Amazon S3 only supports symmetric encryption KMS keys. For more information, see [Asymmetric keys in KMS](https://docs.aws.amazon.com//kms/latest/developerguide/symmetric-asymmetric.html) in the *Key Management Service Developer Guide*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies encryption-related information.", @@ -3182,7 +3598,14 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Minutes "minutes": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Contains an integer specifying time in minutes. \n Valid value: 15", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A container specifying the time threshold for emitting the ``s3:Replication:OperationMissedThreshold`` event.", @@ -3195,13 +3618,18 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Status "status": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether the replication metrics are enabled.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Disabled", "Enabled", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A container specifying replication metrics-related settings enabling replication metrics and events.", @@ -3217,13 +3645,18 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Status "status": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether the replication time is enabled.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Disabled", "Enabled", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Time "time": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3231,11 +3664,25 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Minutes "minutes": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Contains an integer specifying time in minutes. \n Valid value: 15", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A container specifying the time by which replication should be complete for all objects and operations on objects.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A container specifying S3 Replication Time Control (S3 RTC), including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated. Must be specified together with a ``Metrics`` block.", @@ -3268,7 +3715,14 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A container for information about the replication destination and its configurations including enabling the S3 Replication Time Control (S3 RTC).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Filter "filter": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3292,12 +3746,26 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3334,12 +3802,26 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A container for specifying a tag key and value. \n The rule applies only to objects that have the tag in their tag set.", @@ -3399,13 +3881,18 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Status "status": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether Amazon S3 replicates modifications on replicas.\n *Allowed values*: ``Enabled`` | ``Disabled``", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Enabled", "Disabled", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A filter that you can specify for selection for modifications on replicas.", @@ -3421,13 +3908,18 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Status "status": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether Amazon S3 replicates objects created with server-side encryption using an AWS KMS key stored in AWS Key Management Service.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Disabled", "Enabled", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A container for filter information for the selection of Amazon S3 objects encrypted with AWS KMS.", @@ -3448,21 +3940,31 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Status "status": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether the rule is enabled.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Disabled", "Enabled", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A container for one or more replication rules. A replication configuration must have at least one rule and can contain a maximum of 1,000 rules.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration for replicating objects in an S3 bucket. To enable replication, you must also enable versioning by using the ``VersioningConfiguration`` property.\n Amazon S3 can store replicated objects in a single destination bucket or multiple destination buckets. The destination bucket or buckets must already exist.", @@ -3508,18 +4010,28 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Name of the object key.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Value of the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3706,7 +4218,14 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: HostName "host_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Name of the host where requests are redirected.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Protocol "protocol": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3791,7 +4310,14 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can specify a different error code to return.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoutingRuleCondition "routing_rule_condition": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/s3/storage_lens_group_resource_gen.go b/internal/aws/s3/storage_lens_group_resource_gen.go index 95a8ef7fef..06a26bcf46 100644 --- a/internal/aws/s3/storage_lens_group_resource_gen.go +++ b/internal/aws/s3/storage_lens_group_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -347,17 +348,27 @@ func storageLensGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -482,17 +493,27 @@ func storageLensGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -612,17 +633,27 @@ func storageLensGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -784,17 +815,27 @@ func storageLensGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/s3/storage_lens_resource_gen.go b/internal/aws/s3/storage_lens_resource_gen.go index e6dfb8aa33..219747d0c4 100644 --- a/internal/aws/s3/storage_lens_resource_gen.go +++ b/internal/aws/s3/storage_lens_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -597,7 +598,14 @@ func storageLensResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Prefix-level metrics configurations.", @@ -681,7 +689,14 @@ func storageLensResource(ctx context.Context) (resource.Resource, error) { // Property: Arn "arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the specified resource.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The AWS Organizations ARN to use in the Amazon S3 Storage Lens configuration.", @@ -700,7 +715,14 @@ func storageLensResource(ctx context.Context) (resource.Resource, error) { // Property: IsEnabled "is_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether CloudWatch metrics are enabled or disabled.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "CloudWatch metrics settings for the Amazon S3 Storage Lens metrics export.", @@ -716,12 +738,26 @@ func storageLensResource(ctx context.Context) (resource.Resource, error) { // Property: AccountId "account_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The AWS account ID that owns the destination S3 bucket.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Arn "arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the bucket to which Amazon S3 Storage Lens exports will be placed.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Encryption "encryption": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -732,7 +768,14 @@ func storageLensResource(ctx context.Context) (resource.Resource, error) { // Property: KeyId "key_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the KMS key to use for encryption.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "AWS KMS server-side encryption.", @@ -763,23 +806,33 @@ func storageLensResource(ctx context.Context) (resource.Resource, error) { // Property: Format "format": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the file format to use when exporting Amazon S3 Storage Lens metrics export.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "CSV", "Parquet", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OutputSchemaVersion "output_schema_version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The version of the output schema to use when exporting Amazon S3 Storage Lens metrics.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "V_1", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Prefix "prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -930,17 +983,27 @@ func storageLensResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/s3objectlambda/access_point_resource_gen.go b/internal/aws/s3objectlambda/access_point_resource_gen.go index b3157260b0..caf1942513 100644 --- a/internal/aws/s3objectlambda/access_point_resource_gen.go +++ b/internal/aws/s3objectlambda/access_point_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -240,10 +241,15 @@ func accessPointResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: FunctionArn "function_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FunctionPayload "function_payload": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/s3outposts/bucket_resource_gen.go b/internal/aws/s3outposts/bucket_resource_gen.go index 724d5a0168..300ac97028 100644 --- a/internal/aws/s3outposts/bucket_resource_gen.go +++ b/internal/aws/s3outposts/bucket_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -255,10 +256,15 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { // Property: DaysAfterInitiation "days_after_initiation": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Specifies the number of days after which Amazon S3Outposts aborts an incomplete multipart upload.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(0), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies a lifecycle rule that stops incomplete multipart uploads to an Amazon S3Outposts bucket.", @@ -313,19 +319,29 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:=+\\/\\-@%]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:=+\\/\\-@%]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -361,19 +377,29 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:=+\\/\\-@%]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:=+\\/\\-@%]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies a tag used to identify a subset of objects for an Amazon S3Outposts bucket.", @@ -420,7 +446,14 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of lifecycle rules for individual objects in an Amazon S3Outposts bucket.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Set{ /*START VALIDATORS*/ + fwvalidators.NotNullSet(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Rules that define how Amazon S3Outposts manages objects during their lifetime.", @@ -484,18 +517,28 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:=+\\/\\-@%]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sagemaker/app_image_config_resource_gen.go b/internal/aws/sagemaker/app_image_config_resource_gen.go index 69cee96f1e..9c063fc07c 100644 --- a/internal/aws/sagemaker/app_image_config_resource_gen.go +++ b/internal/aws/sagemaker/app_image_config_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -188,17 +189,27 @@ func appImageConfigResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -345,17 +356,27 @@ func appImageConfigResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -520,18 +541,28 @@ func appImageConfigResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the kernel.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The specification of the Jupyter kernels in the image.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 1), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The KernelGatewayImageConfig.", @@ -576,17 +607,27 @@ func appImageConfigResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sagemaker/app_resource_gen.go b/internal/aws/sagemaker/app_resource_gen.go index c9df6c9caa..7f64f82c24 100644 --- a/internal/aws/sagemaker/app_resource_gen.go +++ b/internal/aws/sagemaker/app_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -377,17 +378,27 @@ func appResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sagemaker/cluster_resource_gen.go b/internal/aws/sagemaker/cluster_resource_gen.go index 8bb0627fac..b6063e8769 100644 --- a/internal/aws/sagemaker/cluster_resource_gen.go +++ b/internal/aws/sagemaker/cluster_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -457,11 +458,25 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { // Property: ClusterArn "cluster_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the EKS cluster, such as arn:aws:eks:us-west-2:123456789012:cluster/my-eks-cluster", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies parameter(s) related to EKS as orchestrator, e.g. the EKS cluster nodes will attach to,", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies parameter(s) specific to the orchestrator, e.g. specify the EKS cluster.", @@ -513,20 +528,30 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -584,32 +609,38 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { "security_group_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), listvalidator.ValueStringsAre( stringvalidator.LengthAtMost(32), stringvalidator.RegexMatches(regexp.MustCompile("[-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Subnets "subnets": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The ID of the subnets in the VPC to which you want to connect your training job or model.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 16), listvalidator.ValueStringsAre( stringvalidator.LengthAtMost(32), stringvalidator.RegexMatches(regexp.MustCompile("[-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/sagemaker/data_quality_job_definition_resource_gen.go b/internal/aws/sagemaker/data_quality_job_definition_resource_gen.go index 25e1b9053e..0eeb15ba5f 100644 --- a/internal/aws/sagemaker/data_quality_job_definition_resource_gen.go +++ b/internal/aws/sagemaker/data_quality_job_definition_resource_gen.go @@ -15,6 +15,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" @@ -24,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -455,11 +457,16 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e // Property: DataCapturedDestinationS3Uri "data_captured_destination_s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A URI that identifies the Amazon S3 storage location where Batch Transform Job captures data.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatasetFormat "dataset_format": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -515,7 +522,14 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The dataset format of the data to monitor", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ExcludeFeaturesAttribute "exclude_features_attribute": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -532,11 +546,16 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e // Property: LocalPath "local_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Path to the filesystem where the endpoint data is available to the container.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3DataDistributionType "s3_data_distribution_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -582,11 +601,16 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e // Property: EndpointName "endpoint_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the endpoint used to run the monitoring job.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ExcludeFeaturesAttribute "exclude_features_attribute": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -603,11 +627,16 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e // Property: LocalPath "local_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Path to the filesystem where the endpoint data is available to the container.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3DataDistributionType "s3_data_distribution_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1023,27 +1052,37 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e "security_group_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), listvalidator.ValueStringsAre( stringvalidator.LengthAtMost(32), stringvalidator.RegexMatches(regexp.MustCompile("[-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Subnets "subnets": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The ID of the subnets in the VPC to which you want to connect to your monitoring jobs.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 16), listvalidator.ValueStringsAre( stringvalidator.LengthAtMost(32), stringvalidator.RegexMatches(regexp.MustCompile("[-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC.", @@ -1107,10 +1146,15 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e // Property: MaxRuntimeInSeconds "max_runtime_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum runtime allowed in seconds.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 86400), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies a time limit for how long the monitoring job is allowed to run.", @@ -1159,20 +1203,30 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sagemaker/device_fleet_resource_gen.go b/internal/aws/sagemaker/device_fleet_resource_gen.go index 38e4839307..5ba03dc154 100644 --- a/internal/aws/sagemaker/device_fleet_resource_gen.go +++ b/internal/aws/sagemaker/device_fleet_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -181,19 +182,29 @@ func deviceFleetResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key value of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sagemaker/device_resource_gen.go b/internal/aws/sagemaker/device_resource_gen.go index 8715ab037d..658fbe5d8c 100644 --- a/internal/aws/sagemaker/device_resource_gen.go +++ b/internal/aws/sagemaker/device_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -80,13 +81,16 @@ func deviceResource(ctx context.Context) (resource.Resource, error) { // Property: DeviceName "device_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the device", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.RequiresReplace(), + stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IotThingName @@ -165,19 +169,29 @@ func deviceResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key value of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sagemaker/domain_resource_gen.go b/internal/aws/sagemaker/domain_resource_gen.go index 09a8433984..04fcd21e65 100644 --- a/internal/aws/sagemaker/domain_resource_gen.go +++ b/internal/aws/sagemaker/domain_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -709,11 +710,16 @@ func domainResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: FileSystemId "file_system_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(11, 21), stringvalidator.RegexMatches(regexp.MustCompile("^(fs-[0-9a-f]{8,})$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FileSystemPath "file_system_path": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -751,17 +757,27 @@ func domainResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Gid "gid": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1001, 4000000), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Uid "uid": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(10000, 4000000), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The Jupyter lab's custom posix user configurations.", @@ -774,11 +790,16 @@ func domainResource(ctx context.Context) (resource.Resource, error) { // Property: ExecutionRole "execution_role": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The execution role for the space.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws[a-z\\-]*:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: JupyterLabAppSettings "jupyter_lab_app_settings": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -861,10 +882,15 @@ func domainResource(ctx context.Context) (resource.Resource, error) { // Property: RepositoryUrl "repository_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A CodeRepository (valid URL) to be used within Jupyter's Git extension.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -885,20 +911,30 @@ func domainResource(ctx context.Context) (resource.Resource, error) { // Property: AppImageConfigName "app_image_config_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Name of the AppImageConfig.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageName "image_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the CustomImage. Must be unique to your account.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9]([-.]?[a-zA-Z0-9]){0,62}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageVersionNumber "image_version_number": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -1238,20 +1274,30 @@ func domainResource(ctx context.Context) (resource.Resource, error) { // Property: AppImageConfigName "app_image_config_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Name of the AppImageConfig.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageName "image_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the CustomImage. Must be unique to your account.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9]([-.]?[a-zA-Z0-9]){0,62}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageVersionNumber "image_version_number": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -1456,18 +1502,28 @@ func domainResource(ctx context.Context) (resource.Resource, error) { // Property: DefaultEbsVolumeSizeInGb "default_ebs_volume_size_in_gb": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Default size of the Amazon EBS volume in Gb", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(5, 16384), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaximumEbsVolumeSizeInGb "maximum_ebs_volume_size_in_gb": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Maximum size of the Amazon EBS volume in Gb. Must be greater than or equal to the DefaultEbsVolumeSizeInGb.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(5, 16384), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Properties related to the Amazon Elastic Block Store volume. Must be provided if storage type is Amazon EBS and must not be provided if storage type is not Amazon EBS", @@ -2602,20 +2658,30 @@ func domainResource(ctx context.Context) (resource.Resource, error) { // Property: AppImageConfigName "app_image_config_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Name of the AppImageConfig.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageName "image_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the CustomImage. Must be unique to your account.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9]([-.]?[a-zA-Z0-9]){0,62}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageVersionNumber "image_version_number": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -2801,11 +2867,16 @@ func domainResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: FileSystemId "file_system_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(11, 21), stringvalidator.RegexMatches(regexp.MustCompile("^(fs-[0-9a-f]{8,})$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FileSystemPath "file_system_path": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2843,17 +2914,27 @@ func domainResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Gid "gid": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1001, 4000000), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Uid "uid": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(10000, 4000000), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2964,10 +3045,15 @@ func domainResource(ctx context.Context) (resource.Resource, error) { // Property: RepositoryUrl "repository_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A CodeRepository (valid URL) to be used within Jupyter's Git extension.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -2988,20 +3074,30 @@ func domainResource(ctx context.Context) (resource.Resource, error) { // Property: AppImageConfigName "app_image_config_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Name of the AppImageConfig.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageName "image_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the CustomImage. Must be unique to your account.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9]([-.]?[a-zA-Z0-9]){0,62}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageVersionNumber "image_version_number": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -3341,20 +3437,30 @@ func domainResource(ctx context.Context) (resource.Resource, error) { // Property: AppImageConfigName "app_image_config_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Name of the AppImageConfig.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageName "image_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the CustomImage. Must be unique to your account.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9]([-.]?[a-zA-Z0-9]){0,62}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageVersionNumber "image_version_number": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -3542,20 +3648,30 @@ func domainResource(ctx context.Context) (resource.Resource, error) { // Property: AppImageConfigName "app_image_config_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Name of the AppImageConfig.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageName "image_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the CustomImage. Must be unique to your account.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9]([-.]?[a-zA-Z0-9]){0,62}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageVersionNumber "image_version_number": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -3835,18 +3951,28 @@ func domainResource(ctx context.Context) (resource.Resource, error) { // Property: DefaultEbsVolumeSizeInGb "default_ebs_volume_size_in_gb": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Default size of the Amazon EBS volume in Gb", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(5, 16384), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaximumEbsVolumeSizeInGb "maximum_ebs_volume_size_in_gb": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Maximum size of the Amazon EBS volume in Gb. Must be greater than or equal to the DefaultEbsVolumeSizeInGb.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(5, 16384), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Properties related to the Amazon Elastic Block Store volume. Must be provided if storage type is Amazon EBS and must not be provided if storage type is not Amazon EBS", @@ -4351,11 +4477,16 @@ func domainResource(ctx context.Context) (resource.Resource, error) { // Property: DomainExecutionRoleArn "domain_execution_role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the execution role for the RStudioServerPro Domain-level app.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws[a-z\\-]*:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RStudioConnectUrl "r_studio_connect_url": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -4565,17 +4696,27 @@ func domainResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sagemaker/feature_group_resource_gen.go b/internal/aws/sagemaker/feature_group_resource_gen.go index 6d0726dba5..8592035f30 100644 --- a/internal/aws/sagemaker/feature_group_resource_gen.go +++ b/internal/aws/sagemaker/feature_group_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -267,24 +268,39 @@ func featureGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Catalog "catalog": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -317,14 +333,26 @@ func featureGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableFormat "table_format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -569,11 +597,25 @@ func featureGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -640,13 +682,18 @@ func featureGroupResource(ctx context.Context) (resource.Resource, error) { // Property: ThroughputMode "throughput_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Throughput mode configuration of the feature group", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "OnDemand", "Provisioned", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/sagemaker/image_resource_gen.go b/internal/aws/sagemaker/image_resource_gen.go index 7963e4d659..f2554d5770 100644 --- a/internal/aws/sagemaker/image_resource_gen.go +++ b/internal/aws/sagemaker/image_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -165,18 +166,28 @@ func imageResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sagemaker/inference_component_resource_gen.go b/internal/aws/sagemaker/inference_component_resource_gen.go index 64f2efaa50..a529e66c24 100644 --- a/internal/aws/sagemaker/inference_component_resource_gen.go +++ b/internal/aws/sagemaker/inference_component_resource_gen.go @@ -26,6 +26,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -551,18 +552,28 @@ func inferenceComponentResource(ctx context.Context) (resource.Resource, error) // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sagemaker/inference_experiment_resource_gen.go b/internal/aws/sagemaker/inference_experiment_resource_gen.go index cdff7ff2bd..943ec0b58b 100644 --- a/internal/aws/sagemaker/inference_experiment_resource_gen.go +++ b/internal/aws/sagemaker/inference_experiment_resource_gen.go @@ -14,6 +14,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -22,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -169,11 +171,16 @@ func inferenceExperimentResource(ctx context.Context) (resource.Resource, error) // Property: Destination "destination": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 bucket where the inference request and response data is stored.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/])/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KmsKey "kms_key": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -640,36 +647,56 @@ func inferenceExperimentResource(ctx context.Context) (resource.Resource, error) // Property: SamplingPercentage "sampling_percentage": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The percentage of inference requests that Amazon SageMaker replicates from the production variant to the shadow variant.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtMost(100), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ShadowModelVariantName "shadow_model_variant_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the shadow variant.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9]([\\-a-zA-Z0-9]*[a-zA-Z0-9])?"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "List of shadow variant configurations.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 1), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceModelVariantName "source_model_variant_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the production variant, which takes all the inference requests.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9]([\\-a-zA-Z0-9]*[a-zA-Z0-9])?"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration of ShadowMode inference experiment type. Use this field to specify a production variant which takes all the inference requests, and a shadow variant to which Amazon SageMaker replicates a percentage of the inference requests. For the shadow variant also specify the percentage of requests that Amazon SageMaker replicates.", @@ -763,20 +790,30 @@ func inferenceExperimentResource(ctx context.Context) (resource.Resource, error) // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sagemaker/mlflow_tracking_server_resource_gen.go b/internal/aws/sagemaker/mlflow_tracking_server_resource_gen.go index d5249f4da2..f68eee0e72 100644 --- a/internal/aws/sagemaker/mlflow_tracking_server_resource_gen.go +++ b/internal/aws/sagemaker/mlflow_tracking_server_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -141,18 +142,28 @@ func mlflowTrackingServerResource(ctx context.Context) (resource.Resource, error // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sagemaker/model_bias_job_definition_resource_gen.go b/internal/aws/sagemaker/model_bias_job_definition_resource_gen.go index d52630b9e8..63832d5ee1 100644 --- a/internal/aws/sagemaker/model_bias_job_definition_resource_gen.go +++ b/internal/aws/sagemaker/model_bias_job_definition_resource_gen.go @@ -16,6 +16,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" @@ -25,6 +26,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -574,11 +576,16 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err // Property: DataCapturedDestinationS3Uri "data_captured_destination_s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A URI that identifies the Amazon S3 storage location where Batch Transform Job captures data.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatasetFormat "dataset_format": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -634,7 +641,14 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The dataset format of the data to monitor", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EndTimeOffset "end_time_offset": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -676,11 +690,16 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err // Property: LocalPath "local_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Path to the filesystem where the endpoint data is available to the container.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProbabilityAttribute "probability_attribute": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -772,11 +791,16 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err // Property: EndpointName "endpoint_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the endpoint used to run the monitoring job.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FeaturesAttribute "features_attribute": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -805,11 +829,16 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err // Property: LocalPath "local_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Path to the filesystem where the endpoint data is available to the container.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProbabilityAttribute "probability_attribute": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1120,27 +1149,37 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err "security_group_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), listvalidator.ValueStringsAre( stringvalidator.LengthAtMost(32), stringvalidator.RegexMatches(regexp.MustCompile("[-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Subnets "subnets": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The ID of the subnets in the VPC to which you want to connect to your monitoring jobs.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 16), listvalidator.ValueStringsAre( stringvalidator.LengthAtMost(32), stringvalidator.RegexMatches(regexp.MustCompile("[-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC.", @@ -1204,10 +1243,15 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err // Property: MaxRuntimeInSeconds "max_runtime_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum runtime allowed in seconds.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 86400), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies a time limit for how long the monitoring job is allowed to run.", @@ -1256,20 +1300,30 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sagemaker/model_explainability_job_definition_resource_gen.go b/internal/aws/sagemaker/model_explainability_job_definition_resource_gen.go index 1548d5b675..78a5688cab 100644 --- a/internal/aws/sagemaker/model_explainability_job_definition_resource_gen.go +++ b/internal/aws/sagemaker/model_explainability_job_definition_resource_gen.go @@ -15,6 +15,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" @@ -24,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -518,11 +520,16 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res // Property: DataCapturedDestinationS3Uri "data_captured_destination_s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A URI that identifies the Amazon S3 storage location where Batch Transform Job captures data.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatasetFormat "dataset_format": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -578,7 +585,14 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The dataset format of the data to monitor", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FeaturesAttribute "features_attribute": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -607,11 +621,16 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res // Property: LocalPath "local_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Path to the filesystem where the endpoint data is available to the container.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProbabilityAttribute "probability_attribute": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -669,11 +688,16 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res // Property: EndpointName "endpoint_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the endpoint used to run the monitoring job.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FeaturesAttribute "features_attribute": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -702,11 +726,16 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res // Property: LocalPath "local_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Path to the filesystem where the endpoint data is available to the container.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProbabilityAttribute "probability_attribute": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -980,27 +1009,37 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res "security_group_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), listvalidator.ValueStringsAre( stringvalidator.LengthAtMost(32), stringvalidator.RegexMatches(regexp.MustCompile("[-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Subnets "subnets": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The ID of the subnets in the VPC to which you want to connect to your monitoring jobs.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 16), listvalidator.ValueStringsAre( stringvalidator.LengthAtMost(32), stringvalidator.RegexMatches(regexp.MustCompile("[-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC.", @@ -1064,10 +1103,15 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res // Property: MaxRuntimeInSeconds "max_runtime_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum runtime allowed in seconds.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 86400), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies a time limit for how long the monitoring job is allowed to run.", @@ -1116,20 +1160,30 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sagemaker/model_package_group_resource_gen.go b/internal/aws/sagemaker/model_package_group_resource_gen.go index fe27818f13..2435efbb16 100644 --- a/internal/aws/sagemaker/model_package_group_resource_gen.go +++ b/internal/aws/sagemaker/model_package_group_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -175,20 +176,30 @@ func modelPackageGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sagemaker/model_package_resource_gen.go b/internal/aws/sagemaker/model_package_resource_gen.go index 76e752926c..58ab8d2dba 100644 --- a/internal/aws/sagemaker/model_package_resource_gen.go +++ b/internal/aws/sagemaker/model_package_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -310,11 +311,16 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: Image "image": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), stringvalidator.RegexMatches(regexp.MustCompile("[\\S]{1,255}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageDigest "image_digest": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -338,13 +344,18 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: CompressionType "compression_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies how the ML model data is prepared.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "None", "Gzip", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ModelAccessConfig "model_access_config": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -352,7 +363,14 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: AcceptEula "accept_eula": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies agreement to the model end-user license agreement (EULA).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the access configuration file for the ML model.", @@ -365,22 +383,32 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: S3DataType "s3_data_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the type of ML model data to deploy.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "S3Prefix", "S3Object", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the S3 path of ML model data to deploy.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the S3 location of ML model data to deploy.", @@ -417,11 +445,16 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: DataInputConfig "data_input_config": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The input configuration object for the model.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), stringvalidator.RegexMatches(regexp.MustCompile("[\\S\\s]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -442,10 +475,15 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The Amazon ECR registry path of the Docker image that contains the inference code.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 15), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Description "description": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -463,11 +501,16 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A unique name to identify the additional inference specification. The name must be unique within the list of your additional inference specifications for a particular model package.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SupportedContentTypes "supported_content_types": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -811,11 +854,16 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: Image "image": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), stringvalidator.RegexMatches(regexp.MustCompile("[\\S]{1,255}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageDigest "image_digest": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -839,13 +887,18 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: CompressionType "compression_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies how the ML model data is prepared.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "None", "Gzip", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ModelAccessConfig "model_access_config": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -853,7 +906,14 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: AcceptEula "accept_eula": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies agreement to the model end-user license agreement (EULA).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the access configuration file for the ML model.", @@ -866,22 +926,32 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: S3DataType "s3_data_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the type of ML model data to deploy.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "S3Prefix", "S3Object", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the S3 path of ML model data to deploy.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the S3 location of ML model data to deploy.", @@ -918,11 +988,16 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: DataInputConfig "data_input_config": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The input configuration object for the model.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), stringvalidator.RegexMatches(regexp.MustCompile("[\\S\\s]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -943,10 +1018,15 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The Amazon ECR registry path of the Docker image that contains the inference code.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 15), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Description "description": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -964,11 +1044,16 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A unique name to identify the additional inference specification. The name must be unique within the list of your additional inference specifications for a particular model package.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SupportedContentTypes "supported_content_types": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -1493,11 +1578,16 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 URI for the file source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents a File Source Object.", @@ -1526,20 +1616,30 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: ContentType "content_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of content stored in the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 URI for the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents a Metric Source Object.", @@ -1568,20 +1668,30 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: ContentType "content_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of content stored in the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 URI for the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents a Metric Source Object.", @@ -1634,11 +1744,16 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 URI for the file source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents a File Source Object.", @@ -1667,20 +1782,30 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: ContentType "content_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of content stored in the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 URI for the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents a Metric Source Object.", @@ -1720,20 +1845,30 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: ContentType "content_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of content stored in the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 URI for the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents a Metric Source Object.", @@ -1762,20 +1897,30 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: ContentType "content_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of content stored in the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 URI for the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents a Metric Source Object.", @@ -1815,20 +1960,30 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: ContentType "content_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of content stored in the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 URI for the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents a Metric Source Object.", @@ -1857,20 +2012,30 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: ContentType "content_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of content stored in the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 URI for the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents a Metric Source Object.", @@ -2153,11 +2318,16 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: Image "image": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), stringvalidator.RegexMatches(regexp.MustCompile("[\\S]{1,255}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageDigest "image_digest": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -2181,13 +2351,18 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: CompressionType "compression_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies how the ML model data is prepared.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "None", "Gzip", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ModelAccessConfig "model_access_config": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2195,7 +2370,14 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: AcceptEula "accept_eula": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies agreement to the model end-user license agreement (EULA).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the access configuration file for the ML model.", @@ -2208,22 +2390,32 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: S3DataType "s3_data_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the type of ML model data to deploy.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "S3Prefix", "S3Object", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the S3 path of ML model data to deploy.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the S3 location of ML model data to deploy.", @@ -2260,11 +2452,16 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: DataInputConfig "data_input_config": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The input configuration object for the model.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), stringvalidator.RegexMatches(regexp.MustCompile("[\\S\\s]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -2285,23 +2482,33 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The Amazon ECR registry path of the Docker image that contains the inference code.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 15), listvalidator.UniqueValues(), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SupportedContentTypes "supported_content_types": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The supported MIME types for the input data.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SupportedRealtimeInferenceInstanceTypes "supported_realtime_inference_instance_types": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -2317,13 +2524,18 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { "supported_response_mime_types": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The supported MIME types for the output data.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^[-\\w]+\\/.+$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SupportedTransformInstanceTypes "supported_transform_instance_types": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -2522,16 +2734,22 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: ModelCardContent "model_card_content": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the model card.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 100000), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ModelCardStatus "model_card_status": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The approval status of the model card within your organization.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Draft", @@ -2539,7 +2757,11 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { "Approved", "Archived", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The model card associated with the model package.", @@ -2843,20 +3065,30 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: ContentType "content_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of content stored in the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 URI for the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents a Metric Source Object.", @@ -2885,20 +3117,30 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: ContentType "content_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of content stored in the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 URI for the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents a Metric Source Object.", @@ -2927,20 +3169,30 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: ContentType "content_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of content stored in the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 URI for the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents a Metric Source Object.", @@ -2980,20 +3232,30 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: ContentType "content_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of content stored in the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 URI for the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents a Metric Source Object.", @@ -3033,20 +3295,30 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: ContentType "content_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of content stored in the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 URI for the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents a Metric Source Object.", @@ -3075,20 +3347,30 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: ContentType "content_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of content stored in the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 URI for the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents a Metric Source Object.", @@ -3128,20 +3410,30 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: ContentType "content_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of content stored in the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 URI for the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents a Metric Source Object.", @@ -3170,20 +3462,30 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: ContentType "content_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of content stored in the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 URI for the metric source.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents a Metric Source Object.", @@ -3371,16 +3673,22 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the model package for which the overall status is being reported.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Status "status": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The current status.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "NotStarted", @@ -3388,7 +3696,11 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { "InProgress", "Completed", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3471,11 +3783,16 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: KmsKeyId "kms_key_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The AWS KMS Key ID (KMSKeyId) used for encryption of model package information.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(2048), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9:/_-]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package information for regulated workloads with highly sensitive data.", @@ -3564,10 +3881,15 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: AlgorithmName "algorithm_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of an algorithm that was used to create the model package. The algorithm must be either an algorithm resource in your Amazon SageMaker account or an algorithm in AWS Marketplace that you are subscribed to.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 170), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ModelDataUrl "model_data_url": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3585,10 +3907,15 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of algorithms that were used to create a model package.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 1), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Details about the algorithm that was used to create the model package.", @@ -3658,20 +3985,30 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3933,11 +4270,16 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: ProfileName "profile_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the profile for the model package.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TransformJobDefinition "transform_job_definition": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4033,31 +4375,55 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: S3DataType "s3_data_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The S3 Data Source Type", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ManifestFile", "S3Prefix", "AugmentedManifestFile", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Depending on the value specified for the S3DataType, identifies either a key name prefix or a manifest.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Describes the S3 data source.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Describes the input source of a transform job and the way the transform job consumes it.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SplitType "split_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -4078,7 +4444,14 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Describes the input source of a transform job and the way the transform job consumes it.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TransformOutput "transform_output": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4127,15 +4500,27 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: S3OutputPath "s3_output_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 path where you want Amazon SageMaker to store the results of the transform job.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Describes the results of a transform job.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TransformResources "transform_resources": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4143,15 +4528,27 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Property: InstanceCount "instance_count": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of ML compute instances to use in the transform job. For distributed transform jobs, specify a value greater than 1. The default value is 1.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InstanceType "instance_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ML compute instance type for the transform job.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VolumeKmsKeyId "volume_kms_key_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -4168,27 +4565,51 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Describes the resources, including ML instance types and ML instance count, to use for transform job.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Defines the input needed to run a transform job using the inference specification specified in the algorithm.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 1), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ValidationRole "validation_role": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The IAM roles to be used for the validation of the model package.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws[a-z\\-]*:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies configurations for one or more transform jobs that Amazon SageMaker runs to test the model package.", diff --git a/internal/aws/sagemaker/model_quality_job_definition_resource_gen.go b/internal/aws/sagemaker/model_quality_job_definition_resource_gen.go index 7d85494a46..dd30aeef81 100644 --- a/internal/aws/sagemaker/model_quality_job_definition_resource_gen.go +++ b/internal/aws/sagemaker/model_quality_job_definition_resource_gen.go @@ -16,6 +16,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" @@ -25,6 +26,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -660,11 +662,16 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, // Property: DataCapturedDestinationS3Uri "data_captured_destination_s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A URI that identifies the Amazon S3 storage location where Batch Transform Job captures data.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatasetFormat "dataset_format": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -720,7 +727,14 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The dataset format of the data to monitor", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EndTimeOffset "end_time_offset": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -750,11 +764,16 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, // Property: LocalPath "local_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Path to the filesystem where the endpoint data is available to the container.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProbabilityAttribute "probability_attribute": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -846,11 +865,16 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, // Property: EndpointName "endpoint_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the endpoint used to run the monitoring job.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InferenceAttribute "inference_attribute": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -867,11 +891,16 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, // Property: LocalPath "local_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Path to the filesystem where the endpoint data is available to the container.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProbabilityAttribute "probability_attribute": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1182,27 +1211,37 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, "security_group_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), listvalidator.ValueStringsAre( stringvalidator.LengthAtMost(32), stringvalidator.RegexMatches(regexp.MustCompile("[-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Subnets "subnets": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The ID of the subnets in the VPC to which you want to connect to your monitoring jobs.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 16), listvalidator.ValueStringsAre( stringvalidator.LengthAtMost(32), stringvalidator.RegexMatches(regexp.MustCompile("[-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC.", @@ -1266,10 +1305,15 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, // Property: MaxRuntimeInSeconds "max_runtime_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum runtime allowed in seconds.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 86400), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies a time limit for how long the monitoring job is allowed to run.", @@ -1318,20 +1362,30 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sagemaker/monitoring_schedule_resource_gen.go b/internal/aws/sagemaker/monitoring_schedule_resource_gen.go index a70cdf694c..1cdc41ee54 100644 --- a/internal/aws/sagemaker/monitoring_schedule_resource_gen.go +++ b/internal/aws/sagemaker/monitoring_schedule_resource_gen.go @@ -15,6 +15,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" @@ -24,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -172,7 +174,14 @@ func monitoringScheduleResource(ctx context.Context) (resource.Resource, error) // Property: CreationTime "creation_time": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The time at which the monitoring job was created.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EndpointName "endpoint_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -202,12 +211,20 @@ func monitoringScheduleResource(ctx context.Context) (resource.Resource, error) // Property: LastModifiedTime "last_modified_time": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A timestamp that indicates the last time the monitoring job was modified.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MonitoringExecutionStatus "monitoring_execution_status": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The status of the monitoring job.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Pending", @@ -218,16 +235,25 @@ func monitoringScheduleResource(ctx context.Context) (resource.Resource, error) "Stopping", "Stopped", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MonitoringScheduleName "monitoring_schedule_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the monitoring schedule.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProcessingJobArn "processing_job_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -245,7 +271,14 @@ func monitoringScheduleResource(ctx context.Context) (resource.Resource, error) // Property: ScheduledTime "scheduled_time": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The time the monitoring job was scheduled.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Describes metadata on the last execution to run, if there was one.", @@ -865,11 +898,16 @@ func monitoringScheduleResource(ctx context.Context) (resource.Resource, error) // Property: ImageUri "image_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The container image to be run by the monitoring job.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(255), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PostAnalyticsProcessorSourceUri "post_analytics_processor_source_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -899,7 +937,14 @@ func monitoringScheduleResource(ctx context.Context) (resource.Resource, error) }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Container image configuration object for the monitoring job.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MonitoringInputs "monitoring_inputs": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -911,11 +956,16 @@ func monitoringScheduleResource(ctx context.Context) (resource.Resource, error) // Property: DataCapturedDestinationS3Uri "data_captured_destination_s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A URI that identifies the Amazon S3 storage location where Batch Transform Job captures data.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatasetFormat "dataset_format": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -971,7 +1021,14 @@ func monitoringScheduleResource(ctx context.Context) (resource.Resource, error) }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The dataset format of the data to monitor", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ExcludeFeaturesAttribute "exclude_features_attribute": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -988,11 +1045,16 @@ func monitoringScheduleResource(ctx context.Context) (resource.Resource, error) // Property: LocalPath "local_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Path to the filesystem where the endpoint data is available to the container.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3DataDistributionType "s3_data_distribution_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1038,11 +1100,16 @@ func monitoringScheduleResource(ctx context.Context) (resource.Resource, error) // Property: EndpointName "endpoint_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the endpoint used to run the monitoring job.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ExcludeFeaturesAttribute "exclude_features_attribute": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1059,11 +1126,16 @@ func monitoringScheduleResource(ctx context.Context) (resource.Resource, error) // Property: LocalPath "local_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Path to the filesystem where the endpoint data is available to the container.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3DataDistributionType "s3_data_distribution_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1106,10 +1178,15 @@ func monitoringScheduleResource(ctx context.Context) (resource.Resource, error) }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The array of inputs for the monitoring job.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 1), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MonitoringOutputConfig "monitoring_output_config": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1137,11 +1214,16 @@ func monitoringScheduleResource(ctx context.Context) (resource.Resource, error) // Property: LocalPath "local_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The local path to the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job. LocalPath is an absolute path for the output data.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3UploadMode "s3_upload_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1161,24 +1243,50 @@ func monitoringScheduleResource(ctx context.Context) (resource.Resource, error) // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A URI that identifies the Amazon S3 storage location where Amazon SageMaker saves the results of a monitoring job.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information about where and how to store the results of a monitoring job.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The output configuration for monitoring jobs.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MonitoringResources "monitoring_resources": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1189,15 +1297,27 @@ func monitoringScheduleResource(ctx context.Context) (resource.Resource, error) // Property: InstanceCount "instance_count": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 100), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InstanceType "instance_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ML compute instance type for the processing job.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VolumeKmsKeyId "volume_kms_key_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1211,18 +1331,37 @@ func monitoringScheduleResource(ctx context.Context) (resource.Resource, error) // Property: VolumeSizeInGB "volume_size_in_gb": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 16384), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration for the cluster used to run model monitoring jobs.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Identifies the resources to deploy for a monitoring job.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NetworkConfig "network_config": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1252,27 +1391,37 @@ func monitoringScheduleResource(ctx context.Context) (resource.Resource, error) "security_group_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 5), listvalidator.ValueStringsAre( stringvalidator.LengthAtMost(32), stringvalidator.RegexMatches(regexp.MustCompile("[-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Subnets "subnets": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The ID of the subnets in the VPC to which you want to connect to your monitoring jobs.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 16), listvalidator.ValueStringsAre( stringvalidator.LengthAtMost(32), stringvalidator.RegexMatches(regexp.MustCompile("[-0-9a-zA-Z]+"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC.", @@ -1293,11 +1442,16 @@ func monitoringScheduleResource(ctx context.Context) (resource.Resource, error) // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws[a-z\\-]*:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StoppingCondition "stopping_condition": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1305,10 +1459,15 @@ func monitoringScheduleResource(ctx context.Context) (resource.Resource, error) // Property: MaxRuntimeInSeconds "max_runtime_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum runtime allowed in seconds.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 86400), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies a time limit for how long the monitoring job is allowed to run.", @@ -1388,10 +1547,15 @@ func monitoringScheduleResource(ctx context.Context) (resource.Resource, error) // Property: ScheduleExpression "schedule_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A cron expression or 'NOW' that describes details about the monitoring schedule.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration details about the monitoring schedule.", @@ -1491,20 +1655,30 @@ func monitoringScheduleResource(ctx context.Context) (resource.Resource, error) // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sagemaker/pipeline_resource_gen.go b/internal/aws/sagemaker/pipeline_resource_gen.go index 6cb5ec0b0f..398f42e76c 100644 --- a/internal/aws/sagemaker/pipeline_resource_gen.go +++ b/internal/aws/sagemaker/pipeline_resource_gen.go @@ -13,6 +13,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -20,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -52,10 +54,15 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: MaxParallelExecutionSteps "max_parallel_execution_steps": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Maximum parallel execution steps", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -119,7 +126,14 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the S3 bucket where the PipelineDefinition file is stored.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ETag "e_tag": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -133,7 +147,14 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The file name of the PipelineDefinition file (Amazon S3 object name).", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Version "version": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -263,11 +284,25 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sagemaker/project_resource_gen.go b/internal/aws/sagemaker/project_resource_gen.go index 152da9d3fe..36b92b43b7 100644 --- a/internal/aws/sagemaker/project_resource_gen.go +++ b/internal/aws/sagemaker/project_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -298,20 +299,30 @@ func projectResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The parameter key.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The parameter value.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(4096), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -367,20 +378,30 @@ func projectResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sagemaker/space_resource_gen.go b/internal/aws/sagemaker/space_resource_gen.go index 80aaa746df..c77bf1c259 100644 --- a/internal/aws/sagemaker/space_resource_gen.go +++ b/internal/aws/sagemaker/space_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -73,11 +74,16 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: OwnerUserProfileName "owner_user_profile_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -930,11 +936,16 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: FileSystemId "file_system_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(11, 21), stringvalidator.RegexMatches(regexp.MustCompile("^(fs-[0-9a-f]{8,})$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -997,10 +1008,15 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { // Property: RepositoryUrl "repository_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A CodeRepository (valid URL) to be used within Jupyter's Git extension.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1310,20 +1326,30 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { // Property: AppImageConfigName "app_image_config_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Name of the AppImageConfig.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageName "image_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the CustomImage. Must be unique to your account.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9]([-.]?[a-zA-Z0-9]){0,62}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageVersionNumber "image_version_number": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -1509,10 +1535,15 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { // Property: EbsVolumeSizeInGb "ebs_volume_size_in_gb": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Size of the Amazon EBS volume in Gb", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(5, 16384), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Properties related to the space's Amazon Elastic Block Store volume.", @@ -1562,13 +1593,18 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: SharingType "sharing_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Private", "Shared", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1613,17 +1649,27 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sagemaker/studio_lifecycle_config_resource_gen.go b/internal/aws/sagemaker/studio_lifecycle_config_resource_gen.go index 092a0f3380..23869146d6 100644 --- a/internal/aws/sagemaker/studio_lifecycle_config_resource_gen.go +++ b/internal/aws/sagemaker/studio_lifecycle_config_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -152,17 +153,27 @@ func studioLifecycleConfigResource(ctx context.Context) (resource.Resource, erro Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sagemaker/user_profile_resource_gen.go b/internal/aws/sagemaker/user_profile_resource_gen.go index 1aee7ec5b4..117bce0ce1 100644 --- a/internal/aws/sagemaker/user_profile_resource_gen.go +++ b/internal/aws/sagemaker/user_profile_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -130,17 +131,27 @@ func userProfileResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1159,20 +1170,30 @@ func userProfileResource(ctx context.Context) (resource.Resource, error) { // Property: AppImageConfigName "app_image_config_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Name of the AppImageConfig.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageName "image_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the CustomImage. Must be unique to your account.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9]([-.]?[a-zA-Z0-9]){0,62}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageVersionNumber "image_version_number": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -1358,11 +1379,16 @@ func userProfileResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: FileSystemId "file_system_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(11, 21), stringvalidator.RegexMatches(regexp.MustCompile("^(fs-[0-9a-f]{8,})$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FileSystemPath "file_system_path": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1400,17 +1426,27 @@ func userProfileResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Gid "gid": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1001, 4000000), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Uid "uid": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(10000, 4000000), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1525,10 +1561,15 @@ func userProfileResource(ctx context.Context) (resource.Resource, error) { // Property: RepositoryUrl "repository_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A CodeRepository (valid URL) to be used within Jupyter's Git extension.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1549,20 +1590,30 @@ func userProfileResource(ctx context.Context) (resource.Resource, error) { // Property: AppImageConfigName "app_image_config_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Name of the AppImageConfig.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageName "image_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the CustomImage. Must be unique to your account.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9]([-.]?[a-zA-Z0-9]){0,62}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageVersionNumber "image_version_number": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -1902,20 +1953,30 @@ func userProfileResource(ctx context.Context) (resource.Resource, error) { // Property: AppImageConfigName "app_image_config_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Name of the AppImageConfig.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageName "image_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the CustomImage. Must be unique to your account.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9]([-.]?[a-zA-Z0-9]){0,62}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageVersionNumber "image_version_number": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -2213,18 +2274,28 @@ func userProfileResource(ctx context.Context) (resource.Resource, error) { // Property: DefaultEbsVolumeSizeInGb "default_ebs_volume_size_in_gb": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Default size of the Amazon EBS volume in Gb", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(5, 16384), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaximumEbsVolumeSizeInGb "maximum_ebs_volume_size_in_gb": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Maximum size of the Amazon EBS volume in Gb. Must be greater than or equal to the DefaultEbsVolumeSizeInGb.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(5, 16384), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Properties related to the Amazon Elastic Block Store volume.", diff --git a/internal/aws/scheduler/schedule_group_resource_gen.go b/internal/aws/scheduler/schedule_group_resource_gen.go index 8f104f5930..214c4eb36b 100644 --- a/internal/aws/scheduler/schedule_group_resource_gen.go +++ b/internal/aws/scheduler/schedule_group_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -157,18 +158,28 @@ func scheduleGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Key for the tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Value for the tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/secretsmanager/secret_resource_gen.go b/internal/aws/secretsmanager/secret_resource_gen.go index 1cdbb0eb89..ccfeb549ca 100644 --- a/internal/aws/secretsmanager/secret_resource_gen.go +++ b/internal/aws/secretsmanager/secret_resource_gen.go @@ -16,8 +16,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -281,7 +283,14 @@ func secretResource(ctx context.Context) (resource.Resource, error) { // Property: Region "region": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string that represents a ``Region``, for example \"us-east-1\".", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -343,12 +352,26 @@ func secretResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key identifier, or name, of the tag.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string value associated with the key of the tag.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/securityhub/insight_resource_gen.go b/internal/aws/securityhub/insight_resource_gen.go index de2bdbee51..7bad73c69c 100644 --- a/internal/aws/securityhub/insight_resource_gen.go +++ b/internal/aws/securityhub/insight_resource_gen.go @@ -12,6 +12,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" @@ -20,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -3481,7 +3483,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -3489,15 +3492,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3519,7 +3531,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -3527,15 +3540,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3557,7 +3579,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -3565,15 +3588,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3595,7 +3627,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -3603,15 +3636,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3633,7 +3675,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -3641,15 +3684,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3671,7 +3723,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -3679,15 +3732,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3709,7 +3771,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -3717,15 +3780,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3747,7 +3819,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -3755,15 +3828,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3832,17 +3914,29 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A date range unit for the date filter.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DAYS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "A date range value for the date filter.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A date range for the date filter.", @@ -3934,7 +4028,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -3942,15 +4037,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4060,7 +4164,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -4068,15 +4173,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4098,7 +4212,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -4106,15 +4221,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4136,7 +4260,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -4144,15 +4269,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4174,7 +4308,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -4182,15 +4317,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4212,7 +4356,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -4220,15 +4365,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4253,17 +4407,29 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A date range unit for the date filter.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DAYS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "A date range value for the date filter.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A date range for the date filter.", @@ -4311,7 +4477,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -4319,15 +4486,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4349,7 +4525,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -4357,15 +4534,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4387,10 +4573,15 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A value for the keyword.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4415,17 +4606,29 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A date range unit for the date filter.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DAYS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "A date range value for the date filter.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A date range for the date filter.", @@ -4473,7 +4676,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -4481,15 +4685,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4511,7 +4724,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -4519,15 +4733,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4549,7 +4772,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -4557,15 +4781,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4587,7 +4820,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -4595,15 +4829,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4625,7 +4868,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -4633,15 +4877,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4663,10 +4916,15 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Cidr "cidr": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A finding's CIDR value.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4688,10 +4946,15 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Cidr "cidr": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A finding's CIDR value.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4757,7 +5020,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -4765,15 +5029,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4795,7 +5068,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -4803,15 +5077,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4833,7 +5116,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -4841,16 +5125,25 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - }, /*END ATTRIBUTE*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ + }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The source domain of network-related information about a finding.", @@ -4871,10 +5164,15 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Cidr "cidr": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A finding's CIDR value.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4896,10 +5194,15 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Cidr "cidr": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A finding's CIDR value.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -4921,7 +5224,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -4929,15 +5233,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5003,7 +5316,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -5011,15 +5325,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5044,17 +5367,29 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A date range unit for the date filter.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DAYS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "A date range value for the date filter.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A date range for the date filter.", @@ -5102,7 +5437,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -5110,15 +5446,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5143,17 +5488,29 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A date range unit for the date filter.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DAYS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "A date range value for the date filter.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A date range for the date filter.", @@ -5201,7 +5558,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -5209,15 +5567,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5283,7 +5650,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -5291,15 +5659,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5368,17 +5745,29 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A date range unit for the date filter.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DAYS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "A date range value for the date filter.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A date range for the date filter.", @@ -5426,7 +5815,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -5434,15 +5824,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5464,29 +5863,44 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to the key value when filtering Security Hub findings with a map filter.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5508,7 +5922,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -5516,15 +5931,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5546,7 +5970,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -5554,15 +5979,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5584,7 +6018,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -5592,15 +6027,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5622,7 +6066,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -5630,15 +6075,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5660,7 +6114,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -5668,15 +6123,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5698,7 +6162,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -5706,15 +6171,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5736,7 +6210,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -5744,15 +6219,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5774,7 +6258,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -5782,15 +6267,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5812,7 +6306,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -5820,15 +6315,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5850,7 +6354,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -5858,15 +6363,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5888,10 +6402,15 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Cidr "cidr": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A finding's CIDR value.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5913,10 +6432,15 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Cidr "cidr": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A finding's CIDR value.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5938,7 +6462,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -5946,15 +6471,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -5979,17 +6513,29 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A date range unit for the date filter.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DAYS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "A date range value for the date filter.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A date range for the date filter.", @@ -6037,7 +6583,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -6045,15 +6592,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6075,7 +6631,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -6083,15 +6640,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6113,7 +6679,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -6121,15 +6688,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6154,17 +6730,29 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A date range unit for the date filter.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DAYS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "A date range value for the date filter.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A date range for the date filter.", @@ -6212,7 +6800,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -6220,15 +6809,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6250,7 +6848,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -6258,15 +6857,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6288,7 +6896,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -6296,15 +6905,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6326,7 +6944,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -6334,15 +6953,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6364,7 +6992,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -6372,15 +7001,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6402,7 +7040,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -6410,15 +7049,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6440,7 +7088,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -6448,15 +7097,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6478,7 +7136,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -6486,15 +7145,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6519,17 +7187,29 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A date range unit for the date filter.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DAYS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "A date range value for the date filter.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A date range for the date filter.", @@ -6577,7 +7257,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -6585,15 +7266,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6615,29 +7305,44 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to the key value when filtering Security Hub findings with a map filter.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6659,7 +7364,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -6667,15 +7373,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6697,7 +7412,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -6705,15 +7421,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6735,7 +7460,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -6743,15 +7469,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6773,29 +7508,44 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to the key value when filtering Security Hub findings with a map filter.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6817,7 +7567,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -6825,15 +7576,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6855,7 +7615,14 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "The value of the boolean.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -6877,7 +7644,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -6885,15 +7653,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -7003,7 +7780,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -7011,15 +7789,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -7041,7 +7828,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -7049,15 +7837,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -7082,17 +7879,29 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A date range unit for the date filter.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DAYS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "A date range value for the date filter.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A date range for the date filter.", @@ -7140,7 +7949,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -7148,15 +7958,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -7178,7 +7997,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -7186,15 +8006,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -7216,7 +8045,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -7224,15 +8054,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -7254,7 +8093,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -7262,15 +8102,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -7292,7 +8141,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -7300,15 +8150,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -7330,7 +8189,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -7338,15 +8198,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -7371,17 +8240,29 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Unit "unit": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A date range unit for the date filter.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DAYS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "A date range value for the date filter.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A date range for the date filter.", @@ -7429,29 +8310,44 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to the key value when filtering Security Hub findings with a map filter.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -7473,7 +8369,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -7481,15 +8378,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -7511,7 +8417,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -7519,15 +8426,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -7549,7 +8465,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -7557,15 +8474,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -7587,7 +8513,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -7595,15 +8522,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -7625,7 +8561,8 @@ func insightResource(ctx context.Context) (resource.Resource, error) { // Property: Comparison "comparison": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The condition to apply to a string value when filtering Security Hub findings.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -7633,15 +8570,24 @@ func insightResource(ctx context.Context) (resource.Resource, error) { "NOT_EQUALS", "PREFIX_NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Non-empty string definition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/securityhub/standard_resource_gen.go b/internal/aws/securityhub/standard_resource_gen.go index 157cb2b145..bae69e497d 100644 --- a/internal/aws/securityhub/standard_resource_gen.go +++ b/internal/aws/securityhub/standard_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -74,10 +75,15 @@ func standardResource(ctx context.Context) (resource.Resource, error) { // Property: StandardsControlArn "standards_control_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the control.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("arn:aws\\S*:securityhub:\\S*"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/securitylake/data_lake_resource_gen.go b/internal/aws/securitylake/data_lake_resource_gen.go index abc6e0dd57..188282fad7 100644 --- a/internal/aws/securitylake/data_lake_resource_gen.go +++ b/internal/aws/securitylake/data_lake_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -323,12 +324,26 @@ func dataLakeResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, `_`, `.`, `/`, `=`, `+`, and `-`.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 characters in length.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/securitylake/subscriber_notification_resource_gen.go b/internal/aws/securitylake/subscriber_notification_resource_gen.go index de0b402d14..1d561d0b70 100644 --- a/internal/aws/securitylake/subscriber_notification_resource_gen.go +++ b/internal/aws/securitylake/subscriber_notification_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -119,10 +120,15 @@ func subscriberNotificationResource(ctx context.Context) (resource.Resource, err // Property: Endpoint "endpoint": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subscription endpoint in Security Lake.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^https?://.+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ // Endpoint is a write-only property. }, /*END ATTRIBUTE*/ // Property: HttpMethod @@ -144,10 +150,15 @@ func subscriberNotificationResource(ctx context.Context) (resource.Resource, err // Property: TargetRoleArn "target_role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the EventBridge API destinations IAM role that you created.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ // TargetRoleArn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/servicecatalog/cloudformation_provisioned_product_resource_gen.go b/internal/aws/servicecatalog/cloudformation_provisioned_product_resource_gen.go index c3e6f1c796..67c27a4e67 100644 --- a/internal/aws/servicecatalog/cloudformation_provisioned_product_resource_gen.go +++ b/internal/aws/servicecatalog/cloudformation_provisioned_product_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -285,17 +286,27 @@ func cloudFormationProvisionedProductResource(ctx context.Context) (resource.Res Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(4096), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -501,19 +512,29 @@ func cloudFormationProvisionedProductResource(ctx context.Context) (resource.Res Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ses/configuration_set_event_destination_resource_gen.go b/internal/aws/ses/configuration_set_event_destination_resource_gen.go index c2f2c16cbd..1c59b0e30e 100644 --- a/internal/aws/ses/configuration_set_event_destination_resource_gen.go +++ b/internal/aws/ses/configuration_set_event_destination_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -182,25 +183,42 @@ func configurationSetEventDestinationResource(ctx context.Context) (resource.Res // Property: DefaultDimensionValue "default_dimension_value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The default value of the dimension that is published to Amazon CloudWatch if you do not provide the value of the dimension when you send an email.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_-]{1,256}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DimensionName "dimension_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of an Amazon CloudWatch dimension associated with an email sending metric.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_:-]{1,256}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DimensionValueSource "dimension_value_source": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The place where Amazon SES finds the value of a dimension to publish to Amazon CloudWatch. To use the message tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the SendEmail/SendRawEmail API, specify messageTag. To use your own email headers, specify emailHeader. To put a custom tag on any link included in your email, specify linkTag.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -234,11 +252,16 @@ func configurationSetEventDestinationResource(ctx context.Context) (resource.Res Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: EventBusArn "event_bus_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(36, 1024), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws[a-z0-9-]*:events:[a-z0-9-]+:\\d{12}:event-bus/[^:]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "An object that contains Event bus ARN associated with the event bridge destination.", @@ -254,12 +277,26 @@ func configurationSetEventDestinationResource(ctx context.Context) (resource.Res // Property: DeliveryStreamARN "delivery_stream_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the Amazon Kinesis Firehose stream that email sending events should be published to.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IAMRoleARN "iam_role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the IAM role under which Amazon SES publishes email sending events to the Amazon Kinesis Firehose stream.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "An object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.", @@ -295,11 +332,16 @@ func configurationSetEventDestinationResource(ctx context.Context) (resource.Res Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: TopicARN "topic_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(36, 1024), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws[a-z0-9-]*:sns:[a-z0-9-]+:\\d{12}:[^:]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "An object that contains SNS topic ARN associated event destination.", diff --git a/internal/aws/ses/configuration_set_resource_gen.go b/internal/aws/ses/configuration_set_resource_gen.go index d03517865c..9d3808c338 100644 --- a/internal/aws/ses/configuration_set_resource_gen.go +++ b/internal/aws/ses/configuration_set_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -296,10 +297,15 @@ func configurationSetResource(ctx context.Context) (resource.Resource, error) { // Property: EngagementMetrics "engagement_metrics": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Whether emails sent with this configuration set have engagement tracking enabled.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("ENABLED|DISABLED"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Preferences regarding the Dashboard feature.", @@ -315,10 +321,15 @@ func configurationSetResource(ctx context.Context) (resource.Resource, error) { // Property: OptimizedSharedDelivery "optimized_shared_delivery": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Whether emails sent with this configuration set have optimized delivery algorithm enabled.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("ENABLED|DISABLED"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Preferences regarding the Guardian feature.", diff --git a/internal/aws/ses/contact_list_resource_gen.go b/internal/aws/ses/contact_list_resource_gen.go index e298ebc12b..95a9c81505 100644 --- a/internal/aws/ses/contact_list_resource_gen.go +++ b/internal/aws/ses/contact_list_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -103,17 +104,27 @@ func contactListResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -174,7 +185,14 @@ func contactListResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DefaultSubscriptionStatus "default_subscription_status": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Description "description": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -191,18 +209,28 @@ func contactListResource(ctx context.Context) (resource.Resource, error) { // Property: DisplayName "display_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The display name of the topic.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TopicName "topic_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the topic.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_-]{1,64}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ses/mail_manager_addon_instance_resource_gen.go b/internal/aws/ses/mail_manager_addon_instance_resource_gen.go index d9cb572c12..5cb5380326 100644 --- a/internal/aws/ses/mail_manager_addon_instance_resource_gen.go +++ b/internal/aws/ses/mail_manager_addon_instance_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -122,19 +123,29 @@ func mailManagerAddonInstanceResource(ctx context.Context) (resource.Resource, e Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9/_\\+=\\.:@\\-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9/_\\+=\\.:@\\-]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ses/mail_manager_addon_subscription_resource_gen.go b/internal/aws/ses/mail_manager_addon_subscription_resource_gen.go index a4541b9d64..a2deed3347 100644 --- a/internal/aws/ses/mail_manager_addon_subscription_resource_gen.go +++ b/internal/aws/ses/mail_manager_addon_subscription_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -103,19 +104,29 @@ func mailManagerAddonSubscriptionResource(ctx context.Context) (resource.Resourc Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9/_\\+=\\.:@\\-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9/_\\+=\\.:@\\-]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ses/mail_manager_archive_resource_gen.go b/internal/aws/ses/mail_manager_archive_resource_gen.go index 17ff510acc..73f0fff684 100644 --- a/internal/aws/ses/mail_manager_archive_resource_gen.go +++ b/internal/aws/ses/mail_manager_archive_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -211,19 +212,29 @@ func mailManagerArchiveResource(ctx context.Context) (resource.Resource, error) Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9/_\\+=\\.:@\\-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9/_\\+=\\.:@\\-]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ses/mail_manager_ingress_point_resource_gen.go b/internal/aws/ses/mail_manager_ingress_point_resource_gen.go index 91b680749d..61e294bd76 100644 --- a/internal/aws/ses/mail_manager_ingress_point_resource_gen.go +++ b/internal/aws/ses/mail_manager_ingress_point_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -231,19 +232,29 @@ func mailManagerIngressPointResource(ctx context.Context) (resource.Resource, er Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9/_\\+=\\.:@\\-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9/_\\+=\\.:@\\-]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ses/mail_manager_relay_resource_gen.go b/internal/aws/ses/mail_manager_relay_resource_gen.go index 1e4cf5e326..eb92afaaca 100644 --- a/internal/aws/ses/mail_manager_relay_resource_gen.go +++ b/internal/aws/ses/mail_manager_relay_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -184,19 +185,29 @@ func mailManagerRelayResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9/_\\+=\\.:@\\-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9/_\\+=\\.:@\\-]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ses/mail_manager_rule_set_resource_gen.go b/internal/aws/ses/mail_manager_rule_set_resource_gen.go index 1d7627ae79..6cc1fad1dd 100644 --- a/internal/aws/ses/mail_manager_rule_set_resource_gen.go +++ b/internal/aws/ses/mail_manager_rule_set_resource_gen.go @@ -14,6 +14,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -22,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -827,18 +829,28 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: HeaderName "header_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), stringvalidator.RegexMatches(regexp.MustCompile("^[xX]\\-[a-zA-Z0-9\\-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HeaderValue "header_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -866,11 +878,16 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) }, /*END ATTRIBUTE*/ // Property: TargetArchive "target_archive": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9:_/+=,@.#-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -898,19 +915,29 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) }, /*END ATTRIBUTE*/ // Property: MailboxArn "mailbox_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9:_/+=,@.#-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9:_/+=,@.#-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -961,11 +988,16 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) }, /*END ATTRIBUTE*/ // Property: Relay "relay": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9:_/+=,@.#-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1020,11 +1052,16 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9:_/+=,@.#-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1052,19 +1089,29 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9:_/+=,@.#-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Bucket "s3_bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 62), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9.-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Prefix "s3_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1130,17 +1177,29 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "IS_TRUE", "IS_FALSE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1154,18 +1213,24 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 10), listvalidator.ValueStringsAre( @@ -1175,7 +1240,11 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) "REJECT", ), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1204,29 +1273,46 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "CIDR_MATCHES", "NOT_CIDR_MATCHES", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 10), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 18), stringvalidator.RegexMatches(regexp.MustCompile("^(([0-9]|.|/)*)$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1255,11 +1341,19 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -1269,11 +1363,22 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) "LESS_THAN_OR_EQUAL", "GREATER_THAN_OR_EQUAL", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1309,11 +1414,19 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -1322,18 +1435,27 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) "ENDS_WITH", "CONTAINS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 10), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 4096), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1353,18 +1475,28 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Analyzer "analyzer": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9:_/+=,@.#-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResultField "result_field": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[\\sa-zA-Z0-9_]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1388,22 +1520,35 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 10), listvalidator.ValueStringsAre( @@ -1414,7 +1559,11 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) "PROCESSING_FAILED", ), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1472,17 +1621,29 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "IS_TRUE", "IS_FALSE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1496,18 +1657,24 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 10), listvalidator.ValueStringsAre( @@ -1517,7 +1684,11 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) "REJECT", ), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1546,29 +1717,46 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "CIDR_MATCHES", "NOT_CIDR_MATCHES", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 10), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 18), stringvalidator.RegexMatches(regexp.MustCompile("^(([0-9]|.|/)*)$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1597,11 +1785,19 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -1611,11 +1807,22 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) "LESS_THAN_OR_EQUAL", "GREATER_THAN_OR_EQUAL", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Float64{ /*START VALIDATORS*/ + fwvalidators.NotNullFloat64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1651,11 +1858,19 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -1664,18 +1879,27 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) "ENDS_WITH", "CONTAINS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 10), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 4096), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1695,18 +1919,28 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Analyzer "analyzer": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9:_/+=,@.#-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResultField "result_field": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[\\sa-zA-Z0-9_]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1730,22 +1964,35 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", "NOT_EQUALS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 10), listvalidator.ValueStringsAre( @@ -1756,7 +2003,11 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) "PROCESSING_FAILED", ), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -1818,19 +2069,29 @@ func mailManagerRuleSetResource(ctx context.Context) (resource.Resource, error) Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9/_\\+=\\.:@\\-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9/_\\+=\\.:@\\-]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ses/mail_manager_traffic_policy_resource_gen.go b/internal/aws/ses/mail_manager_traffic_policy_resource_gen.go index 90cd4bcf24..e4c30fbbfc 100644 --- a/internal/aws/ses/mail_manager_traffic_policy_resource_gen.go +++ b/internal/aws/ses/mail_manager_traffic_policy_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -281,18 +282,28 @@ func mailManagerTrafficPolicyResource(ctx context.Context) (resource.Resource, e Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Analyzer "analyzer": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9:_/+=,@.#-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResultField "result_field": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[\\sa-zA-Z0-9_]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -302,17 +313,29 @@ func mailManagerTrafficPolicyResource(ctx context.Context) (resource.Resource, e }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "IS_TRUE", "IS_FALSE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -341,27 +364,44 @@ func mailManagerTrafficPolicyResource(ctx context.Context) (resource.Resource, e }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "CIDR_MATCHES", "NOT_CIDR_MATCHES", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.RegexMatches(regexp.MustCompile("^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/([0-9]|[12][0-9]|3[0-2])$"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -390,11 +430,19 @@ func mailManagerTrafficPolicyResource(ctx context.Context) (resource.Resource, e }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EQUALS", @@ -403,12 +451,23 @@ func mailManagerTrafficPolicyResource(ctx context.Context) (resource.Resource, e "ENDS_WITH", "CONTAINS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -437,27 +496,44 @@ func mailManagerTrafficPolicyResource(ctx context.Context) (resource.Resource, e }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Operator "operator": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "MINIMUM_TLS_VERSION", "IS", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "TLS1_2", "TLS1_3", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -512,19 +588,29 @@ func mailManagerTrafficPolicyResource(ctx context.Context) (resource.Resource, e Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9/_\\+=\\.:@\\-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9/_\\+=\\.:@\\-]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ses/template_resource_gen.go b/internal/aws/ses/template_resource_gen.go index abc8579ddb..6158621f36 100644 --- a/internal/aws/ses/template_resource_gen.go +++ b/internal/aws/ses/template_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -86,7 +87,14 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: SubjectPart "subject_part": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subject line of the email.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TemplateName "template_name": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/shield/protection_group_resource_gen.go b/internal/aws/shield/protection_group_resource_gen.go index fa6882dc8e..b8a6d79ea4 100644 --- a/internal/aws/shield/protection_group_resource_gen.go +++ b/internal/aws/shield/protection_group_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -212,18 +213,28 @@ func protectionGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as \"customer.\" Tag keys are case-sensitive.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as \"companyA\" or \"companyB.\" Tag values are case-sensitive.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/shield/protection_resource_gen.go b/internal/aws/shield/protection_resource_gen.go index c2357f05b0..fb5e6c4b2b 100644 --- a/internal/aws/shield/protection_resource_gen.go +++ b/internal/aws/shield/protection_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -97,18 +98,30 @@ func protectionResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the action setting that Shield Advanced should use in the AWS WAF rules that it creates on behalf of the protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, when you enable or update automatic mitigation. Shield Advanced creates the AWS WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Status "status": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether automatic application layer DDoS mitigation is enabled for the protection.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ENABLED", "DISABLED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The automatic application layer DDoS mitigation settings for a Protection. This configuration determines whether Shield Advanced automatically manages rules in the web ACL in order to respond to application layer events that Shield Advanced determines to be DDoS attacks.", @@ -254,18 +267,28 @@ func protectionResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as \"customer.\" Tag keys are case-sensitive.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as \"companyA\" or \"companyB.\" Tag values are case-sensitive.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/simspaceweaver/simulation_resource_gen.go b/internal/aws/simspaceweaver/simulation_resource_gen.go index 2d0bc05ad5..475aa4ed95 100644 --- a/internal/aws/simspaceweaver/simulation_resource_gen.go +++ b/internal/aws/simspaceweaver/simulation_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -128,19 +129,29 @@ func simulationResource(ctx context.Context) (resource.Resource, error) { // Property: BucketName "bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Schema S3 bucket name.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9_\\-]{3,63}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ObjectKey "object_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "This is the schema S3 object key, which includes the full path of \"folders\" from the bucket root to the schema.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -181,19 +192,29 @@ func simulationResource(ctx context.Context) (resource.Resource, error) { // Property: BucketName "bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Schema S3 bucket name.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9_\\-]{3,63}$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ObjectKey "object_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "This is the schema S3 object key, which includes the full path of \"folders\" from the bucket root to the schema.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 255), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/sns/topic_resource_gen.go b/internal/aws/sns/topic_resource_gen.go index f7956764e4..7261e8e00e 100644 --- a/internal/aws/sns/topic_resource_gen.go +++ b/internal/aws/sns/topic_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -134,7 +135,8 @@ func topicResource(ctx context.Context) (resource.Resource, error) { // Property: Protocol "protocol": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Indicates one of the supported protocols for the Amazon SNS topic.\n At least one of the other three ``LoggingConfig`` properties is recommend along with ``Protocol``.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "http/s", @@ -143,7 +145,11 @@ func topicResource(ctx context.Context) (resource.Resource, error) { "firehose", "application", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SuccessFeedbackRoleArn "success_feedback_role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -276,12 +282,26 @@ func topicResource(ctx context.Context) (resource.Resource, error) { // Property: Endpoint "endpoint": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The endpoint that receives notifications from the SNS topic. The endpoint value depends on the protocol that you specify. For more information, see the ``Endpoint`` parameter of the ``Subscribe`` action in the *API Reference*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Protocol "protocol": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subscription's protocol. For more information, see the ``Protocol`` parameter of the ``Subscribe`` action in the *API Reference*.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -327,12 +347,26 @@ func topicResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The required key portion of the tag.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The optional value portion of the tag.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sqs/queue_resource_gen.go b/internal/aws/sqs/queue_resource_gen.go index 36c01a17af..85bfb3d14a 100644 --- a/internal/aws/sqs/queue_resource_gen.go +++ b/internal/aws/sqs/queue_resource_gen.go @@ -15,8 +15,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -301,12 +303,26 @@ func queueResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ssm/association_resource_gen.go b/internal/aws/ssm/association_resource_gen.go index c94d58801a..c90359690d 100644 --- a/internal/aws/ssm/association_resource_gen.go +++ b/internal/aws/ssm/association_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -483,18 +484,28 @@ func associationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]{1,128}$|resource-groups:Name"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 50), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ssm/patch_baseline_resource_gen.go b/internal/aws/ssm/patch_baseline_resource_gen.go index 0a3dda0627..b1009296b5 100644 --- a/internal/aws/ssm/patch_baseline_resource_gen.go +++ b/internal/aws/ssm/patch_baseline_resource_gen.go @@ -26,6 +26,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -837,17 +838,27 @@ func patchBaselineResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ssm/resource_data_sync_resource_gen.go b/internal/aws/ssm/resource_data_sync_resource_gen.go index 3b9d9c1c95..8eb6c9bb27 100644 --- a/internal/aws/ssm/resource_data_sync_resource_gen.go +++ b/internal/aws/ssm/resource_data_sync_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -149,10 +150,15 @@ func resourceDataSyncResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketName "bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BucketPrefix "bucket_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -167,10 +173,15 @@ func resourceDataSyncResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: BucketRegion "bucket_region": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KMSKeyArn "kms_key_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -185,10 +196,15 @@ func resourceDataSyncResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: SyncFormat "sync_format": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -290,10 +306,15 @@ func resourceDataSyncResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: OrganizationSourceType "organization_source_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OrganizationalUnits "organizational_units": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -322,14 +343,26 @@ func resourceDataSyncResource(ctx context.Context) (resource.Resource, error) { // Property: SourceRegions "source_regions": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceType "source_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/ssmcontacts/contact_resource_gen.go b/internal/aws/ssmcontacts/contact_resource_gen.go index e6453ed5c7..ec38bb8afc 100644 --- a/internal/aws/ssmcontacts/contact_resource_gen.go +++ b/internal/aws/ssmcontacts/contact_resource_gen.go @@ -12,6 +12,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" @@ -21,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -216,12 +218,26 @@ func contactResource(ctx context.Context) (resource.Resource, error) { // Property: ChannelId "channel_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the contact channel.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RetryIntervalInMinutes "retry_interval_in_minutes": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of minutes to wait to retry sending engagement in the case the engagement initially fails.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information about the contact channel that SSM Incident Manager uses to engage the contact.", @@ -237,12 +253,26 @@ func contactResource(ctx context.Context) (resource.Resource, error) { // Property: ContactId "contact_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the contact.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IsEssential "is_essential": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "A Boolean value determining if the contact's acknowledgement stops the progress of stages in the plan.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The contact that SSM Incident Manager is engaging during an incident.", diff --git a/internal/aws/ssmcontacts/plan_resource_gen.go b/internal/aws/ssmcontacts/plan_resource_gen.go index 4bddc7bd54..3a0ad0b650 100644 --- a/internal/aws/ssmcontacts/plan_resource_gen.go +++ b/internal/aws/ssmcontacts/plan_resource_gen.go @@ -12,6 +12,8 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -20,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -176,7 +179,14 @@ func planResource(ctx context.Context) (resource.Resource, error) { // Property: DurationInMinutes "duration_in_minutes": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The time to wait until beginning the next stage.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Targets "targets": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -188,12 +198,26 @@ func planResource(ctx context.Context) (resource.Resource, error) { // Property: ChannelId "channel_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the contact channel.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RetryIntervalInMinutes "retry_interval_in_minutes": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of minutes to wait to retry sending engagement in the case the engagement initially fails.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Int64{ /*START VALIDATORS*/ + fwvalidators.NotNullInt64(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information about the contact channel that SSM Incident Manager uses to engage the contact.", @@ -209,12 +233,26 @@ func planResource(ctx context.Context) (resource.Resource, error) { // Property: ContactId "contact_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the contact.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IsEssential "is_essential": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "A Boolean value determining if the contact's acknowledgement stops the progress of stages in the plan.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The contact that SSM Incident Manager is engaging during an incident.", diff --git a/internal/aws/ssmcontacts/rotation_resource_gen.go b/internal/aws/ssmcontacts/rotation_resource_gen.go index 29b1dfb9b6..70bdcbd881 100644 --- a/internal/aws/ssmcontacts/rotation_resource_gen.go +++ b/internal/aws/ssmcontacts/rotation_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -275,18 +276,28 @@ func rotationResource(ctx context.Context) (resource.Resource, error) { // Property: DayOfMonth "day_of_month": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The day of the month when monthly recurring on-call rotations begin.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 31), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HandOffTime "hand_off_time": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Details about when an on-call rotation shift begins or ends. Time of the day in format HH:MM", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -333,31 +344,47 @@ func rotationResource(ctx context.Context) (resource.Resource, error) { // Property: EndTime "end_time": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Details about when an on-call rotation shift begins or ends. Time of the day in format HH:MM", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StartTime "start_time": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Details about when an on-call rotation shift begins or ends. Time of the day in format HH:MM", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Information about when an on-call shift begins and ends.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DayOfWeek "day_of_week": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The day of the week when weekly recurring on-call shift rotations begin. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "MON", @@ -368,7 +395,11 @@ func rotationResource(ctx context.Context) (resource.Resource, error) { "SAT", "SUN", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -387,7 +418,8 @@ func rotationResource(ctx context.Context) (resource.Resource, error) { // Property: DayOfWeek "day_of_week": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The day of the week when weekly recurring on-call shift rotations begin. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "MON", @@ -398,15 +430,24 @@ func rotationResource(ctx context.Context) (resource.Resource, error) { "SAT", "SUN", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HandOffTime "hand_off_time": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Details about when an on-call rotation shift begins or ends. Time of the day in format HH:MM", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -474,18 +515,28 @@ func rotationResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ssmincidents/replication_set_resource_gen.go b/internal/aws/ssmincidents/replication_set_resource_gen.go index c8ca431a71..400581e988 100644 --- a/internal/aws/ssmincidents/replication_set_resource_gen.go +++ b/internal/aws/ssmincidents/replication_set_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-provider-awscc/internal/defaults" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -114,11 +115,16 @@ func replicationSetResource(ctx context.Context) (resource.Resource, error) { // Property: SseKmsKeyId "sse_kms_key_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the ReplicationSet.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1000), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(-(cn|us-gov|iso(-b)?))?:[a-z-]+:(([a-z]+-)+[0-9])?:([0-9]{12})?:[^.]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The ReplicationSet regional configuration.", @@ -186,17 +192,27 @@ func replicationSetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ssmincidents/response_plan_resource_gen.go b/internal/aws/ssmincidents/response_plan_resource_gen.go index 8137b63128..48a9d8a964 100644 --- a/internal/aws/ssmincidents/response_plan_resource_gen.go +++ b/internal/aws/ssmincidents/response_plan_resource_gen.go @@ -25,6 +25,7 @@ import ( "github.com/hashicorp/terraform-provider-awscc/internal/defaults" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -172,10 +173,15 @@ func responsePlanResource(ctx context.Context) (resource.Resource, error) { // Property: DocumentName "document_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The document name to use when starting the SSM automation document.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DocumentVersion "document_version": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -195,10 +201,15 @@ func responsePlanResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -220,7 +231,14 @@ func responsePlanResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Value of the dynamic parameter to set when starting the SSM automation document.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -241,22 +259,32 @@ func responsePlanResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(10), listvalidator.UniqueValues(), listvalidator.ValueStringsAre( stringvalidator.LengthAtMost(10000), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -274,11 +302,16 @@ func responsePlanResource(ctx context.Context) (resource.Resource, error) { // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The role ARN to use when starting the SSM automation document.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1000), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(-(cn|us-gov))?:[a-z-]+:(([a-z]+-)+[0-9])?:([0-9]{12})?:[^.]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TargetAccount "target_account": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -551,17 +584,27 @@ func responsePlanResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -704,10 +747,15 @@ func responsePlanResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the pagerDuty configuration.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 200), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PagerDutyIncidentConfiguration "pager_duty_incident_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -715,22 +763,39 @@ func responsePlanResource(ctx context.Context) (resource.Resource, error) { // Property: ServiceId "service_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The pagerDuty serviceId.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 200), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The pagerDuty incident configuration.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretId "secret_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The AWS secrets manager secretId storing the pagerDuty token.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The pagerDuty configuration to use when starting the incident.", @@ -813,17 +878,27 @@ func responsePlanResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sso/application_resource_gen.go b/internal/aws/sso/application_resource_gen.go index 424e8c4f7c..abec13b89e 100644 --- a/internal/aws/sso/application_resource_gen.go +++ b/internal/aws/sso/application_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -191,13 +192,18 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: Origin "origin": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "This determines how IAM Identity Center navigates the user to the target application", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "IDENTITY_CENTER", "APPLICATION", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A structure that describes the sign-in options for the access portal", @@ -292,19 +298,29 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[\\w+=,.@-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[\\w+=,.@-]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sso/instance_access_control_attribute_configuration_resource_gen.go b/internal/aws/sso/instance_access_control_attribute_configuration_resource_gen.go index 36bc90c2ca..8d51c407c4 100644 --- a/internal/aws/sso/instance_access_control_attribute_configuration_resource_gen.go +++ b/internal/aws/sso/instance_access_control_attribute_configuration_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -80,11 +81,16 @@ func instanceAccessControlAttributeConfigurationResource(ctx context.Context) (r Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -92,17 +98,29 @@ func instanceAccessControlAttributeConfigurationResource(ctx context.Context) (r // Property: Source "source": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(1), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@\\[\\]\\{\\}\\$\\\\\"]*"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -178,11 +196,16 @@ func instanceAccessControlAttributeConfigurationResource(ctx context.Context) (r Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -190,26 +213,41 @@ func instanceAccessControlAttributeConfigurationResource(ctx context.Context) (r // Property: Source "source": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(1), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@\\[\\]\\{\\}\\$\\\\\"]*"), ""), ), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(50), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/sso/instance_resource_gen.go b/internal/aws/sso/instance_resource_gen.go index dfb91b9b8c..83fe3aaa1f 100644 --- a/internal/aws/sso/instance_resource_gen.go +++ b/internal/aws/sso/instance_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -158,19 +159,29 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("[\\w+=,.@-]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("[\\w+=,.@-]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/sso/permission_set_resource_gen.go b/internal/aws/sso/permission_set_resource_gen.go index ae3cf225dc..899dacad4a 100644 --- a/internal/aws/sso/permission_set_resource_gen.go +++ b/internal/aws/sso/permission_set_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-provider-awscc/internal/defaults" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -67,11 +68,16 @@ func permissionSetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("[\\w+=,.@-]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Path "path": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -267,11 +273,16 @@ func permissionSetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("[\\w+=,.@-]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Path "path": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -390,19 +401,29 @@ func permissionSetResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("[\\w+=,.@-]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("[\\w+=,.@-]+"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/stepfunctions/activity_resource_gen.go b/internal/aws/stepfunctions/activity_resource_gen.go index 207274fe8f..4ca58120fc 100644 --- a/internal/aws/stepfunctions/activity_resource_gen.go +++ b/internal/aws/stepfunctions/activity_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -99,13 +100,18 @@ func activityResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "CUSTOMER_MANAGED_KMS_KEY", "AWS_OWNED_KEY", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -165,17 +171,27 @@ func activityResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/stepfunctions/state_machine_alias_resource_gen.go b/internal/aws/stepfunctions/state_machine_alias_resource_gen.go index 97c46101bf..aee15d13a2 100644 --- a/internal/aws/stepfunctions/state_machine_alias_resource_gen.go +++ b/internal/aws/stepfunctions/state_machine_alias_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -145,22 +146,32 @@ func stateMachineAliasResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: StateMachineVersionArn "state_machine_version_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of deployment to perform.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "LINEAR", "ALL_AT_ONCE", "CANARY", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The settings to enable gradual state machine deployments.", @@ -251,18 +262,28 @@ func stateMachineAliasResource(ctx context.Context) (resource.Resource, error) { // Property: StateMachineVersionArn "state_machine_version_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) that identifies one or two state machine versions defined in the routing configuration.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Weight "weight": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The percentage of traffic you want to route to the state machine version. The sum of the weights in the routing configuration must be equal to 100.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 100), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/stepfunctions/state_machine_resource_gen.go b/internal/aws/stepfunctions/state_machine_resource_gen.go index de2dfacd04..a2f9df365e 100644 --- a/internal/aws/stepfunctions/state_machine_resource_gen.go +++ b/internal/aws/stepfunctions/state_machine_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -88,11 +89,25 @@ func stateMachineResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Version "version": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -367,17 +382,27 @@ func stateMachineResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/synthetics/canary_resource_gen.go b/internal/aws/synthetics/canary_resource_gen.go index 8fdd868334..5ed4ea3212 100644 --- a/internal/aws/synthetics/canary_resource_gen.go +++ b/internal/aws/synthetics/canary_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -493,18 +494,28 @@ func canaryResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -548,12 +559,26 @@ func canaryResource(ctx context.Context) (resource.Resource, error) { // Property: SecurityGroupIds "security_group_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetIds "subnet_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VpcId "vpc_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -617,7 +642,14 @@ func canaryResource(ctx context.Context) (resource.Resource, error) { // Property: BaseCanaryRunId "base_canary_run_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Canary run id to be used as base reference for visual testing", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BaseScreenshots "base_screenshots": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -636,7 +668,14 @@ func canaryResource(ctx context.Context) (resource.Resource, error) { // Property: ScreenshotName "screenshot_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Name of the screenshot to be used as base reference for visual testing", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/synthetics/group_resource_gen.go b/internal/aws/synthetics/group_resource_gen.go index 3ae21dd67a..0b62edd192 100644 --- a/internal/aws/synthetics/group_resource_gen.go +++ b/internal/aws/synthetics/group_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -129,19 +130,29 @@ func groupResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^([a-zA-Z\\d\\s_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/systemsmanagersap/application_resource_gen.go b/internal/aws/systemsmanagersap/application_resource_gen.go index 24fbaaebf7..602805cbe2 100644 --- a/internal/aws/systemsmanagersap/application_resource_gen.go +++ b/internal/aws/systemsmanagersap/application_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -274,18 +275,28 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/timestream/influx_db_instance_resource_gen.go b/internal/aws/timestream/influx_db_instance_resource_gen.go index 7e53bf37d8..07175953f6 100644 --- a/internal/aws/timestream/influx_db_instance_resource_gen.go +++ b/internal/aws/timestream/influx_db_instance_resource_gen.go @@ -27,6 +27,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -316,20 +317,39 @@ func influxDBInstanceResource(ctx context.Context) (resource.Resource, error) { // Property: BucketName "bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The bucket name for logs to be sent from the InfluxDB instance", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-z]+[0-9a-z\\.\\-]*[0-9a-z]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether logging to customer specified bucket is enabled.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "S3 configuration for sending logs to customer account from the InfluxDB instance.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration for sending logs to customer account from the InfluxDB instance.", @@ -502,10 +522,15 @@ func influxDBInstanceResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/timestream/scheduled_query_resource_gen.go b/internal/aws/timestream/scheduled_query_resource_gen.go index be86f13f28..03bbc0f03a 100644 --- a/internal/aws/timestream/scheduled_query_resource_gen.go +++ b/internal/aws/timestream/scheduled_query_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -486,18 +487,28 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -714,7 +725,14 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Name of Timestream database to which the query result will be written.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DimensionMappings "dimension_mappings": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -723,24 +741,41 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { // Property: DimensionValueType "dimension_value_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Type for the dimension.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "VARCHAR", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Column name from query result.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "This is to allow mapping column(s) from the query result to the dimension in the destination table.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.List{ /*START VALIDATORS*/ + fwvalidators.NotNullList(), + }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MeasureNameColumn @@ -768,7 +803,8 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { // Property: MeasureValueType "measure_value_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Type of the value that is to be read from SourceColumn. If the mapping is for MULTI, use MeasureValueType.MULTI.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "BIGINT", @@ -777,7 +813,11 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { "VARCHAR", "MULTI", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MultiMeasureAttributeMappings "multi_measure_attribute_mappings": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -786,7 +826,8 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { // Property: MeasureValueType "measure_value_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Value type of the measure value column to be read from the query result.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "BIGINT", @@ -795,12 +836,23 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { "VARCHAR", "TIMESTAMP", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceColumn "source_column": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Source measure value column in the query result where the attribute value is to be read.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TargetMultiMeasureAttributeName "target_multi_measure_attribute_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -865,7 +917,8 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { // Property: MeasureValueType "measure_value_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Value type of the measure value column to be read from the query result.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "BIGINT", @@ -874,12 +927,23 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { "VARCHAR", "TIMESTAMP", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceColumn "source_column": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Source measure value column in the query result where the attribute value is to be read.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TargetMultiMeasureAttributeName "target_multi_measure_attribute_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -893,12 +957,15 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TargetMultiMeasureName @@ -921,16 +988,37 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Name of Timestream table that the query result will be written to. The table should be within the same database that is provided in Timestream configuration.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TimeColumn "time_column": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Column from query result that should be used as the time column in destination table. Column type for this should be TIMESTAMP.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration needed to write data into the Timestream database and table.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration of target store where scheduled query results are written to.", diff --git a/internal/aws/timestream/table_resource_gen.go b/internal/aws/timestream/table_resource_gen.go index 5bd0914c5b..f198672d0b 100644 --- a/internal/aws/timestream/table_resource_gen.go +++ b/internal/aws/timestream/table_resource_gen.go @@ -13,6 +13,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -20,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -116,7 +118,14 @@ func tableResource(ctx context.Context) (resource.Resource, error) { // Property: EnableMagneticStoreWrites "enable_magnetic_store_writes": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Boolean flag indicating whether magnetic store writes are enabled.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Bool{ /*START VALIDATORS*/ + fwvalidators.NotNullBool(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MagneticStoreRejectedDataLocation "magnetic_store_rejected_data_location": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -127,12 +136,26 @@ func tableResource(ctx context.Context) (resource.Resource, error) { // Property: BucketName "bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The bucket name used to store the data.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EncryptionOption "encryption_option": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Either SSE_KMS or SSE_S3.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KmsKeyId "kms_key_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -320,13 +343,18 @@ func tableResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DIMENSION", "MEASURE", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/transfer/agreement_resource_gen.go b/internal/aws/transfer/agreement_resource_gen.go index f0af896875..0857863d6b 100644 --- a/internal/aws/transfer/agreement_resource_gen.go +++ b/internal/aws/transfer/agreement_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -240,18 +241,28 @@ func agreementResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name assigned to the tag that you create.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Contains one or more values that you assigned to the key name you create.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/transfer/certificate_resource_gen.go b/internal/aws/transfer/certificate_resource_gen.go index e725bb2354..4fb460ac43 100644 --- a/internal/aws/transfer/certificate_resource_gen.go +++ b/internal/aws/transfer/certificate_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -281,18 +282,28 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/transfer/connector_resource_gen.go b/internal/aws/transfer/connector_resource_gen.go index 0cd565ad8f..52804a13d5 100644 --- a/internal/aws/transfer/connector_resource_gen.go +++ b/internal/aws/transfer/connector_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -488,18 +489,28 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name assigned to the tag that you create.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Contains one or more values that you assigned to the key name you create.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/transfer/profile_resource_gen.go b/internal/aws/transfer/profile_resource_gen.go index c4500a7527..8f97fba417 100644 --- a/internal/aws/transfer/profile_resource_gen.go +++ b/internal/aws/transfer/profile_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -177,18 +178,28 @@ func profileResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name assigned to the tag that you create.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Contains one or more values that you assigned to the key name you create.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/transfer/workflow_resource_gen.go b/internal/aws/transfer/workflow_resource_gen.go index bdde97123b..29a7ee3dc4 100644 --- a/internal/aws/transfer/workflow_resource_gen.go +++ b/internal/aws/transfer/workflow_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -600,7 +601,14 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the location for the file being decrypted. Only applicable for the Decrypt type of workflow steps.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -646,12 +654,17 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies which encryption method to use.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PGP", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Details for a step that performs a file decryption.", @@ -734,18 +747,28 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name assigned to the tag that you create.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value that corresponds to the key.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1324,7 +1347,14 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the location for the file being decrypted. Only applicable for the Decrypt type of workflow steps.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1370,12 +1400,17 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies which encryption method to use.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PGP", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Details for a step that performs a file decryption.", @@ -1458,18 +1493,28 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name assigned to the tag that you create.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value that corresponds to the key.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1559,18 +1604,28 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name assigned to the tag that you create.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Contains one or more values that you assigned to the key name you create.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/verifiedpermissions/identity_source_resource_gen.go b/internal/aws/verifiedpermissions/identity_source_resource_gen.go index 17dc1c65e4..f81c464f6c 100644 --- a/internal/aws/verifiedpermissions/identity_source_resource_gen.go +++ b/internal/aws/verifiedpermissions/identity_source_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -200,11 +201,16 @@ func identitySourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: GroupEntityType "group_entity_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("^([_a-zA-Z][_a-zA-Z0-9]*::)*[_a-zA-Z][_a-zA-Z0-9]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -215,11 +221,16 @@ func identitySourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: UserPoolArn "user_pool_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), stringvalidator.RegexMatches(regexp.MustCompile("^arn:[a-zA-Z0-9-]+:cognito-idp:(([a-zA-Z0-9-]+:\\d{12}:userpool/[\\w-]+_[0-9a-zA-Z]+))$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -247,18 +258,28 @@ func identitySourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: GroupClaim "group_claim": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: GroupEntityType "group_entity_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("^([_a-zA-Z][_a-zA-Z0-9]*::)*[_a-zA-Z][_a-zA-Z0-9]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -269,11 +290,16 @@ func identitySourceResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Issuer "issuer": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^https://.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TokenSelection "token_selection": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -356,7 +382,14 @@ func identitySourceResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/verifiedpermissions/policy_resource_gen.go b/internal/aws/verifiedpermissions/policy_resource_gen.go index b7dc0225bb..3318d4b76c 100644 --- a/internal/aws/verifiedpermissions/policy_resource_gen.go +++ b/internal/aws/verifiedpermissions/policy_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -132,10 +133,15 @@ func policyResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Statement "statement": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 10000), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -149,30 +155,45 @@ func policyResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: PolicyTemplateId "policy_template_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9-]*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Principal "principal": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: EntityId "entity_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EntityType "entity_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -186,19 +207,29 @@ func policyResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: EntityId "entity_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EntityType "entity_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 200), stringvalidator.RegexMatches(regexp.MustCompile("^.*$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/voiceid/domain_resource_gen.go b/internal/aws/voiceid/domain_resource_gen.go index b67cf37d52..ea567380a2 100644 --- a/internal/aws/voiceid/domain_resource_gen.go +++ b/internal/aws/voiceid/domain_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -148,19 +149,29 @@ func domainResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/vpclattice/access_log_subscription_resource_gen.go b/internal/aws/vpclattice/access_log_subscription_resource_gen.go index 33e47ecb70..d9884b35fd 100644 --- a/internal/aws/vpclattice/access_log_subscription_resource_gen.go +++ b/internal/aws/vpclattice/access_log_subscription_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -162,17 +163,27 @@ func accessLogSubscriptionResource(ctx context.Context) (resource.Resource, erro Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/vpclattice/listener_resource_gen.go b/internal/aws/vpclattice/listener_resource_gen.go index 3d83e8a3ea..689f0ddf1e 100644 --- a/internal/aws/vpclattice/listener_resource_gen.go +++ b/internal/aws/vpclattice/listener_resource_gen.go @@ -16,6 +16,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" @@ -23,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -113,10 +115,15 @@ func listenerResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: StatusCode "status_code": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(100, 599), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -134,11 +141,16 @@ func listenerResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: TargetGroupIdentifier "target_group_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^((tg-[0-9a-z]{17})|(arn:[a-z0-9\\-]+:vpc-lattice:[a-zA-Z0-9\\-]+:\\d{12}:targetgroup/tg-[0-9a-z]{17}))$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Weight "weight": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -153,12 +165,15 @@ func listenerResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 10), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -336,17 +351,27 @@ func listenerResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/vpclattice/rule_resource_gen.go b/internal/aws/vpclattice/rule_resource_gen.go index b37016789c..3b69eaa987 100644 --- a/internal/aws/vpclattice/rule_resource_gen.go +++ b/internal/aws/vpclattice/rule_resource_gen.go @@ -26,6 +26,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -101,10 +102,15 @@ func ruleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: StatusCode "status_code": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(100, 599), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -122,11 +128,16 @@ func ruleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: TargetGroupIdentifier "target_group_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^((tg-[0-9a-z]{17})|(arn:[a-z0-9\\-]+:vpc-lattice:[a-zA-Z0-9\\-]+:\\d{12}:targetgroup/tg-[0-9a-z]{17}))$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Weight "weight": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -141,12 +152,15 @@ func ruleResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 10), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -373,14 +387,26 @@ func ruleResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 40), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -454,7 +480,14 @@ func ruleResource(ctx context.Context) (resource.Resource, error) { }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.Object{ /*START VALIDATORS*/ + fwvalidators.NotNullObject(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -560,17 +593,27 @@ func ruleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/vpclattice/service_network_resource_gen.go b/internal/aws/vpclattice/service_network_resource_gen.go index 2486ec5614..668e70ec5f 100644 --- a/internal/aws/vpclattice/service_network_resource_gen.go +++ b/internal/aws/vpclattice/service_network_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -163,17 +164,27 @@ func serviceNetworkResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/vpclattice/service_network_service_association_resource_gen.go b/internal/aws/vpclattice/service_network_service_association_resource_gen.go index 966b1caae8..e19e89a4a1 100644 --- a/internal/aws/vpclattice/service_network_service_association_resource_gen.go +++ b/internal/aws/vpclattice/service_network_service_association_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -298,17 +299,27 @@ func serviceNetworkServiceAssociationResource(ctx context.Context) (resource.Res Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/vpclattice/service_network_vpc_association_resource_gen.go b/internal/aws/vpclattice/service_network_vpc_association_resource_gen.go index 721a93eccb..f104ed6d56 100644 --- a/internal/aws/vpclattice/service_network_vpc_association_resource_gen.go +++ b/internal/aws/vpclattice/service_network_vpc_association_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -222,17 +223,27 @@ func serviceNetworkVpcAssociationResource(ctx context.Context) (resource.Resourc Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/vpclattice/service_resource_gen.go b/internal/aws/vpclattice/service_resource_gen.go index 6f8dd4b45c..d922060f60 100644 --- a/internal/aws/vpclattice/service_resource_gen.go +++ b/internal/aws/vpclattice/service_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -260,17 +261,27 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/vpclattice/target_group_resource_gen.go b/internal/aws/vpclattice/target_group_resource_gen.go index a8c275e095..60dcac2e90 100644 --- a/internal/aws/vpclattice/target_group_resource_gen.go +++ b/internal/aws/vpclattice/target_group_resource_gen.go @@ -27,6 +27,7 @@ import ( "github.com/hashicorp/terraform-provider-awscc/internal/defaults" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -224,11 +225,16 @@ func targetGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: HttpCode "http_code": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 2000), stringvalidator.RegexMatches(regexp.MustCompile("^[0-9-,]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -515,17 +521,27 @@ func targetGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -570,7 +586,14 @@ func targetGroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Id "id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Int64Attribute{ /*START ATTRIBUTE*/ diff --git a/internal/aws/wafv2/logging_configuration_resource_gen.go b/internal/aws/wafv2/logging_configuration_resource_gen.go index 2e7e03107c..d88ba45ca9 100644 --- a/internal/aws/wafv2/logging_configuration_resource_gen.go +++ b/internal/aws/wafv2/logging_configuration_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -153,13 +154,18 @@ func loggingConfigurationResource(ctx context.Context) (resource.Resource, error // Property: DefaultBehavior "default_behavior": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Default handling for logs that don't match any of the specified filtering conditions.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "KEEP", "DROP", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Filters "filters": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -168,13 +174,18 @@ func loggingConfigurationResource(ctx context.Context) (resource.Resource, error // Property: Behavior "behavior": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "How to handle logs that satisfy the filter's conditions and requirement. ", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "KEEP", "DROP", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Conditions "conditions": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -186,7 +197,8 @@ func loggingConfigurationResource(ctx context.Context) (resource.Resource, error // Property: Action "action": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Logic to apply to the filtering conditions. You can specify that, in order to satisfy the filter, a log must match all conditions or must match at least one condition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ALLOW", @@ -196,7 +208,11 @@ func loggingConfigurationResource(ctx context.Context) (resource.Resource, error "CHALLENGE", "EXCLUDED_AS_COUNT", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A single action condition.", @@ -212,7 +228,14 @@ func loggingConfigurationResource(ctx context.Context) (resource.Resource, error // Property: LabelName "label_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The label name that a log record must contain in order to meet the condition. This must be a fully qualified label name. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label. ", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A single label name condition.", @@ -225,29 +248,44 @@ func loggingConfigurationResource(ctx context.Context) (resource.Resource, error }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Match conditions for the filter.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Requirement "requirement": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Logic to apply to the filtering conditions. You can specify that, in order to satisfy the filter, a log must match all conditions or must match at least one condition.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "MEETS_ALL", "MEETS_ANY", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The filters that you want to apply to the logs.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Filtering that specifies which web requests are kept in the logs and which are dropped. You can filter on the rule action and on the web request labels that were applied by matching rules during web ACL evaluation.", @@ -341,7 +379,14 @@ func loggingConfigurationResource(ctx context.Context) (resource.Resource, error // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the query header to inspect.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Inspect a single header. Provide the name of the header to inspect, for example, User-Agent or Referer. This setting isn't case sensitive.", diff --git a/internal/aws/wisdom/assistant_association_resource_gen.go b/internal/aws/wisdom/assistant_association_resource_gen.go index 5a5cfddfee..2ce82d4a8f 100644 --- a/internal/aws/wisdom/assistant_association_resource_gen.go +++ b/internal/aws/wisdom/assistant_association_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -169,17 +170,27 @@ func assistantAssociationResource(ctx context.Context) (resource.Resource, error Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/wisdom/assistant_resource_gen.go b/internal/aws/wisdom/assistant_resource_gen.go index 9b1a185f27..64b3fe5dbd 100644 --- a/internal/aws/wisdom/assistant_resource_gen.go +++ b/internal/aws/wisdom/assistant_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -159,17 +160,27 @@ func assistantResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/wisdom/knowledge_base_resource_gen.go b/internal/aws/wisdom/knowledge_base_resource_gen.go index b25c120dd7..c8dfd5fca5 100644 --- a/internal/aws/wisdom/knowledge_base_resource_gen.go +++ b/internal/aws/wisdom/knowledge_base_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -234,11 +235,16 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AppIntegrationArn "app_integration_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:[a-z-]+?:[a-z-]+?:[a-z0-9-]*?:([0-9]{12})?:[a-zA-Z0-9-:/]+$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ObjectFields "object_fields": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -305,17 +311,27 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/workspaces/connection_alias_resource_gen.go b/internal/aws/workspaces/connection_alias_resource_gen.go index 710fd5c8d8..6cb1a5f8c6 100644 --- a/internal/aws/workspaces/connection_alias_resource_gen.go +++ b/internal/aws/workspaces/connection_alias_resource_gen.go @@ -18,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -172,11 +173,25 @@ func connectionAliasResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/workspaces/workspaces_pool_resource_gen.go b/internal/aws/workspaces/workspaces_pool_resource_gen.go index 1e2ba7c393..bcdb2c3cbc 100644 --- a/internal/aws/workspaces/workspaces_pool_resource_gen.go +++ b/internal/aws/workspaces/workspaces_pool_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -71,13 +72,18 @@ func workspacesPoolResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ // Property: Status "status": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DISABLED", "ENABLED", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -246,11 +252,25 @@ func workspacesPoolResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/workspacesthinclient/environment_resource_gen.go b/internal/aws/workspacesthinclient/environment_resource_gen.go index d1adf770ed..20e72f292f 100644 --- a/internal/aws/workspacesthinclient/environment_resource_gen.go +++ b/internal/aws/workspacesthinclient/environment_resource_gen.go @@ -23,6 +23,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -199,18 +200,28 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -427,13 +438,18 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of maintenance window.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "SYSTEM", "CUSTOM", ), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A specification for a time window to apply software updates.", @@ -617,18 +633,28 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/workspacesweb/browser_settings_resource_gen.go b/internal/aws/workspacesweb/browser_settings_resource_gen.go index 5a5afc4521..2832cfee3b 100644 --- a/internal/aws/workspacesweb/browser_settings_resource_gen.go +++ b/internal/aws/workspacesweb/browser_settings_resource_gen.go @@ -21,6 +21,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -169,19 +170,29 @@ func browserSettingsResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/workspacesweb/ip_access_settings_resource_gen.go b/internal/aws/workspacesweb/ip_access_settings_resource_gen.go index cf1cd7ea73..fcda82cccd 100644 --- a/internal/aws/workspacesweb/ip_access_settings_resource_gen.go +++ b/internal/aws/workspacesweb/ip_access_settings_resource_gen.go @@ -22,6 +22,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -266,19 +267,29 @@ func ipAccessSettingsResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/workspacesweb/network_settings_resource_gen.go b/internal/aws/workspacesweb/network_settings_resource_gen.go index b8ca1a7767..9c0db4c2b7 100644 --- a/internal/aws/workspacesweb/network_settings_resource_gen.go +++ b/internal/aws/workspacesweb/network_settings_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -160,19 +161,29 @@ func networkSettingsResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/workspacesweb/portal_resource_gen.go b/internal/aws/workspacesweb/portal_resource_gen.go index 1c4b821c4c..3648096c46 100644 --- a/internal/aws/workspacesweb/portal_resource_gen.go +++ b/internal/aws/workspacesweb/portal_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -383,19 +384,29 @@ func portalResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/workspacesweb/trust_store_resource_gen.go b/internal/aws/workspacesweb/trust_store_resource_gen.go index 5c513220da..1eede06e6d 100644 --- a/internal/aws/workspacesweb/trust_store_resource_gen.go +++ b/internal/aws/workspacesweb/trust_store_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -104,19 +105,29 @@ func trustStoreResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/workspacesweb/user_access_logging_settings_resource_gen.go b/internal/aws/workspacesweb/user_access_logging_settings_resource_gen.go index 203fc9e622..a4a8611ec1 100644 --- a/internal/aws/workspacesweb/user_access_logging_settings_resource_gen.go +++ b/internal/aws/workspacesweb/user_access_logging_settings_resource_gen.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -105,19 +106,29 @@ func userAccessLoggingSettingsResource(ctx context.Context) (resource.Resource, Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/workspacesweb/user_settings_resource_gen.go b/internal/aws/workspacesweb/user_settings_resource_gen.go index 1fb1c0221d..c3e43a5749 100644 --- a/internal/aws/workspacesweb/user_settings_resource_gen.go +++ b/internal/aws/workspacesweb/user_settings_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -164,11 +165,16 @@ func userSettingsResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Domain "domain": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 253), stringvalidator.RegexMatches(regexp.MustCompile("^(\\.?)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)*[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -195,12 +201,15 @@ func userSettingsResource(ctx context.Context) (resource.Resource, error) { }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 10), + fwvalidators.NotNullList(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Blocklist @@ -209,11 +218,16 @@ func userSettingsResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Domain "domain": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 253), stringvalidator.RegexMatches(regexp.MustCompile("^(\\.?)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)*[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -449,19 +463,29 @@ func userSettingsResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/xray/group_resource_gen.go b/internal/aws/xray/group_resource_gen.go index 64771ec13d..117ff71d70 100644 --- a/internal/aws/xray/group_resource_gen.go +++ b/internal/aws/xray/group_resource_gen.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -152,12 +153,26 @@ func groupResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/xray/sampling_rule_resource_gen.go b/internal/aws/xray/sampling_rule_resource_gen.go index a50df349f4..1777ba64b1 100644 --- a/internal/aws/xray/sampling_rule_resource_gen.go +++ b/internal/aws/xray/sampling_rule_resource_gen.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -177,50 +178,80 @@ func samplingRuleResource(ctx context.Context) (resource.Resource, error) { // Property: FixedRate "fixed_rate": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The percentage of matching requests to instrument, after the reservoir is exhausted.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(0.000000, 1.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HTTPMethod "http_method": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Matches the HTTP method from a request URL.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(10), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Matches the hostname from a request URL.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Priority "priority": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The priority of the sampling rule.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 9999), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ReservoirSize "reservoir_size": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(0), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceARN "resource_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Matches the ARN of the AWS resource on which the service runs.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(500), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RuleARN "rule_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -246,26 +277,41 @@ func samplingRuleResource(ctx context.Context) (resource.Resource, error) { // Property: ServiceName "service_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Matches the name that the service uses to identify itself in segments.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ServiceType "service_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Matches the origin that the service uses to identify its type in segments.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: URLPath "url_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Matches the path from a request URL.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Version "version": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -431,50 +477,80 @@ func samplingRuleResource(ctx context.Context) (resource.Resource, error) { // Property: FixedRate "fixed_rate": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The percentage of matching requests to instrument, after the reservoir is exhausted.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.Between(0.000000, 1.000000), + fwvalidators.NotNullFloat64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HTTPMethod "http_method": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Matches the HTTP method from a request URL.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(10), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Matches the hostname from a request URL.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Priority "priority": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The priority of the sampling rule.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 9999), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ReservoirSize "reservoir_size": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(0), + fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceARN "resource_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Matches the ARN of the AWS resource on which the service runs.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(500), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RuleARN "rule_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -500,26 +576,41 @@ func samplingRuleResource(ctx context.Context) (resource.Resource, error) { // Property: ServiceName "service_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Matches the name that the service uses to identify itself in segments.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ServiceType "service_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Matches the origin that the service uses to identify its type in segments.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(64), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: URLPath "url_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Matches the path from a request URL.", - Required: true, + Optional: true, + Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(128), + fwvalidators.NotNullString(), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Version "version": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -805,12 +896,26 @@ func samplingRuleResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag.", - Required: true, + Optional: true, + Computed: true, + Validators: []validator.String{ /*START VALIDATORS*/ + fwvalidators.NotNullString(), + }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.UseStateForUnknown(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/generic/translate.go b/internal/generic/translate.go index 4880bbe58a..3946f50b32 100644 --- a/internal/generic/translate.go +++ b/internal/generic/translate.go @@ -228,6 +228,17 @@ func (t toTerraform) valueFromRaw(ctx context.Context, schema typeAtTerraformPat if len(v) == 0 { return tftypes.NewValue(typ, nil), nil } + + if typ.Is(tftypes.String) { + // Value is JSON string. + val, err := json.Marshal(v) + + if err != nil { + return tftypes.Value{}, err + } + return tftypes.NewValue(typ, string(val)), nil + } + var vals []tftypes.Value for idx, v := range v { if typ.Is(tftypes.Set{}) { diff --git a/internal/provider/generators/resource/schema.tmpl b/internal/provider/generators/resource/schema.tmpl index eebf229bbb..88c62064c7 100644 --- a/internal/provider/generators/resource/schema.tmpl +++ b/internal/provider/generators/resource/schema.tmpl @@ -40,6 +40,9 @@ import ( {{- if .ImportInternalDefaults }} "github.com/hashicorp/terraform-provider-awscc/internal/defaults" {{- end}} + {{- if .ImportInternalValidators }} + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" + {{- end}} "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" ) diff --git a/internal/provider/generators/shared/codegen/emitter.go b/internal/provider/generators/shared/codegen/emitter.go index 27ddc96884..a41c6874b8 100644 --- a/internal/provider/generators/shared/codegen/emitter.go +++ b/internal/provider/generators/shared/codegen/emitter.go @@ -20,14 +20,15 @@ import ( // Features of the emitted code. type Features struct { - HasRequiredRootProperty bool // At least one root property is required. - HasUpdatableProperty bool // At least one property can be updated. - HasValidator bool // At least one validator. - UsesFrameworkTypes bool // Uses a type from the terraform-plugin-framework/types package. - UsesFrameworkJSONTypes bool // Uses a type from the terraform-plugin-framework-jsontypes/jsontypes package. - UsesFrameworkTimeTypes bool // Uses a type from the terraform-plugin-framework-timetypes/timetypes package. - UsesInternalDefaultsPackage bool // Uses a function from the internal/defaults package. - UsesRegexpInValidation bool // Uses a type from the Go standard regexp package for attribute validation. + HasRequiredRootProperty bool // At least one root property is required. + HasUpdatableProperty bool // At least one property can be updated. + HasValidator bool // At least one validator. + UsesFrameworkTypes bool // Uses a type from the terraform-plugin-framework/types package. + UsesFrameworkJSONTypes bool // Uses a type from the terraform-plugin-framework-jsontypes/jsontypes package. + UsesFrameworkTimeTypes bool // Uses a type from the terraform-plugin-framework-timetypes/timetypes package. + UsesInternalDefaultsPackage bool // Uses a function from the internal/defaults package. + UsesInternalValidatorsPackage bool // Uses a function from the internal/validators package. + UsesRegexpInValidation bool // Uses a type from the Go standard regexp package for attribute validation. FrameworkDefaultsPackages []string // Package names for any terraform-plugin-framework/resource/schema default values. May contain duplicates. FrameworkPlanModifierPackages []string // Package names for any terraform-plugin-framework plan modifiers. May contain duplicates. @@ -47,6 +48,7 @@ func (f Features) LogicalOr(features Features) Features { result.HasUpdatableProperty = f.HasUpdatableProperty || features.HasUpdatableProperty result.HasValidator = f.HasValidator || features.HasValidator result.UsesInternalDefaultsPackage = f.UsesInternalDefaultsPackage || features.UsesInternalDefaultsPackage + result.UsesInternalValidatorsPackage = f.UsesInternalValidatorsPackage || features.UsesInternalValidatorsPackage result.UsesFrameworkTypes = f.UsesFrameworkTypes || features.UsesFrameworkTypes result.UsesFrameworkJSONTypes = f.UsesFrameworkJSONTypes || features.UsesFrameworkJSONTypes result.UsesFrameworkTimeTypes = f.UsesFrameworkTimeTypes || features.UsesFrameworkTimeTypes @@ -74,9 +76,10 @@ type Emitter struct { } type parent struct { - computedOnly bool - path []string - reqd interface { + computedAndOptional bool + computedOnly bool + path []string + reqd interface { IsRequired(name string) bool } } @@ -111,7 +114,7 @@ func (e Emitter) EmitRootPropertiesSchema(tfType string, attributeNameMap map[st // emitAttribute generates the Terraform Plugin SDK code for a CloudFormation property's Attributes // and emits the generated code to the emitter's Writer. Code features are returned. -func (e Emitter) emitAttribute(tfType string, attributeNameMap map[string]string, path []string, name string, property *cfschema.Property, required, parentComputedOnly bool) (Features, error) { +func (e Emitter) emitAttribute(tfType string, attributeNameMap map[string]string, path []string, name string, property *cfschema.Property, required, parentComputedOnly, parentComputedAndOptional bool) (Features, error) { var features Features var validators []string var planModifiers []string @@ -162,7 +165,16 @@ func (e Emitter) emitAttribute(tfType string, attributeNameMap map[string]string computed = true } + var setNotNullValidator bool + if required && parentComputedAndOptional { + required = false + optional = true + computed = true + setNotNullValidator = true + } + computedOnly := computed && !optional + computedAndOptional := computed && optional switch propertyType := property.Type.String(); propertyType { // @@ -279,9 +291,10 @@ func (e Emitter) emitAttribute(tfType string, attributeNameMap map[string]string tfType, attributeNameMap, parent{ - computedOnly: computedOnly, - path: path, - reqd: property.Items, + computedAndOptional: computedAndOptional, + computedOnly: computedOnly, + path: path, + reqd: property.Items, }, property.Items.Properties) @@ -395,9 +408,10 @@ func (e Emitter) emitAttribute(tfType string, attributeNameMap map[string]string tfType, attributeNameMap, parent{ - computedOnly: computedOnly, - path: path, - reqd: property.Items, + computedAndOptional: computedAndOptional, + computedOnly: computedOnly, + path: path, + reqd: property.Items, }, property.Items.Properties) @@ -602,9 +616,10 @@ func (e Emitter) emitAttribute(tfType string, attributeNameMap map[string]string tfType, attributeNameMap, parent{ - computedOnly: computedOnly, - path: path, - reqd: property.Items, + computedAndOptional: computedAndOptional, + computedOnly: computedOnly, + path: path, + reqd: property.Items, }, patternProperty.Properties) @@ -664,9 +679,10 @@ func (e Emitter) emitAttribute(tfType string, attributeNameMap map[string]string tfType, attributeNameMap, parent{ - computedOnly: computedOnly, - path: path, - reqd: property, + computedAndOptional: computedAndOptional, + computedOnly: computedOnly, + path: path, + reqd: property, }, property.Properties) @@ -717,6 +733,11 @@ func (e Emitter) emitAttribute(tfType string, attributeNameMap map[string]string } } + if setNotNullValidator { + features.UsesInternalValidatorsPackage = true + validators = append(validators, fmt.Sprintf("fwvalidators.NotNull%s()", fwValidatorType)) + } + // Don't emit validators for Computed-only attributes. if !computedOnly { if len(validators) > 0 { @@ -838,6 +859,7 @@ func (e Emitter) emitSchema(tfType string, attributeNameMap map[string]string, p properties[name], parent.reqd.IsRequired(name), parent.computedOnly, + parent.computedAndOptional, ) if err != nil { diff --git a/internal/provider/generators/shared/template_data.go b/internal/provider/generators/shared/template_data.go index d76d841ea3..edb6b8f063 100644 --- a/internal/provider/generators/shared/template_data.go +++ b/internal/provider/generators/shared/template_data.go @@ -92,6 +92,9 @@ func GenerateTemplateData(ui cli.Ui, cfTypeSchemaFile, resType, tfResourceType, if codeFeatures.HasValidator { templateData.ImportFrameworkValidator = true } + if codeFeatures.UsesInternalValidatorsPackage { + templateData.ImportInternalValidators = true + } if resType == DataSourceType { templateData.SchemaDescription = fmt.Sprintf("Data Source schema for %s", cfTypeName) @@ -155,6 +158,7 @@ type TemplateData struct { ImportFrameworkTimeTypes bool ImportFrameworkValidator bool ImportInternalDefaults bool + ImportInternalValidators bool ImportRegexp bool PackageName string PrimaryIdentifier []string diff --git a/internal/validators/bool.go b/internal/validators/bool.go new file mode 100644 index 0000000000..715bedbdad --- /dev/null +++ b/internal/validators/bool.go @@ -0,0 +1,36 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validators + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/schema/validator" +) + +func NotNullBool() validator.Bool { + return notNullBoolAttributeValidator{} +} + +type notNullBoolAttributeValidator struct{} + +func (m notNullBoolAttributeValidator) Description(context.Context) string { + return "value must be configured" +} + +func (m notNullBoolAttributeValidator) MarkdownDescription(ctx context.Context) string { + return m.Description(ctx) +} + +func (m notNullBoolAttributeValidator) ValidateBool(ctx context.Context, request validator.BoolRequest, response *validator.BoolResponse) { + if !request.ConfigValue.IsNull() { + return + } + + response.Diagnostics.AddAttributeError( + request.Path, + "Missing Attribute Value", + request.Path.String()+": "+m.Description(ctx), + ) +} diff --git a/internal/validators/bool_test.go b/internal/validators/bool_test.go new file mode 100644 index 0000000000..c227665da1 --- /dev/null +++ b/internal/validators/bool_test.go @@ -0,0 +1,63 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validators_test + +import ( + "context" + "testing" + + "github.com/google/go-cmp/cmp" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" +) + +func TestNotNullBool(t *testing.T) { + t.Parallel() + + type testCase struct { + val types.Bool + expectedDiagnostics diag.Diagnostics + } + tests := map[string]testCase{ + "null": { + val: types.BoolNull(), + expectedDiagnostics: diag.Diagnostics{ + diag.NewAttributeErrorDiagnostic( + path.Root("test"), + "Missing Attribute Value", + `test: value must be configured`, + ), + }, + }, + "unknown": { + val: types.BoolUnknown(), + }, + "valid": { + val: types.BoolValue(true), + }, + } + + for name, test := range tests { + t.Run(name, func(t *testing.T) { + t.Parallel() + + ctx := context.Background() + + request := validator.BoolRequest{ + Path: path.Root("test"), + PathExpression: path.MatchRoot("test"), + ConfigValue: test.val, + } + response := validator.BoolResponse{} + fwvalidators.NotNullBool().ValidateBool(ctx, request, &response) + + if diff := cmp.Diff(response.Diagnostics, test.expectedDiagnostics); diff != "" { + t.Errorf("unexpected diagnostics difference: %s", diff) + } + }) + } +} diff --git a/internal/validators/float64.go b/internal/validators/float64.go new file mode 100644 index 0000000000..b5c172fc03 --- /dev/null +++ b/internal/validators/float64.go @@ -0,0 +1,36 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validators + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/schema/validator" +) + +func NotNullFloat64() validator.Float64 { + return notNullFloat64AttributeValidator{} +} + +type notNullFloat64AttributeValidator struct{} + +func (m notNullFloat64AttributeValidator) Description(context.Context) string { + return "value must be configured" +} + +func (m notNullFloat64AttributeValidator) MarkdownDescription(ctx context.Context) string { + return m.Description(ctx) +} + +func (m notNullFloat64AttributeValidator) ValidateFloat64(ctx context.Context, request validator.Float64Request, response *validator.Float64Response) { + if !request.ConfigValue.IsNull() { + return + } + + response.Diagnostics.AddAttributeError( + request.Path, + "Missing Attribute Value", + request.Path.String()+": "+m.Description(ctx), + ) +} diff --git a/internal/validators/float_test.go b/internal/validators/float_test.go new file mode 100644 index 0000000000..5f26e7873a --- /dev/null +++ b/internal/validators/float_test.go @@ -0,0 +1,63 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validators_test + +import ( + "context" + "testing" + + "github.com/google/go-cmp/cmp" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" +) + +func TestNotNullFloat64(t *testing.T) { + t.Parallel() + + type testCase struct { + val types.Float64 + expectedDiagnostics diag.Diagnostics + } + tests := map[string]testCase{ + "null": { + val: types.Float64Null(), + expectedDiagnostics: diag.Diagnostics{ + diag.NewAttributeErrorDiagnostic( + path.Root("test"), + "Missing Attribute Value", + `test: value must be configured`, + ), + }, + }, + "unknown": { + val: types.Float64Unknown(), + }, + "valid": { + val: types.Float64Value(1.1), + }, + } + + for name, test := range tests { + t.Run(name, func(t *testing.T) { + t.Parallel() + + ctx := context.Background() + + request := validator.Float64Request{ + Path: path.Root("test"), + PathExpression: path.MatchRoot("test"), + ConfigValue: test.val, + } + response := validator.Float64Response{} + fwvalidators.NotNullFloat64().ValidateFloat64(ctx, request, &response) + + if diff := cmp.Diff(response.Diagnostics, test.expectedDiagnostics); diff != "" { + t.Errorf("unexpected diagnostics difference: %s", diff) + } + }) + } +} diff --git a/internal/validators/int64.go b/internal/validators/int64.go new file mode 100644 index 0000000000..1a22ec2215 --- /dev/null +++ b/internal/validators/int64.go @@ -0,0 +1,36 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validators + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/schema/validator" +) + +func NotNullInt64() validator.Int64 { + return notNullInt64AttributeValidator{} +} + +type notNullInt64AttributeValidator struct{} + +func (m notNullInt64AttributeValidator) Description(context.Context) string { + return "value must be configured" +} + +func (m notNullInt64AttributeValidator) MarkdownDescription(ctx context.Context) string { + return m.Description(ctx) +} + +func (m notNullInt64AttributeValidator) ValidateInt64(ctx context.Context, request validator.Int64Request, response *validator.Int64Response) { + if !request.ConfigValue.IsNull() { + return + } + + response.Diagnostics.AddAttributeError( + request.Path, + "Missing Attribute Value", + request.Path.String()+": "+m.Description(ctx), + ) +} diff --git a/internal/validators/int64_test.go b/internal/validators/int64_test.go new file mode 100644 index 0000000000..6bbb49ba57 --- /dev/null +++ b/internal/validators/int64_test.go @@ -0,0 +1,63 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validators_test + +import ( + "context" + "testing" + + "github.com/google/go-cmp/cmp" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" +) + +func TestNotNullInt64(t *testing.T) { + t.Parallel() + + type testCase struct { + val types.Int64 + expectedDiagnostics diag.Diagnostics + } + tests := map[string]testCase{ + "null": { + val: types.Int64Null(), + expectedDiagnostics: diag.Diagnostics{ + diag.NewAttributeErrorDiagnostic( + path.Root("test"), + "Missing Attribute Value", + `test: value must be configured`, + ), + }, + }, + "unknown": { + val: types.Int64Unknown(), + }, + "valid": { + val: types.Int64Value(1), + }, + } + + for name, test := range tests { + t.Run(name, func(t *testing.T) { + t.Parallel() + + ctx := context.Background() + + request := validator.Int64Request{ + Path: path.Root("test"), + PathExpression: path.MatchRoot("test"), + ConfigValue: test.val, + } + response := validator.Int64Response{} + fwvalidators.NotNullInt64().ValidateInt64(ctx, request, &response) + + if diff := cmp.Diff(response.Diagnostics, test.expectedDiagnostics); diff != "" { + t.Errorf("unexpected diagnostics difference: %s", diff) + } + }) + } +} diff --git a/internal/validators/list.go b/internal/validators/list.go new file mode 100644 index 0000000000..a25dd66cc5 --- /dev/null +++ b/internal/validators/list.go @@ -0,0 +1,36 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validators + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/schema/validator" +) + +func NotNullList() validator.List { + return notNullListNestedObjectAttributeValidator{} +} + +type notNullListNestedObjectAttributeValidator struct{} + +func (notNullListNestedObjectAttributeValidator) Description(context.Context) string { + return "value must be configured" +} + +func (m notNullListNestedObjectAttributeValidator) MarkdownDescription(ctx context.Context) string { + return m.Description(ctx) +} + +func (m notNullListNestedObjectAttributeValidator) ValidateList(ctx context.Context, request validator.ListRequest, response *validator.ListResponse) { + if !request.ConfigValue.IsNull() { + return + } + + response.Diagnostics.AddAttributeError( + request.Path, + "Missing Attribute Value", + request.Path.String()+": "+m.Description(ctx), + ) +} diff --git a/internal/validators/list_test.go b/internal/validators/list_test.go new file mode 100644 index 0000000000..91bdf44a6e --- /dev/null +++ b/internal/validators/list_test.go @@ -0,0 +1,66 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validators_test + +import ( + "context" + "testing" + + "github.com/google/go-cmp/cmp" + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" +) + +func TestNotNullList(t *testing.T) { + t.Parallel() + + type testCase struct { + val types.List + expectedDiagnostics diag.Diagnostics + } + tests := map[string]testCase{ + "null": { + val: types.ListNull(types.StringType), + expectedDiagnostics: diag.Diagnostics{ + diag.NewAttributeErrorDiagnostic( + path.Root("test"), + "Missing Attribute Value", + `test: value must be configured`, + ), + }, + }, + "unknown": { + val: types.ListUnknown(types.StringType), + }, + "valid": { + val: types.ListValueMust(types.StringType, []attr.Value{ + types.StringValue("test"), + }), + }, + } + + for name, test := range tests { + t.Run(name, func(t *testing.T) { + t.Parallel() + + ctx := context.Background() + + request := validator.ListRequest{ + Path: path.Root("test"), + PathExpression: path.MatchRoot("test"), + ConfigValue: test.val, + } + response := validator.ListResponse{} + fwvalidators.NotNullList().ValidateList(ctx, request, &response) + + if diff := cmp.Diff(response.Diagnostics, test.expectedDiagnostics); diff != "" { + t.Errorf("unexpected diagnostics difference: %s", diff) + } + }) + } +} diff --git a/internal/validators/map.go b/internal/validators/map.go new file mode 100644 index 0000000000..2a25dd22f7 --- /dev/null +++ b/internal/validators/map.go @@ -0,0 +1,36 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validators + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/schema/validator" +) + +func NotNullMap() validator.Map { + return notNullMapAttributeValidator{} +} + +type notNullMapAttributeValidator struct{} + +func (m notNullMapAttributeValidator) Description(context.Context) string { + return "value must be configured" +} + +func (m notNullMapAttributeValidator) MarkdownDescription(ctx context.Context) string { + return m.Description(ctx) +} + +func (m notNullMapAttributeValidator) ValidateMap(ctx context.Context, request validator.MapRequest, response *validator.MapResponse) { + if !request.ConfigValue.IsNull() { + return + } + + response.Diagnostics.AddAttributeError( + request.Path, + "Missing Attribute Value", + request.Path.String()+": "+m.Description(ctx), + ) +} diff --git a/internal/validators/map_test.go b/internal/validators/map_test.go new file mode 100644 index 0000000000..d881a0f48e --- /dev/null +++ b/internal/validators/map_test.go @@ -0,0 +1,66 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validators_test + +import ( + "context" + "testing" + + "github.com/google/go-cmp/cmp" + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" +) + +func TestNotNullMap(t *testing.T) { + t.Parallel() + + type testCase struct { + val types.Map + expectedDiagnostics diag.Diagnostics + } + tests := map[string]testCase{ + "null": { + val: types.MapNull(types.StringType), + expectedDiagnostics: diag.Diagnostics{ + diag.NewAttributeErrorDiagnostic( + path.Root("test"), + "Missing Attribute Value", + `test: value must be configured`, + ), + }, + }, + "unknown": { + val: types.MapUnknown(types.StringType), + }, + "valid": { + val: types.MapValueMust(types.StringType, map[string]attr.Value{ + "test": types.StringValue("test"), + }), + }, + } + + for name, test := range tests { + t.Run(name, func(t *testing.T) { + t.Parallel() + + ctx := context.Background() + + request := validator.MapRequest{ + Path: path.Root("test"), + PathExpression: path.MatchRoot("test"), + ConfigValue: test.val, + } + response := validator.MapResponse{} + fwvalidators.NotNullMap().ValidateMap(ctx, request, &response) + + if diff := cmp.Diff(response.Diagnostics, test.expectedDiagnostics); diff != "" { + t.Errorf("unexpected diagnostics difference: %s", diff) + } + }) + } +} diff --git a/internal/validators/object.go b/internal/validators/object.go new file mode 100644 index 0000000000..c7996406e0 --- /dev/null +++ b/internal/validators/object.go @@ -0,0 +1,36 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validators + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/schema/validator" +) + +func NotNullObject() validator.Object { + return notNullObjectNestedAttributeValidator{} +} + +type notNullObjectNestedAttributeValidator struct{} + +func (notNullObjectNestedAttributeValidator) Description(context.Context) string { + return "value must be configured" +} + +func (m notNullObjectNestedAttributeValidator) MarkdownDescription(ctx context.Context) string { + return m.Description(ctx) +} + +func (m notNullObjectNestedAttributeValidator) ValidateObject(ctx context.Context, request validator.ObjectRequest, response *validator.ObjectResponse) { + if !request.ConfigValue.IsNull() { + return + } + + response.Diagnostics.AddAttributeError( + request.Path, + "Missing Attribute Value", + request.Path.String()+": "+m.Description(ctx), + ) +} diff --git a/internal/validators/object_test.go b/internal/validators/object_test.go new file mode 100644 index 0000000000..c0047ed290 --- /dev/null +++ b/internal/validators/object_test.go @@ -0,0 +1,71 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validators_test + +import ( + "context" + "testing" + + "github.com/google/go-cmp/cmp" + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" +) + +func TestNotNullObject(t *testing.T) { + t.Parallel() + + type testCase struct { + val types.Object + expectedDiagnostics diag.Diagnostics + } + + attributeTypes := map[string]attr.Type{ + "test": types.StringType, + } + + tests := map[string]testCase{ + "null": { + val: types.ObjectNull(attributeTypes), + expectedDiagnostics: diag.Diagnostics{ + diag.NewAttributeErrorDiagnostic( + path.Root("test"), + "Missing Attribute Value", + `test: value must be configured`, + ), + }, + }, + "unknown": { + val: types.ObjectUnknown(attributeTypes), + }, + "valid": { + val: types.ObjectValueMust(attributeTypes, map[string]attr.Value{ + "test": types.StringValue("defaultName"), + }), + }, + } + + for name, test := range tests { + t.Run(name, func(t *testing.T) { + t.Parallel() + + ctx := context.Background() + + request := validator.ObjectRequest{ + Path: path.Root("test"), + PathExpression: path.MatchRoot("test"), + ConfigValue: test.val, + } + response := validator.ObjectResponse{} + fwvalidators.NotNullObject().ValidateObject(ctx, request, &response) + + if diff := cmp.Diff(response.Diagnostics, test.expectedDiagnostics); diff != "" { + t.Errorf("unexpected diagnostics difference: %s", diff) + } + }) + } +} diff --git a/internal/validators/set.go b/internal/validators/set.go new file mode 100644 index 0000000000..4e6f4d319a --- /dev/null +++ b/internal/validators/set.go @@ -0,0 +1,36 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validators + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/schema/validator" +) + +func NotNullSet() validator.Set { + return notNullSetNestedObjectAttributeValidator{} +} + +type notNullSetNestedObjectAttributeValidator struct{} + +func (notNullSetNestedObjectAttributeValidator) Description(context.Context) string { + return "value must be configured" +} + +func (m notNullSetNestedObjectAttributeValidator) MarkdownDescription(ctx context.Context) string { + return m.Description(ctx) +} + +func (m notNullSetNestedObjectAttributeValidator) ValidateSet(ctx context.Context, request validator.SetRequest, response *validator.SetResponse) { + if !request.ConfigValue.IsNull() { + return + } + + response.Diagnostics.AddAttributeError( + request.Path, + "Missing Attribute Value", + request.Path.String()+": "+m.Description(ctx), + ) +} diff --git a/internal/validators/set_test.go b/internal/validators/set_test.go new file mode 100644 index 0000000000..83ca56ebd1 --- /dev/null +++ b/internal/validators/set_test.go @@ -0,0 +1,66 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validators_test + +import ( + "context" + "testing" + + "github.com/google/go-cmp/cmp" + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" +) + +func TestNotNullSet(t *testing.T) { + t.Parallel() + + type testCase struct { + val types.Set + expectedDiagnostics diag.Diagnostics + } + tests := map[string]testCase{ + "null": { + val: types.SetNull(types.StringType), + expectedDiagnostics: diag.Diagnostics{ + diag.NewAttributeErrorDiagnostic( + path.Root("test"), + "Missing Attribute Value", + `test: value must be configured`, + ), + }, + }, + "unknown": { + val: types.SetUnknown(types.StringType), + }, + "valid": { + val: types.SetValueMust(types.StringType, []attr.Value{ + types.StringValue("test"), + }), + }, + } + + for name, test := range tests { + t.Run(name, func(t *testing.T) { + t.Parallel() + + ctx := context.Background() + + request := validator.SetRequest{ + Path: path.Root("test"), + PathExpression: path.MatchRoot("test"), + ConfigValue: test.val, + } + response := validator.SetResponse{} + fwvalidators.NotNullSet().ValidateSet(ctx, request, &response) + + if diff := cmp.Diff(response.Diagnostics, test.expectedDiagnostics); diff != "" { + t.Errorf("unexpected diagnostics difference: %s", diff) + } + }) + } +} diff --git a/internal/validators/string.go b/internal/validators/string.go new file mode 100644 index 0000000000..ec922ee177 --- /dev/null +++ b/internal/validators/string.go @@ -0,0 +1,36 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validators + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/schema/validator" +) + +func NotNullString() validator.String { + return notNullStringAttributeValidator{} +} + +type notNullStringAttributeValidator struct{} + +func (m notNullStringAttributeValidator) Description(context.Context) string { + return "value must be configured" +} + +func (m notNullStringAttributeValidator) MarkdownDescription(ctx context.Context) string { + return m.Description(ctx) +} + +func (m notNullStringAttributeValidator) ValidateString(ctx context.Context, request validator.StringRequest, response *validator.StringResponse) { + if !request.ConfigValue.IsNull() { + return + } + + response.Diagnostics.AddAttributeError( + request.Path, + "Missing Attribute Value", + request.Path.String()+": "+m.Description(ctx), + ) +} diff --git a/internal/validators/string_test.go b/internal/validators/string_test.go new file mode 100644 index 0000000000..66d5fddace --- /dev/null +++ b/internal/validators/string_test.go @@ -0,0 +1,63 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validators_test + +import ( + "context" + "testing" + + "github.com/google/go-cmp/cmp" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" +) + +func TestNotNullString(t *testing.T) { + t.Parallel() + + type testCase struct { + val types.String + expectedDiagnostics diag.Diagnostics + } + tests := map[string]testCase{ + "null": { + val: types.StringNull(), + expectedDiagnostics: diag.Diagnostics{ + diag.NewAttributeErrorDiagnostic( + path.Root("test"), + "Missing Attribute Value", + `test: value must be configured`, + ), + }, + }, + "unknown": { + val: types.StringUnknown(), + }, + "valid": { + val: types.StringValue("value"), + }, + } + + for name, test := range tests { + t.Run(name, func(t *testing.T) { + t.Parallel() + + ctx := context.Background() + + request := validator.StringRequest{ + Path: path.Root("test"), + PathExpression: path.MatchRoot("test"), + ConfigValue: test.val, + } + response := validator.StringResponse{} + fwvalidators.NotNullString().ValidateString(ctx, request, &response) + + if diff := cmp.Diff(response.Diagnostics, test.expectedDiagnostics); diff != "" { + t.Errorf("unexpected diagnostics difference: %s", diff) + } + }) + } +}