diff --git a/internal/aws/accessanalyzer/analyzer_resource_gen.go b/internal/aws/accessanalyzer/analyzer_resource_gen.go index 4d640e831c..f685e34864 100644 --- a/internal/aws/accessanalyzer/analyzer_resource_gen.go +++ b/internal/aws/accessanalyzer/analyzer_resource_gen.go @@ -74,6 +74,7 @@ func analyzerResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -82,6 +83,7 @@ func analyzerResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/acmpca/certificate_authority_activation_resource_gen.go b/internal/aws/acmpca/certificate_authority_activation_resource_gen.go index 4cec8c1e35..cd6cd8bd9b 100644 --- a/internal/aws/acmpca/certificate_authority_activation_resource_gen.go +++ b/internal/aws/acmpca/certificate_authority_activation_resource_gen.go @@ -60,10 +60,6 @@ func certificateAuthorityActivationResource(ctx context.Context) (resource.Resou "certificate_chain": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Certificate chain for the Certificate Authority certificate.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // CertificateChain is a write-only property. }, /*END ATTRIBUTE*/ // Property: CompleteCertificateChain diff --git a/internal/aws/acmpca/certificate_authority_resource_gen.go b/internal/aws/acmpca/certificate_authority_resource_gen.go index a8f8ae1261..a3441f53ab 100644 --- a/internal/aws/acmpca/certificate_authority_resource_gen.go +++ b/internal/aws/acmpca/certificate_authority_resource_gen.go @@ -12,7 +12,6 @@ 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/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -286,7 +285,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Default: booldefault.StaticBool(false), PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // CRLSign is a write-only property. }, /*END ATTRIBUTE*/ // Property: DataEncipherment "data_encipherment": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -295,7 +296,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Default: booldefault.StaticBool(false), PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DataEncipherment is a write-only property. }, /*END ATTRIBUTE*/ // Property: DecipherOnly "decipher_only": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -304,7 +307,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Default: booldefault.StaticBool(false), PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DecipherOnly is a write-only property. }, /*END ATTRIBUTE*/ // Property: DigitalSignature "digital_signature": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -313,7 +318,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Default: booldefault.StaticBool(false), PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DigitalSignature is a write-only property. }, /*END ATTRIBUTE*/ // Property: EncipherOnly "encipher_only": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -322,7 +329,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Default: booldefault.StaticBool(false), PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // EncipherOnly is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeyAgreement "key_agreement": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -331,7 +340,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Default: booldefault.StaticBool(false), PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // KeyAgreement is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeyCertSign "key_cert_sign": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -340,7 +351,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Default: booldefault.StaticBool(false), PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // KeyCertSign is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeyEncipherment "key_encipherment": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -349,7 +362,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Default: booldefault.StaticBool(false), PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // KeyEncipherment is a write-only property. }, /*END ATTRIBUTE*/ // Property: NonRepudiation "non_repudiation": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -358,7 +373,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Default: booldefault.StaticBool(false), PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // NonRepudiation is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Structure that contains X.509 KeyUsage information.", @@ -366,7 +383,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // KeyUsage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SubjectInformationAccess "subject_information_access": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -384,7 +403,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // CommonName is a write-only property. }, /*END ATTRIBUTE*/ // Property: Country "country": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -392,7 +413,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Country is a write-only property. }, /*END ATTRIBUTE*/ // Property: CustomAttributes "custom_attributes": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -408,7 +431,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ObjectIdentifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -419,7 +444,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -428,7 +455,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // CustomAttributes is a write-only property. }, /*END ATTRIBUTE*/ // Property: DistinguishedNameQualifier "distinguished_name_qualifier": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -436,7 +465,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DistinguishedNameQualifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: GenerationQualifier "generation_qualifier": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -444,7 +475,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // GenerationQualifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: GivenName "given_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -452,7 +485,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // GivenName is a write-only property. }, /*END ATTRIBUTE*/ // Property: Initials "initials": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -460,7 +495,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Initials is a write-only property. }, /*END ATTRIBUTE*/ // Property: Locality "locality": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -468,7 +505,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Locality is a write-only property. }, /*END ATTRIBUTE*/ // Property: Organization "organization": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -476,7 +515,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Organization is a write-only property. }, /*END ATTRIBUTE*/ // Property: OrganizationalUnit "organizational_unit": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -484,7 +525,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // OrganizationalUnit is a write-only property. }, /*END ATTRIBUTE*/ // Property: Pseudonym "pseudonym": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -492,7 +535,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Pseudonym is a write-only property. }, /*END ATTRIBUTE*/ // Property: SerialNumber "serial_number": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -500,7 +545,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // SerialNumber is a write-only property. }, /*END ATTRIBUTE*/ // Property: State "state": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -508,7 +555,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // State is a write-only property. }, /*END ATTRIBUTE*/ // Property: Surname "surname": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -516,7 +565,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Surname is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -524,7 +575,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Structure that contains X.500 distinguished name information for your CA.", @@ -532,7 +585,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DirectoryName is a write-only property. }, /*END ATTRIBUTE*/ // Property: DnsName "dns_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -541,7 +596,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DnsName is a write-only property. }, /*END ATTRIBUTE*/ // Property: EdiPartyName "edi_party_name": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -552,7 +609,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // NameAssigner is a write-only property. }, /*END ATTRIBUTE*/ // Property: PartyName "party_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -563,7 +622,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // PartyName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Structure that contains X.509 EdiPartyName information.", @@ -571,7 +632,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // EdiPartyName is a write-only property. }, /*END ATTRIBUTE*/ // Property: IpAddress "ip_address": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -580,7 +643,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // IpAddress is a write-only property. }, /*END ATTRIBUTE*/ // Property: OtherName "other_name": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -595,7 +660,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // TypeId is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -606,7 +673,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Structure that contains X.509 OtherName information.", @@ -614,7 +683,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // OtherName is a write-only property. }, /*END ATTRIBUTE*/ // Property: RegisteredId "registered_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -623,7 +694,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // RegisteredId is a write-only property. }, /*END ATTRIBUTE*/ // Property: Rfc822Name "rfc_822_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -632,7 +705,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Rfc822Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: UniformResourceIdentifier "uniform_resource_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -641,7 +716,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // UniformResourceIdentifier is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Structure that contains X.509 GeneralName information. Assign one and ONLY one field.", @@ -652,7 +729,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // AccessLocation is a write-only property. }, /*END ATTRIBUTE*/ // Property: AccessMethod "access_method": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -664,7 +743,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // AccessMethodType is a write-only property. }, /*END ATTRIBUTE*/ // Property: CustomObjectIdentifier "custom_object_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -673,7 +754,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // CustomObjectIdentifier is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Structure that contains X.509 AccessMethod information. Assign one and ONLY one field.", @@ -684,7 +767,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // AccessMethod is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -693,7 +778,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // SubjectInformationAccess is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Structure that contains CSR pass through extension information used by the CreateCertificateAuthority action.", @@ -810,111 +897,65 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: OmitExtension "omit_extension": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, - Validators: []validator.Bool{ /*START VALIDATORS*/ - fwvalidators.NotNullBool(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // OmitExtension is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configures the default behavior of the CRL Distribution Point extension for certificates issued by your certificate authority", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CrlDistributionPointExtensionConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: CustomCname "custom_cname": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomCname is a write-only property. }, /*END ATTRIBUTE*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, - Validators: []validator.Bool{ /*START VALIDATORS*/ - fwvalidators.NotNullBool(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Enabled is a write-only property. }, /*END ATTRIBUTE*/ // Property: ExpirationInDays "expiration_in_days": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ExpirationInDays is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3BucketName "s3_bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // S3BucketName is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3ObjectAcl "s3_object_acl": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // S3ObjectAcl is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Your certificate authority can create and maintain a certificate revocation list (CRL). A CRL contains information about certificates that have been revoked.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CrlConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: OcspConfiguration "ocsp_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, - Validators: []validator.Bool{ /*START VALIDATORS*/ - fwvalidators.NotNullBool(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Enabled is a write-only property. }, /*END ATTRIBUTE*/ // Property: OcspCustomCname "ocsp_custom_cname": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // OcspCustomCname is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Helps to configure online certificate status protocol (OCSP) responder for your certificate authority", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // OcspConfiguration is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Certificate revocation information used by the CreateCertificateAuthority and UpdateCertificateAuthority actions.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // RevocationConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: SigningAlgorithm @@ -1013,7 +1054,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // CommonName is a write-only property. }, /*END ATTRIBUTE*/ // Property: Country "country": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1021,7 +1064,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Country is a write-only property. }, /*END ATTRIBUTE*/ // Property: CustomAttributes "custom_attributes": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1037,7 +1082,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ObjectIdentifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1048,7 +1095,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1057,7 +1106,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // CustomAttributes is a write-only property. }, /*END ATTRIBUTE*/ // Property: DistinguishedNameQualifier "distinguished_name_qualifier": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1065,7 +1116,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DistinguishedNameQualifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: GenerationQualifier "generation_qualifier": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1073,7 +1126,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // GenerationQualifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: GivenName "given_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1081,7 +1136,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // GivenName is a write-only property. }, /*END ATTRIBUTE*/ // Property: Initials "initials": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1089,7 +1146,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Initials is a write-only property. }, /*END ATTRIBUTE*/ // Property: Locality "locality": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1097,7 +1156,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Locality is a write-only property. }, /*END ATTRIBUTE*/ // Property: Organization "organization": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1105,7 +1166,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Organization is a write-only property. }, /*END ATTRIBUTE*/ // Property: OrganizationalUnit "organizational_unit": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1113,7 +1176,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // OrganizationalUnit is a write-only property. }, /*END ATTRIBUTE*/ // Property: Pseudonym "pseudonym": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1121,7 +1186,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Pseudonym is a write-only property. }, /*END ATTRIBUTE*/ // Property: SerialNumber "serial_number": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1129,7 +1196,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // SerialNumber is a write-only property. }, /*END ATTRIBUTE*/ // Property: State "state": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1137,7 +1206,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // State is a write-only property. }, /*END ATTRIBUTE*/ // Property: Surname "surname": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1145,7 +1216,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Surname is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1153,7 +1226,9 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Structure that contains X.500 distinguished name information for your CA.", @@ -1189,30 +1264,17 @@ func certificateAuthorityResource(ctx context.Context) (resource.Resource, error Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": 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*/ + Required: true, + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Tags is a write-only property. }, /*END ATTRIBUTE*/ // Property: Type diff --git a/internal/aws/acmpca/certificate_resource_gen.go b/internal/aws/acmpca/certificate_resource_gen.go index 42726fd523..5b9d588a5c 100644 --- a/internal/aws/acmpca/certificate_resource_gen.go +++ b/internal/aws/acmpca/certificate_resource_gen.go @@ -458,7 +458,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // CertPolicyId is a write-only property. }, /*END ATTRIBUTE*/ // Property: PolicyQualifiers "policy_qualifiers": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -474,7 +476,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // PolicyQualifierId is a write-only property. }, /*END ATTRIBUTE*/ // Property: Qualifier "qualifier": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -489,7 +493,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // CpsUri is a write-only property. }, /*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.", @@ -500,7 +506,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Qualifier is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -509,7 +517,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // PolicyQualifiers is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -518,7 +528,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // CertificatePolicies is a write-only property. }, /*END ATTRIBUTE*/ // Property: CustomExtensions "custom_extensions": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -531,7 +543,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Critical is a write-only property. }, /*END ATTRIBUTE*/ // Property: ObjectIdentifier "object_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -543,7 +557,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ObjectIdentifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -555,7 +571,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -564,7 +582,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // CustomExtensions is a write-only property. }, /*END ATTRIBUTE*/ // Property: ExtendedKeyUsage "extended_key_usage": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -577,7 +597,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ExtendedKeyUsageObjectIdentifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: ExtendedKeyUsageType "extended_key_usage_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -586,7 +608,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ExtendedKeyUsageType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -595,7 +619,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ExtendedKeyUsage is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeyUsage "key_usage": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -608,7 +634,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Default: booldefault.StaticBool(false), PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // CRLSign is a write-only property. }, /*END ATTRIBUTE*/ // Property: DataEncipherment "data_encipherment": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -618,7 +646,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Default: booldefault.StaticBool(false), PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DataEncipherment is a write-only property. }, /*END ATTRIBUTE*/ // Property: DecipherOnly "decipher_only": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -628,7 +658,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Default: booldefault.StaticBool(false), PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DecipherOnly is a write-only property. }, /*END ATTRIBUTE*/ // Property: DigitalSignature "digital_signature": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -638,7 +670,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Default: booldefault.StaticBool(false), PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DigitalSignature is a write-only property. }, /*END ATTRIBUTE*/ // Property: EncipherOnly "encipher_only": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -648,7 +682,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Default: booldefault.StaticBool(false), PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // EncipherOnly is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeyAgreement "key_agreement": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -658,7 +694,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Default: booldefault.StaticBool(false), PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // KeyAgreement is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeyCertSign "key_cert_sign": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -668,7 +706,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Default: booldefault.StaticBool(false), PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // KeyCertSign is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeyEncipherment "key_encipherment": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -678,7 +718,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Default: booldefault.StaticBool(false), PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // KeyEncipherment is a write-only property. }, /*END ATTRIBUTE*/ // Property: NonRepudiation "non_repudiation": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -688,7 +730,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Default: booldefault.StaticBool(false), PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // NonRepudiation is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Defines one or more purposes for which the key contained in the certificate can be used. Default value for each option is false.", @@ -696,7 +740,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // KeyUsage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SubjectAlternativeNames "subject_alternative_names": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -712,7 +758,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // CommonName is a write-only property. }, /*END ATTRIBUTE*/ // Property: Country "country": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -721,7 +769,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Country is a write-only property. }, /*END ATTRIBUTE*/ // Property: CustomAttributes "custom_attributes": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -737,7 +787,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ObjectIdentifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -749,7 +801,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -758,7 +812,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // CustomAttributes is a write-only property. }, /*END ATTRIBUTE*/ // Property: DistinguishedNameQualifier "distinguished_name_qualifier": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -767,7 +823,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DistinguishedNameQualifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: GenerationQualifier "generation_qualifier": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -776,7 +834,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // GenerationQualifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: GivenName "given_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -785,7 +845,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // GivenName is a write-only property. }, /*END ATTRIBUTE*/ // Property: Initials "initials": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -794,7 +856,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Initials is a write-only property. }, /*END ATTRIBUTE*/ // Property: Locality "locality": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -803,7 +867,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Locality is a write-only property. }, /*END ATTRIBUTE*/ // Property: Organization "organization": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -812,7 +878,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Organization is a write-only property. }, /*END ATTRIBUTE*/ // Property: OrganizationalUnit "organizational_unit": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -821,7 +889,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // OrganizationalUnit is a write-only property. }, /*END ATTRIBUTE*/ // Property: Pseudonym "pseudonym": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -830,7 +900,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Pseudonym is a write-only property. }, /*END ATTRIBUTE*/ // Property: SerialNumber "serial_number": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -839,7 +911,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // SerialNumber is a write-only property. }, /*END ATTRIBUTE*/ // Property: State "state": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -848,7 +922,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // State is a write-only property. }, /*END ATTRIBUTE*/ // Property: Surname "surname": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -857,7 +933,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Surname is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -866,7 +944,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Contains information about the certificate subject. The certificate can be one issued by your private certificate authority (CA) or it can be your private CA certificate. The Subject field in the certificate identifies the entity that owns or controls the public key in the certificate. The entity can be a user, computer, device, or service. The Subject must contain an X.500 distinguished name (DN). A DN is a sequence of relative distinguished names (RDNs). The RDNs are separated by commas in the certificate. The DN must be unique for each entity, but your private CA can issue more than one certificate with the same DN to the same entity.", @@ -874,7 +954,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DirectoryName is a write-only property. }, /*END ATTRIBUTE*/ // Property: DnsName "dns_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -883,7 +965,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DnsName is a write-only property. }, /*END ATTRIBUTE*/ // Property: EdiPartyName "edi_party_name": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -898,7 +982,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // NameAssigner is a write-only property. }, /*END ATTRIBUTE*/ // Property: PartyName "party_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -910,7 +996,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // PartyName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents ``GeneralName`` as an ``EdiPartyName`` object.", @@ -918,7 +1006,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // EdiPartyName is a write-only property. }, /*END ATTRIBUTE*/ // Property: IpAddress "ip_address": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -927,7 +1017,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // IpAddress is a write-only property. }, /*END ATTRIBUTE*/ // Property: OtherName "other_name": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -942,7 +1034,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // TypeId is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -954,7 +1048,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents ``GeneralName`` using an ``OtherName`` object.", @@ -962,7 +1058,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // OtherName is a write-only property. }, /*END ATTRIBUTE*/ // Property: RegisteredId "registered_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -971,7 +1069,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // RegisteredId is a write-only property. }, /*END ATTRIBUTE*/ // Property: Rfc822Name "rfc_822_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -980,7 +1080,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Rfc822Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: UniformResourceIdentifier "uniform_resource_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -989,7 +1091,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // UniformResourceIdentifier is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -998,7 +1102,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // SubjectAlternativeNames is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies X.509 extension information for a certificate.", @@ -1006,7 +1112,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Extensions is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subject "subject": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1018,7 +1126,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // CommonName is a write-only property. }, /*END ATTRIBUTE*/ // Property: Country "country": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1027,7 +1137,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Country is a write-only property. }, /*END ATTRIBUTE*/ // Property: CustomAttributes "custom_attributes": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1043,7 +1155,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ObjectIdentifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1055,7 +1169,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1064,7 +1180,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // CustomAttributes is a write-only property. }, /*END ATTRIBUTE*/ // Property: DistinguishedNameQualifier "distinguished_name_qualifier": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1073,7 +1191,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DistinguishedNameQualifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: GenerationQualifier "generation_qualifier": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1082,7 +1202,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // GenerationQualifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: GivenName "given_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1091,7 +1213,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // GivenName is a write-only property. }, /*END ATTRIBUTE*/ // Property: Initials "initials": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1100,7 +1224,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Initials is a write-only property. }, /*END ATTRIBUTE*/ // Property: Locality "locality": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1109,7 +1235,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Locality is a write-only property. }, /*END ATTRIBUTE*/ // Property: Organization "organization": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1118,7 +1246,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Organization is a write-only property. }, /*END ATTRIBUTE*/ // Property: OrganizationalUnit "organizational_unit": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1127,7 +1257,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // OrganizationalUnit is a write-only property. }, /*END ATTRIBUTE*/ // Property: Pseudonym "pseudonym": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1136,7 +1268,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Pseudonym is a write-only property. }, /*END ATTRIBUTE*/ // Property: SerialNumber "serial_number": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1145,7 +1279,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // SerialNumber is a write-only property. }, /*END ATTRIBUTE*/ // Property: State "state": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1154,7 +1290,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // State is a write-only property. }, /*END ATTRIBUTE*/ // Property: Surname "surname": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1163,7 +1301,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Surname is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1172,7 +1312,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Contains information about the certificate subject. The Subject field in the certificate identifies the entity that owns or controls the public key in the certificate. The entity can be a user, computer, device, or service. The Subject must contain an X.500 distinguished name (DN). A DN is a sequence of relative distinguished names (RDNs). The RDNs are separated by commas in the certificate.", @@ -1180,7 +1322,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Subject is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies X.509 certificate information to be included in the issued certificate. An ``APIPassthrough`` or ``APICSRPassthrough`` template variant must be selected, or else this parameter is ignored.", @@ -1311,11 +1455,19 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether the ``Value`` parameter represents days, months, or years.", Required: true, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ + // Type is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "A long integer interpreted according to the value of ``Type``, below.", Required: true, + PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ + float64planmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The period of time during which the certificate will be valid.", @@ -1359,7 +1511,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Type is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -1371,7 +1525,9 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*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``.", @@ -1469,6 +1625,8 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { "value": "Value", }) + opts = opts.IsImmutableType(true) + opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/ApiPassthrough", "/properties/CertificateSigningRequest", @@ -1479,8 +1637,6 @@ func certificateResource(ctx context.Context) (resource.Resource, error) { }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) - opts = opts.WithUpdateTimeoutInMinutes(0) - v, err := generic.NewResource(ctx, opts...) if err != nil { diff --git a/internal/aws/amplify/app_resource_gen.go b/internal/aws/amplify/app_resource_gen.go index 62320aa008..ce4a3656b2 100644 --- a/internal/aws/amplify/app_resource_gen.go +++ b/internal/aws/amplify/app_resource_gen.go @@ -43,13 +43,9 @@ func appResource(ctx context.Context) (resource.Resource, error) { // } "access_token": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AccessToken is a write-only property. }, /*END ATTRIBUTE*/ // Property: AppId @@ -200,15 +196,12 @@ func appResource(ctx context.Context) (resource.Resource, error) { "auto_branch_creation_patterns": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 2048), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AutoBranchCreationPatterns is a write-only property. }, /*END ATTRIBUTE*/ // Property: BasicAuthConfig "basic_auth_config": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -216,82 +209,55 @@ func appResource(ctx context.Context) (resource.Resource, error) { // Property: EnableBasicAuth "enable_basic_auth": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EnableBasicAuth is a write-only property. }, /*END ATTRIBUTE*/ // Property: Password "password": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Password is a write-only property. }, /*END ATTRIBUTE*/ // Property: Username "username": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Username is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BasicAuthConfig is a write-only property. }, /*END ATTRIBUTE*/ // Property: BuildSpec "build_spec": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 25000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BuildSpec is a write-only property. }, /*END ATTRIBUTE*/ // Property: EnableAutoBranchCreation "enable_auto_branch_creation": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EnableAutoBranchCreation is a write-only property. }, /*END ATTRIBUTE*/ // Property: EnableAutoBuild "enable_auto_build": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EnableAutoBuild is a write-only property. }, /*END ATTRIBUTE*/ // Property: EnablePerformanceMode "enable_performance_mode": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EnablePerformanceMode is a write-only property. }, /*END ATTRIBUTE*/ // Property: EnablePullRequestPreview "enable_pull_request_preview": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EnablePullRequestPreview is a write-only property. }, /*END ATTRIBUTE*/ // Property: EnvironmentVariables "environment_variables": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -299,66 +265,48 @@ func appResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EnvironmentVariables is a write-only property. }, /*END ATTRIBUTE*/ // Property: Framework "framework": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(255), stringvalidator.RegexMatches(regexp.MustCompile("(?s).*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Framework is a write-only property. }, /*END ATTRIBUTE*/ // Property: PullRequestEnvironmentName "pull_request_environment_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(20), stringvalidator.RegexMatches(regexp.MustCompile("(?s).*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PullRequestEnvironmentName is a write-only property. }, /*END ATTRIBUTE*/ // Property: Stage "stage": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EXPERIMENTAL", @@ -368,16 +316,10 @@ func appResource(ctx context.Context) (resource.Resource, error) { "DEVELOPMENT", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Stage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AutoBranchCreationConfig is a write-only property. }, /*END ATTRIBUTE*/ // Property: BasicAuthConfig @@ -407,39 +349,26 @@ func appResource(ctx context.Context) (resource.Resource, error) { // Property: EnableBasicAuth "enable_basic_auth": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EnableBasicAuth is a write-only property. }, /*END ATTRIBUTE*/ // Property: Password "password": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Password is a write-only property. }, /*END ATTRIBUTE*/ // Property: Username "username": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Username is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // BasicAuthConfig is a write-only property. }, /*END ATTRIBUTE*/ // Property: BuildSpec @@ -779,14 +708,10 @@ func appResource(ctx context.Context) (resource.Resource, error) { // } "oauth_token": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1000), stringvalidator.RegexMatches(regexp.MustCompile("(?s).*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // OauthToken is a write-only property. }, /*END ATTRIBUTE*/ // Property: Platform diff --git a/internal/aws/amplify/branch_resource_gen.go b/internal/aws/amplify/branch_resource_gen.go index f33a9e43de..869c3df714 100644 --- a/internal/aws/amplify/branch_resource_gen.go +++ b/internal/aws/amplify/branch_resource_gen.go @@ -129,41 +129,26 @@ func branchResource(ctx context.Context) (resource.Resource, error) { // Property: EnableBasicAuth "enable_basic_auth": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EnableBasicAuth is a write-only property. }, /*END ATTRIBUTE*/ // Property: Password "password": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Password is a write-only property. }, /*END ATTRIBUTE*/ // Property: Username "username": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Username is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // BasicAuthConfig is a write-only property. }, /*END ATTRIBUTE*/ // Property: BranchName diff --git a/internal/aws/amplify/domain_resource_gen.go b/internal/aws/amplify/domain_resource_gen.go index 212a0a1157..eec39ebd3f 100644 --- a/internal/aws/amplify/domain_resource_gen.go +++ b/internal/aws/amplify/domain_resource_gen.go @@ -193,34 +193,24 @@ func domainResource(ctx context.Context) (resource.Resource, error) { // Property: CertificateType "certificate_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "AMPLIFY_MANAGED", "CUSTOM", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CertificateType is a write-only property. }, /*END ATTRIBUTE*/ // Property: CustomCertificateArn "custom_certificate_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws:acm:[a-z0-9-]+:\\d{12}:certificate\\/.+$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomCertificateArn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // CertificateSettings is a write-only property. }, /*END ATTRIBUTE*/ // Property: DomainName diff --git a/internal/aws/apigateway/deployment_resource_gen.go b/internal/aws/apigateway/deployment_resource_gen.go index 467100b49b..7cf344fb77 100644 --- a/internal/aws/apigateway/deployment_resource_gen.go +++ b/internal/aws/apigateway/deployment_resource_gen.go @@ -12,18 +12,13 @@ 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" "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() { @@ -71,7 +66,9 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // PercentTraffic is a write-only property. }, /*END ATTRIBUTE*/ // Property: StageVariableOverrides "stage_variable_overrides": // Pattern: "" @@ -82,7 +79,9 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ mapplanmodifier.UseStateForUnknown(), + mapplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // StageVariableOverrides is a write-only property. }, /*END ATTRIBUTE*/ // Property: UseStageCache "use_stage_cache": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -91,7 +90,9 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // UseStageCache is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The input configuration for a canary deployment.", @@ -349,72 +350,48 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { "destination_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis Data Firehose delivery stream to receive access logs. If you specify a Kinesis Data Firehose delivery stream, the stream name must begin with ``amazon-apigateway-``.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DestinationArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: Format "format": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A single line format of the access logs of data, as specified by selected $context variables. The format must include at least ``$context.requestId``.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Format is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies settings for logging access in this stage.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AccessLogSetting is a write-only property. }, /*END ATTRIBUTE*/ // Property: CacheClusterEnabled "cache_cluster_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether a cache cluster is enabled for the stage.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CacheClusterEnabled is a write-only property. }, /*END ATTRIBUTE*/ // Property: CacheClusterSize "cache_cluster_size": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The size of the stage's cache cluster. For more information, see [cacheClusterSize](https://docs.aws.amazon.com/apigateway/latest/api/API_CreateStage.html#apigw-CreateStage-request-cacheClusterSize) in the *API Gateway API Reference*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CacheClusterSize is a write-only property. }, /*END ATTRIBUTE*/ // Property: CacheDataEncrypted "cache_data_encrypted": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether the cached responses are encrypted.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CacheDataEncrypted is a write-only property. }, /*END ATTRIBUTE*/ // Property: CacheTtlInSeconds "cache_ttl_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The time-to-live (TTL) period, in seconds, that specifies how long API Gateway caches responses.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CacheTtlInSeconds is a write-only property. }, /*END ATTRIBUTE*/ // Property: CachingEnabled "caching_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether responses are cached and returned for requests. You must enable a cache cluster on the stage to cache responses. For more information, see [Enable API Gateway Caching in a Stage to Enhance API Performance](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html) in the *API Gateway Developer Guide*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CachingEnabled is a write-only property. }, /*END ATTRIBUTE*/ // Property: CanarySetting "canary_setting": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -423,10 +400,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { "percent_traffic": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The percent (0-100) of traffic diverted to a canary deployment.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ - float64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PercentTraffic is a write-only property. }, /*END ATTRIBUTE*/ // Property: StageVariableOverrides "stage_variable_overrides": // Pattern: "" @@ -434,72 +408,48 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary. These stage variables are represented as a string-to-string map between stage variable names and their values.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ - mapplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // StageVariableOverrides is a write-only property. }, /*END ATTRIBUTE*/ // Property: UseStageCache "use_stage_cache": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "A Boolean flag to indicate whether the canary deployment uses the stage cache or not.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // UseStageCache is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies settings for the canary deployment in this stage.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CanarySetting is a write-only property. }, /*END ATTRIBUTE*/ // Property: ClientCertificateId "client_certificate_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identifier of the client certificate that API Gateway uses to call your integration endpoints in the stage.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ClientCertificateId is a write-only property. }, /*END ATTRIBUTE*/ // Property: DataTraceEnabled "data_trace_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether data trace logging is enabled for methods in the stage. API Gateway pushes these logs to Amazon CloudWatch Logs.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DataTraceEnabled is a write-only property. }, /*END ATTRIBUTE*/ // Property: Description "description": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A description of the purpose of the stage.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Description is a write-only property. }, /*END ATTRIBUTE*/ // Property: DocumentationVersion "documentation_version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The version identifier of the API documentation snapshot.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DocumentationVersion is a write-only property. }, /*END ATTRIBUTE*/ // Property: LoggingLevel "logging_level": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The logging level for this method. For valid values, see the ``loggingLevel`` property of the [MethodSetting](https://docs.aws.amazon.com/apigateway/latest/api/API_MethodSetting.html) resource in the *Amazon API Gateway API Reference*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LoggingLevel is a write-only property. }, /*END ATTRIBUTE*/ // Property: MethodSettings "method_settings": schema.SetNestedAttribute{ /*START ATTRIBUTE*/ @@ -509,109 +459,73 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { "cache_data_encrypted": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether the cached responses are encrypted.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CacheDataEncrypted is a write-only property. }, /*END ATTRIBUTE*/ // Property: CacheTtlInSeconds "cache_ttl_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CacheTtlInSeconds is a write-only property. }, /*END ATTRIBUTE*/ // Property: CachingEnabled "caching_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CachingEnabled is a write-only property. }, /*END ATTRIBUTE*/ // Property: DataTraceEnabled "data_trace_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. This can be useful to troubleshoot APIs, but can result in logging sensitive data. We recommend that you don't enable this option for production APIs.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DataTraceEnabled is a write-only property. }, /*END ATTRIBUTE*/ // Property: HttpMethod "http_method": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The HTTP method.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // HttpMethod is a write-only property. }, /*END ATTRIBUTE*/ // Property: LoggingLevel "logging_level": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. Valid values are ``OFF``, ``ERROR``, and ``INFO``. Choose ``ERROR`` to write only error-level entries to CloudWatch Logs, or choose ``INFO`` to include all ``ERROR`` events as well as extra informational events.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LoggingLevel is a write-only property. }, /*END ATTRIBUTE*/ // Property: MetricsEnabled "metrics_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether Amazon CloudWatch metrics are enabled for this method.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MetricsEnabled is a write-only property. }, /*END ATTRIBUTE*/ // Property: ResourcePath "resource_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The resource path for this method. Forward slashes (``/``) are encoded as ``~1`` and the initial slash must include a forward slash. For example, the path value ``/resource/subresource`` must be encoded as ``/~1resource~1subresource``. To specify the root path, use only a slash (``/``).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ResourcePath is a write-only property. }, /*END ATTRIBUTE*/ // Property: ThrottlingBurstLimit "throttling_burst_limit": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Specifies the throttling burst limit.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ThrottlingBurstLimit is a write-only property. }, /*END ATTRIBUTE*/ // Property: ThrottlingRateLimit "throttling_rate_limit": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "Specifies the throttling rate limit.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ - float64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ThrottlingRateLimit is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Configures settings for all of the stage's methods.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MethodSettings is a write-only property. }, /*END ATTRIBUTE*/ // Property: MetricsEnabled "metrics_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether Amazon CloudWatch metrics are enabled for methods in the stage.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MetricsEnabled is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tags "tags": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -620,63 +534,41 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name of the tag", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for the tag", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "An array of arbitrary tags (key-value pairs) to associate with the stage.", Optional: true, - Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Tags is a write-only property. }, /*END ATTRIBUTE*/ // Property: ThrottlingBurstLimit "throttling_burst_limit": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The target request burst rate limit. This allows more requests through for a period of time than the target rate limit. For more information, see [Manage API Request Throttling](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-request-throttling.html) in the *API Gateway Developer Guide*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ThrottlingBurstLimit is a write-only property. }, /*END ATTRIBUTE*/ // Property: ThrottlingRateLimit "throttling_rate_limit": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The target request steady-state rate limit. For more information, see [Manage API Request Throttling](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-request-throttling.html) in the *API Gateway Developer Guide*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ - float64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ThrottlingRateLimit is a write-only property. }, /*END ATTRIBUTE*/ // Property: TracingEnabled "tracing_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether active tracing with X-ray is enabled for this stage.\n For more information, see [Trace API Gateway API Execution with X-Ray](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-xray.html) in the *API Gateway Developer Guide*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TracingEnabled is a write-only property. }, /*END ATTRIBUTE*/ // Property: Variables "variables": // Pattern: "" @@ -684,18 +576,11 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "A map that defines the stage variables. Variable names must consist of alphanumeric characters, and the values must match the following regular expression: ``[A-Za-z0-9-._~:/?#&=,]+``.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ - mapplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Variables is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The description of the Stage resource for the Deployment resource to create. To specify a stage description, you must also provide a stage name.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // StageDescription is a write-only property. }, /*END ATTRIBUTE*/ // Property: StageName @@ -708,10 +593,6 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { "stage_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the Stage resource for the Deployment resource to create.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // StageName is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/apigateway/documentation_part_resource_gen.go b/internal/aws/apigateway/documentation_part_resource_gen.go index 3b7c5b594f..2997914a79 100644 --- a/internal/aws/apigateway/documentation_part_resource_gen.go +++ b/internal/aws/apigateway/documentation_part_resource_gen.go @@ -94,6 +94,7 @@ func documentationPartResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name @@ -103,6 +104,7 @@ func documentationPartResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Path @@ -112,6 +114,7 @@ func documentationPartResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StatusCode @@ -121,6 +124,7 @@ func documentationPartResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type @@ -146,6 +150,7 @@ func documentationPartResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/apigateway/rest_api_resource_gen.go b/internal/aws/apigateway/rest_api_resource_gen.go index d2bb57718b..b9777700ba 100644 --- a/internal/aws/apigateway/rest_api_resource_gen.go +++ b/internal/aws/apigateway/rest_api_resource_gen.go @@ -80,10 +80,6 @@ func restApiResource(ctx context.Context) (resource.Resource, error) { "body": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "An OpenAPI specification that defines a set of RESTful APIs in JSON format. For YAML templates, you can also provide the specification in YAML format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Body is a write-only property. }, /*END ATTRIBUTE*/ // Property: BodyS3Location @@ -122,45 +118,29 @@ func restApiResource(ctx context.Context) (resource.Resource, error) { "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the S3 bucket where the OpenAPI file is stored.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Bucket is a write-only property. }, /*END ATTRIBUTE*/ // Property: ETag "e_tag": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 ETag (a file checksum) of the OpenAPI file. If you don't specify a value, API Gateway skips ETag validation of your OpenAPI file.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ETag is a write-only property. }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The file name of the OpenAPI file (Amazon S3 object name).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Version "version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "For versioning-enabled buckets, a specific version of the OpenAPI file.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Version is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The Amazon Simple Storage Service (Amazon S3) location that points to an OpenAPI file, which defines a set of RESTful APIs in JSON or YAML format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // BodyS3Location is a write-only property. }, /*END ATTRIBUTE*/ // Property: CloneFrom @@ -173,10 +153,6 @@ func restApiResource(ctx context.Context) (resource.Resource, error) { "clone_from": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID of the RestApi that you want to clone from.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // CloneFrom is a write-only property. }, /*END ATTRIBUTE*/ // Property: Description @@ -285,10 +261,6 @@ func restApiResource(ctx context.Context) (resource.Resource, error) { "fail_on_warnings": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "A query parameter to indicate whether to rollback the API update (``true``) or not (``false``) when a warning is encountered. The default value is ``false``.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // FailOnWarnings is a write-only property. }, /*END ATTRIBUTE*/ // Property: MinimumCompressionSize @@ -316,10 +288,6 @@ func restApiResource(ctx context.Context) (resource.Resource, error) { "mode": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "This property applies only when you use OpenAPI to define your REST API. The ``Mode`` determines how API Gateway handles resource updates.\n Valid values are ``overwrite`` or ``merge``. \n For ``overwrite``, the new API definition replaces the existing one. The existing API identifier remains unchanged.\n For ``merge``, the new API definition is merged with the existing API.\n If you don't specify this property, a default value is chosen. For REST APIs created before March 29, 2021, the default is ``overwrite``. For REST APIs created after March 29, 2021, the new API definition takes precedence, but any container types such as endpoint configurations and binary media types are merged with the existing API. \n Use the default mode to define top-level ``RestApi`` properties in addition to using OpenAPI. Generally, it's preferred to use API Gateway's OpenAPI extensions to model these properties.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Mode is a write-only property. }, /*END ATTRIBUTE*/ // Property: Name @@ -353,10 +321,6 @@ func restApiResource(ctx context.Context) (resource.Resource, error) { "parameters": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Custom header parameters as part of the request. For example, to exclude DocumentationParts from an imported API, set ``ignore=documentation`` as a ``parameters`` value, as in the AWS CLI command of ``aws apigateway import-rest-api --parameters ignore=documentation --body 'file:///path/to/imported-api-body.json'``.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Parameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: Policy diff --git a/internal/aws/apigatewayv2/api_resource_gen.go b/internal/aws/apigatewayv2/api_resource_gen.go index 26f5ce3313..446deaf037 100644 --- a/internal/aws/apigatewayv2/api_resource_gen.go +++ b/internal/aws/apigatewayv2/api_resource_gen.go @@ -84,10 +84,6 @@ func apiResource(ctx context.Context) (resource.Resource, error) { "base_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies how to interpret the base path of the API during import. Valid values are ``ignore``, ``prepend``, and ``split``. The default value is ``ignore``. To learn more, see [Set the OpenAPI basePath Property](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-import-api-basePath.html). Supported only for HTTP APIs.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // BasePath is a write-only property. }, /*END ATTRIBUTE*/ // Property: Body @@ -101,10 +97,6 @@ func apiResource(ctx context.Context) (resource.Resource, error) { CustomType: jsontypes.NormalizedType{}, Description: "The OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a ``Body`` or ``BodyS3Location``. If you specify a ``Body`` or ``BodyS3Location``, don't specify CloudFormation resources such as ``AWS::ApiGatewayV2::Authorizer`` or ``AWS::ApiGatewayV2::Route``. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Body is a write-only property. }, /*END ATTRIBUTE*/ // Property: BodyS3Location @@ -139,49 +131,29 @@ func apiResource(ctx context.Context) (resource.Resource, error) { "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The S3 bucket that contains the OpenAPI definition to import. Required if you specify a ``BodyS3Location`` for an API.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Bucket is a write-only property. }, /*END ATTRIBUTE*/ // Property: Etag "etag": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Etag of the S3 object.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Etag is a write-only property. }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key of the S3 object. Required if you specify a ``BodyS3Location`` for an API.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Version "version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The version of the S3 object.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Version is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The S3 location of an OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a ``Body`` or ``BodyS3Location``. If you specify a ``Body`` or ``BodyS3Location``, don't specify CloudFormation resources such as ``AWS::ApiGatewayV2::Authorizer`` or ``AWS::ApiGatewayV2::Route``. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // BodyS3Location is a write-only property. }, /*END ATTRIBUTE*/ // Property: CorsConfiguration @@ -312,10 +284,6 @@ func apiResource(ctx context.Context) (resource.Resource, error) { "credentials_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "This property is part of quick create. It specifies the credentials required for the integration, if any. For a Lambda integration, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify ``arn:aws:iam::*:user/*``. To use resource-based permissions on supported AWS services, specify ``null``. Currently, this property is not used for HTTP integrations. Supported only for HTTP APIs.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // CredentialsArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: Description @@ -358,10 +326,6 @@ func apiResource(ctx context.Context) (resource.Resource, error) { "disable_schema_validation": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Avoid validating models when creating a deployment. Supported only for WebSocket APIs.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // DisableSchemaValidation is a write-only property. }, /*END ATTRIBUTE*/ // Property: FailOnWarnings @@ -374,10 +338,6 @@ func apiResource(ctx context.Context) (resource.Resource, error) { "fail_on_warnings": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // FailOnWarnings is a write-only property. }, /*END ATTRIBUTE*/ // Property: Name @@ -421,10 +381,6 @@ func apiResource(ctx context.Context) (resource.Resource, error) { "route_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "This property is part of quick create. If you don't specify a ``routeKey``, a default route of ``$default`` is created. The ``$default`` route acts as a catch-all for any request made to your API, for a particular stage. The ``$default`` route key can't be modified. You can add routes after creating the API, and you can update the route keys of additional routes. Supported only for HTTP APIs.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // RouteKey is a write-only property. }, /*END ATTRIBUTE*/ // Property: RouteSelectionExpression @@ -475,10 +431,6 @@ func apiResource(ctx context.Context) (resource.Resource, error) { "target": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "This property is part of quick create. Quick create produces an API with an integration, a default catch-all route, and a default stage which is configured to automatically deploy changes. For HTTP integrations, specify a fully qualified URL. For Lambda integrations, specify a function ARN. The type of the integration will be HTTP_PROXY or AWS_PROXY, respectively. Supported only for HTTP APIs.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Target is a write-only property. }, /*END ATTRIBUTE*/ // Property: Version diff --git a/internal/aws/apigatewayv2/deployment_resource_gen.go b/internal/aws/apigatewayv2/deployment_resource_gen.go index 5dbcb811bd..11fef61251 100644 --- a/internal/aws/apigatewayv2/deployment_resource_gen.go +++ b/internal/aws/apigatewayv2/deployment_resource_gen.go @@ -77,10 +77,6 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { "stage_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of an existing stage to associate with the deployment.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // StageName is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/apigatewayv2/route_resource_gen.go b/internal/aws/apigatewayv2/route_resource_gen.go index fad4072fc0..2400a6ab59 100644 --- a/internal/aws/apigatewayv2/route_resource_gen.go +++ b/internal/aws/apigatewayv2/route_resource_gen.go @@ -102,10 +102,6 @@ func routeResource(ctx context.Context) (resource.Resource, error) { "authorizer_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identifier of the ``Authorizer`` resource to be associated with this route. The authorizer identifier is generated by API Gateway when you created the authorizer.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AuthorizerId is a write-only property. }, /*END ATTRIBUTE*/ // Property: ModelSelectionExpression @@ -168,10 +164,6 @@ func routeResource(ctx context.Context) (resource.Resource, error) { CustomType: jsontypes.NormalizedType{}, Description: "The request parameters for the route. Supported only for WebSocket APIs.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // RequestParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: RouteId diff --git a/internal/aws/appconfig/extension_association_resource_gen.go b/internal/aws/appconfig/extension_association_resource_gen.go index 444d79e7af..ce6b0cc4d5 100644 --- a/internal/aws/appconfig/extension_association_resource_gen.go +++ b/internal/aws/appconfig/extension_association_resource_gen.go @@ -190,7 +190,9 @@ func extensionAssociationResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -203,7 +205,9 @@ func extensionAssociationResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*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 71342fdcf7..bd6a884b2b 100644 --- a/internal/aws/appflow/connector_profile_resource_gen.go +++ b/internal/aws/appflow/connector_profile_resource_gen.go @@ -14,18 +14,12 @@ 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/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() { @@ -1132,36 +1126,25 @@ 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.", - Optional: true, - Computed: true, + Required: 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*/ + // ApiKey is a write-only property. }, /*END ATTRIBUTE*/ // Property: SecretKey "secret_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // SecretKey is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Amplitude is a write-only property. }, /*END ATTRIBUTE*/ // Property: CustomConnector "custom_connector": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1171,40 +1154,29 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ApiKey "api_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // ApiKey is a write-only property. }, /*END ATTRIBUTE*/ // Property: ApiSecretKey "api_secret_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ApiSecretKey is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ApiKey is a write-only property. }, /*END ATTRIBUTE*/ // Property: AuthenticationType "authentication_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "OAUTH2", @@ -1212,47 +1184,33 @@ 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*/ + // AuthenticationType is a write-only property. }, /*END ATTRIBUTE*/ // Property: Basic "basic": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Password "password": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Password is a write-only property. }, /*END ATTRIBUTE*/ // Property: Username "username": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Username is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Basic is a write-only property. }, /*END ATTRIBUTE*/ // Property: Custom "custom": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1263,30 +1221,20 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "A map for properties for custom authentication.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ - mapplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CredentialsMap is a write-only property. }, /*END ATTRIBUTE*/ // Property: CustomAuthenticationType "custom_authentication_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // CustomAuthenticationType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Custom is a write-only property. }, /*END ATTRIBUTE*/ // Property: Oauth2 "oauth_2": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1294,38 +1242,29 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: AccessToken "access_token": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AccessToken is a write-only property. }, /*END ATTRIBUTE*/ // Property: ClientId "client_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ClientId is a write-only property. }, /*END ATTRIBUTE*/ // Property: ClientSecret "client_secret": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ClientSecret is a write-only property. }, /*END ATTRIBUTE*/ // Property: OAuthRequest "o_auth_request": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1334,52 +1273,34 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { "auth_code": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The code provided by the connector when it has been authenticated via the connected app.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AuthCode is a write-only property. }, /*END ATTRIBUTE*/ // Property: RedirectUri "redirect_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL to which the authentication server redirects the browser after authorization has been\ngranted.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RedirectUri is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // OAuthRequest is a write-only property. }, /*END ATTRIBUTE*/ // Property: RefreshToken "refresh_token": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RefreshToken is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Oauth2 is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomConnector is a write-only property. }, /*END ATTRIBUTE*/ // Property: Datadog "datadog": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1387,37 +1308,26 @@ 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.", - Optional: true, - Computed: true, + Required: 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*/ + // ApiKey is a write-only property. }, /*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.", - Optional: true, - Computed: true, + Required: 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*/ + // ApplicationKey is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Datadog is a write-only property. }, /*END ATTRIBUTE*/ // Property: Dynatrace "dynatrace": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1425,23 +1335,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.", - Optional: true, - Computed: true, + Required: 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*/ + // ApiToken is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Dynatrace is a write-only property. }, /*END ATTRIBUTE*/ // Property: GoogleAnalytics "google_analytics": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1450,42 +1353,31 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { "access_token": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The credentials used to access protected resources.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AccessToken is a write-only property. }, /*END ATTRIBUTE*/ // Property: ClientId "client_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identi?er for the desired client.", - Optional: true, - Computed: true, + Required: 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*/ + // ClientId is a write-only property. }, /*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.", - Optional: true, - Computed: true, + Required: 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*/ + // ClientSecret is a write-only property. }, /*END ATTRIBUTE*/ // Property: ConnectorOAuthRequest "connector_o_auth_request": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1494,47 +1386,32 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { "auth_code": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The code provided by the connector when it has been authenticated via the connected app.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AuthCode is a write-only property. }, /*END ATTRIBUTE*/ // Property: RedirectUri "redirect_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL to which the authentication server redirects the browser after authorization has been\ngranted.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RedirectUri is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The oauth needed to request security tokens from the connector endpoint.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ConnectorOAuthRequest is a write-only property. }, /*END ATTRIBUTE*/ // Property: RefreshToken "refresh_token": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The credentials used to acquire new access tokens.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RefreshToken is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // GoogleAnalytics is a write-only property. }, /*END ATTRIBUTE*/ // Property: InforNexus "infor_nexus": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1542,65 +1419,46 @@ 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.", - Optional: true, - Computed: true, + Required: 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*/ + // AccessKeyId is a write-only property. }, /*END ATTRIBUTE*/ // Property: Datakey "datakey": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The encryption keys used to encrypt data.", - Optional: true, - Computed: true, + Required: 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*/ + // Datakey is a write-only property. }, /*END ATTRIBUTE*/ // Property: SecretAccessKey "secret_access_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The secret key used to sign requests.", - Optional: true, - Computed: true, + Required: 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*/ + // SecretAccessKey is a write-only property. }, /*END ATTRIBUTE*/ // Property: UserId "user_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identi?er for the user.", - Optional: true, - Computed: true, + Required: 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*/ + // UserId is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // InforNexus is a write-only property. }, /*END ATTRIBUTE*/ // Property: Marketo "marketo": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1609,42 +1467,31 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { "access_token": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The credentials used to access protected resources.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AccessToken is a write-only property. }, /*END ATTRIBUTE*/ // Property: ClientId "client_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identi?er for the desired client.", - Optional: true, - Computed: true, + Required: 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*/ + // ClientId is a write-only property. }, /*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.", - Optional: true, - Computed: true, + Required: 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*/ + // ClientSecret is a write-only property. }, /*END ATTRIBUTE*/ // Property: ConnectorOAuthRequest "connector_o_auth_request": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1653,34 +1500,22 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { "auth_code": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The code provided by the connector when it has been authenticated via the connected app.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AuthCode is a write-only property. }, /*END ATTRIBUTE*/ // Property: RedirectUri "redirect_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL to which the authentication server redirects the browser after authorization has been\ngranted.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RedirectUri is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The oauth needed to request security tokens from the connector endpoint.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ConnectorOAuthRequest is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Marketo is a write-only property. }, /*END ATTRIBUTE*/ // Property: Pardot "pardot": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1689,27 +1524,21 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { "access_token": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The credentials used to access protected resources.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AccessToken is a write-only property. }, /*END ATTRIBUTE*/ // Property: ClientCredentialsArn "client_credentials_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The client credentials to fetch access token and refresh token.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(2048), stringvalidator.RegexMatches(regexp.MustCompile("arn:aws:secretsmanager:.*:[0-9]+:.*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ClientCredentialsArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: ConnectorOAuthRequest "connector_o_auth_request": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1718,47 +1547,32 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { "auth_code": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The code provided by the connector when it has been authenticated via the connected app.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AuthCode is a write-only property. }, /*END ATTRIBUTE*/ // Property: RedirectUri "redirect_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL to which the authentication server redirects the browser after authorization has been\ngranted.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RedirectUri is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The oauth needed to request security tokens from the connector endpoint.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ConnectorOAuthRequest is a write-only property. }, /*END ATTRIBUTE*/ // Property: RefreshToken "refresh_token": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The credentials used to acquire new access tokens.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RefreshToken is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Pardot is a write-only property. }, /*END ATTRIBUTE*/ // Property: Redshift "redshift": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1767,34 +1581,25 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { "password": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The password that corresponds to the username.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Password is a write-only property. }, /*END ATTRIBUTE*/ // Property: Username "username": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the user.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Username is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Redshift is a write-only property. }, /*END ATTRIBUTE*/ // Property: SAPOData "sapo_data": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1804,36 +1609,25 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Password "password": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Password is a write-only property. }, /*END ATTRIBUTE*/ // Property: Username "username": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Username is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BasicAuthCredentials is a write-only property. }, /*END ATTRIBUTE*/ // Property: OAuthCredentials "o_auth_credentials": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1841,38 +1635,29 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: AccessToken "access_token": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AccessToken is a write-only property. }, /*END ATTRIBUTE*/ // Property: ClientId "client_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ClientId is a write-only property. }, /*END ATTRIBUTE*/ // Property: ClientSecret "client_secret": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ClientSecret is a write-only property. }, /*END ATTRIBUTE*/ // Property: ConnectorOAuthRequest "connector_o_auth_request": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1881,52 +1666,34 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { "auth_code": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The code provided by the connector when it has been authenticated via the connected app.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AuthCode is a write-only property. }, /*END ATTRIBUTE*/ // Property: RedirectUri "redirect_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL to which the authentication server redirects the browser after authorization has been\ngranted.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RedirectUri is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ConnectorOAuthRequest is a write-only property. }, /*END ATTRIBUTE*/ // Property: RefreshToken "refresh_token": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RefreshToken is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // OAuthCredentials is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SAPOData is a write-only property. }, /*END ATTRIBUTE*/ // Property: Salesforce "salesforce": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1935,27 +1702,21 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { "access_token": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The credentials used to access protected resources.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AccessToken is a write-only property. }, /*END ATTRIBUTE*/ // Property: ClientCredentialsArn "client_credentials_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The client credentials to fetch access token and refresh token.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(2048), stringvalidator.RegexMatches(regexp.MustCompile("arn:aws:secretsmanager:.*:[0-9]+:.*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ClientCredentialsArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: ConnectorOAuthRequest "connector_o_auth_request": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1964,47 +1725,32 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { "auth_code": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The code provided by the connector when it has been authenticated via the connected app.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AuthCode is a write-only property. }, /*END ATTRIBUTE*/ // Property: RedirectUri "redirect_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL to which the authentication server redirects the browser after authorization has been\ngranted.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RedirectUri is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The oauth needed to request security tokens from the connector endpoint.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ConnectorOAuthRequest is a write-only property. }, /*END ATTRIBUTE*/ // Property: RefreshToken "refresh_token": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The credentials used to acquire new access tokens.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RefreshToken is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Salesforce is a write-only property. }, /*END ATTRIBUTE*/ // Property: ServiceNow "service_now": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2012,37 +1758,26 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: Password "password": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The password that corresponds to the username.", - Optional: true, - Computed: true, + Required: 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*/ + // Password is a write-only property. }, /*END ATTRIBUTE*/ // Property: Username "username": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Username is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ServiceNow is a write-only property. }, /*END ATTRIBUTE*/ // Property: Singular "singular": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2050,23 +1785,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.", - Optional: true, - Computed: true, + Required: 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*/ + // ApiKey is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Singular is a write-only property. }, /*END ATTRIBUTE*/ // Property: Slack "slack": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2075,42 +1803,31 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { "access_token": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The credentials used to access protected resources.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AccessToken is a write-only property. }, /*END ATTRIBUTE*/ // Property: ClientId "client_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identi?er for the desired client.", - Optional: true, - Computed: true, + Required: 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*/ + // ClientId is a write-only property. }, /*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.", - Optional: true, - Computed: true, + Required: 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*/ + // ClientSecret is a write-only property. }, /*END ATTRIBUTE*/ // Property: ConnectorOAuthRequest "connector_o_auth_request": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2119,34 +1836,22 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { "auth_code": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The code provided by the connector when it has been authenticated via the connected app.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AuthCode is a write-only property. }, /*END ATTRIBUTE*/ // Property: RedirectUri "redirect_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL to which the authentication server redirects the browser after authorization has been\ngranted.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RedirectUri is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The oauth needed to request security tokens from the connector endpoint.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ConnectorOAuthRequest is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Slack is a write-only property. }, /*END ATTRIBUTE*/ // Property: Snowflake "snowflake": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2154,37 +1859,26 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: Password "password": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The password that corresponds to the username.", - Optional: true, - Computed: true, + Required: 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*/ + // Password is a write-only property. }, /*END ATTRIBUTE*/ // Property: Username "username": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Username is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Snowflake is a write-only property. }, /*END ATTRIBUTE*/ // Property: Trendmicro "trendmicro": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2192,23 +1886,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.", - Optional: true, - Computed: true, + Required: 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*/ + // ApiSecretKey is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Trendmicro is a write-only property. }, /*END ATTRIBUTE*/ // Property: Veeva "veeva": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2216,37 +1903,26 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: Password "password": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The password that corresponds to the username.", - Optional: true, - Computed: true, + Required: 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*/ + // Password is a write-only property. }, /*END ATTRIBUTE*/ // Property: Username "username": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Username is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Veeva is a write-only property. }, /*END ATTRIBUTE*/ // Property: Zendesk "zendesk": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2255,42 +1931,31 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { "access_token": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The credentials used to access protected resources.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AccessToken is a write-only property. }, /*END ATTRIBUTE*/ // Property: ClientId "client_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identi?er for the desired client.", - Optional: true, - Computed: true, + Required: 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*/ + // ClientId is a write-only property. }, /*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.", - Optional: true, - Computed: true, + Required: 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*/ + // ClientSecret is a write-only property. }, /*END ATTRIBUTE*/ // Property: ConnectorOAuthRequest "connector_o_auth_request": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2299,42 +1964,27 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { "auth_code": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The code provided by the connector when it has been authenticated via the connected app.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AuthCode is a write-only property. }, /*END ATTRIBUTE*/ // Property: RedirectUri "redirect_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL to which the authentication server redirects the browser after authorization has been\ngranted.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RedirectUri is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The oauth needed to request security tokens from the connector endpoint.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ConnectorOAuthRequest is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Zendesk is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Connector specific configuration needed to create connector profile based on Authentication mechanism", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ConnectorProfileCredentials is a write-only property. }, /*END ATTRIBUTE*/ // Property: ConnectorProfileProperties "connector_profile_properties": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2348,28 +1998,22 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: OAuth2GrantType "o_auth_2_grant_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "CLIENT_CREDENTIALS", "AUTHORIZATION_CODE", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // OAuth2GrantType is a write-only property. }, /*END ATTRIBUTE*/ // Property: TokenUrl "token_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 256), stringvalidator.RegexMatches(regexp.MustCompile("^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TokenUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: TokenUrlCustomProperties "token_url_custom_properties": // Pattern: "" @@ -2377,17 +2021,11 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "A map for properties for custom connector Token Url.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ - mapplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TokenUrlCustomProperties is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // OAuth2Properties is a write-only property. }, /*END ATTRIBUTE*/ // Property: ProfileProperties "profile_properties": // Pattern: "" @@ -2395,17 +2033,11 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "A map for properties for custom connector.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ - mapplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ProfileProperties is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomConnector is a write-only property. }, /*END ATTRIBUTE*/ // Property: Datadog "datadog": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2413,23 +2045,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: InstanceUrl "instance_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location of the Datadog resource", - Optional: true, - Computed: true, + Required: 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*/ + // InstanceUrl is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Datadog is a write-only property. }, /*END ATTRIBUTE*/ // Property: Dynatrace "dynatrace": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2437,23 +2062,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: InstanceUrl "instance_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location of the Dynatrace resource", - Optional: true, - Computed: true, + Required: 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*/ + // InstanceUrl is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Dynatrace is a write-only property. }, /*END ATTRIBUTE*/ // Property: InforNexus "infor_nexus": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2461,23 +2079,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: InstanceUrl "instance_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location of the InforNexus resource", - Optional: true, - Computed: true, + Required: 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*/ + // InstanceUrl is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // InforNexus is a write-only property. }, /*END ATTRIBUTE*/ // Property: Marketo "marketo": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2485,23 +2096,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: InstanceUrl "instance_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location of the Marketo resource", - Optional: true, - Computed: true, + Required: 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*/ + // InstanceUrl is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Marketo is a write-only property. }, /*END ATTRIBUTE*/ // Property: Pardot "pardot": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2509,45 +2113,32 @@ 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", - Optional: true, - Computed: true, + Required: 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*/ + // BusinessUnitId is a write-only property. }, /*END ATTRIBUTE*/ // Property: InstanceUrl "instance_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location of the Salesforce Pardot resource", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // InstanceUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: IsSandboxEnvironment "is_sandbox_environment": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether the connector profile applies to a demo or production environment", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IsSandboxEnvironment is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Pardot is a write-only property. }, /*END ATTRIBUTE*/ // Property: Redshift "redshift": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2555,123 +2146,91 @@ 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.", - Optional: true, - Computed: true, + Required: 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*/ + // BucketName is a write-only property. }, /*END ATTRIBUTE*/ // Property: BucketPrefix "bucket_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The object key for the destination bucket in which Amazon AppFlow will place the ?les.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(128), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BucketPrefix is a write-only property. }, /*END ATTRIBUTE*/ // Property: ClusterIdentifier "cluster_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The unique identifier of the Amazon Redshift cluster.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ClusterIdentifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: DataApiRoleArn "data_api_role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the IAM role that grants Amazon AppFlow access to the data through the Amazon Redshift Data API.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("arn:aws:iam:.*:[0-9]+:.*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DataApiRoleArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the Amazon Redshift database that will store the transferred data.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DatabaseName is a write-only property. }, /*END ATTRIBUTE*/ // Property: DatabaseUrl "database_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The JDBC URL of the Amazon Redshift cluster.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DatabaseUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: IsRedshiftServerless "is_redshift_serverless": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "If Amazon AppFlow will connect to Amazon Redshift Serverless or Amazon Redshift cluster.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IsRedshiftServerless is a write-only property. }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the IAM role.", - Optional: true, - Computed: true, + Required: 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*/ + // RoleArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: WorkgroupName "workgroup_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the Amazon Redshift serverless workgroup", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // WorkgroupName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Redshift is a write-only property. }, /*END ATTRIBUTE*/ // Property: SAPOData "sapo_data": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2679,50 +2238,38 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: ApplicationHostUrl "application_host_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ApplicationHostUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: ApplicationServicePath "application_service_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ApplicationServicePath is a write-only property. }, /*END ATTRIBUTE*/ // Property: ClientNumber "client_number": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 3), stringvalidator.RegexMatches(regexp.MustCompile("^\\d{3}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ClientNumber is a write-only property. }, /*END ATTRIBUTE*/ // Property: LogonLanguage "logon_language": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(2), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_]*$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LogonLanguage is a write-only property. }, /*END ATTRIBUTE*/ // Property: OAuthProperties "o_auth_properties": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2730,20 +2277,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: AuthCodeUrl "auth_code_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AuthCodeUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: OAuthScopes "o_auth_scopes": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), listvalidator.ValueStringsAre( @@ -2751,58 +2294,41 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { stringvalidator.RegexMatches(regexp.MustCompile("[/\\w]*"), ""), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // OAuthScopes is a write-only property. }, /*END ATTRIBUTE*/ // Property: TokenUrl "token_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TokenUrl is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // OAuthProperties is a write-only property. }, /*END ATTRIBUTE*/ // Property: PortNumber "port_number": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 65535), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PortNumber is a write-only property. }, /*END ATTRIBUTE*/ // Property: PrivateLinkServiceName "private_link_service_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PrivateLinkServiceName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SAPOData is a write-only property. }, /*END ATTRIBUTE*/ // Property: Salesforce "salesforce": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2811,30 +2337,21 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { "instance_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location of the Salesforce resource", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // InstanceUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: IsSandboxEnvironment "is_sandbox_environment": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether the connector profile applies to a sandbox or production environment", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IsSandboxEnvironment is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Salesforce is a write-only property. }, /*END ATTRIBUTE*/ // Property: ServiceNow "service_now": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2842,23 +2359,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: InstanceUrl "instance_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location of the ServiceNow resource", - Optional: true, - Computed: true, + Required: 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*/ + // InstanceUrl is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ServiceNow is a write-only property. }, /*END ATTRIBUTE*/ // Property: Slack "slack": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2866,23 +2376,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: InstanceUrl "instance_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location of the Slack resource", - Optional: true, - Computed: true, + Required: 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*/ + // InstanceUrl is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Slack is a write-only property. }, /*END ATTRIBUTE*/ // Property: Snowflake "snowflake": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2891,101 +2394,74 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { "account_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the account.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AccountName is a write-only property. }, /*END ATTRIBUTE*/ // Property: BucketName "bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the Amazon S3 bucket associated with Snow?ake.", - Optional: true, - Computed: true, + Required: 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*/ + // BucketName is a write-only property. }, /*END ATTRIBUTE*/ // Property: BucketPrefix "bucket_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The bucket prefix that refers to the Amazon S3 bucket associated with Snow?ake.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(128), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BucketPrefix is a write-only property. }, /*END ATTRIBUTE*/ // Property: PrivateLinkServiceName "private_link_service_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Snow?ake Private Link service name to be used for private data transfers.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PrivateLinkServiceName is a write-only property. }, /*END ATTRIBUTE*/ // Property: Region "region": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The region of the Snow?ake account.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(64), stringvalidator.RegexMatches(regexp.MustCompile("\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Region is a write-only property. }, /*END ATTRIBUTE*/ // 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>.", - Optional: true, - Computed: true, + Required: 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*/ + // Stage is a write-only property. }, /*END ATTRIBUTE*/ // Property: Warehouse "warehouse": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the Snow?ake warehouse.", - Optional: true, - Computed: true, + Required: 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*/ + // Warehouse is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Snowflake is a write-only property. }, /*END ATTRIBUTE*/ // Property: Veeva "veeva": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2993,23 +2469,16 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: InstanceUrl "instance_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location of the Veeva resource", - Optional: true, - Computed: true, + Required: 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*/ + // InstanceUrl is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Veeva is a write-only property. }, /*END ATTRIBUTE*/ // Property: Zendesk "zendesk": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3017,39 +2486,25 @@ func connectorProfileResource(ctx context.Context) (resource.Resource, error) { // Property: InstanceUrl "instance_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location of the Zendesk resource", - Optional: true, - Computed: true, + Required: 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*/ + // InstanceUrl is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Zendesk is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Connector specific properties needed to create connector profile - currently not needed for Amplitude, Trendmicro, Googleanalytics and Singular", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ConnectorProfileProperties is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Connector specific configurations needed to create connector profile", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ConnectorProfileConfig is a write-only property. }, /*END ATTRIBUTE*/ // Property: ConnectorProfileName diff --git a/internal/aws/appintegrations/event_integration_resource_gen.go b/internal/aws/appintegrations/event_integration_resource_gen.go index 1a847c648b..78e3e649be 100644 --- a/internal/aws/appintegrations/event_integration_resource_gen.go +++ b/internal/aws/appintegrations/event_integration_resource_gen.go @@ -102,6 +102,9 @@ func eventIntegrationResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^aws\\.partner\\/.*$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The EventFilter (source) associated with the event integration.", diff --git a/internal/aws/applicationautoscaling/scalable_target_resource_gen.go b/internal/aws/applicationautoscaling/scalable_target_resource_gen.go index 13a9a31bb8..9e80fdbaba 100644 --- a/internal/aws/applicationautoscaling/scalable_target_resource_gen.go +++ b/internal/aws/applicationautoscaling/scalable_target_resource_gen.go @@ -94,10 +94,6 @@ func scalableTargetResource(ctx context.Context) (resource.Resource, error) { "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specify the Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that allows Application Auto Scaling to modify the scalable target on your behalf. This can be either an IAM service role that Application Auto Scaling can assume to make calls to other AWS resources on your behalf, or a service-linked role for the specified service. For more information, see [How Application Auto Scaling works with IAM](https://docs.aws.amazon.com/autoscaling/application/userguide/security_iam_service-with-iam.html) in the *Application Auto Scaling User Guide*.\n To automatically create a service-linked role (recommended), specify the full ARN of the service-linked role in your stack template. To find the exact ARN of the service-linked role for your AWS or custom resource, see the [Service-linked roles](https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-service-linked-roles.html) topic in the *Application Auto Scaling User Guide*. Look for the ARN in the table at the bottom of the page.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // RoleARN is a write-only property. }, /*END ATTRIBUTE*/ // Property: ScalableDimension diff --git a/internal/aws/applicationautoscaling/scaling_policy_resource_gen.go b/internal/aws/applicationautoscaling/scaling_policy_resource_gen.go index 0e4bfcddbf..2f29c21469 100644 --- a/internal/aws/applicationautoscaling/scaling_policy_resource_gen.go +++ b/internal/aws/applicationautoscaling/scaling_policy_resource_gen.go @@ -709,10 +709,6 @@ func scalingPolicyResource(ctx context.Context) (resource.Resource, error) { "resource_label": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "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.\n 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:\n ``app/my-alb/778d41231b141a0f/targetgroup/my-alb-target-group/943f017f100becff``.\n Where:\n + app// is the final portion of the load balancer ARN\n + targetgroup// is the final portion of the target group ARN.\n \n To find the ARN for an Application Load Balancer, use the [DescribeLoadBalancers](https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html) API operation. To find the ARN for the target group, use the [DescribeTargetGroups](https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html) API operation.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ResourceLabel is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/applicationinsights/application_resource_gen.go b/internal/aws/applicationinsights/application_resource_gen.go index c479e0073f..54d374fa97 100644 --- a/internal/aws/applicationinsights/application_resource_gen.go +++ b/internal/aws/applicationinsights/application_resource_gen.go @@ -14,9 +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" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" @@ -58,10 +56,6 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "attach_missing_permission": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AttachMissingPermission is a write-only property. }, /*END ATTRIBUTE*/ // Property: AutoConfigurationEnabled @@ -1199,44 +1193,34 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "component_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the compnonent.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 300), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(-[\\w]+)*:[\\w\\d-]+:([\\w\\d-]*)?:[\\w\\d_-]*([:/].+)*$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ComponentARN is a write-only property. }, /*END ATTRIBUTE*/ // Property: ComponentConfigurationMode "component_configuration_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The component monitoring configuration mode.", - Optional: true, - Computed: true, + Required: 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*/ + // ComponentConfigurationMode is a write-only property. }, /*END ATTRIBUTE*/ // Property: ComponentName "component_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the component.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[\\d\\w\\-_.+]*$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ComponentName is a write-only property. }, /*END ATTRIBUTE*/ // Property: CustomComponentConfiguration "custom_component_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1251,23 +1235,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.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // AlarmMetricName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of metrics to monitor for the component.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AlarmMetrics is a write-only property. }, /*END ATTRIBUTE*/ // Property: Alarms "alarms": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1276,21 +1251,16 @@ 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.", - Optional: true, - Computed: true, + Required: 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*/ + // AlarmName is a write-only property. }, /*END ATTRIBUTE*/ // Property: Severity "severity": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Indicates the degree of outage when the alarm goes off.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "HIGH", @@ -1298,18 +1268,13 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "LOW", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Severity is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of alarms to monitor for the component.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Alarms is a write-only property. }, /*END ATTRIBUTE*/ // Property: HAClusterPrometheusExporter "ha_cluster_prometheus_exporter": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1318,18 +1283,12 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "prometheus_port": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Prometheus exporter port.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PrometheusPort is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The HA cluster Prometheus Exporter settings.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // HAClusterPrometheusExporter is a write-only property. }, /*END ATTRIBUTE*/ // Property: HANAPrometheusExporter "hana_prometheus_exporter": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1337,67 +1296,37 @@ 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.", - Optional: true, - Computed: true, - Validators: []validator.Bool{ /*START VALIDATORS*/ - fwvalidators.NotNullBool(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // AgreeToInstallHANADBClient is a write-only property. }, /*END ATTRIBUTE*/ // Property: HANAPort "hana_port": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The HANA DB port.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // HANAPort is a write-only property. }, /*END ATTRIBUTE*/ // Property: HANASID "hanasid": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "HANA DB SID.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // HANASID is a write-only property. }, /*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}.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // HANASecretName is a write-only property. }, /*END ATTRIBUTE*/ // Property: PrometheusPort "prometheus_port": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Prometheus exporter port.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PrometheusPort is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The HANA DB Prometheus Exporter settings.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // HANAPrometheusExporter is a write-only property. }, /*END ATTRIBUTE*/ // Property: JMXPrometheusExporter "jmx_prometheus_exporter": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1406,36 +1335,24 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "host_port": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Java agent host port", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // HostPort is a write-only property. }, /*END ATTRIBUTE*/ // Property: JMXURL "jmxurl": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "JMX service URL.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // JMXURL is a write-only property. }, /*END ATTRIBUTE*/ // Property: PrometheusPort "prometheus_port": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Prometheus exporter port.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PrometheusPort is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The JMX Prometheus Exporter settings.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // JMXPrometheusExporter is a write-only property. }, /*END ATTRIBUTE*/ // Property: Logs "logs": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1445,7 +1362,6 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "encoding": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of encoding of the logs to be monitored.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "utf-8", @@ -1453,70 +1369,52 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "ascii", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Encoding is a write-only property. }, /*END ATTRIBUTE*/ // Property: LogGroupName "log_group_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The CloudWatch log group name to be associated to the monitored log.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("[\\.\\-_/#A-Za-z0-9]+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LogGroupName is a write-only property. }, /*END ATTRIBUTE*/ // Property: LogPath "log_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The path of the logs to be monitored.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 260), stringvalidator.RegexMatches(regexp.MustCompile("^([a-zA-Z]:\\\\[\\\\\\S|*\\S]?.*|/[^\"']*)$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LogPath is a write-only property. }, /*END ATTRIBUTE*/ // Property: LogType "log_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The log type decides the log patterns against which Application Insights analyzes the log.", - Optional: true, - Computed: true, + Required: 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*/ + // LogType is a write-only property. }, /*END ATTRIBUTE*/ // Property: PatternSet "pattern_set": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the log pattern set.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9.-_]*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PatternSet is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of logs to monitor for the component.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Logs is a write-only property. }, /*END ATTRIBUTE*/ // Property: NetWeaverPrometheusExporter "net_weaver_prometheus_exporter": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1525,47 +1423,31 @@ 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.", - Optional: true, - Computed: true, + Required: 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*/ + // InstanceNumbers is a write-only property. }, /*END ATTRIBUTE*/ // Property: PrometheusPort "prometheus_port": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Prometheus exporter port.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PrometheusPort is a write-only property. }, /*END ATTRIBUTE*/ // Property: SAPSID "sapsid": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "SAP NetWeaver SID.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // SAPSID is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The NetWeaver Prometheus Exporter settings.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // NetWeaverPrometheusExporter is a write-only property. }, /*END ATTRIBUTE*/ // Property: Processes "processes": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1578,49 +1460,30 @@ 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.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // AlarmMetricName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of metrics to monitor for the component.", - Optional: true, - Computed: true, - Validators: []validator.List{ /*START VALIDATORS*/ - fwvalidators.NotNullList(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // AlarmMetrics is a write-only property. }, /*END ATTRIBUTE*/ // Property: ProcessName "process_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the process to be monitored for the component.", - Optional: true, - Computed: true, + Required: 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*/ + // ProcessName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of processes to monitor for the component. Only Windows EC2 instances can have a processes section.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Processes is a write-only property. }, /*END ATTRIBUTE*/ // Property: SQLServerPrometheusExporter "sql_server_prometheus_exporter": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1628,34 +1491,19 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: PrometheusPort "prometheus_port": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Prometheus exporter port.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // PrometheusPort is a write-only property. }, /*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\"}", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // SQLSecretName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The SQL Prometheus Exporter settings.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SQLServerPrometheusExporter is a write-only property. }, /*END ATTRIBUTE*/ // Property: WindowsEvents "windows_events": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1665,8 +1513,7 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "event_levels": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The levels of event to log. ", - Optional: true, - Computed: true, + Required: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), listvalidator.ValueStringsAre( @@ -1678,69 +1525,49 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "VERBOSE", ), ), - fwvalidators.NotNullList(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EventLevels is a write-only property. }, /*END ATTRIBUTE*/ // Property: EventName "event_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of Windows Events to log.", - Optional: true, - Computed: true, + Required: 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*/ + // EventName is a write-only property. }, /*END ATTRIBUTE*/ // Property: LogGroupName "log_group_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The CloudWatch log group name to be associated to the monitored log.", - Optional: true, - Computed: true, + Required: 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*/ + // LogGroupName is a write-only property. }, /*END ATTRIBUTE*/ // Property: PatternSet "pattern_set": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the log pattern set.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9.-_]*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PatternSet is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of Windows Events to log.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // WindowsEvents is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration settings", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ConfigurationDetails is a write-only property. }, /*END ATTRIBUTE*/ // Property: SubComponentTypeConfigurations "sub_component_type_configurations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1756,23 +1583,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.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // AlarmMetricName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of metrics to monitor for the component.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AlarmMetrics is a write-only property. }, /*END ATTRIBUTE*/ // Property: Logs "logs": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1782,7 +1600,6 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "encoding": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of encoding of the logs to be monitored.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "utf-8", @@ -1790,70 +1607,52 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "ascii", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Encoding is a write-only property. }, /*END ATTRIBUTE*/ // Property: LogGroupName "log_group_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The CloudWatch log group name to be associated to the monitored log.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("[\\.\\-_/#A-Za-z0-9]+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LogGroupName is a write-only property. }, /*END ATTRIBUTE*/ // Property: LogPath "log_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The path of the logs to be monitored.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 260), stringvalidator.RegexMatches(regexp.MustCompile("^([a-zA-Z]:\\\\[\\\\\\S|*\\S]?.*|/[^\"']*)$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LogPath is a write-only property. }, /*END ATTRIBUTE*/ // Property: LogType "log_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The log type decides the log patterns against which Application Insights analyzes the log.", - Optional: true, - Computed: true, + Required: 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*/ + // LogType is a write-only property. }, /*END ATTRIBUTE*/ // Property: PatternSet "pattern_set": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the log pattern set.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9.-_]*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PatternSet is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of logs to monitor for the component.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Logs is a write-only property. }, /*END ATTRIBUTE*/ // Property: Processes "processes": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1866,49 +1665,30 @@ 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.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // AlarmMetricName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of metrics to monitor for the component.", - Optional: true, - Computed: true, - Validators: []validator.List{ /*START VALIDATORS*/ - fwvalidators.NotNullList(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // AlarmMetrics is a write-only property. }, /*END ATTRIBUTE*/ // Property: ProcessName "process_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the process to be monitored for the component.", - Optional: true, - Computed: true, + Required: 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*/ + // ProcessName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of processes to monitor for the component. Only Windows EC2 instances can have a processes section.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Processes is a write-only property. }, /*END ATTRIBUTE*/ // Property: WindowsEvents "windows_events": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1918,8 +1698,7 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "event_levels": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The levels of event to log. ", - Optional: true, - Computed: true, + Required: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), listvalidator.ValueStringsAre( @@ -1931,108 +1710,75 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "VERBOSE", ), ), - fwvalidators.NotNullList(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EventLevels is a write-only property. }, /*END ATTRIBUTE*/ // Property: EventName "event_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of Windows Events to log.", - Optional: true, - Computed: true, + Required: 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*/ + // EventName is a write-only property. }, /*END ATTRIBUTE*/ // Property: LogGroupName "log_group_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The CloudWatch log group name to be associated to the monitored log.", - Optional: true, - Computed: true, + Required: 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*/ + // LogGroupName is a write-only property. }, /*END ATTRIBUTE*/ // Property: PatternSet "pattern_set": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the log pattern set.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9.-_]*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PatternSet is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of Windows Events to log.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // WindowsEvents is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration settings of sub components.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // SubComponentConfigurationDetails is a write-only property. }, /*END ATTRIBUTE*/ // Property: SubComponentType "sub_component_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The sub component type.", - Optional: true, - Computed: true, + Required: 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*/ + // SubComponentType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Sub component configurations of the component.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SubComponentTypeConfigurations is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The monitoring configuration of the component.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomComponentConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: DefaultOverwriteComponentConfiguration "default_overwrite_component_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2047,23 +1793,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.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // AlarmMetricName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of metrics to monitor for the component.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AlarmMetrics is a write-only property. }, /*END ATTRIBUTE*/ // Property: Alarms "alarms": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2072,21 +1809,16 @@ 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.", - Optional: true, - Computed: true, + Required: 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*/ + // AlarmName is a write-only property. }, /*END ATTRIBUTE*/ // Property: Severity "severity": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Indicates the degree of outage when the alarm goes off.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "HIGH", @@ -2094,18 +1826,13 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "LOW", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Severity is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of alarms to monitor for the component.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Alarms is a write-only property. }, /*END ATTRIBUTE*/ // Property: HAClusterPrometheusExporter "ha_cluster_prometheus_exporter": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2114,18 +1841,12 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "prometheus_port": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Prometheus exporter port.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PrometheusPort is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The HA cluster Prometheus Exporter settings.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // HAClusterPrometheusExporter is a write-only property. }, /*END ATTRIBUTE*/ // Property: HANAPrometheusExporter "hana_prometheus_exporter": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2133,67 +1854,37 @@ 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.", - Optional: true, - Computed: true, - Validators: []validator.Bool{ /*START VALIDATORS*/ - fwvalidators.NotNullBool(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // AgreeToInstallHANADBClient is a write-only property. }, /*END ATTRIBUTE*/ // Property: HANAPort "hana_port": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The HANA DB port.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // HANAPort is a write-only property. }, /*END ATTRIBUTE*/ // Property: HANASID "hanasid": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "HANA DB SID.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // HANASID is a write-only property. }, /*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}.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // HANASecretName is a write-only property. }, /*END ATTRIBUTE*/ // Property: PrometheusPort "prometheus_port": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Prometheus exporter port.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PrometheusPort is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The HANA DB Prometheus Exporter settings.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // HANAPrometheusExporter is a write-only property. }, /*END ATTRIBUTE*/ // Property: JMXPrometheusExporter "jmx_prometheus_exporter": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2202,36 +1893,24 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "host_port": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Java agent host port", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // HostPort is a write-only property. }, /*END ATTRIBUTE*/ // Property: JMXURL "jmxurl": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "JMX service URL.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // JMXURL is a write-only property. }, /*END ATTRIBUTE*/ // Property: PrometheusPort "prometheus_port": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Prometheus exporter port.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PrometheusPort is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The JMX Prometheus Exporter settings.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // JMXPrometheusExporter is a write-only property. }, /*END ATTRIBUTE*/ // Property: Logs "logs": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2241,7 +1920,6 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "encoding": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of encoding of the logs to be monitored.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "utf-8", @@ -2249,70 +1927,52 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "ascii", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Encoding is a write-only property. }, /*END ATTRIBUTE*/ // Property: LogGroupName "log_group_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The CloudWatch log group name to be associated to the monitored log.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("[\\.\\-_/#A-Za-z0-9]+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LogGroupName is a write-only property. }, /*END ATTRIBUTE*/ // Property: LogPath "log_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The path of the logs to be monitored.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 260), stringvalidator.RegexMatches(regexp.MustCompile("^([a-zA-Z]:\\\\[\\\\\\S|*\\S]?.*|/[^\"']*)$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LogPath is a write-only property. }, /*END ATTRIBUTE*/ // Property: LogType "log_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The log type decides the log patterns against which Application Insights analyzes the log.", - Optional: true, - Computed: true, + Required: 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*/ + // LogType is a write-only property. }, /*END ATTRIBUTE*/ // Property: PatternSet "pattern_set": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the log pattern set.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9.-_]*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PatternSet is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of logs to monitor for the component.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Logs is a write-only property. }, /*END ATTRIBUTE*/ // Property: NetWeaverPrometheusExporter "net_weaver_prometheus_exporter": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2321,47 +1981,31 @@ 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.", - Optional: true, - Computed: true, + Required: 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*/ + // InstanceNumbers is a write-only property. }, /*END ATTRIBUTE*/ // Property: PrometheusPort "prometheus_port": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Prometheus exporter port.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PrometheusPort is a write-only property. }, /*END ATTRIBUTE*/ // Property: SAPSID "sapsid": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "SAP NetWeaver SID.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // SAPSID is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The NetWeaver Prometheus Exporter settings.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // NetWeaverPrometheusExporter is a write-only property. }, /*END ATTRIBUTE*/ // Property: Processes "processes": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2374,49 +2018,30 @@ 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.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // AlarmMetricName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of metrics to monitor for the component.", - Optional: true, - Computed: true, - Validators: []validator.List{ /*START VALIDATORS*/ - fwvalidators.NotNullList(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // AlarmMetrics is a write-only property. }, /*END ATTRIBUTE*/ // Property: ProcessName "process_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the process to be monitored for the component.", - Optional: true, - Computed: true, + Required: 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*/ + // ProcessName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of processes to monitor for the component. Only Windows EC2 instances can have a processes section.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Processes is a write-only property. }, /*END ATTRIBUTE*/ // Property: SQLServerPrometheusExporter "sql_server_prometheus_exporter": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2424,34 +2049,19 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: PrometheusPort "prometheus_port": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Prometheus exporter port.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // PrometheusPort is a write-only property. }, /*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\"}", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // SQLSecretName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The SQL Prometheus Exporter settings.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SQLServerPrometheusExporter is a write-only property. }, /*END ATTRIBUTE*/ // Property: WindowsEvents "windows_events": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2461,8 +2071,7 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "event_levels": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The levels of event to log. ", - Optional: true, - Computed: true, + Required: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), listvalidator.ValueStringsAre( @@ -2474,69 +2083,49 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "VERBOSE", ), ), - fwvalidators.NotNullList(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EventLevels is a write-only property. }, /*END ATTRIBUTE*/ // Property: EventName "event_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of Windows Events to log.", - Optional: true, - Computed: true, + Required: 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*/ + // EventName is a write-only property. }, /*END ATTRIBUTE*/ // Property: LogGroupName "log_group_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The CloudWatch log group name to be associated to the monitored log.", - Optional: true, - Computed: true, + Required: 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*/ + // LogGroupName is a write-only property. }, /*END ATTRIBUTE*/ // Property: PatternSet "pattern_set": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the log pattern set.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9.-_]*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PatternSet is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of Windows Events to log.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // WindowsEvents is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration settings", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ConfigurationDetails is a write-only property. }, /*END ATTRIBUTE*/ // Property: SubComponentTypeConfigurations "sub_component_type_configurations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2552,23 +2141,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.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // AlarmMetricName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of metrics to monitor for the component.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AlarmMetrics is a write-only property. }, /*END ATTRIBUTE*/ // Property: Logs "logs": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2578,7 +2158,6 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "encoding": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of encoding of the logs to be monitored.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "utf-8", @@ -2586,70 +2165,52 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "ascii", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Encoding is a write-only property. }, /*END ATTRIBUTE*/ // Property: LogGroupName "log_group_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The CloudWatch log group name to be associated to the monitored log.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), stringvalidator.RegexMatches(regexp.MustCompile("[\\.\\-_/#A-Za-z0-9]+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LogGroupName is a write-only property. }, /*END ATTRIBUTE*/ // Property: LogPath "log_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The path of the logs to be monitored.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 260), stringvalidator.RegexMatches(regexp.MustCompile("^([a-zA-Z]:\\\\[\\\\\\S|*\\S]?.*|/[^\"']*)$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LogPath is a write-only property. }, /*END ATTRIBUTE*/ // Property: LogType "log_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The log type decides the log patterns against which Application Insights analyzes the log.", - Optional: true, - Computed: true, + Required: 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*/ + // LogType is a write-only property. }, /*END ATTRIBUTE*/ // Property: PatternSet "pattern_set": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the log pattern set.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9.-_]*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PatternSet is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of logs to monitor for the component.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Logs is a write-only property. }, /*END ATTRIBUTE*/ // Property: Processes "processes": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2662,49 +2223,30 @@ 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.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // AlarmMetricName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of metrics to monitor for the component.", - Optional: true, - Computed: true, - Validators: []validator.List{ /*START VALIDATORS*/ - fwvalidators.NotNullList(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // AlarmMetrics is a write-only property. }, /*END ATTRIBUTE*/ // Property: ProcessName "process_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the process to be monitored for the component.", - Optional: true, - Computed: true, + Required: 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*/ + // ProcessName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of processes to monitor for the component. Only Windows EC2 instances can have a processes section.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Processes is a write-only property. }, /*END ATTRIBUTE*/ // Property: WindowsEvents "windows_events": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2714,8 +2256,7 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "event_levels": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The levels of event to log. ", - Optional: true, - Computed: true, + Required: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), listvalidator.ValueStringsAre( @@ -2727,133 +2268,92 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "VERBOSE", ), ), - fwvalidators.NotNullList(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EventLevels is a write-only property. }, /*END ATTRIBUTE*/ // Property: EventName "event_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of Windows Events to log.", - Optional: true, - Computed: true, + Required: 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*/ + // EventName is a write-only property. }, /*END ATTRIBUTE*/ // Property: LogGroupName "log_group_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The CloudWatch log group name to be associated to the monitored log.", - Optional: true, - Computed: true, + Required: 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*/ + // LogGroupName is a write-only property. }, /*END ATTRIBUTE*/ // Property: PatternSet "pattern_set": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the log pattern set.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 30), stringvalidator.RegexMatches(regexp.MustCompile("[a-zA-Z0-9.-_]*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PatternSet is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of Windows Events to log.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // WindowsEvents is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration settings of sub components.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // SubComponentConfigurationDetails is a write-only property. }, /*END ATTRIBUTE*/ // Property: SubComponentType "sub_component_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The sub component type.", - Optional: true, - Computed: true, + Required: 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*/ + // SubComponentType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Sub component configurations of the component.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SubComponentTypeConfigurations is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The overwritten settings on default component monitoring configuration.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DefaultOverwriteComponentConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tier "tier": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tier of the application component.", - Optional: true, - Computed: true, + Required: 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*/ + // Tier is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The monitoring settings of the components.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ComponentMonitoringSettings is a write-only property. }, /*END ATTRIBUTE*/ // Property: CustomComponents @@ -2901,46 +2401,34 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: ComponentName "component_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the component.", - Optional: true, - Computed: true, + Required: 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*/ + // ComponentName is a write-only property. }, /*END ATTRIBUTE*/ // Property: ResourceList "resource_list": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The list of resource ARNs that belong to the component.", - Optional: true, - Computed: true, + Required: 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*/ + // ResourceList is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The custom grouped components.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // CustomComponents is a write-only property. }, /*END ATTRIBUTE*/ // Property: GroupingType @@ -3040,80 +2528,54 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: Pattern "pattern": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The log pattern.", - Optional: true, - Computed: true, + Required: 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*/ + // Pattern is a write-only property. }, /*END ATTRIBUTE*/ // Property: PatternName "pattern_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the log pattern.", - Optional: true, - Computed: true, + Required: 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*/ + // PatternName is a write-only property. }, /*END ATTRIBUTE*/ // Property: Rank "rank": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Rank of the log pattern.", - Optional: true, - Computed: true, - Validators: []validator.Int64{ /*START VALIDATORS*/ - fwvalidators.NotNullInt64(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Rank is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The log patterns of a set.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), - fwvalidators.NotNullList(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LogPatterns is a write-only property. }, /*END ATTRIBUTE*/ // Property: PatternSetName "pattern_set_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the log pattern set.", - Optional: true, - Computed: true, + Required: 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*/ + // PatternSetName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The log pattern sets.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // LogPatternSets is a write-only property. }, /*END ATTRIBUTE*/ // Property: OpsCenterEnabled @@ -3144,14 +2606,10 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "ops_item_sns_topic_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SNS topic provided to Application Insights that is associated to the created opsItem.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 300), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(-[\\w]+)*:[\\w\\d-]+:([\\w\\d-]*)?:[\\w\\d_-]*([:/].+)*$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // OpsItemSNSTopicArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: ResourceGroupName diff --git a/internal/aws/apprunner/auto_scaling_configuration_resource_gen.go b/internal/aws/apprunner/auto_scaling_configuration_resource_gen.go index 83af5da403..8bee91061a 100644 --- a/internal/aws/apprunner/auto_scaling_configuration_resource_gen.go +++ b/internal/aws/apprunner/auto_scaling_configuration_resource_gen.go @@ -175,7 +175,9 @@ func autoScalingConfigurationResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -183,7 +185,9 @@ func autoScalingConfigurationResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -231,13 +235,13 @@ func autoScalingConfigurationResource(ctx context.Context) (resource.Resource, e "value": "Value", }) + opts = opts.IsImmutableType(true) + opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/Tags", }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) - opts = opts.WithUpdateTimeoutInMinutes(0) - v, err := generic.NewResource(ctx, opts...) if err != nil { diff --git a/internal/aws/apprunner/observability_configuration_resource_gen.go b/internal/aws/apprunner/observability_configuration_resource_gen.go index f7bdfb4761..a61d8e51b8 100644 --- a/internal/aws/apprunner/observability_configuration_resource_gen.go +++ b/internal/aws/apprunner/observability_configuration_resource_gen.go @@ -128,7 +128,9 @@ func observabilityConfigurationResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -136,7 +138,9 @@ func observabilityConfigurationResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -184,6 +188,7 @@ func observabilityConfigurationResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -228,13 +233,13 @@ func observabilityConfigurationResource(ctx context.Context) (resource.Resource, "vendor": "Vendor", }) + opts = opts.IsImmutableType(true) + opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/Tags", }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) - opts = opts.WithUpdateTimeoutInMinutes(0) - v, err := generic.NewResource(ctx, opts...) if err != nil { diff --git a/internal/aws/apprunner/service_resource_gen.go b/internal/aws/apprunner/service_resource_gen.go index 05acf789af..8e0ee6e643 100644 --- a/internal/aws/apprunner/service_resource_gen.go +++ b/internal/aws/apprunner/service_resource_gen.go @@ -46,13 +46,9 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { "auto_scaling_configuration_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Autoscaling configuration ARN", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1011), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AutoScalingConfigurationArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: EncryptionConfiguration @@ -89,6 +85,7 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1259,7 +1256,9 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1267,7 +1266,9 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/apprunner/vpc_connector_resource_gen.go b/internal/aws/apprunner/vpc_connector_resource_gen.go index 7a73614d6d..c0297263d1 100644 --- a/internal/aws/apprunner/vpc_connector_resource_gen.go +++ b/internal/aws/apprunner/vpc_connector_resource_gen.go @@ -106,7 +106,9 @@ func vpcConnectorResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -114,7 +116,9 @@ func vpcConnectorResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -213,13 +217,13 @@ func vpcConnectorResource(ctx context.Context) (resource.Resource, error) { "vpc_connector_revision": "VpcConnectorRevision", }) + opts = opts.IsImmutableType(true) + opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/Tags", }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) - opts = opts.WithUpdateTimeoutInMinutes(0) - v, err := generic.NewResource(ctx, opts...) if err != nil { diff --git a/internal/aws/apprunner/vpc_ingress_connection_resource_gen.go b/internal/aws/apprunner/vpc_ingress_connection_resource_gen.go index bcb0018ec3..a631138f78 100644 --- a/internal/aws/apprunner/vpc_ingress_connection_resource_gen.go +++ b/internal/aws/apprunner/vpc_ingress_connection_resource_gen.go @@ -154,7 +154,9 @@ func vpcIngressConnectionResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -162,7 +164,9 @@ func vpcIngressConnectionResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/appstream/app_block_builder_resource_gen.go b/internal/aws/appstream/app_block_builder_resource_gen.go index 15bc2fed97..e94cc5458c 100644 --- a/internal/aws/appstream/app_block_builder_resource_gen.go +++ b/internal/aws/appstream/app_block_builder_resource_gen.go @@ -101,10 +101,6 @@ func appBlockBuilderResource(ctx context.Context) (resource.Resource, error) { "app_block_arns": schema.SetAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AppBlockArns is a write-only property. }, /*END ATTRIBUTE*/ // Property: Arn @@ -242,33 +238,17 @@ func appBlockBuilderResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": 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*/ + Required: true, + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": 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*/ + Required: true, + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Tags is a write-only property. }, /*END ATTRIBUTE*/ // Property: VpcConfig diff --git a/internal/aws/appstream/app_block_resource_gen.go b/internal/aws/appstream/app_block_resource_gen.go index 4053bff539..791bb93460 100644 --- a/internal/aws/appstream/app_block_resource_gen.go +++ b/internal/aws/appstream/app_block_resource_gen.go @@ -13,7 +13,6 @@ import ( "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" @@ -153,6 +152,7 @@ func appBlockResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ExecutablePath @@ -164,6 +164,7 @@ func appBlockResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ScriptS3Location @@ -178,6 +179,7 @@ func appBlockResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Key @@ -186,6 +188,7 @@ func appBlockResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -196,6 +199,7 @@ func appBlockResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TimeoutInSeconds @@ -207,6 +211,7 @@ func appBlockResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -263,6 +268,7 @@ func appBlockResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ExecutablePath @@ -274,6 +280,7 @@ func appBlockResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ScriptS3Location @@ -288,6 +295,7 @@ func appBlockResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Key @@ -296,6 +304,7 @@ func appBlockResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -306,6 +315,7 @@ func appBlockResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TimeoutInSeconds @@ -317,6 +327,7 @@ func appBlockResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -350,6 +361,9 @@ func appBlockResource(ctx context.Context) (resource.Resource, error) { // Property: S3Bucket "s3_bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ Required: true, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Key "s3_key": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -357,6 +371,7 @@ func appBlockResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -396,42 +411,26 @@ func appBlockResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: TagKey "tag_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TagKey is a write-only property. }, /*END ATTRIBUTE*/ // Property: TagValue "tag_value": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TagValue is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Tags is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/appstream/application_resource_gen.go b/internal/aws/appstream/application_resource_gen.go index c102d5794c..b5538ed3aa 100644 --- a/internal/aws/appstream/application_resource_gen.go +++ b/internal/aws/appstream/application_resource_gen.go @@ -61,10 +61,6 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "attributes_to_delete": schema.SetAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AttributesToDelete is a write-only property. }, /*END ATTRIBUTE*/ // Property: CreatedTime @@ -238,42 +234,26 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: TagKey "tag_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TagKey is a write-only property. }, /*END ATTRIBUTE*/ // Property: TagValue "tag_value": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TagValue is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Tags is a write-only property. }, /*END ATTRIBUTE*/ // Property: WorkingDirectory diff --git a/internal/aws/appsync/function_configuration_resource_gen.go b/internal/aws/appsync/function_configuration_resource_gen.go index 590657d73f..e3b24825fe 100644 --- a/internal/aws/appsync/function_configuration_resource_gen.go +++ b/internal/aws/appsync/function_configuration_resource_gen.go @@ -67,10 +67,6 @@ func functionConfigurationResource(ctx context.Context) (resource.Resource, erro "code_s3_location": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 endpoint (where the code is located??).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // CodeS3Location is a write-only property. }, /*END ATTRIBUTE*/ // Property: DataSourceName @@ -193,10 +189,6 @@ func functionConfigurationResource(ctx context.Context) (resource.Resource, erro "request_mapping_template_s3_location": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Describes a Sync configuration for a resolver. Contains information on which Conflict Detection, as well as Resolution strategy, should be performed when the resolver is invoked.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // RequestMappingTemplateS3Location is a write-only property. }, /*END ATTRIBUTE*/ // Property: ResponseMappingTemplate @@ -224,10 +216,6 @@ func functionConfigurationResource(ctx context.Context) (resource.Resource, erro "response_mapping_template_s3_location": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location of a response mapping template in an Amazon S3 bucket. Use this if you want to provision with a template file in Amazon S3 rather than embedding it in your CloudFormation template.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ResponseMappingTemplateS3Location is a write-only property. }, /*END ATTRIBUTE*/ // Property: Runtime diff --git a/internal/aws/appsync/resolver_resource_gen.go b/internal/aws/appsync/resolver_resource_gen.go index 6ac00d7728..ae8fdfaf08 100644 --- a/internal/aws/appsync/resolver_resource_gen.go +++ b/internal/aws/appsync/resolver_resource_gen.go @@ -130,10 +130,6 @@ func resolverResource(ctx context.Context) (resource.Resource, error) { "code_s3_location": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 endpoint.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // CodeS3Location is a write-only property. }, /*END ATTRIBUTE*/ // Property: DataSourceName @@ -285,10 +281,6 @@ func resolverResource(ctx context.Context) (resource.Resource, error) { "request_mapping_template_s3_location": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location of a request mapping template in an S3 bucket. Use this if you want to provision with a template file in S3 rather than embedding it in your CFNshort template.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // RequestMappingTemplateS3Location is a write-only property. }, /*END ATTRIBUTE*/ // Property: ResolverArn @@ -330,10 +322,6 @@ func resolverResource(ctx context.Context) (resource.Resource, error) { "response_mapping_template_s3_location": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location of a response mapping template in an S3 bucket. Use this if you want to provision with a template file in S3 rather than embedding it in your CFNshort template.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ResponseMappingTemplateS3Location is a write-only property. }, /*END ATTRIBUTE*/ // Property: Runtime diff --git a/internal/aws/aps/scraper_resource_gen.go b/internal/aws/aps/scraper_resource_gen.go index 29bbc0b3b7..d128d789cd 100644 --- a/internal/aws/aps/scraper_resource_gen.go +++ b/internal/aws/aps/scraper_resource_gen.go @@ -119,6 +119,7 @@ func scraperResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -127,6 +128,7 @@ func scraperResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -183,6 +185,7 @@ func scraperResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -278,6 +281,7 @@ func scraperResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecurityGroupIds @@ -294,6 +298,7 @@ func scraperResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetIds @@ -311,6 +316,7 @@ func scraperResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -319,6 +325,7 @@ func scraperResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/athena/work_group_resource_gen.go b/internal/aws/athena/work_group_resource_gen.go index f1ddf02392..b8735cf519 100644 --- a/internal/aws/athena/work_group_resource_gen.go +++ b/internal/aws/athena/work_group_resource_gen.go @@ -95,10 +95,6 @@ func workGroupResource(ctx context.Context) (resource.Resource, error) { "recursive_delete_option": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "The option to delete the workgroup and its contents even if the workgroup contains any named queries.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // RecursiveDeleteOption is a write-only property. }, /*END ATTRIBUTE*/ // Property: State @@ -317,10 +313,6 @@ func workGroupResource(ctx context.Context) (resource.Resource, error) { "additional_configuration": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Additional Configuration that are passed to Athena Spark Calculations running in this workgroup", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AdditionalConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: BytesScannedCutoffPerQuery @@ -667,22 +659,16 @@ func workGroupResource(ctx context.Context) (resource.Resource, error) { "additional_configuration": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Additional Configuration that are passed to Athena Spark Calculations running in this workgroup", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AdditionalConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: BytesScannedCutoffPerQuery "bytes_scanned_cutoff_per_query": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan.", Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(10000000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BytesScannedCutoffPerQuery is a write-only property. }, /*END ATTRIBUTE*/ // Property: CustomerContentEncryptionConfiguration "customer_content_encryption_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -690,31 +676,19 @@ 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. ", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // KmsKey is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Indicates the KMS key for encrypting notebook content.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomerContentEncryptionConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: EnforceWorkGroupConfiguration "enforce_work_group_configuration": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "If set to \"true\", the settings for the workgroup override client-side settings. If set to \"false\", client-side settings are used", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EnforceWorkGroupConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: EngineVersion "engine_version": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -726,67 +700,47 @@ func workGroupResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // EffectiveEngineVersion is a write-only property. }, /*END ATTRIBUTE*/ // Property: SelectedEngineVersion "selected_engine_version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The engine version requested by the user. Possible values are determined by the output of ListEngineVersions, including Auto. The default is Auto.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SelectedEngineVersion is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The Athena engine version for running queries.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EngineVersion is a write-only property. }, /*END ATTRIBUTE*/ // Property: ExecutionRole "execution_role": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Execution Role ARN required to run Athena Spark Calculations", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ExecutionRole is a write-only property. }, /*END ATTRIBUTE*/ // Property: PublishCloudWatchMetricsEnabled "publish_cloudwatch_metrics_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates that the Amazon CloudWatch metrics are enabled for the workgroup.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PublishCloudWatchMetricsEnabled is a write-only property. }, /*END ATTRIBUTE*/ // Property: RemoveBytesScannedCutoffPerQuery "remove_bytes_scanned_cutoff_per_query": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates that the data usage control limit per query is removed.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RemoveBytesScannedCutoffPerQuery is a write-only property. }, /*END ATTRIBUTE*/ // Property: RemoveCustomerContentEncryptionConfiguration "remove_customer_content_encryption_configuration": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RemoveCustomerContentEncryptionConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: RequesterPaysEnabled "requester_pays_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "If set to true, allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. If set to false, workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. ", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RequesterPaysEnabled is a write-only property. }, /*END ATTRIBUTE*/ // Property: ResultConfigurationUpdates "result_configuration_updates": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -797,25 +751,18 @@ 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", - Optional: true, - Computed: true, + Required: 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*/ + // S3AclOption is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Indicates that an Amazon S3 canned ACL should be set to control ownership of stored query results", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AclConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: EncryptionConfiguration "encryption_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -823,102 +770,67 @@ 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.", - Optional: true, - Computed: true, + Required: 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*/ + // EncryptionOption is a write-only property. }, /*END ATTRIBUTE*/ // Property: KmsKey "kms_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "For SSE-KMS and CSE-KMS, this is the KMS key ARN or ID. ", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // KmsKey is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "If query results are encrypted in Amazon S3, indicates the encryption option used (for example, SSE-KMS or CSE-KMS) and key information.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EncryptionConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: ExpectedBucketOwner "expected_bucket_owner": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The AWS account ID of the owner of S3 bucket where query results are stored", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ExpectedBucketOwner is a write-only property. }, /*END ATTRIBUTE*/ // Property: OutputLocation "output_location": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The location in Amazon S3 where your query results are stored, such as s3://path/to/query/bucket/. To run the query, you must specify the query results location using one of the ways: either for individual queries using either this setting (client-side), or in the workgroup, using WorkGroupConfiguration", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // OutputLocation is a write-only property. }, /*END ATTRIBUTE*/ // Property: RemoveAclConfiguration "remove_acl_configuration": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RemoveAclConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: RemoveEncryptionConfiguration "remove_encryption_configuration": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RemoveEncryptionConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: RemoveExpectedBucketOwner "remove_expected_bucket_owner": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RemoveExpectedBucketOwner is a write-only property. }, /*END ATTRIBUTE*/ // Property: RemoveOutputLocation "remove_output_location": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RemoveOutputLocation is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The result configuration information about the queries in this workgroup that will be updated. Includes the updated results location and an updated option for encrypting query results. ", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ResultConfigurationUpdates is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The workgroup configuration update object", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // WorkGroupConfigurationUpdates is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/auditmanager/assessment_resource_gen.go b/internal/aws/auditmanager/assessment_resource_gen.go index 46c2aeb188..bc92599c91 100644 --- a/internal/aws/auditmanager/assessment_resource_gen.go +++ b/internal/aws/auditmanager/assessment_resource_gen.go @@ -161,6 +161,7 @@ func assessmentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Id @@ -174,6 +175,7 @@ func assessmentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name @@ -186,6 +188,7 @@ func assessmentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -456,10 +459,6 @@ func assessmentResource(ctx context.Context) (resource.Resource, error) { "description": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The description of the specified assessment.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Description is a write-only property. }, /*END ATTRIBUTE*/ // Property: FrameworkId @@ -498,14 +497,10 @@ func assessmentResource(ctx context.Context) (resource.Resource, error) { "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the related assessment.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 127), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9-_\\.]+$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: Roles diff --git a/internal/aws/autoscaling/launch_configuration_resource_gen.go b/internal/aws/autoscaling/launch_configuration_resource_gen.go index d4faeb39f2..8e77380f29 100644 --- a/internal/aws/autoscaling/launch_configuration_resource_gen.go +++ b/internal/aws/autoscaling/launch_configuration_resource_gen.go @@ -128,6 +128,7 @@ func launchConfigurationResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Ebs @@ -140,6 +141,7 @@ func launchConfigurationResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Encrypted @@ -149,6 +151,7 @@ func launchConfigurationResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Iops @@ -158,6 +161,7 @@ func launchConfigurationResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SnapshotId @@ -167,6 +171,7 @@ func launchConfigurationResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Throughput @@ -176,6 +181,7 @@ func launchConfigurationResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VolumeSize @@ -185,6 +191,7 @@ func launchConfigurationResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VolumeType @@ -194,6 +201,7 @@ func launchConfigurationResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -202,6 +210,7 @@ func launchConfigurationResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NoDevice @@ -211,6 +220,7 @@ func launchConfigurationResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VirtualName @@ -220,6 +230,7 @@ func launchConfigurationResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -447,6 +458,7 @@ func launchConfigurationResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HttpPutResponseHopLimit @@ -456,6 +468,7 @@ func launchConfigurationResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HttpTokens @@ -465,6 +478,7 @@ func launchConfigurationResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -627,13 +641,13 @@ func launchConfigurationResource(ctx context.Context) (resource.Resource, error) "volume_type": "VolumeType", }) + opts = opts.IsImmutableType(true) + opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/InstanceId", }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) - opts = opts.WithUpdateTimeoutInMinutes(0) - v, err := generic.NewResource(ctx, opts...) if err != nil { diff --git a/internal/aws/backup/backup_selection_resource_gen.go b/internal/aws/backup/backup_selection_resource_gen.go index 5ded466eb1..6324786dac 100644 --- a/internal/aws/backup/backup_selection_resource_gen.go +++ b/internal/aws/backup/backup_selection_resource_gen.go @@ -190,6 +190,7 @@ func backupSelectionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConditionValue @@ -198,6 +199,7 @@ func backupSelectionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -207,6 +209,7 @@ func backupSelectionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StringLike @@ -219,6 +222,7 @@ func backupSelectionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConditionValue @@ -227,6 +231,7 @@ func backupSelectionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -236,6 +241,7 @@ func backupSelectionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StringNotEquals @@ -248,6 +254,7 @@ func backupSelectionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConditionValue @@ -256,6 +263,7 @@ func backupSelectionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -265,6 +273,7 @@ func backupSelectionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StringNotLike @@ -277,6 +286,7 @@ func backupSelectionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConditionValue @@ -285,6 +295,7 @@ func backupSelectionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -294,6 +305,7 @@ func backupSelectionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -301,11 +313,15 @@ func backupSelectionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IamRoleArn "iam_role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Required: true, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ListOfTags "list_of_tags": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -320,6 +336,7 @@ func backupSelectionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConditionType @@ -331,6 +348,7 @@ func backupSelectionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConditionValue @@ -342,6 +360,7 @@ func backupSelectionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -351,6 +370,7 @@ func backupSelectionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NotResources @@ -361,6 +381,7 @@ func backupSelectionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Resources @@ -371,11 +392,15 @@ func backupSelectionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SelectionName "selection_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Required: true, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Required: true, @@ -448,9 +473,9 @@ func backupSelectionResource(ctx context.Context) (resource.Resource, error) { "string_not_like": "StringNotLike", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/backup/backup_vault_resource_gen.go b/internal/aws/backup/backup_vault_resource_gen.go index a119429b47..9633c6f359 100644 --- a/internal/aws/backup/backup_vault_resource_gen.go +++ b/internal/aws/backup/backup_vault_resource_gen.go @@ -135,10 +135,6 @@ func backupVaultResource(ctx context.Context) (resource.Resource, error) { // Property: ChangeableForDays "changeable_for_days": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ChangeableForDays is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaxRetentionDays diff --git a/internal/aws/backupgateway/hypervisor_resource_gen.go b/internal/aws/backupgateway/hypervisor_resource_gen.go index 05c738d04c..0884f82aa5 100644 --- a/internal/aws/backupgateway/hypervisor_resource_gen.go +++ b/internal/aws/backupgateway/hypervisor_resource_gen.go @@ -97,14 +97,10 @@ func hypervisorResource(ctx context.Context) (resource.Resource, error) { // } "log_group_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^$|^arn:(aws|aws-cn|aws-us-gov):logs:([a-zA-Z0-9-]+):([0-9]+):log-group:[a-zA-Z0-9_\\-\\/\\.]+:\\*$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // LogGroupArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: Name @@ -118,14 +114,10 @@ func hypervisorResource(ctx context.Context) (resource.Resource, error) { // } "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9-]*$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: Password @@ -139,14 +131,10 @@ func hypervisorResource(ctx context.Context) (resource.Resource, error) { // } "password": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), stringvalidator.RegexMatches(regexp.MustCompile("^[ -~]+$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Password is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tags @@ -191,7 +179,9 @@ func hypervisorResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -204,7 +194,9 @@ func hypervisorResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -227,14 +219,10 @@ func hypervisorResource(ctx context.Context) (resource.Resource, error) { // } "username": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), stringvalidator.RegexMatches(regexp.MustCompile("^[ -\\.0-\\[\\]-~]*[!-\\.0-\\[\\]-~][ -\\.0-\\[\\]-~]*$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Username is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/batch/compute_environment_resource_gen.go b/internal/aws/batch/compute_environment_resource_gen.go index 115970a608..7eb979afab 100644 --- a/internal/aws/batch/compute_environment_resource_gen.go +++ b/internal/aws/batch/compute_environment_resource_gen.go @@ -459,6 +459,7 @@ func computeEnvironmentResource(ctx context.Context) (resource.Resource, error) Default: stringdefault.StaticString("false"), PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KubernetesNamespace @@ -468,6 +469,7 @@ func computeEnvironmentResource(ctx context.Context) (resource.Resource, error) Default: stringdefault.StaticString("false"), PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -596,6 +598,7 @@ func computeEnvironmentResource(ctx context.Context) (resource.Resource, error) PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // JobExecutionTimeoutMinutes is a write-only property. }, /*END ATTRIBUTE*/ // Property: TerminateJobsOnUpdate "terminate_jobs_on_update": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -605,13 +608,10 @@ func computeEnvironmentResource(ctx context.Context) (resource.Resource, error) PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // TerminateJobsOnUpdate is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // UpdatePolicy is a write-only property. }, /*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 9ec41b4718..2171cb77a5 100644 --- a/internal/aws/bedrock/data_source_resource_gen.go +++ b/internal/aws/bedrock/data_source_resource_gen.go @@ -1935,6 +1935,7 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FixedSizeChunkingConfiguration @@ -1951,6 +1952,7 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OverlapPercentage @@ -1964,6 +1966,7 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1972,6 +1975,7 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HierarchicalChunkingConfiguration @@ -1992,6 +1996,7 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2006,6 +2011,7 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OverlapTokens @@ -2019,6 +2025,7 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2027,6 +2034,7 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SemanticChunkingConfiguration @@ -2043,6 +2051,7 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BufferSize @@ -2056,6 +2065,7 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaxTokens @@ -2069,6 +2079,7 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2077,6 +2088,7 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2234,6 +2246,7 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParsingPrompt @@ -2250,6 +2263,7 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2258,6 +2272,7 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2266,6 +2281,7 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParsingStrategy @@ -2281,6 +2297,7 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/bedrock/flow_version_resource_gen.go b/internal/aws/bedrock/flow_version_resource_gen.go index e90cde3767..f005732350 100644 --- a/internal/aws/bedrock/flow_version_resource_gen.go +++ b/internal/aws/bedrock/flow_version_resource_gen.go @@ -1242,9 +1242,9 @@ func flowVersionResource(ctx context.Context) (resource.Resource, error) { "version": "Version", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/bedrock/knowledge_base_resource_gen.go b/internal/aws/bedrock/knowledge_base_resource_gen.go index 737eca7181..e1b785f7f2 100644 --- a/internal/aws/bedrock/knowledge_base_resource_gen.go +++ b/internal/aws/bedrock/knowledge_base_resource_gen.go @@ -177,6 +177,9 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { "VECTOR", ), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VectorKnowledgeBaseConfiguration "vector_knowledge_base_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -189,6 +192,9 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthBetween(20, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^(arn:aws(-[^:]+)?:[a-z0-9-]+:[a-z0-9-]{1,20}:[0-9]{0,12}:[a-zA-Z0-9-:/._+]+)$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EmbeddingModelConfiguration "embedding_model_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -206,6 +212,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -214,6 +221,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -222,11 +230,15 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Contains details about the model used to create vector embeddings for the knowledge base.", Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Contains details about the embeddings model used for the knowledge base.", @@ -625,6 +637,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CredentialsSecretArn @@ -638,6 +651,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabaseName @@ -652,6 +666,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Endpoint @@ -666,6 +681,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EndpointServiceName @@ -679,6 +695,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FieldMapping @@ -696,6 +713,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TextField @@ -710,6 +728,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VectorField @@ -724,6 +743,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -735,6 +755,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VectorIndexName @@ -749,6 +770,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -757,6 +779,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OpensearchServerlessConfiguration @@ -774,6 +797,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FieldMapping @@ -791,6 +815,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TextField @@ -805,6 +830,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VectorField @@ -819,6 +845,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -830,6 +857,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VectorIndexName @@ -844,6 +872,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -852,6 +881,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PineconeConfiguration @@ -869,6 +899,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CredentialsSecretArn @@ -882,6 +913,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FieldMapping @@ -899,6 +931,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TextField @@ -913,6 +946,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -924,6 +958,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Namespace @@ -937,6 +972,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -945,6 +981,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RdsConfiguration @@ -961,6 +998,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabaseName @@ -975,6 +1013,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FieldMapping @@ -992,6 +1031,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PrimaryKeyField @@ -1006,6 +1046,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TextField @@ -1020,6 +1061,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VectorField @@ -1034,6 +1076,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1045,6 +1088,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceArn @@ -1058,6 +1102,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableName @@ -1072,6 +1117,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1080,6 +1126,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type @@ -1094,6 +1141,9 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { "MONGO_DB_ATLAS", ), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The vector store service in which the knowledge base is stored.", diff --git a/internal/aws/cassandra/keyspace_resource_gen.go b/internal/aws/cassandra/keyspace_resource_gen.go index 9ba99829be..68944b145d 100644 --- a/internal/aws/cassandra/keyspace_resource_gen.go +++ b/internal/aws/cassandra/keyspace_resource_gen.go @@ -138,6 +138,7 @@ func keyspaceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ setplanmodifier.UseStateForUnknown(), + setplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ReplicationStrategy @@ -152,6 +153,7 @@ func keyspaceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/cassandra/table_resource_gen.go b/internal/aws/cassandra/table_resource_gen.go index e56ef657fb..662e76f0c0 100644 --- a/internal/aws/cassandra/table_resource_gen.go +++ b/internal/aws/cassandra/table_resource_gen.go @@ -163,28 +163,23 @@ func tableResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // AutoScalingDisabled is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaximumUnits "maximum_units": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MaximumUnits is a write-only property. }, /*END ATTRIBUTE*/ // Property: MinimumUnits "minimum_units": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MinimumUnits is a write-only property. }, /*END ATTRIBUTE*/ // Property: ScalingPolicy "scaling_policy": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -200,6 +195,7 @@ func tableResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // DisableScaleIn is a write-only property. }, /*END ATTRIBUTE*/ // Property: ScaleInCooldown "scale_in_cooldown": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -209,6 +205,7 @@ func tableResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // ScaleInCooldown is a write-only property. }, /*END ATTRIBUTE*/ // Property: ScaleOutCooldown "scale_out_cooldown": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -218,41 +215,27 @@ func tableResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // ScaleOutCooldown is a write-only property. }, /*END ATTRIBUTE*/ // Property: TargetValue "target_value": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, - Validators: []validator.Int64{ /*START VALIDATORS*/ - fwvalidators.NotNullInt64(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // TargetValue is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents configuration for target tracking scaling policy.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TargetTrackingScalingPolicyConfiguration is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents scaling policy.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ScalingPolicy is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents configuration for auto scaling.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ReadCapacityAutoScaling is a write-only property. }, /*END ATTRIBUTE*/ // Property: WriteCapacityAutoScaling "write_capacity_auto_scaling": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -265,28 +248,23 @@ func tableResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // AutoScalingDisabled is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaximumUnits "maximum_units": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MaximumUnits is a write-only property. }, /*END ATTRIBUTE*/ // Property: MinimumUnits "minimum_units": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MinimumUnits is a write-only property. }, /*END ATTRIBUTE*/ // Property: ScalingPolicy "scaling_policy": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -302,6 +280,7 @@ func tableResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // DisableScaleIn is a write-only property. }, /*END ATTRIBUTE*/ // Property: ScaleInCooldown "scale_in_cooldown": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -311,6 +290,7 @@ func tableResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // ScaleInCooldown is a write-only property. }, /*END ATTRIBUTE*/ // Property: ScaleOutCooldown "scale_out_cooldown": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -320,49 +300,31 @@ func tableResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // ScaleOutCooldown is a write-only property. }, /*END ATTRIBUTE*/ // Property: TargetValue "target_value": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, - Validators: []validator.Int64{ /*START VALIDATORS*/ - fwvalidators.NotNullInt64(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // TargetValue is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents configuration for target tracking scaling policy.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TargetTrackingScalingPolicyConfiguration is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents scaling policy.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ScalingPolicy is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents configuration for auto scaling.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // WriteCapacityAutoScaling is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents the read and write settings used for AutoScaling.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AutoScalingSpecifications is a write-only property. }, /*END ATTRIBUTE*/ // Property: BillingMode @@ -540,6 +502,7 @@ func tableResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ColumnType @@ -551,6 +514,7 @@ func tableResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -561,6 +525,7 @@ func tableResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OrderBy @@ -576,6 +541,7 @@ func tableResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -725,10 +691,16 @@ func tableResource(ctx context.Context) (resource.Resource, error) { Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9][a-zA-Z0-9_]{1,47}$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ColumnType "column_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Required: true, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -910,28 +882,23 @@ func tableResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // AutoScalingDisabled is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaximumUnits "maximum_units": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MaximumUnits is a write-only property. }, /*END ATTRIBUTE*/ // Property: MinimumUnits "minimum_units": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MinimumUnits is a write-only property. }, /*END ATTRIBUTE*/ // Property: ScalingPolicy "scaling_policy": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -947,6 +914,7 @@ func tableResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // DisableScaleIn is a write-only property. }, /*END ATTRIBUTE*/ // Property: ScaleInCooldown "scale_in_cooldown": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -956,6 +924,7 @@ func tableResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // ScaleInCooldown is a write-only property. }, /*END ATTRIBUTE*/ // Property: ScaleOutCooldown "scale_out_cooldown": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -965,73 +934,48 @@ func tableResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // ScaleOutCooldown is a write-only property. }, /*END ATTRIBUTE*/ // Property: TargetValue "target_value": schema.Int64Attribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, - Validators: []validator.Int64{ /*START VALIDATORS*/ - fwvalidators.NotNullInt64(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // TargetValue is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents configuration for target tracking scaling policy.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TargetTrackingScalingPolicyConfiguration is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents scaling policy.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ScalingPolicy is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Represents configuration for auto scaling.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ReadCapacityAutoScaling is a write-only property. }, /*END ATTRIBUTE*/ // Property: ReadCapacityUnits "read_capacity_units": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ReadCapacityUnits is a write-only property. }, /*END ATTRIBUTE*/ // Property: Region "region": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Region is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), listvalidator.UniqueValues(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ReplicaSpecifications is a write-only property. }, /*END ATTRIBUTE*/ // Property: TableName diff --git a/internal/aws/ce/anomaly_monitor_resource_gen.go b/internal/aws/ce/anomaly_monitor_resource_gen.go index 71e59e38b6..d8ad13a2c7 100644 --- a/internal/aws/ce/anomaly_monitor_resource_gen.go +++ b/internal/aws/ce/anomaly_monitor_resource_gen.go @@ -238,7 +238,9 @@ func anomalyMonitorResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -251,7 +253,9 @@ func anomalyMonitorResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*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 d0db4bdcae..79d2e4eb2a 100644 --- a/internal/aws/ce/anomaly_subscription_resource_gen.go +++ b/internal/aws/ce/anomaly_subscription_resource_gen.go @@ -146,7 +146,9 @@ func anomalySubscriptionResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -159,7 +161,9 @@ func anomalySubscriptionResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*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 7185554d7a..e3d35461e9 100644 --- a/internal/aws/cleanrooms/collaboration_resource_gen.go +++ b/internal/aws/cleanrooms/collaboration_resource_gen.go @@ -149,6 +149,7 @@ func collaborationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -159,6 +160,7 @@ func collaborationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -207,6 +209,7 @@ func collaborationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AllowDuplicates @@ -218,6 +221,7 @@ func collaborationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AllowJoinsOnColumnsWithDifferentNames @@ -229,6 +233,7 @@ func collaborationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PreserveNulls @@ -240,6 +245,7 @@ func collaborationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -340,6 +346,9 @@ func collaborationResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthBetween(12, 12), stringvalidator.RegexMatches(regexp.MustCompile("^\\d+$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DisplayName "display_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -347,6 +356,9 @@ func collaborationResource(ctx context.Context) (resource.Resource, error) { Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MemberAbilities "member_abilities": schema.SetAttribute{ /*START ATTRIBUTE*/ @@ -360,6 +372,9 @@ func collaborationResource(ctx context.Context) (resource.Resource, error) { ), ), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PaymentConfiguration "payment_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -376,6 +391,7 @@ func collaborationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -386,6 +402,7 @@ func collaborationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -393,6 +410,7 @@ func collaborationResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/cleanrooms/configured_table_resource_gen.go b/internal/aws/cleanrooms/configured_table_resource_gen.go index 7459c4ebcd..4118a2480a 100644 --- a/internal/aws/cleanrooms/configured_table_resource_gen.go +++ b/internal/aws/cleanrooms/configured_table_resource_gen.go @@ -1010,6 +1010,9 @@ func configuredTableResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthAtMost(128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_](([a-zA-Z0-9_ ]+-)*([a-zA-Z0-9_ ]+))?$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1018,9 +1021,15 @@ func configuredTableResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthAtMost(128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_](([a-zA-Z0-9_ ]+-)*([a-zA-Z0-9_ ]+))?$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Required: true, diff --git a/internal/aws/cleanrooms/id_mapping_table_resource_gen.go b/internal/aws/cleanrooms/id_mapping_table_resource_gen.go index 53d767afab..05fd671a7b 100644 --- a/internal/aws/cleanrooms/id_mapping_table_resource_gen.go +++ b/internal/aws/cleanrooms/id_mapping_table_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" @@ -133,10 +134,16 @@ func idMappingTableResource(ctx context.Context) (resource.Resource, error) { Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ManageResourcePolicies "manage_resource_policies": schema.BoolAttribute{ /*START ATTRIBUTE*/ Required: true, + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Required: true, diff --git a/internal/aws/cleanroomsml/training_dataset_resource_gen.go b/internal/aws/cleanroomsml/training_dataset_resource_gen.go index 4333fb2fec..4659131095 100644 --- a/internal/aws/cleanroomsml/training_dataset_resource_gen.go +++ b/internal/aws/cleanroomsml/training_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/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" @@ -297,6 +298,7 @@ func trainingDatasetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabaseName @@ -306,6 +308,9 @@ func trainingDatasetResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_](([a-zA-Z0-9_]+-)*([a-zA-Z0-9_]+))?$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableName "table_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -314,12 +319,21 @@ func trainingDatasetResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_](([a-zA-Z0-9_ ]+-)*([a-zA-Z0-9_ ]+))?$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Schema "schema": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -332,6 +346,9 @@ func trainingDatasetResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_](([a-zA-Z0-9_ ]+-)*([a-zA-Z0-9_ ]+))?$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ColumnTypes "column_types": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -349,6 +366,9 @@ func trainingDatasetResource(ctx context.Context) (resource.Resource, error) { ), ), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -356,9 +376,15 @@ func trainingDatasetResource(ctx context.Context) (resource.Resource, error) { Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 100), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -368,6 +394,9 @@ func trainingDatasetResource(ctx context.Context) (resource.Resource, error) { "INTERACTIONS", ), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/cloudformation/hook_version_resource_gen.go b/internal/aws/cloudformation/hook_version_resource_gen.go index d9d35ba28a..ba73f74cff 100644 --- a/internal/aws/cloudformation/hook_version_resource_gen.go +++ b/internal/aws/cloudformation/hook_version_resource_gen.go @@ -116,6 +116,7 @@ func hookVersionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LogRoleArn @@ -128,6 +129,7 @@ func hookVersionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -259,13 +261,13 @@ func hookVersionResource(ctx context.Context) (resource.Resource, error) { "visibility": "Visibility", }) + opts = opts.IsImmutableType(true) + opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/SchemaHandlerPackage", }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) - opts = opts.WithUpdateTimeoutInMinutes(0) - v, err := generic.NewResource(ctx, opts...) if err != nil { diff --git a/internal/aws/cloudformation/resource_version_resource_gen.go b/internal/aws/cloudformation/resource_version_resource_gen.go index 71de7a39a6..478ba3206b 100644 --- a/internal/aws/cloudformation/resource_version_resource_gen.go +++ b/internal/aws/cloudformation/resource_version_resource_gen.go @@ -110,6 +110,7 @@ func resourceVersionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LogRoleArn @@ -122,6 +123,7 @@ func resourceVersionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -269,13 +271,13 @@ func resourceVersionResource(ctx context.Context) (resource.Resource, error) { "visibility": "Visibility", }) + opts = opts.IsImmutableType(true) + opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/SchemaHandlerPackage", }) opts = opts.WithCreateTimeoutInMinutes(2160).WithDeleteTimeoutInMinutes(0) - opts = opts.WithUpdateTimeoutInMinutes(0) - v, err := generic.NewResource(ctx, opts...) if err != nil { diff --git a/internal/aws/cloudformation/stack_resource_gen.go b/internal/aws/cloudformation/stack_resource_gen.go index 43d420d9ab..cc2de53b58 100644 --- a/internal/aws/cloudformation/stack_resource_gen.go +++ b/internal/aws/cloudformation/stack_resource_gen.go @@ -324,10 +324,6 @@ func stackResource(ctx context.Context) (resource.Resource, error) { // } "stack_policy_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // StackPolicyURL is a write-only property. }, /*END ATTRIBUTE*/ // Property: StackStatus @@ -466,13 +462,9 @@ func stackResource(ctx context.Context) (resource.Resource, error) { // } "template_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // TemplateURL is a write-only property. }, /*END ATTRIBUTE*/ // Property: TimeoutInMinutes diff --git a/internal/aws/cloudformation/stack_set_resource_gen.go b/internal/aws/cloudformation/stack_set_resource_gen.go index fbf45a2fbf..dc03e48739 100644 --- a/internal/aws/cloudformation/stack_set_resource_gen.go +++ b/internal/aws/cloudformation/stack_set_resource_gen.go @@ -16,8 +16,6 @@ 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" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" @@ -117,16 +115,12 @@ func stackSetResource(ctx context.Context) (resource.Resource, error) { "call_as": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the AWS account that you are acting from. By default, SELF is specified. For self-managed permissions, specify SELF; for service-managed permissions, if you are signed in to the organization's management account, specify SELF. If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "SELF", "DELEGATED_ADMIN", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // CallAs is a write-only property. }, /*END ATTRIBUTE*/ // Property: Capabilities @@ -294,97 +288,72 @@ func stackSetResource(ctx context.Context) (resource.Resource, error) { "concurrency_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies how the concurrency level behaves during the operation execution.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "STRICT_FAILURE_TOLERANCE", "SOFT_FAILURE_TOLERANCE", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ConcurrencyMode is a write-only property. }, /*END ATTRIBUTE*/ // Property: FailureToleranceCount "failure_tolerance_count": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(0), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // FailureToleranceCount is a write-only property. }, /*END ATTRIBUTE*/ // Property: FailureTolerancePercentage "failure_tolerance_percentage": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 100), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // FailureTolerancePercentage is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaxConcurrentCount "max_concurrent_count": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MaxConcurrentCount is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaxConcurrentPercentage "max_concurrent_percentage": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 100), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MaxConcurrentPercentage is a write-only property. }, /*END ATTRIBUTE*/ // Property: RegionConcurrencyType "region_concurrency_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The concurrency type of deploying StackSets operations in regions, could be in parallel or one region at a time", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "SEQUENTIAL", "PARALLEL", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RegionConcurrencyType is a write-only property. }, /*END ATTRIBUTE*/ // Property: RegionOrder "region_order": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9-]{1,128}$"), ""), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RegionOrder is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The user-specified preferences for how AWS CloudFormation performs a stack set operation.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // OperationPreferences is a write-only property. }, /*END ATTRIBUTE*/ // Property: Parameters @@ -586,7 +555,6 @@ func stackSetResource(ctx context.Context) (resource.Resource, error) { "account_filter_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The filter type you want to apply on organizational units and accounts.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "NONE", @@ -595,65 +563,48 @@ func stackSetResource(ctx context.Context) (resource.Resource, error) { "DIFFERENCE", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AccountFilterType is a write-only property. }, /*END ATTRIBUTE*/ // Property: Accounts "accounts": schema.SetAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "AWS accounts that you want to create stack instances in the specified Region(s) for.", Optional: true, - Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeAtLeast(1), setvalidator.ValueStringsAre( stringvalidator.RegexMatches(regexp.MustCompile("^[0-9]{12}$"), ""), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Accounts is a write-only property. }, /*END ATTRIBUTE*/ // Property: AccountsUrl "accounts_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Returns the value of the AccountsUrl property.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 5120), stringvalidator.RegexMatches(regexp.MustCompile("(s3://|http(s?)://).+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AccountsUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: OrganizationalUnitIds "organizational_unit_ids": schema.SetAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The organization root ID or organizational unit (OU) IDs to which StackSets deploys.", Optional: true, - Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeAtLeast(1), setvalidator.ValueStringsAre( stringvalidator.RegexMatches(regexp.MustCompile("^(ou-[a-z0-9]{4,32}-[a-z0-9]{8,32}|r-[a-z0-9]{4,32})$"), ""), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // OrganizationalUnitIds is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: " The AWS OrganizationalUnitIds or Accounts for which to create stack instances in the specified Regions.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // DeploymentTargets is a write-only property. }, /*END ATTRIBUTE*/ // Property: ParameterOverrides "parameter_overrides": schema.SetNestedAttribute{ /*START ATTRIBUTE*/ @@ -662,61 +613,38 @@ 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.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // ParameterKey is a write-only property. }, /*END ATTRIBUTE*/ // Property: ParameterValue "parameter_value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The input value associated with the parameter.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // ParameterValue is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of stack set parameters whose values you want to override in the selected stack instances.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ParameterOverrides is a write-only property. }, /*END ATTRIBUTE*/ // Property: Regions "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).", - Optional: true, - Computed: true, + Required: 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*/ + // Regions is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A group of stack instances with parameters in some specific accounts and regions.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // StackInstancesGroup is a write-only property. }, /*END ATTRIBUTE*/ // Property: StackSetId @@ -860,13 +788,9 @@ func stackSetResource(ctx context.Context) (resource.Resource, error) { "template_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Location of file containing the template body. The URL must point to a template (max size: 460,800 bytes) that is located in an Amazon S3 bucket.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 5120), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // TemplateURL is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/cloudformation/type_activation_resource_gen.go b/internal/aws/cloudformation/type_activation_resource_gen.go index f181264cf2..fe29e88834 100644 --- a/internal/aws/cloudformation/type_activation_resource_gen.go +++ b/internal/aws/cloudformation/type_activation_resource_gen.go @@ -12,7 +12,6 @@ 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/stringplanmodifier" @@ -54,10 +53,6 @@ func typeActivationResource(ctx context.Context) (resource.Resource, error) { "auto_update": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Whether to automatically update the extension in this account and region when a new minor version is published by the extension publisher. Major versions released by the publisher must be manually updated.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AutoUpdate is a write-only property. }, /*END ATTRIBUTE*/ // Property: ExecutionRoleArn @@ -70,10 +65,6 @@ func typeActivationResource(ctx context.Context) (resource.Resource, error) { "execution_role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the IAM execution role to use to register the type. If your resource type calls AWS APIs in any of its handlers, you must create an IAM execution role that includes the necessary permissions to call those AWS APIs, and provision that execution role in your account. CloudFormation then assumes that execution role to provide your resource type with the appropriate credentials.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ExecutionRoleArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: LoggingConfig @@ -112,7 +103,9 @@ func typeActivationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // LogGroupName is a write-only property. }, /*END ATTRIBUTE*/ // Property: LogRoleArn "log_role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -124,7 +117,9 @@ func typeActivationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // LogRoleArn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies logging configuration information for a type.", @@ -148,13 +143,9 @@ func typeActivationResource(ctx context.Context) (resource.Resource, error) { "major_version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Major Version of the type you want to enable", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 100000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // MajorVersion is a write-only property. }, /*END ATTRIBUTE*/ // Property: PublicTypeArn @@ -215,7 +206,6 @@ func typeActivationResource(ctx context.Context) (resource.Resource, error) { "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The kind of extension", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "RESOURCE", @@ -223,9 +213,6 @@ func typeActivationResource(ctx context.Context) (resource.Resource, error) { "HOOK", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Type is a write-only property. }, /*END ATTRIBUTE*/ // Property: TypeName @@ -283,16 +270,12 @@ func typeActivationResource(ctx context.Context) (resource.Resource, error) { "version_bump": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Manually updates a previously-enabled type to a new major or minor version, if available. You can also use this parameter to update the value of AutoUpdateEnabled", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "MAJOR", "MINOR", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // VersionBump is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/cloudfront/function_resource_gen.go b/internal/aws/cloudfront/function_resource_gen.go index 7146a1532f..6bb43a02bf 100644 --- a/internal/aws/cloudfront/function_resource_gen.go +++ b/internal/aws/cloudfront/function_resource_gen.go @@ -11,7 +11,6 @@ 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" @@ -38,10 +37,6 @@ func functionResource(ctx context.Context) (resource.Resource, error) { // } "auto_publish": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AutoPublish is a write-only property. }, /*END ATTRIBUTE*/ // Property: FunctionARN diff --git a/internal/aws/cloudfront/key_value_store_resource_gen.go b/internal/aws/cloudfront/key_value_store_resource_gen.go index c48b35c263..0a96fc3888 100644 --- a/internal/aws/cloudfront/key_value_store_resource_gen.go +++ b/internal/aws/cloudfront/key_value_store_resource_gen.go @@ -10,13 +10,10 @@ import ( "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/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,32 +84,16 @@ func keyValueStoreResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: SourceArn "source_arn": 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*/ + Required: true, + // SourceArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourceType "source_type": 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*/ + Required: true, + // SourceType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ImportSource is a write-only property. }, /*END ATTRIBUTE*/ // Property: Name diff --git a/internal/aws/cloudtrail/channel_resource_gen.go b/internal/aws/cloudtrail/channel_resource_gen.go index 0e02d2755a..9a2b743398 100644 --- a/internal/aws/cloudtrail/channel_resource_gen.go +++ b/internal/aws/cloudtrail/channel_resource_gen.go @@ -13,7 +13,6 @@ 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/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" @@ -210,37 +209,27 @@ 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 -.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*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 -.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "An array of key-value pairs to apply to this resource.", Optional: true, - Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // Tags is a write-only property. }, /*END ATTRIBUTE*/ diff --git a/internal/aws/cloudwatch/metric_stream_resource_gen.go b/internal/aws/cloudwatch/metric_stream_resource_gen.go index e086ccbdf2..b7f0e8beec 100644 --- a/internal/aws/cloudwatch/metric_stream_resource_gen.go +++ b/internal/aws/cloudwatch/metric_stream_resource_gen.go @@ -526,41 +526,29 @@ func metricStreamResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A unique identifier for the tag.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "String which you can use to describe or define the tag.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A set of tags to assign to the delivery stream.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(50), listvalidator.UniqueValues(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Tags is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/codedeploy/deployment_config_resource_gen.go b/internal/aws/codedeploy/deployment_config_resource_gen.go index e0080a8a13..0befde54b7 100644 --- a/internal/aws/codedeploy/deployment_config_resource_gen.go +++ b/internal/aws/codedeploy/deployment_config_resource_gen.go @@ -91,6 +91,7 @@ func deploymentConfigResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -102,6 +103,7 @@ func deploymentConfigResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -175,6 +177,7 @@ func deploymentConfigResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CanaryPercentage @@ -186,6 +189,7 @@ func deploymentConfigResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -193,6 +197,7 @@ func deploymentConfigResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TimeBasedLinear @@ -207,6 +212,7 @@ func deploymentConfigResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LinearPercentage @@ -218,6 +224,7 @@ func deploymentConfigResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -225,6 +232,7 @@ func deploymentConfigResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type @@ -236,6 +244,7 @@ func deploymentConfigResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -289,6 +298,7 @@ func deploymentConfigResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinimumHealthyHostsPerZone @@ -303,6 +313,7 @@ func deploymentConfigResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -314,6 +325,7 @@ func deploymentConfigResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -321,6 +333,7 @@ func deploymentConfigResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MonitorDurationInSeconds @@ -329,6 +342,7 @@ func deploymentConfigResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -380,9 +394,9 @@ func deploymentConfigResource(ctx context.Context) (resource.Resource, error) { "zonal_config": "ZonalConfig", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/codegurureviewer/repository_association_resource_gen.go b/internal/aws/codegurureviewer/repository_association_resource_gen.go index 4946ba5991..a7aec18856 100644 --- a/internal/aws/codegurureviewer/repository_association_resource_gen.go +++ b/internal/aws/codegurureviewer/repository_association_resource_gen.go @@ -183,6 +183,7 @@ func repositoryAssociationResource(ctx context.Context) (resource.Resource, erro }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -196,6 +197,7 @@ func repositoryAssociationResource(ctx context.Context) (resource.Resource, erro }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -272,9 +274,9 @@ func repositoryAssociationResource(ctx context.Context) (resource.Resource, erro "value": "Value", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/codepipeline/custom_action_type_resource_gen.go b/internal/aws/codepipeline/custom_action_type_resource_gen.go index 218f833d4c..a6dd8dcecc 100644 --- a/internal/aws/codepipeline/custom_action_type_resource_gen.go +++ b/internal/aws/codepipeline/custom_action_type_resource_gen.go @@ -11,6 +11,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" @@ -104,6 +105,7 @@ func customActionTypeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key @@ -116,6 +118,7 @@ func customActionTypeResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name @@ -128,6 +131,7 @@ func customActionTypeResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Queryable @@ -137,6 +141,7 @@ func customActionTypeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Required @@ -149,6 +154,7 @@ func customActionTypeResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Secret @@ -161,6 +167,7 @@ func customActionTypeResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type @@ -170,6 +177,7 @@ func customActionTypeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -222,11 +230,17 @@ func customActionTypeResource(ctx context.Context) (resource.Resource, error) { "maximum_count": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum number of artifacts allowed for the action type.", Required: true, + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinimumCount "minimum_count": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The minimum number of artifacts allowed for the action type.", Required: true, + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The details of the input artifact for the action, such as its commit ID.", @@ -263,11 +277,17 @@ func customActionTypeResource(ctx context.Context) (resource.Resource, error) { "maximum_count": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum number of artifacts allowed for the action type.", Required: true, + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinimumCount "minimum_count": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The minimum number of artifacts allowed for the action type.", Required: true, + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The details of the output artifact of the action, such as its commit ID.", @@ -325,6 +345,7 @@ func customActionTypeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ExecutionUrlTemplate @@ -334,6 +355,7 @@ func customActionTypeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RevisionUrlTemplate @@ -343,6 +365,7 @@ func customActionTypeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ThirdPartyConfigurationUrl @@ -352,6 +375,7 @@ func customActionTypeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/codepipeline/pipeline_resource_gen.go b/internal/aws/codepipeline/pipeline_resource_gen.go index d94b821431..ec7142ac67 100644 --- a/internal/aws/codepipeline/pipeline_resource_gen.go +++ b/internal/aws/codepipeline/pipeline_resource_gen.go @@ -14,7 +14,6 @@ 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" @@ -465,10 +464,6 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { "restart_execution_on_update": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether to rerun the CodePipeline pipeline after you update it.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // RestartExecutionOnUpdate is a write-only property. }, /*END ATTRIBUTE*/ // Property: RoleArn diff --git a/internal/aws/codestarnotifications/notification_rule_resource_gen.go b/internal/aws/codestarnotifications/notification_rule_resource_gen.go index c7c9a1441d..3549cf91e3 100644 --- a/internal/aws/codestarnotifications/notification_rule_resource_gen.go +++ b/internal/aws/codestarnotifications/notification_rule_resource_gen.go @@ -90,13 +90,9 @@ func notificationRuleResource(ctx context.Context) (resource.Resource, error) { // } "event_type_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // EventTypeId is a write-only property. }, /*END ATTRIBUTE*/ // Property: EventTypeIds @@ -206,13 +202,9 @@ func notificationRuleResource(ctx context.Context) (resource.Resource, error) { // } "target_address": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // TargetAddress is a write-only property. }, /*END ATTRIBUTE*/ // Property: Targets diff --git a/internal/aws/cognito/identity_pool_resource_gen.go b/internal/aws/cognito/identity_pool_resource_gen.go index 8910c0d551..5058305261 100644 --- a/internal/aws/cognito/identity_pool_resource_gen.go +++ b/internal/aws/cognito/identity_pool_resource_gen.go @@ -14,7 +14,6 @@ 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/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" @@ -64,10 +63,6 @@ func identityPoolResource(ctx context.Context) (resource.Resource, error) { "cognito_events": schema.StringAttribute{ /*START ATTRIBUTE*/ CustomType: jsontypes.NormalizedType{}, Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // CognitoEvents is a write-only property. }, /*END ATTRIBUTE*/ // Property: CognitoIdentityProviders @@ -162,33 +157,20 @@ func identityPoolResource(ctx context.Context) (resource.Resource, error) { // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RoleArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: StreamName "stream_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // StreamName is a write-only property. }, /*END ATTRIBUTE*/ // Property: StreamingStatus "streaming_status": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // StreamingStatus is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // CognitoStreams is a write-only property. }, /*END ATTRIBUTE*/ // Property: DeveloperProviderName @@ -357,26 +339,18 @@ func identityPoolResource(ctx context.Context) (resource.Resource, error) { "application_arns": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // ApplicationArns is a write-only property. }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RoleArn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // PushSync is a write-only property. }, /*END ATTRIBUTE*/ // Property: SamlProviderARNs diff --git a/internal/aws/cognito/user_pool_user_resource_gen.go b/internal/aws/cognito/user_pool_user_resource_gen.go index da63738fa1..7967685765 100644 --- a/internal/aws/cognito/user_pool_user_resource_gen.go +++ b/internal/aws/cognito/user_pool_user_resource_gen.go @@ -127,6 +127,7 @@ func userPoolUserResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -135,6 +136,7 @@ func userPoolUserResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -199,7 +201,9 @@ func userPoolUserResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -207,7 +211,9 @@ func userPoolUserResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -253,6 +259,8 @@ func userPoolUserResource(ctx context.Context) (resource.Resource, error) { "value": "Value", }) + opts = opts.IsImmutableType(true) + opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/DesiredDeliveryMediums", "/properties/ForceAliasCreation", @@ -262,8 +270,6 @@ func userPoolUserResource(ctx context.Context) (resource.Resource, error) { }) opts = opts.WithCreateTimeoutInMinutes(2).WithDeleteTimeoutInMinutes(2) - opts = opts.WithUpdateTimeoutInMinutes(0) - v, err := generic.NewResource(ctx, opts...) if err != nil { diff --git a/internal/aws/comprehend/document_classifier_resource_gen.go b/internal/aws/comprehend/document_classifier_resource_gen.go index 935aafee20..cbcec8e163 100644 --- a/internal/aws/comprehend/document_classifier_resource_gen.go +++ b/internal/aws/comprehend/document_classifier_resource_gen.go @@ -238,6 +238,7 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ setplanmodifier.UseStateForUnknown(), + setplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -251,6 +252,7 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Split @@ -265,6 +267,7 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -273,6 +276,7 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ setplanmodifier.UseStateForUnknown(), + setplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DataFormat @@ -287,6 +291,7 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DocumentReaderConfig @@ -305,6 +310,7 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DocumentReadMode @@ -319,6 +325,7 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FeatureTypes @@ -337,6 +344,7 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ setplanmodifier.UseStateForUnknown(), + setplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -344,6 +352,7 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DocumentType @@ -358,6 +367,7 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Documents @@ -374,6 +384,7 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TestS3Uri @@ -386,6 +397,7 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -393,6 +405,7 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LabelDelimiter @@ -405,6 +418,7 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -417,6 +431,7 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TestS3Uri @@ -429,6 +444,7 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -559,6 +575,7 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -571,6 +588,7 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -740,6 +758,7 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ setplanmodifier.UseStateForUnknown(), + setplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Subnets @@ -757,6 +776,7 @@ func documentClassifierResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ setplanmodifier.UseStateForUnknown(), + setplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/comprehend/flywheel_resource_gen.go b/internal/aws/comprehend/flywheel_resource_gen.go index 86f345ebd4..5a5f8ac3a0 100644 --- a/internal/aws/comprehend/flywheel_resource_gen.go +++ b/internal/aws/comprehend/flywheel_resource_gen.go @@ -447,6 +447,7 @@ func flywheelResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ setplanmodifier.UseStateForUnknown(), + setplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Mode @@ -462,6 +463,7 @@ func flywheelResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -469,6 +471,7 @@ func flywheelResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EntityRecognitionConfig @@ -488,6 +491,7 @@ func flywheelResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -499,6 +503,7 @@ func flywheelResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ setplanmodifier.UseStateForUnknown(), + setplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -506,6 +511,7 @@ func flywheelResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LanguageCode @@ -525,6 +531,7 @@ func flywheelResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/config/config_rule_resource_gen.go b/internal/aws/config/config_rule_resource_gen.go index 5e8723f196..d6e24295b2 100644 --- a/internal/aws/config/config_rule_resource_gen.go +++ b/internal/aws/config/config_rule_resource_gen.go @@ -367,10 +367,6 @@ func configRuleResource(ctx context.Context) (resource.Resource, error) { "policy_text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The policy definition containing the logic for your CC Custom Policy rule.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // PolicyText is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/config/conformance_pack_resource_gen.go b/internal/aws/config/conformance_pack_resource_gen.go index ac49b0dd20..be2b443113 100644 --- a/internal/aws/config/conformance_pack_resource_gen.go +++ b/internal/aws/config/conformance_pack_resource_gen.go @@ -14,7 +14,6 @@ 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/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" @@ -177,13 +176,9 @@ func conformancePackResource(ctx context.Context) (resource.Resource, error) { "template_body": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string containing full conformance pack template body. You can only specify one of the template body or template S3Uri fields.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 51200), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // TemplateBody is a write-only property. }, /*END ATTRIBUTE*/ // Property: TemplateS3Uri @@ -199,14 +194,10 @@ func conformancePackResource(ctx context.Context) (resource.Resource, error) { "template_s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Location of file containing the template body which points to the conformance pack template that is located in an Amazon S3 bucket. You can only specify one of the template body or template S3Uri fields.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), stringvalidator.RegexMatches(regexp.MustCompile("s3://.*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // TemplateS3Uri is a write-only property. }, /*END ATTRIBUTE*/ // Property: TemplateSSMDocumentDetails @@ -234,32 +225,22 @@ func conformancePackResource(ctx context.Context) (resource.Resource, error) { // Property: DocumentName "document_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 128), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DocumentName is a write-only property. }, /*END ATTRIBUTE*/ // Property: DocumentVersion "document_version": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DocumentVersion is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The TemplateSSMDocumentDetails object contains the name of the SSM document and the version of the SSM document.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // TemplateSSMDocumentDetails is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/config/organization_conformance_pack_resource_gen.go b/internal/aws/config/organization_conformance_pack_resource_gen.go index f65d395569..e49f906b37 100644 --- a/internal/aws/config/organization_conformance_pack_resource_gen.go +++ b/internal/aws/config/organization_conformance_pack_resource_gen.go @@ -196,13 +196,9 @@ func organizationConformancePackResource(ctx context.Context) (resource.Resource "template_body": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string containing full conformance pack template body.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 51200), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // TemplateBody is a write-only property. }, /*END ATTRIBUTE*/ // Property: TemplateS3Uri @@ -218,14 +214,10 @@ func organizationConformancePackResource(ctx context.Context) (resource.Resource "template_s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Location of file containing the template body.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), stringvalidator.RegexMatches(regexp.MustCompile("s3://.*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // TemplateS3Uri is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/connect/prompt_resource_gen.go b/internal/aws/connect/prompt_resource_gen.go index aec4e324de..cf2920f09a 100644 --- a/internal/aws/connect/prompt_resource_gen.go +++ b/internal/aws/connect/prompt_resource_gen.go @@ -108,14 +108,10 @@ func promptResource(ctx context.Context) (resource.Resource, error) { "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "S3 URI of the customer's audio file for creating prompts resource..", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2000), stringvalidator.RegexMatches(regexp.MustCompile("s3://\\S+/.+|https://\\S+\\.s3(\\.\\S+)?\\.amazonaws\\.com/\\S+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // S3Uri is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tags diff --git a/internal/aws/connect/user_resource_gen.go b/internal/aws/connect/user_resource_gen.go index bfc41dcfaf..320eba48e4 100644 --- a/internal/aws/connect/user_resource_gen.go +++ b/internal/aws/connect/user_resource_gen.go @@ -188,10 +188,6 @@ func userResource(ctx context.Context) (resource.Resource, error) { "password": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The password for the user account. A password is required if you are using Amazon Connect for identity management. Otherwise, it is an error to include a password.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Password is a write-only property. }, /*END ATTRIBUTE*/ // Property: PhoneConfig diff --git a/internal/aws/customerprofiles/integration_resource_gen.go b/internal/aws/customerprofiles/integration_resource_gen.go index 3faaa014b3..06763e5561 100644 --- a/internal/aws/customerprofiles/integration_resource_gen.go +++ b/internal/aws/customerprofiles/integration_resource_gen.go @@ -14,11 +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/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/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" @@ -496,40 +492,29 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { // Property: Description "description": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(2048), stringvalidator.RegexMatches(regexp.MustCompile("[\\w!@#\\-.?,\\s]*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Description is a write-only property. }, /*END ATTRIBUTE*/ // Property: FlowName "flow_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // FlowName is a write-only property. }, /*END ATTRIBUTE*/ // Property: KmsArn "kms_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // KmsArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourceFlowConfig "source_flow_config": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -537,19 +522,15 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { // Property: ConnectorProfileName "connector_profile_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("[\\w/!@#+=.-]+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ConnectorProfileName is a write-only property. }, /*END ATTRIBUTE*/ // Property: ConnectorType "connector_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Salesforce", @@ -558,11 +539,8 @@ 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*/ + // ConnectorType is a write-only property. }, /*END ATTRIBUTE*/ // Property: IncrementalPullConfig "incremental_pull_config": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -570,20 +548,14 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { // Property: DatetimeTypeFieldName "datetime_type_field_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DatetimeTypeFieldName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IncrementalPullConfig is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourceConnectorProperties "source_connector_properties": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -593,58 +565,41 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Object is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Marketo is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3 "s3": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: BucketName "bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // BucketName is a write-only property. }, /*END ATTRIBUTE*/ // Property: BucketPrefix "bucket_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BucketPrefix is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // S3 is a write-only property. }, /*END ATTRIBUTE*/ // Property: Salesforce "salesforce": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -652,104 +607,65 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { // Property: EnableDynamicFieldUpdate "enable_dynamic_field_update": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EnableDynamicFieldUpdate is a write-only property. }, /*END ATTRIBUTE*/ // Property: IncludeDeletedRecords "include_deleted_records": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IncludeDeletedRecords is a write-only property. }, /*END ATTRIBUTE*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Object is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Salesforce is a write-only property. }, /*END ATTRIBUTE*/ // Property: ServiceNow "service_now": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Object is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ServiceNow is a write-only property. }, /*END ATTRIBUTE*/ // Property: Zendesk "zendesk": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Object "object": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Object is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Zendesk is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // SourceConnectorProperties is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // SourceFlowConfig is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tasks "tasks": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -761,7 +677,6 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { // Property: Marketo "marketo": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PROJECTION", @@ -782,14 +697,11 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { "NO_OP", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Marketo is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3 "s3": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PROJECTION", @@ -814,14 +726,11 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { "NO_OP", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // S3 is a write-only property. }, /*END ATTRIBUTE*/ // Property: Salesforce "salesforce": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PROJECTION", @@ -847,14 +756,11 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { "NO_OP", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Salesforce is a write-only property. }, /*END ATTRIBUTE*/ // Property: ServiceNow "service_now": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PROJECTION", @@ -880,14 +786,11 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { "NO_OP", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ServiceNow is a write-only property. }, /*END ATTRIBUTE*/ // Property: Zendesk "zendesk": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "PROJECTION", @@ -906,44 +809,32 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { "NO_OP", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Zendesk is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ConnectorOperator is a write-only property. }, /*END ATTRIBUTE*/ // Property: DestinationField "destination_field": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DestinationField is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourceFields "source_fields": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Optional: true, - Computed: true, + Required: 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*/ + // SourceFields is a write-only property. }, /*END ATTRIBUTE*/ // Property: TaskProperties "task_properties": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -951,8 +842,7 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: OperatorPropertyKey "operator_property_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "VALUE", @@ -970,37 +860,26 @@ 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*/ + // OperatorPropertyKey is a write-only property. }, /*END ATTRIBUTE*/ // Property: Property "property": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Property is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TaskProperties is a write-only property. }, /*END ATTRIBUTE*/ // Property: TaskType "task_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Arithmetic", @@ -1011,22 +890,13 @@ 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*/ + // TaskType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Optional: true, - Computed: true, - Validators: []validator.List{ /*START VALIDATORS*/ - fwvalidators.NotNullList(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Tasks is a write-only property. }, /*END ATTRIBUTE*/ // Property: TriggerConfig "trigger_config": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1040,123 +910,81 @@ func integrationResource(ctx context.Context) (resource.Resource, error) { // Property: DataPullMode "data_pull_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Incremental", "Complete", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DataPullMode is a write-only property. }, /*END ATTRIBUTE*/ // Property: FirstExecutionFrom "first_execution_from": schema.Float64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ - float64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // FirstExecutionFrom is a write-only property. }, /*END ATTRIBUTE*/ // Property: ScheduleEndTime "schedule_end_time": schema.Float64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ - float64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ScheduleEndTime is a write-only property. }, /*END ATTRIBUTE*/ // Property: ScheduleExpression "schedule_expression": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // ScheduleExpression is a write-only property. }, /*END ATTRIBUTE*/ // Property: ScheduleOffset "schedule_offset": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 36000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ScheduleOffset is a write-only property. }, /*END ATTRIBUTE*/ // Property: ScheduleStartTime "schedule_start_time": schema.Float64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ - float64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ScheduleStartTime is a write-only property. }, /*END ATTRIBUTE*/ // Property: Timezone "timezone": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Timezone is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Scheduled is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TriggerProperties is a write-only property. }, /*END ATTRIBUTE*/ // Property: TriggerType "trigger_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // TriggerType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // TriggerConfig is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // FlowDefinition is a write-only property. }, /*END ATTRIBUTE*/ // Property: LastUpdatedAt diff --git a/internal/aws/databrew/dataset_resource_gen.go b/internal/aws/databrew/dataset_resource_gen.go index e771f7e4d6..8a30690119 100644 --- a/internal/aws/databrew/dataset_resource_gen.go +++ b/internal/aws/databrew/dataset_resource_gen.go @@ -1122,6 +1122,7 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -1134,6 +1135,7 @@ func datasetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/databrew/job_resource_gen.go b/internal/aws/databrew/job_resource_gen.go index a8327cf86c..e521eb9c2a 100644 --- a/internal/aws/databrew/job_resource_gen.go +++ b/internal/aws/databrew/job_resource_gen.go @@ -1605,6 +1605,7 @@ func jobResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -1617,6 +1618,7 @@ func jobResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/databrew/project_resource_gen.go b/internal/aws/databrew/project_resource_gen.go index e0f5b6130d..b108b11f1c 100644 --- a/internal/aws/databrew/project_resource_gen.go +++ b/internal/aws/databrew/project_resource_gen.go @@ -201,6 +201,7 @@ func projectResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -213,6 +214,7 @@ func projectResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/databrew/ruleset_resource_gen.go b/internal/aws/databrew/ruleset_resource_gen.go index 893823d0ba..2d51135e7a 100644 --- a/internal/aws/databrew/ruleset_resource_gen.go +++ b/internal/aws/databrew/ruleset_resource_gen.go @@ -402,6 +402,7 @@ func rulesetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -414,6 +415,7 @@ func rulesetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/databrew/schedule_resource_gen.go b/internal/aws/databrew/schedule_resource_gen.go index 36fcd611df..a4f184b0af 100644 --- a/internal/aws/databrew/schedule_resource_gen.go +++ b/internal/aws/databrew/schedule_resource_gen.go @@ -135,6 +135,7 @@ func scheduleResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -147,6 +148,7 @@ func scheduleResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/datasync/location_azure_blob_resource_gen.go b/internal/aws/datasync/location_azure_blob_resource_gen.go index c13c4ec0ab..5a59f6cf32 100644 --- a/internal/aws/datasync/location_azure_blob_resource_gen.go +++ b/internal/aws/datasync/location_azure_blob_resource_gen.go @@ -14,7 +14,6 @@ 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/stringdefault" @@ -166,24 +165,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.", - Optional: true, - Computed: true, + Required: 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*/ + // AzureBlobSasToken is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the shared access signature (SAS) that DataSync uses to access your Azure Blob Storage container.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AzureBlobSasConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: AzureBlobType @@ -255,14 +246,10 @@ func locationAzureBlobResource(ctx context.Context) (resource.Resource, error) { "subdirectory": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subdirectory in the Azure Blob Container that is used to read data from the Azure Blob Source Location.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^[\\p{L}\\p{M}\\p{Z}\\p{S}\\p{N}\\p{P}\\p{C}]*$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Subdirectory is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tags diff --git a/internal/aws/datasync/location_efs_resource_gen.go b/internal/aws/datasync/location_efs_resource_gen.go index 56c3f6ca9a..67110e4a1d 100644 --- a/internal/aws/datasync/location_efs_resource_gen.go +++ b/internal/aws/datasync/location_efs_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/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" @@ -103,6 +104,7 @@ func locationEFSResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.RequiresReplace(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetArn @@ -113,6 +115,9 @@ func locationEFSResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthAtMost(128), stringvalidator.RegexMatches(regexp.MustCompile("^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):ec2:[a-z\\-0-9]*:[0-9]{12}:subnet/.*$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The subnet and security group that DataSync uses to access target EFS file system.", diff --git a/internal/aws/datasync/location_fsx_ontap_resource_gen.go b/internal/aws/datasync/location_fsx_ontap_resource_gen.go index fb969c5f43..e5101ffce3 100644 --- a/internal/aws/datasync/location_fsx_ontap_resource_gen.go +++ b/internal/aws/datasync/location_fsx_ontap_resource_gen.go @@ -188,7 +188,9 @@ func locationFSxONTAPResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Version is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The NFS mount options that DataSync can use to mount your NFS share.", @@ -199,7 +201,9 @@ func locationFSxONTAPResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // MountOptions is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "NFS protocol configuration for FSx ONTAP file system.", @@ -207,7 +211,9 @@ func locationFSxONTAPResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // NFS is a write-only property. }, /*END ATTRIBUTE*/ // Property: SMB "smb": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -223,7 +229,9 @@ func locationFSxONTAPResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Domain is a write-only property. }, /*END ATTRIBUTE*/ // Property: MountOptions "mount_options": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -242,7 +250,9 @@ func locationFSxONTAPResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Version is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The mount options used by DataSync to access the SMB server.", @@ -253,7 +263,9 @@ func locationFSxONTAPResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // MountOptions is a write-only property. }, /*END ATTRIBUTE*/ // Property: Password "password": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -267,7 +279,9 @@ func locationFSxONTAPResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Password is a write-only property. }, /*END ATTRIBUTE*/ // Property: User "user": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -281,7 +295,9 @@ func locationFSxONTAPResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // User is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "SMB protocol configuration for FSx ONTAP file system.", @@ -289,7 +305,9 @@ func locationFSxONTAPResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // SMB is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration settings for NFS or SMB protocol.", 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 18f9b226dc..19c36afb95 100644 --- a/internal/aws/datasync/location_fsx_open_zfs_resource_gen.go +++ b/internal/aws/datasync/location_fsx_open_zfs_resource_gen.go @@ -149,6 +149,7 @@ func locationFSxOpenZFSResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -160,6 +161,7 @@ func locationFSxOpenZFSResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -168,6 +170,7 @@ func locationFSxOpenZFSResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/datasync/location_hdfs_resource_gen.go b/internal/aws/datasync/location_hdfs_resource_gen.go index 8baa179c74..8b66d7374d 100644 --- a/internal/aws/datasync/location_hdfs_resource_gen.go +++ b/internal/aws/datasync/location_hdfs_resource_gen.go @@ -120,13 +120,9 @@ func locationHDFSResource(ctx context.Context) (resource.Resource, error) { "kerberos_keytab": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Base64 string representation of the Keytab file.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(87384), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // KerberosKeytab is a write-only property. }, /*END ATTRIBUTE*/ // Property: KerberosKrb5Conf @@ -140,13 +136,9 @@ func locationHDFSResource(ctx context.Context) (resource.Resource, error) { "kerberos_krb_5_conf": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string representation of the Krb5Conf file, or the presigned URL to access the Krb5.conf file within an S3 bucket.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(174764), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // KerberosKrb5Conf is a write-only property. }, /*END ATTRIBUTE*/ // Property: KerberosPrincipal @@ -423,14 +415,10 @@ func locationHDFSResource(ctx context.Context) (resource.Resource, error) { "subdirectory": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subdirectory in HDFS that is used to read data from the HDFS source location or write data to the HDFS destination.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(4096), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_\\-\\+\\./\\(\\)\\$\\p{Zs}]+$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Subdirectory is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tags diff --git a/internal/aws/datasync/location_nfs_resource_gen.go b/internal/aws/datasync/location_nfs_resource_gen.go index 69ed3f8596..ba6bd34b65 100644 --- a/internal/aws/datasync/location_nfs_resource_gen.go +++ b/internal/aws/datasync/location_nfs_resource_gen.go @@ -201,14 +201,10 @@ func locationNFSResource(ctx context.Context) (resource.Resource, error) { "subdirectory": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subdirectory in the NFS file system that is used to read data from the NFS source location or write data to the NFS destination.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(4096), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_\\-\\+\\./\\(\\)\\$\\p{Zs}]+$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Subdirectory is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tags diff --git a/internal/aws/datasync/location_object_storage_resource_gen.go b/internal/aws/datasync/location_object_storage_resource_gen.go index daa3da7c41..9ad8d590e4 100644 --- a/internal/aws/datasync/location_object_storage_resource_gen.go +++ b/internal/aws/datasync/location_object_storage_resource_gen.go @@ -155,14 +155,10 @@ func locationObjectStorageResource(ctx context.Context) (resource.Resource, erro "secret_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Optional. The secret key is used if credentials are required to access the self-managed object storage server.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(8, 200), stringvalidator.RegexMatches(regexp.MustCompile("^.+$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // SecretKey is a write-only property. }, /*END ATTRIBUTE*/ // Property: ServerCertificate @@ -264,14 +260,10 @@ func locationObjectStorageResource(ctx context.Context) (resource.Resource, erro "subdirectory": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subdirectory in the self-managed object storage server that is used to read data from.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(4096), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_\\-\\+\\./\\(\\)\\p{Zs}]*$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Subdirectory is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tags diff --git a/internal/aws/datasync/location_s3_resource_gen.go b/internal/aws/datasync/location_s3_resource_gen.go index 544454a7d9..3a86b45fa7 100644 --- a/internal/aws/datasync/location_s3_resource_gen.go +++ b/internal/aws/datasync/location_s3_resource_gen.go @@ -116,6 +116,9 @@ func locationS3Resource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthAtMost(2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):iam::[0-9]{12}:role/.*$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The Amazon Resource Name (ARN) of the AWS IAM role that is used to access an Amazon S3 bucket.", diff --git a/internal/aws/datasync/location_smb_resource_gen.go b/internal/aws/datasync/location_smb_resource_gen.go index ac74a4c809..67d6d75943 100644 --- a/internal/aws/datasync/location_smb_resource_gen.go +++ b/internal/aws/datasync/location_smb_resource_gen.go @@ -184,14 +184,10 @@ func locationSMBResource(ctx context.Context) (resource.Resource, error) { "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.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(104), stringvalidator.RegexMatches(regexp.MustCompile("^.{0,104}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Password is a write-only property. }, /*END ATTRIBUTE*/ // Property: ServerHostname @@ -229,14 +225,10 @@ func locationSMBResource(ctx context.Context) (resource.Resource, error) { "subdirectory": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subdirectory in the SMB file system that is used to read data from the SMB source location or write data to the SMB destination", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(4096), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_\\-\\+\\./\\(\\)\\$\\p{Zs}]+$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Subdirectory is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tags diff --git a/internal/aws/datasync/storage_system_resource_gen.go b/internal/aws/datasync/storage_system_resource_gen.go index a4e1dd07c0..036270f5ce 100644 --- a/internal/aws/datasync/storage_system_resource_gen.go +++ b/internal/aws/datasync/storage_system_resource_gen.go @@ -16,7 +16,6 @@ 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" @@ -224,36 +223,24 @@ 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", - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Password is a write-only property. }, /*END ATTRIBUTE*/ // Property: Username "username": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The username for your storage system's management interface.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Username is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The username and password for accessing your on-premises storage system's management interface.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ServerCredentials is a write-only property. }, /*END ATTRIBUTE*/ // Property: StorageSystemArn diff --git a/internal/aws/datazone/data_source_resource_gen.go b/internal/aws/datazone/data_source_resource_gen.go index 01ade4972e..ef4927c366 100644 --- a/internal/aws/datazone/data_source_resource_gen.go +++ b/internal/aws/datazone/data_source_resource_gen.go @@ -16,14 +16,12 @@ 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/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/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,62 +84,47 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { "content": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The content of the metadata form.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(75000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Content is a write-only property. }, /*END ATTRIBUTE*/ // Property: FormName "form_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the metadata form.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // FormName is a write-only property. }, /*END ATTRIBUTE*/ // Property: TypeIdentifier "type_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID of the metadata form type.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 385), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TypeIdentifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: TypeRevision "type_revision": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The revision of the metadata form type.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TypeRevision is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The metadata forms that are to be attached to the assets that this data source works with.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 10), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // AssetFormsInput is a write-only property. }, /*END ATTRIBUTE*/ @@ -366,22 +349,16 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { "auto_import_data_quality_result": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether to automatically import data quality metrics as part of the data source run.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AutoImportDataQualityResult is a write-only property. }, /*END ATTRIBUTE*/ // Property: DataAccessRole "data_access_role": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The data access role included in the configuration details of the AWS Glue data source.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws[^:]*:iam::\\d{12}:(role|role/service-role)/[\\w+=,.@-]{1,128}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DataAccessRole is a write-only property. }, /*END ATTRIBUTE*/ // Property: RelationalFilterConfigurations "relational_filter_configurations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -390,15 +367,11 @@ 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.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DatabaseName is a write-only property. }, /*END ATTRIBUTE*/ // Property: FilterExpressions "filter_expressions": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -406,73 +379,54 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Expression "expression": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Expression is a write-only property. }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The search filter expression type.", - Optional: true, - Computed: true, + Required: 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*/ + // Type is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The filter expressions specified in the relational filter configuration for the data source.", Optional: true, - Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // FilterExpressions is a write-only property. }, /*END ATTRIBUTE*/ // Property: SchemaName "schema_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The schema name specified in the relational filter configuration for the data source.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SchemaName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The relational filter configurations included in the configuration details of the AWS Glue data source.", - Optional: true, - Computed: true, - Validators: []validator.List{ /*START VALIDATORS*/ - fwvalidators.NotNullList(), - }, /*END VALIDATORS*/ + Required: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // RelationalFilterConfigurations is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // GlueRunConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: RedshiftRunConfiguration "redshift_run_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -481,13 +435,10 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { "data_access_role": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The data access role included in the configuration details of the Amazon Redshift data source.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws[^:]*:iam::\\d{12}:(role|role/service-role)/[\\w+=,.@-]{1,128}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DataAccessRole is a write-only property. }, /*END ATTRIBUTE*/ // Property: RedshiftCredentialConfiguration "redshift_credential_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -495,27 +446,17 @@ 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.", - Optional: true, - Computed: true, + Required: 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*/ + // SecretManagerArn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The details of the credentials required to access an Amazon Redshift cluster.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // RedshiftCredentialConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: RedshiftStorage "redshift_storage": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -526,24 +467,17 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: ClusterName "cluster_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of an Amazon Redshift cluster.", - Optional: true, - Computed: true, + Required: 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*/ + // ClusterName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The name of an Amazon Redshift cluster.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RedshiftClusterSource is a write-only property. }, /*END ATTRIBUTE*/ // Property: RedshiftServerlessSource "redshift_serverless_source": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -551,35 +485,22 @@ 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.", - Optional: true, - Computed: true, + Required: 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*/ + // WorkgroupName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The details of the Amazon Redshift Serverless workgroup storage.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RedshiftServerlessSource is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The details of the Amazon Redshift storage as part of the configuration of an Amazon Redshift data source run.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // RedshiftStorage is a write-only property. }, /*END ATTRIBUTE*/ // Property: RelationalFilterConfigurations "relational_filter_configurations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -588,15 +509,11 @@ 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.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DatabaseName is a write-only property. }, /*END ATTRIBUTE*/ // Property: FilterExpressions "filter_expressions": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -604,82 +521,59 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Expression "expression": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Expression is a write-only property. }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The search filter expression type.", - Optional: true, - Computed: true, + Required: 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*/ + // Type is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The filter expressions specified in the relational filter configuration for the data source.", Optional: true, - Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // FilterExpressions is a write-only property. }, /*END ATTRIBUTE*/ // Property: SchemaName "schema_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The schema name specified in the relational filter configuration for the data source.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SchemaName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The relational filter configurations included in the configuration details of the Amazon Redshift data source.", - Optional: true, - Computed: true, - Validators: []validator.List{ /*START VALIDATORS*/ - fwvalidators.NotNullList(), - }, /*END VALIDATORS*/ + Required: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // RelationalFilterConfigurations is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration details of the Amazon Redshift data source.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RedshiftRunConfiguration is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration of the data source. It can be set to either glueRunConfiguration or redshiftRunConfiguration.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Configuration is a write-only property. }, /*END ATTRIBUTE*/ // Property: CreatedAt diff --git a/internal/aws/datazone/environment_actions_resource_gen.go b/internal/aws/datazone/environment_actions_resource_gen.go index 8d8fa5f7f2..846937365a 100644 --- a/internal/aws/datazone/environment_actions_resource_gen.go +++ b/internal/aws/datazone/environment_actions_resource_gen.go @@ -154,14 +154,10 @@ func environmentActionsResource(ctx context.Context) (resource.Resource, error) "identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID of the Amazon DataZone environment action.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 36), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_-]{1,36}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Identifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: Name diff --git a/internal/aws/datazone/environment_resource_gen.go b/internal/aws/datazone/environment_resource_gen.go index a47dbc4e2b..d6e37bcc18 100644 --- a/internal/aws/datazone/environment_resource_gen.go +++ b/internal/aws/datazone/environment_resource_gen.go @@ -247,10 +247,6 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { "environment_role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Environment role arn for custom aws environment permissions", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // EnvironmentRoleArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: GlossaryTerms @@ -442,6 +438,7 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -451,6 +448,7 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/datazone/project_membership_resource_gen.go b/internal/aws/datazone/project_membership_resource_gen.go index 9619c86bf3..9d99e34a87 100644 --- a/internal/aws/datazone/project_membership_resource_gen.go +++ b/internal/aws/datazone/project_membership_resource_gen.go @@ -86,7 +86,9 @@ func projectMembershipResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // GroupIdentifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: UserIdentifier "user_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -94,7 +96,9 @@ func projectMembershipResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // UserIdentifier is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Required: true, diff --git a/internal/aws/detective/member_invitation_resource_gen.go b/internal/aws/detective/member_invitation_resource_gen.go index 07ff8ce290..4679367b75 100644 --- a/internal/aws/detective/member_invitation_resource_gen.go +++ b/internal/aws/detective/member_invitation_resource_gen.go @@ -110,13 +110,9 @@ func memberInvitationResource(ctx context.Context) (resource.Resource, error) { "message": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A message to be included in the email invitation sent to the invited account. Updating this field has no effect.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Message is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/devopsguru/notification_channel_resource_gen.go b/internal/aws/devopsguru/notification_channel_resource_gen.go index 373488a25b..66927a2b6c 100644 --- a/internal/aws/devopsguru/notification_channel_resource_gen.go +++ b/internal/aws/devopsguru/notification_channel_resource_gen.go @@ -121,6 +121,7 @@ func notificationChannelResource(ctx context.Context) (resource.Resource, error) PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Severities @@ -142,6 +143,7 @@ func notificationChannelResource(ctx context.Context) (resource.Resource, error) PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -150,6 +152,7 @@ func notificationChannelResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Sns @@ -165,6 +168,7 @@ func notificationChannelResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -173,6 +177,7 @@ func notificationChannelResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -230,9 +235,9 @@ func notificationChannelResource(ctx context.Context) (resource.Resource, error) "topic_arn": "TopicArn", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/directoryservice/simple_ad_resource_gen.go b/internal/aws/directoryservice/simple_ad_resource_gen.go index 0c650bd17a..9410386d68 100644 --- a/internal/aws/directoryservice/simple_ad_resource_gen.go +++ b/internal/aws/directoryservice/simple_ad_resource_gen.go @@ -14,6 +14,7 @@ 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/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" @@ -220,11 +221,17 @@ func simpleADResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "The identifiers of the subnets for the directory servers. The two subnets must be in different Availability Zones. AWS Directory Service specifies a directory server and a DNS server in each of these subnets.", Required: true, + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VpcId "vpc_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identifier of the VPC in which to create the directory.", Required: true, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "VPC settings of the Simple AD directory server in AWS.", diff --git a/internal/aws/dms/data_provider_resource_gen.go b/internal/aws/dms/data_provider_resource_gen.go index 2b48c4aea0..a386f85617 100644 --- a/internal/aws/dms/data_provider_resource_gen.go +++ b/internal/aws/dms/data_provider_resource_gen.go @@ -76,13 +76,9 @@ func dataProviderResource(ctx context.Context) (resource.Resource, error) { "data_provider_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The property describes an identifier for the data provider. It is used for describing/deleting/modifying can be name/arn", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // DataProviderIdentifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: DataProviderName diff --git a/internal/aws/dms/instance_profile_resource_gen.go b/internal/aws/dms/instance_profile_resource_gen.go index 9d0d159155..03b8db9479 100644 --- a/internal/aws/dms/instance_profile_resource_gen.go +++ b/internal/aws/dms/instance_profile_resource_gen.go @@ -115,13 +115,9 @@ func instanceProfileResource(ctx context.Context) (resource.Resource, error) { "instance_profile_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The property describes an identifier for the instance profile. It is used for describing/deleting/modifying. Can be name/arn", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // InstanceProfileIdentifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: InstanceProfileName diff --git a/internal/aws/dms/migration_project_resource_gen.go b/internal/aws/dms/migration_project_resource_gen.go index faafff8131..031ed2684a 100644 --- a/internal/aws/dms/migration_project_resource_gen.go +++ b/internal/aws/dms/migration_project_resource_gen.go @@ -81,13 +81,9 @@ func migrationProjectResource(ctx context.Context) (resource.Resource, error) { "instance_profile_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The property describes an instance profile identifier for the migration project. For create", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // InstanceProfileIdentifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: InstanceProfileName @@ -158,13 +154,9 @@ func migrationProjectResource(ctx context.Context) (resource.Resource, error) { "migration_project_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The property describes an identifier for the migration project. It is used for describing/deleting/modifying can be name/arn", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // MigrationProjectIdentifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: MigrationProjectName diff --git a/internal/aws/docdbelastic/cluster_resource_gen.go b/internal/aws/docdbelastic/cluster_resource_gen.go index f2e02d5111..534b2150dd 100644 --- a/internal/aws/docdbelastic/cluster_resource_gen.go +++ b/internal/aws/docdbelastic/cluster_resource_gen.go @@ -53,10 +53,6 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { // } "admin_user_password": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AdminUserPassword is a write-only property. }, /*END ATTRIBUTE*/ // Property: AuthType diff --git a/internal/aws/dynamodb/global_table_resource_gen.go b/internal/aws/dynamodb/global_table_resource_gen.go index 402f74f74c..2ba5495d07 100644 --- a/internal/aws/dynamodb/global_table_resource_gen.go +++ b/internal/aws/dynamodb/global_table_resource_gen.go @@ -502,10 +502,16 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeyType "key_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Required: true, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -596,6 +602,7 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeySchema @@ -612,6 +619,7 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeyType @@ -623,6 +631,7 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -636,6 +645,7 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Projection @@ -651,6 +661,7 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ setplanmodifier.UseStateForUnknown(), + setplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProjectionType @@ -659,6 +670,7 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -669,6 +681,7 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1816,13 +1829,9 @@ func globalTableResource(ctx context.Context) (resource.Resource, error) { // Property: SeedCapacity "seed_capacity": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // SeedCapacity is a write-only property. }, /*END ATTRIBUTE*/ // Property: TargetTrackingScalingPolicyConfiguration diff --git a/internal/aws/dynamodb/table_resource_gen.go b/internal/aws/dynamodb/table_resource_gen.go index e3379459da..b23124cb88 100644 --- a/internal/aws/dynamodb/table_resource_gen.go +++ b/internal/aws/dynamodb/table_resource_gen.go @@ -575,7 +575,9 @@ func tableResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // InputCompressionType is a write-only property. }, /*END ATTRIBUTE*/ // Property: InputFormat "input_format": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -587,7 +589,9 @@ func tableResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // InputFormat is a write-only property. }, /*END ATTRIBUTE*/ // Property: InputFormatOptions "input_format_options": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -602,7 +606,9 @@ func tableResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Delimiter is a write-only property. }, /*END ATTRIBUTE*/ // Property: HeaderList "header_list": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -615,7 +621,9 @@ func tableResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // HeaderList is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The options for imported source files in CSV format. The values are Delimiter and HeaderList.", @@ -623,7 +631,9 @@ func tableResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Csv is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Additional properties that specify how the input is formatted,", @@ -631,7 +641,9 @@ func tableResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // InputFormatOptions is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3BucketSource "s3_bucket_source": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -646,7 +658,9 @@ func tableResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // S3Bucket is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3BucketOwner "s3_bucket_owner": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -655,7 +669,9 @@ func tableResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // S3BucketOwner is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3KeyPrefix "s3_key_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -664,7 +680,9 @@ func tableResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // S3KeyPrefix is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The S3 bucket that provides the source for the import.", @@ -675,7 +693,9 @@ func tableResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // S3BucketSource is a write-only property. }, /*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.", diff --git a/internal/aws/ec2/capacity_reservation_fleet_resource_gen.go b/internal/aws/ec2/capacity_reservation_fleet_resource_gen.go index 4b199ae78b..e33e28b8aa 100644 --- a/internal/aws/ec2/capacity_reservation_fleet_resource_gen.go +++ b/internal/aws/ec2/capacity_reservation_fleet_resource_gen.go @@ -143,6 +143,7 @@ func capacityReservationFleetResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AvailabilityZoneId @@ -151,6 +152,7 @@ func capacityReservationFleetResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EbsOptimized @@ -159,6 +161,7 @@ func capacityReservationFleetResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InstancePlatform @@ -167,6 +170,7 @@ func capacityReservationFleetResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InstanceType @@ -175,6 +179,7 @@ func capacityReservationFleetResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Priority @@ -186,6 +191,7 @@ func capacityReservationFleetResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Weight @@ -194,6 +200,7 @@ func capacityReservationFleetResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -281,6 +288,7 @@ func capacityReservationFleetResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Tags @@ -296,6 +304,7 @@ func capacityReservationFleetResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -307,6 +316,7 @@ func capacityReservationFleetResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -316,6 +326,7 @@ func capacityReservationFleetResource(ctx context.Context) (resource.Resource, e PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/ec2/capacity_reservation_resource_gen.go b/internal/aws/ec2/capacity_reservation_resource_gen.go index e442782317..ab4f40ce71 100644 --- a/internal/aws/ec2/capacity_reservation_resource_gen.go +++ b/internal/aws/ec2/capacity_reservation_resource_gen.go @@ -240,6 +240,7 @@ func capacityReservationResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Tags @@ -255,6 +256,7 @@ func capacityReservationResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -266,6 +268,7 @@ func capacityReservationResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -275,6 +278,7 @@ func capacityReservationResource(ctx context.Context) (resource.Resource, error) PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/ec2/ec2_fleet_resource_gen.go b/internal/aws/ec2/ec2_fleet_resource_gen.go index 169548a989..9b654d11e9 100644 --- a/internal/aws/ec2/ec2_fleet_resource_gen.go +++ b/internal/aws/ec2/ec2_fleet_resource_gen.go @@ -439,6 +439,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LaunchTemplateName @@ -451,6 +452,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Version @@ -462,6 +464,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -469,6 +472,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Overrides @@ -481,6 +485,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InstanceRequirements @@ -495,6 +500,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -503,6 +509,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -510,6 +517,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AcceleratorManufacturers @@ -530,6 +538,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AcceleratorNames @@ -557,6 +566,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AcceleratorTotalMemoryMiB @@ -568,6 +578,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -576,6 +587,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -583,6 +595,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AcceleratorTypes @@ -601,6 +614,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AllowedInstanceTypes @@ -616,6 +630,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BareMetal @@ -631,6 +646,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BaselineEbsBandwidthMbps @@ -642,6 +658,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -650,6 +667,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -657,6 +675,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BurstablePerformance @@ -672,6 +691,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CpuManufacturers @@ -690,6 +710,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ExcludedInstanceTypes @@ -705,6 +726,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InstanceGenerations @@ -722,6 +744,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LocalStorage @@ -737,6 +760,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LocalStorageTypes @@ -754,6 +778,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaxSpotPriceAsPercentageOfOptimalOnDemandPrice @@ -762,6 +787,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MemoryGiBPerVCpu @@ -773,6 +799,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -781,6 +808,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -788,6 +816,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MemoryMiB @@ -799,6 +828,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -807,6 +837,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -814,6 +845,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NetworkBandwidthGbps @@ -825,6 +857,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -833,6 +866,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -840,6 +874,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NetworkInterfaceCount @@ -851,6 +886,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -859,6 +895,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -866,6 +903,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OnDemandMaxPricePercentageOverLowestPrice @@ -874,6 +912,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RequireHibernateSupport @@ -882,6 +921,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SpotMaxPricePercentageOverLowestPrice @@ -890,6 +930,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TotalLocalStorageGB @@ -901,6 +942,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -909,6 +951,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -916,6 +959,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VCpuCount @@ -927,6 +971,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -935,6 +980,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -942,6 +988,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -949,6 +996,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InstanceType @@ -957,6 +1005,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaxPrice @@ -965,6 +1014,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Placement @@ -976,6 +1026,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AvailabilityZone @@ -984,6 +1035,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: GroupName @@ -992,6 +1044,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HostId @@ -1000,6 +1053,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HostResourceGroupArn @@ -1008,6 +1062,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PartitionNumber @@ -1016,6 +1071,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SpreadDomain @@ -1024,6 +1080,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Tenancy @@ -1032,6 +1089,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1039,6 +1097,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Priority @@ -1047,6 +1106,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetId @@ -1055,6 +1115,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WeightedCapacity @@ -1063,6 +1124,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1071,6 +1133,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1127,6 +1190,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CapacityReservationOptions @@ -1143,6 +1207,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1150,6 +1215,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaxTotalPrice @@ -1158,6 +1224,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinTargetCapacity @@ -1166,6 +1233,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SingleAvailabilityZone @@ -1174,6 +1242,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SingleInstanceType @@ -1182,6 +1251,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1295,6 +1365,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InstanceInterruptionBehavior @@ -1310,6 +1381,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InstancePoolsToUseCount @@ -1318,6 +1390,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaintenanceStrategies @@ -1338,6 +1411,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TerminationDelay @@ -1346,6 +1420,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1353,6 +1428,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1360,6 +1436,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaxTotalPrice @@ -1368,6 +1445,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinTargetCapacity @@ -1376,6 +1454,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SingleAvailabilityZone @@ -1384,6 +1463,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SingleInstanceType @@ -1392,6 +1472,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1547,6 +1628,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Tags @@ -1562,6 +1644,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -1573,6 +1656,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1581,6 +1665,7 @@ func eC2FleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/ec2/flow_log_resource_gen.go b/internal/aws/ec2/flow_log_resource_gen.go index b6ed6d4606..ec36bfdd50 100644 --- a/internal/aws/ec2/flow_log_resource_gen.go +++ b/internal/aws/ec2/flow_log_resource_gen.go @@ -105,6 +105,7 @@ func flowLogResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HiveCompatiblePartitions @@ -116,6 +117,7 @@ func flowLogResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PerHourPartition @@ -127,6 +129,7 @@ func flowLogResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/ec2/instance_resource_gen.go b/internal/aws/ec2/instance_resource_gen.go index 17bf582cbb..bfa855672a 100644 --- a/internal/aws/ec2/instance_resource_gen.go +++ b/internal/aws/ec2/instance_resource_gen.go @@ -45,10 +45,6 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { "additional_info": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "This property is reserved for internal use. If you use it, the stack fails with this error: Bad property set: [Testing this property] (Service: AmazonEC2; Status Code: 400; Error Code: InvalidParameterCombination; Request ID: 0XXXXXX-49c7-4b40-8bcc-76885dcXXXXX).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AdditionalInfo is a write-only property. }, /*END ATTRIBUTE*/ // Property: Affinity @@ -296,6 +292,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ThreadsPerCore @@ -304,6 +301,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -411,6 +409,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -464,6 +463,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type @@ -476,6 +476,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -512,6 +513,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -548,6 +550,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { Default: booldefault.StaticBool(false), PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -717,7 +720,9 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Ipv6Address is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -807,7 +812,9 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // LaunchTemplateId is a write-only property. }, /*END ATTRIBUTE*/ // Property: LaunchTemplateName "launch_template_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -816,7 +823,9 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // LaunchTemplateName is a write-only property. }, /*END ATTRIBUTE*/ // Property: Version "version": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -825,7 +834,9 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Version is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The launch template to use to launch the instances.", @@ -872,6 +883,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1020,6 +1032,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AssociatePublicIpAddress @@ -1029,6 +1042,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DeleteOnTermination @@ -1038,6 +1052,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Description @@ -1047,6 +1062,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DeviceIndex @@ -1059,6 +1075,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: GroupSet @@ -1070,6 +1087,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Ipv6AddressCount @@ -1079,6 +1097,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Ipv6Addresses @@ -1095,6 +1114,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1105,6 +1125,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NetworkInterfaceId @@ -1114,6 +1135,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PrivateIpAddress @@ -1123,6 +1145,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PrivateIpAddresses @@ -1139,6 +1162,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PrivateIpAddress @@ -1151,6 +1175,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1161,6 +1186,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecondaryPrivateIpAddressCount @@ -1170,6 +1196,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetId @@ -1179,6 +1206,7 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1331,10 +1359,6 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { "propagate_tags_to_volume_on_creation": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether to assign the tags from the instance to all of the volumes attached to the instance at launch. If you specify true and you assign tags to the instance, those tags are automatically assigned to all of the volumes that you attach to the instance at launch. If you specify false, those tags are not assigned to the attached volumes.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // PropagateTagsToVolumeOnCreation is a write-only property. }, /*END ATTRIBUTE*/ // Property: PublicDnsName diff --git a/internal/aws/ec2/ipam_pool_resource_gen.go b/internal/aws/ec2/ipam_pool_resource_gen.go index 2dc9b1f2af..3e6218e79b 100644 --- a/internal/aws/ec2/ipam_pool_resource_gen.go +++ b/internal/aws/ec2/ipam_pool_resource_gen.go @@ -474,6 +474,7 @@ func iPAMPoolResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceOwner @@ -485,6 +486,7 @@ func iPAMPoolResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceRegion @@ -496,6 +498,7 @@ func iPAMPoolResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceType @@ -507,6 +510,7 @@ func iPAMPoolResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/ec2/key_pair_resource_gen.go b/internal/aws/ec2/key_pair_resource_gen.go index 9f683148d3..89f9a33229 100644 --- a/internal/aws/ec2/key_pair_resource_gen.go +++ b/internal/aws/ec2/key_pair_resource_gen.go @@ -190,6 +190,7 @@ func keyPairResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -203,6 +204,7 @@ func keyPairResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -248,13 +250,13 @@ func keyPairResource(ctx context.Context) (resource.Resource, error) { "value": "Value", }) + opts = opts.IsImmutableType(true) + opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/KeyFormat", }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) - opts = opts.WithUpdateTimeoutInMinutes(0) - v, err := generic.NewResource(ctx, opts...) if err != nil { diff --git a/internal/aws/ec2/launch_template_resource_gen.go b/internal/aws/ec2/launch_template_resource_gen.go index 73f3477104..c1687009e8 100644 --- a/internal/aws/ec2/launch_template_resource_gen.go +++ b/internal/aws/ec2/launch_template_resource_gen.go @@ -11,18 +11,12 @@ 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/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/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() { @@ -962,10 +956,7 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "device_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The device name (for example, /dev/sdh or xvdh).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DeviceName is a write-only property. }, /*END ATTRIBUTE*/ // Property: Ebs "ebs": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -974,108 +965,72 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "delete_on_termination": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether the EBS volume is deleted on instance termination.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DeleteOnTermination is a write-only property. }, /*END ATTRIBUTE*/ // Property: Encrypted "encrypted": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether the EBS volume is encrypted. Encrypted volumes can only be attached to instances that support Amazon EBS encryption. If you are creating a volume from a snapshot, you can't specify an encryption value.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Encrypted is a write-only property. }, /*END ATTRIBUTE*/ // Property: Iops "iops": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of I/O operations per second (IOPS). For ``gp3``, ``io1``, and ``io2`` volumes, this represents the number of IOPS that are provisioned for the volume. For ``gp2`` volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.\n The following are the supported values for each volume type:\n + ``gp3``: 3,000 - 16,000 IOPS\n + ``io1``: 100 - 64,000 IOPS\n + ``io2``: 100 - 256,000 IOPS\n \n For ``io2`` volumes, you can achieve up to 256,000 IOPS on [instances built on the Nitro System](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances). On other instances, you can achieve performance up to 32,000 IOPS.\n This parameter is supported for ``io1``, ``io2``, and ``gp3`` volumes only.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Iops is a write-only property. }, /*END ATTRIBUTE*/ // Property: KmsKeyId "kms_key_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the symmetric KMSlong (KMS) CMK used for encryption.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // KmsKeyId is a write-only property. }, /*END ATTRIBUTE*/ // Property: SnapshotId "snapshot_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID of the snapshot.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SnapshotId is a write-only property. }, /*END ATTRIBUTE*/ // Property: Throughput "throughput": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The throughput to provision for a ``gp3`` volume, with a maximum of 1,000 MiB/s.\n Valid Range: Minimum value of 125. Maximum value of 1000.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Throughput is a write-only property. }, /*END ATTRIBUTE*/ // Property: VolumeSize "volume_size": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. The following are the supported volumes sizes for each volume type:\n + ``gp2`` and ``gp3``: 1 - 16,384 GiB\n + ``io1``: 4 - 16,384 GiB\n + ``io2``: 4 - 65,536 GiB\n + ``st1`` and ``sc1``: 125 - 16,384 GiB\n + ``standard``: 1 - 1024 GiB", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // VolumeSize is a write-only property. }, /*END ATTRIBUTE*/ // Property: VolumeType "volume_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The volume type. For more information, see [Amazon EBS volume types](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volume-types.html) in the *Amazon EBS User Guide*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // VolumeType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Parameters used to automatically set up EBS volumes when the instance is launched.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Ebs is a write-only property. }, /*END ATTRIBUTE*/ // Property: NoDevice "no_device": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "To omit the device from the block device mapping, specify an empty string.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // NoDevice is a write-only property. }, /*END ATTRIBUTE*/ // Property: VirtualName "virtual_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // VirtualName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The block device mapping.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BlockDeviceMappings is a write-only property. }, /*END ATTRIBUTE*/ // Property: CapacityReservationSpecification "capacity_reservation_specification": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1084,10 +1039,7 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "capacity_reservation_preference": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Indicates the instance's Capacity Reservation preferences. Possible preferences include:\n + ``open`` - The instance can run in any ``open`` Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).\n + ``none`` - The instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CapacityReservationPreference is a write-only property. }, /*END ATTRIBUTE*/ // Property: CapacityReservationTarget "capacity_reservation_target": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1096,35 +1048,23 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "capacity_reservation_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID of the Capacity Reservation in which to run the instance.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CapacityReservationId is a write-only property. }, /*END ATTRIBUTE*/ // Property: CapacityReservationResourceGroupArn "capacity_reservation_resource_group_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the Capacity Reservation resource group in which to run the instance.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CapacityReservationResourceGroupArn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information about the target Capacity Reservation or Capacity Reservation group.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CapacityReservationTarget is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The Capacity Reservation targeting option. If you do not specify this parameter, the instance's Capacity Reservation preference defaults to ``open``, which enables it to run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CapacityReservationSpecification is a write-only property. }, /*END ATTRIBUTE*/ // Property: CpuOptions "cpu_options": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1133,42 +1073,30 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "amd_sev_snp": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. For more information, see [AMD SEV-SNP](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sev-snp.html).", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "enabled", "disabled", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AmdSevSnp is a write-only property. }, /*END ATTRIBUTE*/ // Property: CoreCount "core_count": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of CPU cores for the instance.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CoreCount is a write-only property. }, /*END ATTRIBUTE*/ // Property: ThreadsPerCore "threads_per_core": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of threads per CPU core. To disable multithreading for the instance, specify a value of ``1``. Otherwise, specify the default value of ``2``.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ThreadsPerCore is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The CPU options for the instance. For more information, see [Optimize CPU options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) in the *Amazon EC2 User Guide*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CpuOptions is a write-only property. }, /*END ATTRIBUTE*/ // Property: CreditSpecification "credit_specification": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1177,45 +1105,30 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "cpu_credits": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The credit option for CPU usage of a T instance.\n Valid values: ``standard`` | ``unlimited``", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CpuCredits is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The credit option for CPU usage of the instance. Valid only for T instances.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CreditSpecification is a write-only property. }, /*END ATTRIBUTE*/ // Property: DisableApiStop "disable_api_stop": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether to enable the instance for stop protection. For more information, see [Enable stop protection for your instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-stop-protection.html) in the *Amazon EC2 User Guide*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DisableApiStop is a write-only property. }, /*END ATTRIBUTE*/ // Property: DisableApiTermination "disable_api_termination": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "If you set this parameter to ``true``, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute after launch, use [ModifyInstanceAttribute](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyInstanceAttribute.html). Alternatively, if you set ``InstanceInitiatedShutdownBehavior`` to ``terminate``, you can terminate the instance by running the shutdown command from the instance.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DisableApiTermination is a write-only property. }, /*END ATTRIBUTE*/ // Property: EbsOptimized "ebs_optimized": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EbsOptimized is a write-only property. }, /*END ATTRIBUTE*/ // Property: ElasticGpuSpecifications "elastic_gpu_specifications": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1225,19 +1138,13 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of Elastic Graphics accelerator.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Type is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Deprecated.\n Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ElasticGpuSpecifications is a write-only property. }, /*END ATTRIBUTE*/ // Property: ElasticInferenceAccelerators "elastic_inference_accelerators": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1247,28 +1154,19 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "count": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of elastic inference accelerators to attach to the instance. \n Default: 1", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Count is a write-only property. }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of elastic inference accelerator. The possible values are eia1.medium, eia1.large, and eia1.xlarge.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Type is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a resource you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference workloads.\n You cannot specify accelerators from different generations in the same request.\n Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ElasticInferenceAccelerators is a write-only property. }, /*END ATTRIBUTE*/ // Property: EnclaveOptions "enclave_options": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1277,18 +1175,12 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "If this parameter is set to ``true``, the instance is enabled for AWS Nitro Enclaves; otherwise, it is not enabled for AWS Nitro Enclaves.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Enabled is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Indicates whether the instance is enabled for AWS Nitro Enclaves. For more information, see [What is Nitro Enclaves?](https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html) in the *Nitro Enclaves User Guide*.\n You can't enable AWS Nitro Enclaves and hibernation on the same instance.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EnclaveOptions is a write-only property. }, /*END ATTRIBUTE*/ // Property: HibernationOptions "hibernation_options": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1297,18 +1189,12 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "configured": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "If you set this parameter to ``true``, the instance is enabled for hibernation.\n Default: ``false``", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Configured is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance meets the [hibernation prerequisites](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html). For more information, see [Hibernate your Amazon EC2 instance](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the *Amazon EC2 User Guide*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // HibernationOptions is a write-only property. }, /*END ATTRIBUTE*/ // Property: IamInstanceProfile "iam_instance_profile": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1317,45 +1203,30 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the instance profile.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Arn is a write-only property. }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the instance profile.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The name or Amazon Resource Name (ARN) of an IAM instance profile.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IamInstanceProfile is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageId "image_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID of the AMI. Alternatively, you can specify a Systems Manager parameter, which will resolve to an AMI ID on launch.\n Valid formats:\n + ``ami-0ac394d6a3example`` \n + ``resolve:ssm:parameter-name`` \n + ``resolve:ssm:parameter-name:version-number`` \n + ``resolve:ssm:parameter-name:label`` \n \n For more information, see [Use a Systems Manager parameter to find an AMI](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html#using-systems-manager-parameter-to-find-AMI) in the *Amazon Elastic Compute Cloud User Guide*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageId is a write-only property. }, /*END ATTRIBUTE*/ // Property: InstanceInitiatedShutdownBehavior "instance_initiated_shutdown_behavior": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).\n Default: ``stop``", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // InstanceInitiatedShutdownBehavior is a write-only property. }, /*END ATTRIBUTE*/ // Property: InstanceMarketOptions "instance_market_options": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1364,10 +1235,7 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "market_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The market type.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MarketType is a write-only property. }, /*END ATTRIBUTE*/ // Property: SpotOptions "spot_options": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1376,62 +1244,41 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "block_duration_minutes": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Deprecated.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BlockDurationMinutes is a write-only property. }, /*END ATTRIBUTE*/ // Property: InstanceInterruptionBehavior "instance_interruption_behavior": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The behavior when a Spot Instance is interrupted. The default is ``terminate``.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // InstanceInterruptionBehavior is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaxPrice "max_price": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The maximum hourly price you're willing to pay for the Spot Instances. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.\n If you specify a maximum price, your Spot Instances will be interrupted more frequently than if you do not specify this parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MaxPrice is a write-only property. }, /*END ATTRIBUTE*/ // Property: SpotInstanceType "spot_instance_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Spot Instance request type.\n If you are using Spot Instances with an Auto Scaling group, use ``one-time`` requests, as the ASlong service handles requesting new Spot Instances whenever the group is below its desired capacity.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SpotInstanceType is a write-only property. }, /*END ATTRIBUTE*/ // Property: ValidUntil "valid_until": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The end date of the request, in UTC format (*YYYY-MM-DD*T*HH:MM:SS*Z). Supported only for persistent requests.\n + For a persistent request, the request remains active until the ``ValidUntil`` date and time is reached. Otherwise, the request remains active until you cancel it.\n + For a one-time request, ``ValidUntil`` is not supported. The request remains active until all instances launch or you cancel the request.\n \n Default: 7 days from the current date", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ValidUntil is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The options for Spot Instances.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SpotOptions is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The market (purchasing) option for the instances.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // InstanceMarketOptions is a write-only property. }, /*END ATTRIBUTE*/ // Property: InstanceRequirements "instance_requirements": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1443,47 +1290,32 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "max": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum number of accelerators. To specify no maximum limit, omit this parameter. To exclude accelerator-enabled instance types, set ``Max`` to ``0``.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Max is a write-only property. }, /*END ATTRIBUTE*/ // Property: Min "min": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The minimum number of accelerators. To specify no minimum limit, omit this parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Min is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an instance.\n To exclude accelerator-enabled instance types, set ``Max`` to ``0``.\n Default: No minimum or maximum limits", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AcceleratorCount is a write-only property. }, /*END ATTRIBUTE*/ // Property: AcceleratorManufacturers "accelerator_manufacturers": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "Indicates whether instance types must have accelerators by specific manufacturers.\n + For instance types with AWS devices, specify ``amazon-web-services``.\n + For instance types with AMD devices, specify ``amd``.\n + For instance types with Habana devices, specify ``habana``.\n + For instance types with NVIDIA devices, specify ``nvidia``.\n + For instance types with Xilinx devices, specify ``xilinx``.\n \n Default: Any manufacturer", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AcceleratorManufacturers is a write-only property. }, /*END ATTRIBUTE*/ // Property: AcceleratorNames "accelerator_names": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The accelerators that must be on the instance type.\n + For instance types with NVIDIA A10G GPUs, specify ``a10g``.\n + For instance types with NVIDIA A100 GPUs, specify ``a100``.\n + For instance types with NVIDIA H100 GPUs, specify ``h100``.\n + For instance types with AWS Inferentia chips, specify ``inferentia``.\n + For instance types with NVIDIA GRID K520 GPUs, specify ``k520``.\n + For instance types with NVIDIA K80 GPUs, specify ``k80``.\n + For instance types with NVIDIA M60 GPUs, specify ``m60``.\n + For instance types with AMD Radeon Pro V520 GPUs, specify ``radeon-pro-v520``.\n + For instance types with NVIDIA T4 GPUs, specify ``t4``.\n + For instance types with NVIDIA T4G GPUs, specify ``t4g``.\n + For instance types with Xilinx VU9P FPGAs, specify ``vu9p``.\n + For instance types with NVIDIA V100 GPUs, specify ``v100``.\n \n Default: Any accelerator", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AcceleratorNames is a write-only property. }, /*END ATTRIBUTE*/ // Property: AcceleratorTotalMemoryMiB "accelerator_total_memory_mi_b": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1492,56 +1324,38 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "max": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum amount of accelerator memory, in MiB. To specify no maximum limit, omit this parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Max is a write-only property. }, /*END ATTRIBUTE*/ // Property: Min "min": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The minimum amount of accelerator memory, in MiB. To specify no minimum limit, omit this parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Min is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The minimum and maximum amount of total accelerator memory, in MiB.\n Default: No minimum or maximum limits", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AcceleratorTotalMemoryMiB is a write-only property. }, /*END ATTRIBUTE*/ // Property: AcceleratorTypes "accelerator_types": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The accelerator types that must be on the instance type.\n + For instance types with GPU accelerators, specify ``gpu``.\n + For instance types with FPGA accelerators, specify ``fpga``.\n + For instance types with inference accelerators, specify ``inference``.\n \n Default: Any accelerator type", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AcceleratorTypes is a write-only property. }, /*END ATTRIBUTE*/ // Property: AllowedInstanceTypes "allowed_instance_types": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes.\n You can use strings with one or more wild cards, represented by an asterisk (``*``), to allow an instance type, size, or generation. The following are examples: ``m5.8xlarge``, ``c5*.*``, ``m5a.*``, ``r*``, ``*3*``.\n For example, if you specify ``c5*``,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify ``m5a.*``, Amazon EC2 will allow all the M5a instance types, but not the M5n instance types.\n If you specify ``AllowedInstanceTypes``, you can't specify ``ExcludedInstanceTypes``.\n Default: All instance types", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AllowedInstanceTypes is a write-only property. }, /*END ATTRIBUTE*/ // Property: BareMetal "bare_metal": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether bare metal instance types must be included, excluded, or required.\n + To include bare metal instance types, specify ``included``.\n + To require only bare metal instance types, specify ``required``.\n + To exclude bare metal instance types, specify ``excluded``.\n \n Default: ``excluded``", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BareMetal is a write-only property. }, /*END ATTRIBUTE*/ // Property: BaselineEbsBandwidthMbps "baseline_ebs_bandwidth_mbps": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1550,94 +1364,64 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "max": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum baseline bandwidth, in Mbps. To specify no maximum limit, omit this parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Max is a write-only property. }, /*END ATTRIBUTE*/ // Property: Min "min": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The minimum baseline bandwidth, in Mbps. To specify no minimum limit, omit this parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Min is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see [Amazon EBS–optimized instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html) in the *Amazon EC2 User Guide*.\n Default: No minimum or maximum limits", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BaselineEbsBandwidthMbps is a write-only property. }, /*END ATTRIBUTE*/ // Property: BurstablePerformance "burstable_performance": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether burstable performance T instance types are included, excluded, or required. For more information, see [Burstable performance instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html).\n + To include burstable performance instance types, specify ``included``.\n + To require only burstable performance instance types, specify ``required``.\n + To exclude burstable performance instance types, specify ``excluded``.\n \n Default: ``excluded``", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BurstablePerformance is a write-only property. }, /*END ATTRIBUTE*/ // Property: CpuManufacturers "cpu_manufacturers": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The CPU manufacturers to include.\n + For instance types with Intel CPUs, specify ``intel``.\n + For instance types with AMD CPUs, specify ``amd``.\n + For instance types with AWS CPUs, specify ``amazon-web-services``.\n \n Don't confuse the CPU manufacturer with the CPU architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.\n Default: Any manufacturer", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CpuManufacturers is a write-only property. }, /*END ATTRIBUTE*/ // Property: ExcludedInstanceTypes "excluded_instance_types": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The instance types to exclude.\n You can use strings with one or more wild cards, represented by an asterisk (``*``), to exclude an instance type, size, or generation. The following are examples: ``m5.8xlarge``, ``c5*.*``, ``m5a.*``, ``r*``, ``*3*``.\n For example, if you specify ``c5*``,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specify ``m5a.*``, Amazon EC2 will exclude all the M5a instance types, but not the M5n instance types.\n If you specify ``ExcludedInstanceTypes``, you can't specify ``AllowedInstanceTypes``.\n Default: No excluded instance types", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ExcludedInstanceTypes is a write-only property. }, /*END ATTRIBUTE*/ // Property: InstanceGenerations "instance_generations": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Current generation instance types are typically the latest two to three generations in each instance family. For more information, see [Instance types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the *Amazon EC2 User Guide*.\n For current generation instance types, specify ``current``.\n For previous generation instance types, specify ``previous``.\n Default: Current and previous generation instance types", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // InstanceGenerations is a write-only property. }, /*END ATTRIBUTE*/ // Property: LocalStorage "local_storage": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, [Amazon EC2 instance store](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html) in the *Amazon EC2 User Guide*.\n + To include instance types with instance store volumes, specify ``included``.\n + To require only instance types with instance store volumes, specify ``required``.\n + To exclude instance types with instance store volumes, specify ``excluded``.\n \n Default: ``included``", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LocalStorage is a write-only property. }, /*END ATTRIBUTE*/ // Property: LocalStorageTypes "local_storage_types": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The type of local storage that is required.\n + For instance types with hard disk drive (HDD) storage, specify ``hdd``.\n + For instance types with solid state drive (SSD) storage, specify ``ssd``.\n \n Default: ``hdd`` and ``ssd``", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LocalStorageTypes is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaxSpotPriceAsPercentageOfOptimalOnDemandPrice "max_spot_price_as_percentage_of_optimal_on_demand_price": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "[Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.\n The parameter accepts an integer, which Amazon EC2 interprets as a percentage.\n If you set ``TargetCapacityUnitType`` to ``vcpu`` or ``memory-mib``, the price protection threshold is based on the per vCPU or per memory price instead of the per instance price.\n Only one of ``SpotMaxPricePercentageOverLowestPrice`` or ``MaxSpotPriceAsPercentageOfOptimalOnDemandPrice`` can be specified. If you don't specify either, Amazon EC2 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``.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice is a write-only property. }, /*END ATTRIBUTE*/ // Property: MemoryGiBPerVCpu "memory_gi_b_per_v_cpu": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1646,27 +1430,18 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "max": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum amount of memory per vCPU, in GiB. To specify no maximum limit, omit this parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ - float64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Max is a write-only property. }, /*END ATTRIBUTE*/ // Property: Min "min": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The minimum amount of memory per vCPU, in GiB. To specify no minimum limit, omit this parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ - float64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Min is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The minimum and maximum amount of memory per vCPU, in GiB.\n Default: No minimum or maximum limits", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MemoryGiBPerVCpu is a write-only property. }, /*END ATTRIBUTE*/ // Property: MemoryMiB "memory_mi_b": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1675,27 +1450,18 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "max": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum amount of memory, in MiB. To specify no maximum limit, omit this parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Max is a write-only property. }, /*END ATTRIBUTE*/ // Property: Min "min": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The minimum amount of memory, in MiB. To specify no minimum limit, specify ``0``.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Min is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The minimum and maximum amount of memory, in MiB.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MemoryMiB is a write-only property. }, /*END ATTRIBUTE*/ // Property: NetworkBandwidthGbps "network_bandwidth_gbps": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1704,27 +1470,18 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "max": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum amount of network bandwidth, in Gbps. To specify no maximum limit, omit this parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ - float64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Max is a write-only property. }, /*END ATTRIBUTE*/ // Property: Min "min": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The minimum amount of network bandwidth, in Gbps. If this parameter is not specified, there is no minimum limit.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ - float64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Min is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps).\n Default: No minimum or maximum limits", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // NetworkBandwidthGbps is a write-only property. }, /*END ATTRIBUTE*/ // Property: NetworkInterfaceCount "network_interface_count": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1733,54 +1490,36 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "max": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum number of network interfaces. To specify no maximum limit, omit this parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Max is a write-only property. }, /*END ATTRIBUTE*/ // Property: Min "min": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The minimum number of network interfaces. To specify no minimum limit, omit this parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Min is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The minimum and maximum number of network interfaces.\n Default: No minimum or maximum limits", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // NetworkInterfaceCount is a write-only property. }, /*END ATTRIBUTE*/ // Property: OnDemandMaxPricePercentageOverLowestPrice "on_demand_max_price_percentage_over_lowest_price": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "[Price protection] The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.\n The parameter accepts an integer, which Amazon EC2 interprets as a percentage.\n To turn off price protection, specify a high value, such as ``999999``.\n This parameter is not supported for [GetSpotPlacementScores](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) and [GetInstanceTypesFromInstanceRequirements](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTypesFromInstanceRequirements.html).\n If you set ``TargetCapacityUnitType`` to ``vcpu`` or ``memory-mib``, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.\n Default: ``20``", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // OnDemandMaxPricePercentageOverLowestPrice is a write-only property. }, /*END ATTRIBUTE*/ // Property: RequireHibernateSupport "require_hibernate_support": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether instance types must support hibernation for On-Demand Instances.\n This parameter is not supported for [GetSpotPlacementScores](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html).\n Default: ``false``", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RequireHibernateSupport is a write-only property. }, /*END ATTRIBUTE*/ // Property: SpotMaxPricePercentageOverLowestPrice "spot_max_price_percentage_over_lowest_price": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "[Price protection] The price protection threshold for Spot Instances, as a percentage higher than an identified Spot price. The identified Spot price is the Spot price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified Spot price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose Spot price exceeds your specified threshold.\n The parameter accepts an integer, which Amazon EC2 interprets as a percentage.\n If you set ``TargetCapacityUnitType`` to ``vcpu`` or ``memory-mib``, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.\n This parameter is not supported for [GetSpotPlacementScores](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) and [GetInstanceTypesFromInstanceRequirements](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTypesFromInstanceRequirements.html).\n Only one of ``SpotMaxPricePercentageOverLowestPrice`` or ``MaxSpotPriceAsPercentageOfOptimalOnDemandPrice`` can be specified. If you don't specify either, Amazon EC2 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``.\n Default: ``100``", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SpotMaxPricePercentageOverLowestPrice is a write-only property. }, /*END ATTRIBUTE*/ // Property: TotalLocalStorageGB "total_local_storage_gb": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1789,27 +1528,18 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "max": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum amount of total local storage, in GB. To specify no maximum limit, omit this parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ - float64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Max is a write-only property. }, /*END ATTRIBUTE*/ // Property: Min "min": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The minimum amount of total local storage, in GB. To specify no minimum limit, omit this parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ - float64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Min is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The minimum and maximum amount of total local storage, in GB.\n Default: No minimum or maximum limits", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TotalLocalStorageGB is a write-only property. }, /*END ATTRIBUTE*/ // Property: VCpuCount "v_cpu_count": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1818,62 +1548,41 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "max": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum number of vCPUs. To specify no maximum limit, omit this parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Max is a write-only property. }, /*END ATTRIBUTE*/ // Property: Min "min": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The minimum number of vCPUs. To specify no minimum limit, specify ``0``.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Min is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The minimum and maximum number of vCPUs.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // VCpuCount is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes.\n You must specify ``VCpuCount`` and ``MemoryMiB``. All other attributes are optional. Any unspecified optional attribute is set to its default.\n When you specify multiple attributes, you get instance types that satisfy all of the specified attributes. If you specify multiple values for an attribute, you get instance types that satisfy any of the specified values.\n To limit the list of instance types from which Amazon EC2 can identify matching instance types, you can use one of the following parameters, but not both in the same request:\n + ``AllowedInstanceTypes`` - The instance types to include in the list. All other instance types are ignored, even if they match your specified attributes.\n + ``ExcludedInstanceTypes`` - The instance types to exclude from the list, even if they match your specified attributes.\n \n If you specify ``InstanceRequirements``, you can't specify ``InstanceType``.\n Attribute-based instance type selection is only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to launch instances. If you plan to use the launch template in the [launch instance wizard](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-instance-wizard.html), or with the [RunInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html) API or [AWS::EC2::Instance](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html) AWS CloudFormation resource, you can't specify ``InstanceRequirements``.\n For more information, see [Attribute-based instance type selection for EC2 Fleet](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html), [Attribute-based instance type selection for Spot Fleet](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-attribute-based-instance-type-selection.html), and [Spot placement score](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-placement-score.html) in the *Amazon EC2 User Guide*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // InstanceRequirements is a write-only property. }, /*END ATTRIBUTE*/ // Property: InstanceType "instance_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The instance type. For more information, see [Amazon EC2 instance types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the *Amazon EC2 User Guide*.\n If you specify ``InstanceType``, you can't specify ``InstanceRequirements``.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // InstanceType is a write-only property. }, /*END ATTRIBUTE*/ // Property: KernelId "kernel_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID of the kernel.\n We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see [User Provided Kernels](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) in the *Amazon EC2 User Guide*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // KernelId is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeyName "key_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the key pair. You can create a key pair using [CreateKeyPair](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateKeyPair.html) or [ImportKeyPair](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportKeyPair.html).\n If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // KeyName is a write-only property. }, /*END ATTRIBUTE*/ // Property: LicenseSpecifications "license_specifications": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1883,19 +1592,13 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "license_configuration_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the license configuration.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LicenseConfigurationArn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The license configurations.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LicenseSpecifications is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaintenanceOptions "maintenance_options": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1904,18 +1607,12 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "auto_recovery": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Disables the automatic recovery behavior of your instance or sets it to default.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AutoRecovery is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The maintenance options of your instance.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MaintenanceOptions is a write-only property. }, /*END ATTRIBUTE*/ // Property: MetadataOptions "metadata_options": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1924,54 +1621,36 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "http_endpoint": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Enables or disables the HTTP metadata endpoint on your instances. If the parameter is not specified, the default state is ``enabled``.\n If you specify a value of ``disabled``, you will not be able to access your instance metadata.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // HttpEndpoint is a write-only property. }, /*END ATTRIBUTE*/ // Property: HttpProtocolIpv6 "http_protocol_ipv_6": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Enables or disables the IPv6 endpoint for the instance metadata service.\n Default: ``disabled``", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // HttpProtocolIpv6 is a write-only property. }, /*END ATTRIBUTE*/ // Property: HttpPutResponseHopLimit "http_put_response_hop_limit": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel.\n Default: ``1`` \n Possible values: Integers from 1 to 64", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // HttpPutResponseHopLimit is a write-only property. }, /*END ATTRIBUTE*/ // Property: HttpTokens "http_tokens": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether IMDSv2 is required.\n + ``optional`` - IMDSv2 is optional. You can choose whether to send a session token in your instance metadata retrieval requests. If you retrieve IAM role credentials without a session token, you receive the IMDSv1 role credentials. If you retrieve IAM role credentials using a valid session token, you receive the IMDSv2 role credentials.\n + ``required`` - IMDSv2 is required. You must send a session token in your instance metadata retrieval requests. With this option, retrieving the IAM role credentials always returns IMDSv2 credentials; IMDSv1 credentials are not available.\n \n Default: If the value of ``ImdsSupport`` for the Amazon Machine Image (AMI) for your instance is ``v2.0``, the default is ``required``.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // HttpTokens is a write-only property. }, /*END ATTRIBUTE*/ // Property: InstanceMetadataTags "instance_metadata_tags": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Set to ``enabled`` to allow access to instance tags from the instance metadata. Set to ``disabled`` to turn off access to instance tags from the instance metadata. For more information, see [Work with instance tags using the instance metadata](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#work-with-tags-in-IMDS).\n Default: ``disabled``", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // InstanceMetadataTags is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The metadata options for the instance. For more information, see [Instance metadata and user data](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) in the *Amazon EC2 User Guide*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MetadataOptions is a write-only property. }, /*END ATTRIBUTE*/ // Property: Monitoring "monitoring": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1980,18 +1659,12 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specify ``true`` to enable detailed monitoring. Otherwise, basic monitoring is enabled.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Enabled is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The monitoring for the instance.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Monitoring is a write-only property. }, /*END ATTRIBUTE*/ // Property: NetworkInterfaces "network_interfaces": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2001,19 +1674,13 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "associate_carrier_ip_address": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Associates a Carrier IP address with eth0 for a new network interface.\n Use this option when you launch an instance in a Wavelength Zone and want to associate a Carrier IP address with the network interface. For more information about Carrier IP addresses, see [Carrier IP addresses](https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html#provider-owned-ip) in the *Developer Guide*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AssociateCarrierIpAddress is a write-only property. }, /*END ATTRIBUTE*/ // Property: AssociatePublicIpAddress "associate_public_ip_address": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Associates a public IPv4 address with eth0 for a new network interface.\n AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the *Public IPv4 Address* tab on the [Amazon VPC pricing page](https://docs.aws.amazon.com/vpc/pricing/).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AssociatePublicIpAddress is a write-only property. }, /*END ATTRIBUTE*/ // Property: ConnectionTrackingSpecification "connection_tracking_specification": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2022,63 +1689,42 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "tcp_established_timeout": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Timeout (in seconds) for idle TCP connections in an established state. Min: 60 seconds. Max: 432000 seconds (5 days). Default: 432000 seconds. Recommended: Less than 432000 seconds.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TcpEstablishedTimeout is a write-only property. }, /*END ATTRIBUTE*/ // Property: UdpStreamTimeout "udp_stream_timeout": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Timeout (in seconds) for idle UDP flows classified as streams which have seen more than one request-response transaction. Min: 60 seconds. Max: 180 seconds (3 minutes). Default: 180 seconds.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // UdpStreamTimeout is a write-only property. }, /*END ATTRIBUTE*/ // Property: UdpTimeout "udp_timeout": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Timeout (in seconds) for idle UDP flows that have seen traffic only in a single direction or a single request-response transaction. Min: 30 seconds. Max: 60 seconds. Default: 30 seconds.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // UdpTimeout is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A connection tracking specification for the network interface.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ConnectionTrackingSpecification is a write-only property. }, /*END ATTRIBUTE*/ // Property: DeleteOnTermination "delete_on_termination": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether the network interface is deleted when the instance is terminated.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DeleteOnTermination is a write-only property. }, /*END ATTRIBUTE*/ // Property: Description "description": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A description for the network interface.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Description is a write-only property. }, /*END ATTRIBUTE*/ // Property: DeviceIndex "device_index": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The device index for the network interface attachment. Each network interface requires a device index. If you create a launch template that includes secondary network interfaces but not a primary network interface, then you must add a primary network interface as a launch parameter when you launch an instance from the template.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DeviceIndex is a write-only property. }, /*END ATTRIBUTE*/ // Property: EnaSrdSpecification "ena_srd_specification": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2087,10 +1733,7 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "ena_srd_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether ENA Express is enabled for the network interface.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EnaSrdEnabled is a write-only property. }, /*END ATTRIBUTE*/ // Property: EnaSrdUdpSpecification "ena_srd_udp_specification": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2099,54 +1742,36 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "ena_srd_udp_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether UDP traffic to and from the instance uses ENA Express. To specify this setting, you must first enable ENA Express.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EnaSrdUdpEnabled is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configures ENA Express for UDP network traffic.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EnaSrdUdpSpecification is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The ENA Express configuration for the network interface.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EnaSrdSpecification is a write-only property. }, /*END ATTRIBUTE*/ // Property: Groups "groups": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The IDs of one or more security groups.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Groups is a write-only property. }, /*END ATTRIBUTE*/ // Property: InterfaceType "interface_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of network interface. To create an Elastic Fabric Adapter (EFA), specify ``efa``. For more information, see [Elastic Fabric Adapter](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html) in the *Amazon EC2 User Guide*.\n If you are not creating an EFA, specify ``interface`` or omit this parameter.\n Valid values: ``interface`` | ``efa``", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // InterfaceType is a write-only property. }, /*END ATTRIBUTE*/ // Property: Ipv4PrefixCount "ipv_4_prefix_count": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of IPv4 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the ``Ipv4Prefix`` option.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Ipv4PrefixCount is a write-only property. }, /*END ATTRIBUTE*/ // Property: Ipv4Prefixes "ipv_4_prefixes": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2156,28 +1781,19 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "ipv_4_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The IPv4 prefix. For information, see [Assigning prefixes to network interfaces](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-eni.html) in the *Amazon EC2 User Guide*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Ipv4Prefix is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use the ``Ipv4PrefixCount`` option.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Ipv4Prefixes is a write-only property. }, /*END ATTRIBUTE*/ // Property: Ipv6AddressCount "ipv_6_address_count": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Ipv6AddressCount is a write-only property. }, /*END ATTRIBUTE*/ // Property: Ipv6Addresses "ipv_6_addresses": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2187,28 +1803,19 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "ipv_6_address": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Ipv6Address is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Ipv6Addresses is a write-only property. }, /*END ATTRIBUTE*/ // Property: Ipv6PrefixCount "ipv_6_prefix_count": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of IPv6 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the ``Ipv6Prefix`` option.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Ipv6PrefixCount is a write-only property. }, /*END ATTRIBUTE*/ // Property: Ipv6Prefixes "ipv_6_prefixes": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2218,55 +1825,37 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "ipv_6_prefix": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The IPv6 prefix.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Ipv6Prefix is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use the ``Ipv6PrefixCount`` option.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Ipv6Prefixes is a write-only property. }, /*END ATTRIBUTE*/ // Property: NetworkCardIndex "network_card_index": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // NetworkCardIndex is a write-only property. }, /*END ATTRIBUTE*/ // Property: NetworkInterfaceId "network_interface_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID of the network interface.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // NetworkInterfaceId is a write-only property. }, /*END ATTRIBUTE*/ // Property: PrimaryIpv6 "primary_ipv_6": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information about primary IPv6 addresses, see [RunInstances](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PrimaryIpv6 is a write-only property. }, /*END ATTRIBUTE*/ // Property: PrivateIpAddress "private_ip_address": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The primary private IPv4 address of the network interface.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PrivateIpAddress is a write-only property. }, /*END ATTRIBUTE*/ // Property: PrivateIpAddresses "private_ip_addresses": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2276,55 +1865,37 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "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.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Primary is a write-only property. }, /*END ATTRIBUTE*/ // Property: PrivateIpAddress "private_ip_address": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The private IPv4 address.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PrivateIpAddress is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "One or more private IPv4 addresses.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PrivateIpAddresses is a write-only property. }, /*END ATTRIBUTE*/ // Property: SecondaryPrivateIpAddressCount "secondary_private_ip_address_count": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of secondary private IPv4 addresses to assign to a network interface.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SecondaryPrivateIpAddressCount is a write-only property. }, /*END ATTRIBUTE*/ // Property: SubnetId "subnet_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID of the subnet for the network interface.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SubnetId is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The network interfaces for the instance.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // NetworkInterfaces is a write-only property. }, /*END ATTRIBUTE*/ // Property: Placement "placement": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2333,90 +1904,60 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "affinity": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The affinity setting for an instance on a Dedicated Host.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Affinity is a write-only property. }, /*END ATTRIBUTE*/ // Property: AvailabilityZone "availability_zone": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Availability Zone for the instance.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AvailabilityZone is a write-only property. }, /*END ATTRIBUTE*/ // Property: GroupId "group_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Group Id of a placement group. You must specify the Placement Group *Group Id* to launch an instance in a shared placement group.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // GroupId is a write-only property. }, /*END ATTRIBUTE*/ // Property: GroupName "group_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the placement group for the instance.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // GroupName is a write-only property. }, /*END ATTRIBUTE*/ // Property: HostId "host_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID of the Dedicated Host for the instance.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // HostId is a write-only property. }, /*END ATTRIBUTE*/ // Property: HostResourceGroupArn "host_resource_group_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the host resource group in which to launch the instances. If you specify a host resource group ARN, omit the *Tenancy* parameter or set it to ``host``.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // HostResourceGroupArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: PartitionNumber "partition_number": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of the partition the instance should launch in. Valid only if the placement group strategy is set to ``partition``.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PartitionNumber is a write-only property. }, /*END ATTRIBUTE*/ // Property: SpreadDomain "spread_domain": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Reserved for future use.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SpreadDomain is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tenancy "tenancy": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Tenancy is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The placement for the instance.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Placement is a write-only property. }, /*END ATTRIBUTE*/ // Property: PrivateDnsNameOptions "private_dns_name_options": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2425,65 +1966,44 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "enable_resource_name_dns_aaaa_record": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EnableResourceNameDnsAAAARecord is a write-only property. }, /*END ATTRIBUTE*/ // Property: EnableResourceNameDnsARecord "enable_resource_name_dns_a_record": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether to respond to DNS queries for instance hostnames with DNS A records.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EnableResourceNameDnsARecord is a write-only property. }, /*END ATTRIBUTE*/ // Property: HostnameType "hostname_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of hostname for EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. For more information, see [Amazon EC2 instance hostname types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-naming.html) in the *User Guide*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // HostnameType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries should be handled. For more information, see [Amazon EC2 instance hostname types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-naming.html) in the *User Guide*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PrivateDnsNameOptions is a write-only property. }, /*END ATTRIBUTE*/ // Property: RamDiskId "ram_disk_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ID of the RAM disk.\n We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see [User provided kernels](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) in the *Amazon EC2 User Guide*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RamDiskId is a write-only property. }, /*END ATTRIBUTE*/ // Property: SecurityGroupIds "security_group_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The IDs of the security groups. You can specify the IDs of existing security groups and references to resources created by the stack template.\n If you specify a network interface, you must specify any security groups as part of the network interface instead.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SecurityGroupIds is a write-only property. }, /*END ATTRIBUTE*/ // Property: SecurityGroups "security_groups": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The names of the security groups. For a nondefault VPC, you must use security group IDs instead.\n If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SecurityGroups is a write-only property. }, /*END ATTRIBUTE*/ // Property: TagSpecifications "tag_specifications": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2493,10 +2013,7 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "resource_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of resource to tag. You can specify tags for the following resource types only: ``instance`` | ``volume`` | ``network-interface`` | ``spot-instances-request``. If the instance does not include the resource type that you specify, the instance launch fails. For example, not all instance types include a volume.\n To tag a resource after it has been created, see [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ResourceType is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tags "tags": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2505,53 +2022,32 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The tags to apply to the resource.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Tags is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The tags to apply to the resources that are created during instance launch.\n To tag a resource after it has been created, see [CreateTags](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html).\n To tag the launch template itself, use [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TagSpecifications is a write-only property. }, /*END ATTRIBUTE*/ // Property: UserData "user_data": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The user data to make available to the instance. You must provide base64-encoded text. User data is limited to 16 KB. For more information, see [Run commands on your Amazon EC2 instance at launch](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html) in the *Amazon EC2 User Guide*.\n If you are creating the launch template for use with BATCH, the user data must be provided in the [MIME multi-part archive format](https://docs.aws.amazon.com/https://cloudinit.readthedocs.io/en/latest/topics/format.html#mime-multi-part-archive). For more information, see [Amazon EC2 user data in launch templates](https://docs.aws.amazon.com/batch/latest/userguide/launch-templates.html) in the *User Guide*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // UserData is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The information for the launch template.", @@ -2638,10 +2134,7 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "resource_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of resource. To tag a launch template, ``ResourceType`` must be ``launch-template``.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ResourceType is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tags "tags": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2650,44 +2143,25 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag key.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The tag value.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The tags for the resource.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Tags is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The tags to apply to the launch template on creation. To tag the launch template, the resource type must be ``launch-template``.\n To specify the tags for the resources that are created when an instance is launched, you must use [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-tagspecifications).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // TagSpecifications is a write-only property. }, /*END ATTRIBUTE*/ // Property: VersionDescription @@ -2700,10 +2174,6 @@ func launchTemplateResource(ctx context.Context) (resource.Resource, error) { "version_description": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A description for the first version of the launch template.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // VersionDescription is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/ec2/nat_gateway_resource_gen.go b/internal/aws/ec2/nat_gateway_resource_gen.go index 66bdd4b873..8c5a52aeab 100644 --- a/internal/aws/ec2/nat_gateway_resource_gen.go +++ b/internal/aws/ec2/nat_gateway_resource_gen.go @@ -73,10 +73,6 @@ func natGatewayResource(ctx context.Context) (resource.Resource, error) { "max_drain_duration_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum amount of time to wait (in seconds) before forcibly releasing the IP addresses if connections are still in progress. Default value is 350 seconds.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // MaxDrainDurationSeconds is a write-only property. }, /*END ATTRIBUTE*/ // Property: NatGatewayId 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 a51195f779..7bd3be2d11 100644 --- a/internal/aws/ec2/network_insights_access_scope_resource_gen.go +++ b/internal/aws/ec2/network_insights_access_scope_resource_gen.go @@ -272,7 +272,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DestinationAddresses is a write-only property. }, /*END ATTRIBUTE*/ // Property: DestinationPorts "destination_ports": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -281,7 +283,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DestinationPorts is a write-only property. }, /*END ATTRIBUTE*/ // Property: DestinationPrefixLists "destination_prefix_lists": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -290,7 +294,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DestinationPrefixLists is a write-only property. }, /*END ATTRIBUTE*/ // Property: Protocols "protocols": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -307,7 +313,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Protocols is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourceAddresses "source_addresses": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -316,7 +324,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // SourceAddresses is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourcePorts "source_ports": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -325,7 +335,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // SourcePorts is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourcePrefixLists "source_prefix_lists": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -334,14 +346,18 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // SourcePrefixLists is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // PacketHeaderStatement is a write-only property. }, /*END ATTRIBUTE*/ // Property: ResourceStatement "resource_statement": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -353,7 +369,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ResourceTypes is a write-only property. }, /*END ATTRIBUTE*/ // Property: Resources "resources": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -362,21 +380,27 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Resources is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ResourceStatement is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Destination is a write-only property. }, /*END ATTRIBUTE*/ // Property: Source "source": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -391,7 +415,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DestinationAddresses is a write-only property. }, /*END ATTRIBUTE*/ // Property: DestinationPorts "destination_ports": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -400,7 +426,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DestinationPorts is a write-only property. }, /*END ATTRIBUTE*/ // Property: DestinationPrefixLists "destination_prefix_lists": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -409,7 +437,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DestinationPrefixLists is a write-only property. }, /*END ATTRIBUTE*/ // Property: Protocols "protocols": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -426,7 +456,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Protocols is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourceAddresses "source_addresses": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -435,7 +467,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // SourceAddresses is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourcePorts "source_ports": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -444,7 +478,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // SourcePorts is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourcePrefixLists "source_prefix_lists": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -453,14 +489,18 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // SourcePrefixLists is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // PacketHeaderStatement is a write-only property. }, /*END ATTRIBUTE*/ // Property: ResourceStatement "resource_statement": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -472,7 +512,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ResourceTypes is a write-only property. }, /*END ATTRIBUTE*/ // Property: Resources "resources": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -481,21 +523,27 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Resources is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ResourceStatement is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Source is a write-only property. }, /*END ATTRIBUTE*/ // Property: ThroughResources "through_resources": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -511,7 +559,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ResourceTypes is a write-only property. }, /*END ATTRIBUTE*/ // Property: Resources "resources": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -520,14 +570,18 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Resources is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ResourceStatement is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -535,7 +589,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ThroughResources is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -776,7 +832,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DestinationAddresses is a write-only property. }, /*END ATTRIBUTE*/ // Property: DestinationPorts "destination_ports": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -785,7 +843,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DestinationPorts is a write-only property. }, /*END ATTRIBUTE*/ // Property: DestinationPrefixLists "destination_prefix_lists": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -794,7 +854,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DestinationPrefixLists is a write-only property. }, /*END ATTRIBUTE*/ // Property: Protocols "protocols": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -811,7 +873,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Protocols is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourceAddresses "source_addresses": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -820,7 +884,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // SourceAddresses is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourcePorts "source_ports": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -829,7 +895,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // SourcePorts is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourcePrefixLists "source_prefix_lists": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -838,14 +906,18 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // SourcePrefixLists is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // PacketHeaderStatement is a write-only property. }, /*END ATTRIBUTE*/ // Property: ResourceStatement "resource_statement": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -857,7 +929,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ResourceTypes is a write-only property. }, /*END ATTRIBUTE*/ // Property: Resources "resources": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -866,21 +940,27 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Resources is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ResourceStatement is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Destination is a write-only property. }, /*END ATTRIBUTE*/ // Property: Source "source": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -895,7 +975,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DestinationAddresses is a write-only property. }, /*END ATTRIBUTE*/ // Property: DestinationPorts "destination_ports": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -904,7 +986,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DestinationPorts is a write-only property. }, /*END ATTRIBUTE*/ // Property: DestinationPrefixLists "destination_prefix_lists": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -913,7 +997,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DestinationPrefixLists is a write-only property. }, /*END ATTRIBUTE*/ // Property: Protocols "protocols": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -930,7 +1016,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Protocols is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourceAddresses "source_addresses": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -939,7 +1027,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // SourceAddresses is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourcePorts "source_ports": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -948,7 +1038,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // SourcePorts is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourcePrefixLists "source_prefix_lists": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -957,14 +1049,18 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // SourcePrefixLists is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // PacketHeaderStatement is a write-only property. }, /*END ATTRIBUTE*/ // Property: ResourceStatement "resource_statement": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -976,7 +1072,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ResourceTypes is a write-only property. }, /*END ATTRIBUTE*/ // Property: Resources "resources": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -985,21 +1083,27 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Resources is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ResourceStatement is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Source is a write-only property. }, /*END ATTRIBUTE*/ // Property: ThroughResources "through_resources": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1015,7 +1119,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ResourceTypes is a write-only property. }, /*END ATTRIBUTE*/ // Property: Resources "resources": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -1024,14 +1130,18 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Resources is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ResourceStatement is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1039,7 +1149,9 @@ func networkInsightsAccessScopeResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ThroughResources is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/ec2/network_insights_path_resource_gen.go b/internal/aws/ec2/network_insights_path_resource_gen.go index 2028d9dfb9..10f46352de 100644 --- a/internal/aws/ec2/network_insights_path_resource_gen.go +++ b/internal/aws/ec2/network_insights_path_resource_gen.go @@ -143,6 +143,7 @@ func networkInsightsPathResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DestinationPortRange @@ -154,6 +155,7 @@ func networkInsightsPathResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ToPort @@ -162,6 +164,7 @@ func networkInsightsPathResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -169,6 +172,7 @@ func networkInsightsPathResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceAddress @@ -177,6 +181,7 @@ func networkInsightsPathResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourcePortRange @@ -188,6 +193,7 @@ func networkInsightsPathResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ToPort @@ -196,6 +202,7 @@ func networkInsightsPathResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -203,6 +210,7 @@ func networkInsightsPathResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -260,6 +268,7 @@ func networkInsightsPathResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DestinationPortRange @@ -271,6 +280,7 @@ func networkInsightsPathResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ToPort @@ -279,6 +289,7 @@ func networkInsightsPathResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -286,6 +297,7 @@ func networkInsightsPathResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceAddress @@ -294,6 +306,7 @@ func networkInsightsPathResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourcePortRange @@ -305,6 +318,7 @@ func networkInsightsPathResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ToPort @@ -313,6 +327,7 @@ func networkInsightsPathResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -320,6 +335,7 @@ func networkInsightsPathResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/ec2/placement_group_resource_gen.go b/internal/aws/ec2/placement_group_resource_gen.go index 4aee3fb68c..c10da9e7be 100644 --- a/internal/aws/ec2/placement_group_resource_gen.go +++ b/internal/aws/ec2/placement_group_resource_gen.go @@ -137,6 +137,7 @@ func placementGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -150,6 +151,7 @@ func placementGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -193,9 +195,9 @@ func placementGroupResource(ctx context.Context) (resource.Resource, error) { "value": "Value", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/ec2/spot_fleet_resource_gen.go b/internal/aws/ec2/spot_fleet_resource_gen.go index e31006df78..da16651d31 100644 --- a/internal/aws/ec2/spot_fleet_resource_gen.go +++ b/internal/aws/ec2/spot_fleet_resource_gen.go @@ -1268,6 +1268,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Ebs @@ -1279,6 +1280,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Encrypted @@ -1287,6 +1289,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Iops @@ -1295,6 +1298,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SnapshotId @@ -1303,6 +1307,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VolumeSize @@ -1311,6 +1316,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VolumeType @@ -1330,6 +1336,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1337,6 +1344,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NoDevice @@ -1345,6 +1353,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VirtualName @@ -1353,6 +1362,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1364,6 +1374,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EbsOptimized @@ -1373,6 +1384,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Default: booldefault.StaticBool(false), PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IamInstanceProfile @@ -1384,6 +1396,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1391,6 +1404,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageId @@ -1402,6 +1416,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InstanceRequirements @@ -1416,6 +1431,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -1424,6 +1440,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1431,6 +1448,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AcceleratorManufacturers @@ -1451,6 +1469,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AcceleratorNames @@ -1478,6 +1497,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AcceleratorTotalMemoryMiB @@ -1489,6 +1509,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -1497,6 +1518,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1504,6 +1526,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AcceleratorTypes @@ -1522,6 +1545,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AllowedInstanceTypes @@ -1537,6 +1561,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BareMetal @@ -1552,6 +1577,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BaselineEbsBandwidthMbps @@ -1563,6 +1589,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -1571,6 +1598,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1578,6 +1606,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BurstablePerformance @@ -1593,6 +1622,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CpuManufacturers @@ -1611,6 +1641,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ExcludedInstanceTypes @@ -1626,6 +1657,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InstanceGenerations @@ -1643,6 +1675,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LocalStorage @@ -1658,6 +1691,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LocalStorageTypes @@ -1675,6 +1709,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaxSpotPriceAsPercentageOfOptimalOnDemandPrice @@ -1683,6 +1718,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MemoryGiBPerVCpu @@ -1694,6 +1730,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -1702,6 +1739,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1709,6 +1747,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MemoryMiB @@ -1720,6 +1759,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -1728,6 +1768,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1735,6 +1776,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NetworkBandwidthGbps @@ -1746,6 +1788,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -1754,6 +1797,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1761,6 +1805,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NetworkInterfaceCount @@ -1772,6 +1817,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -1780,6 +1826,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1787,6 +1834,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OnDemandMaxPricePercentageOverLowestPrice @@ -1795,6 +1843,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RequireHibernateSupport @@ -1803,6 +1852,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SpotMaxPricePercentageOverLowestPrice @@ -1811,6 +1861,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TotalLocalStorageGB @@ -1822,6 +1873,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -1830,6 +1882,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1837,6 +1890,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VCpuCount @@ -1848,6 +1902,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -1856,6 +1911,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1863,6 +1919,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1870,6 +1927,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InstanceType @@ -1878,6 +1936,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KernelId @@ -1886,6 +1945,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KeyName @@ -1894,6 +1954,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Monitoring @@ -1906,6 +1967,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Default: booldefault.StaticBool(false), PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1913,6 +1975,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NetworkInterfaces @@ -1925,6 +1988,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DeleteOnTermination @@ -1933,6 +1997,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Description @@ -1941,6 +2006,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DeviceIndex @@ -1949,6 +2015,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Groups @@ -1961,6 +2028,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Ipv6AddressCount @@ -1969,6 +2037,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Ipv6Addresses @@ -1984,6 +2053,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1995,6 +2065,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NetworkInterfaceId @@ -2003,6 +2074,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PrivateIpAddresses @@ -2015,6 +2087,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PrivateIpAddress @@ -2026,6 +2099,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2037,6 +2111,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecondaryPrivateIpAddressCount @@ -2045,6 +2120,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetId @@ -2053,6 +2129,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2064,6 +2141,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Placement @@ -2075,6 +2153,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: GroupName @@ -2083,6 +2162,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Tenancy @@ -2098,6 +2178,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2105,6 +2186,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RamdiskId @@ -2113,6 +2195,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecurityGroups @@ -2128,6 +2211,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2139,6 +2223,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SpotPrice @@ -2147,6 +2232,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetId @@ -2155,6 +2241,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TagSpecifications @@ -2218,6 +2305,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Tags @@ -2233,6 +2321,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -2244,6 +2333,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2252,6 +2342,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2263,6 +2354,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: UserData @@ -2271,6 +2363,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WeightedCapacity @@ -2279,6 +2372,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2306,6 +2400,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LaunchTemplateName @@ -2318,6 +2413,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Version @@ -2329,6 +2425,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2336,6 +2433,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Overrides @@ -2348,6 +2446,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InstanceRequirements @@ -2362,6 +2461,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -2370,6 +2470,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2377,6 +2478,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AcceleratorManufacturers @@ -2397,6 +2499,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AcceleratorNames @@ -2424,6 +2527,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AcceleratorTotalMemoryMiB @@ -2435,6 +2539,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -2443,6 +2548,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2450,6 +2556,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AcceleratorTypes @@ -2468,6 +2575,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AllowedInstanceTypes @@ -2483,6 +2591,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BareMetal @@ -2498,6 +2607,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BaselineEbsBandwidthMbps @@ -2509,6 +2619,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -2517,6 +2628,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2524,6 +2636,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BurstablePerformance @@ -2539,6 +2652,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CpuManufacturers @@ -2557,6 +2671,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ExcludedInstanceTypes @@ -2572,6 +2687,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InstanceGenerations @@ -2589,6 +2705,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LocalStorage @@ -2604,6 +2721,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LocalStorageTypes @@ -2621,6 +2739,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaxSpotPriceAsPercentageOfOptimalOnDemandPrice @@ -2629,6 +2748,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MemoryGiBPerVCpu @@ -2640,6 +2760,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -2648,6 +2769,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2655,6 +2777,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MemoryMiB @@ -2666,6 +2789,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -2674,6 +2798,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2681,6 +2806,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NetworkBandwidthGbps @@ -2692,6 +2818,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -2700,6 +2827,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2707,6 +2835,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NetworkInterfaceCount @@ -2718,6 +2847,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -2726,6 +2856,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2733,6 +2864,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OnDemandMaxPricePercentageOverLowestPrice @@ -2741,6 +2873,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RequireHibernateSupport @@ -2749,6 +2882,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SpotMaxPricePercentageOverLowestPrice @@ -2757,6 +2891,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TotalLocalStorageGB @@ -2768,6 +2903,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -2776,6 +2912,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2783,6 +2920,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VCpuCount @@ -2794,6 +2932,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Min @@ -2802,6 +2941,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2809,6 +2949,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2816,6 +2957,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InstanceType @@ -2824,6 +2966,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Priority @@ -2832,6 +2975,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SpotPrice @@ -2840,6 +2984,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetId @@ -2848,6 +2993,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WeightedCapacity @@ -2856,6 +3002,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2867,6 +3014,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2900,6 +3048,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2912,6 +3061,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2919,6 +3069,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TargetGroupsConfig @@ -2937,6 +3088,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2949,6 +3101,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2956,6 +3109,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -3020,6 +3174,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TerminationDelay @@ -3028,6 +3183,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -3035,6 +3191,7 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -3124,7 +3281,9 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ResourceType is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tags "tags": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -3139,7 +3298,9 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -3150,7 +3311,9 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -3158,7 +3321,9 @@ func spotFleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Tags is a write-only property. }, /*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 fddb06516f..3f040fb451 100644 --- a/internal/aws/ec2/subnet_resource_gen.go +++ b/internal/aws/ec2/subnet_resource_gen.go @@ -119,10 +119,6 @@ func subnetResource(ctx context.Context) (resource.Resource, error) { "enable_lni_at_device_index": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Indicates the device position for local network interfaces in this subnet. For example, ``1`` indicates local network interfaces in this subnet are the secondary network interface (eth1).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // EnableLniAtDeviceIndex is a write-only property. }, /*END ATTRIBUTE*/ // Property: Ipv4IpamPoolId diff --git a/internal/aws/ec2/transit_gateway_connect_resource_gen.go b/internal/aws/ec2/transit_gateway_connect_resource_gen.go index 3976552a75..ee17b6f7bd 100644 --- a/internal/aws/ec2/transit_gateway_connect_resource_gen.go +++ b/internal/aws/ec2/transit_gateway_connect_resource_gen.go @@ -63,6 +63,7 @@ func transitGatewayConnectResource(ctx context.Context) (resource.Resource, erro Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ 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 71d04fc5aa..638b259ccd 100644 --- a/internal/aws/ec2/transit_gateway_route_table_resource_gen.go +++ b/internal/aws/ec2/transit_gateway_route_table_resource_gen.go @@ -67,6 +67,7 @@ func transitGatewayRouteTableResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -79,6 +80,7 @@ func transitGatewayRouteTableResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -149,9 +151,9 @@ func transitGatewayRouteTableResource(ctx context.Context) (resource.Resource, e "value": "Value", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) 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 7c9445f36d..2840292b3a 100644 --- a/internal/aws/ec2/transit_gateway_vpc_attachment_resource_gen.go +++ b/internal/aws/ec2/transit_gateway_vpc_attachment_resource_gen.go @@ -43,10 +43,8 @@ func transitGatewayVpcAttachmentResource(ctx context.Context) (resource.Resource "add_subnet_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // AddSubnetIds is a write-only property. }, /*END ATTRIBUTE*/ @@ -148,10 +146,8 @@ func transitGatewayVpcAttachmentResource(ctx context.Context) (resource.Resource "remove_subnet_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // RemoveSubnetIds is a write-only property. }, /*END ATTRIBUTE*/ 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 72cb09a5f7..5eb44aaec0 100644 --- a/internal/aws/ec2/verified_access_trust_provider_resource_gen.go +++ b/internal/aws/ec2/verified_access_trust_provider_resource_gen.go @@ -86,6 +86,7 @@ func verifiedAccessTrustProviderResource(ctx context.Context) (resource.Resource Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TenantId @@ -95,6 +96,7 @@ func verifiedAccessTrustProviderResource(ctx context.Context) (resource.Resource Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/ec2/vpc_endpoint_service_resource_gen.go b/internal/aws/ec2/vpc_endpoint_service_resource_gen.go index 159c9f1326..c438a64592 100644 --- a/internal/aws/ec2/vpc_endpoint_service_resource_gen.go +++ b/internal/aws/ec2/vpc_endpoint_service_resource_gen.go @@ -48,10 +48,6 @@ func vPCEndpointServiceResource(ctx context.Context) (resource.Resource, error) // } "contributor_insights_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ContributorInsightsEnabled is a write-only property. }, /*END ATTRIBUTE*/ // Property: GatewayLoadBalancerArns diff --git a/internal/aws/ec2/vpn_connection_resource_gen.go b/internal/aws/ec2/vpn_connection_resource_gen.go index 5b1fc9ef15..e71d498fa1 100644 --- a/internal/aws/ec2/vpn_connection_resource_gen.go +++ b/internal/aws/ec2/vpn_connection_resource_gen.go @@ -345,6 +345,7 @@ func vPNConnectionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TunnelInsideCidr @@ -354,6 +355,7 @@ func vPNConnectionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/ecr/repository_resource_gen.go b/internal/aws/ecr/repository_resource_gen.go index a804374476..79c136d0b3 100644 --- a/internal/aws/ecr/repository_resource_gen.go +++ b/internal/aws/ecr/repository_resource_gen.go @@ -56,10 +56,6 @@ func repositoryResource(ctx context.Context) (resource.Resource, error) { "empty_on_delete": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "If true, deleting the repository force deletes the contents of the repository. If false, the repository must be empty before attempting to delete it.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // EmptyOnDelete is a write-only property. }, /*END ATTRIBUTE*/ // Property: EncryptionConfiguration diff --git a/internal/aws/ecs/cluster_resource_gen.go b/internal/aws/ecs/cluster_resource_gen.go index 028aa0eb54..fe1bcc3240 100644 --- a/internal/aws/ecs/cluster_resource_gen.go +++ b/internal/aws/ecs/cluster_resource_gen.go @@ -418,18 +418,11 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { "namespace": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The namespace name or full Amazon Resource Name (ARN) of the CMAPlong namespace that's used when you create a service and don't specify a Service Connect configuration. The namespace name can include up to 1024 characters. The name is case-sensitive. The name can't include hyphens (-), tilde (~), greater than (>), less than (<), or slash (/).\n If you enter an existing namespace name or ARN, then that namespace will be used. Any namespace type is supported. The namespace must be in this account and this AWS Region.\n If you enter a new name, a CMAPlong namespace will be created. Amazon ECS creates a CMAP namespace with the \"API calls\" method of instance discovery only. This instance discovery method is the \"HTTP\" namespace type in the CLIlong. Other types of instance discovery aren't used by Service Connect.\n If you update the cluster with an empty string ``\"\"`` for the namespace name, the cluster configuration for Service Connect is removed. Note that the namespace will remain in CMAP and must be deleted separately.\n For more information about CMAPlong, see [Working with Services](https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-services.html) in the *Developer Guide*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Namespace is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Use this parameter to set a default Service Connect namespace. After you set a default Service Connect namespace, any new services with Service Connect turned on that are created in the cluster are added as client services in the namespace. This setting only applies to new services that set the ``enabled`` parameter to ``true`` in the ``ServiceConnectConfiguration``. You can set the namespace of each service individually in the ``ServiceConnectConfiguration`` to override this default parameter.\n Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported with Service Connect. 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: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ServiceConnectDefaults is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tags diff --git a/internal/aws/ecs/service_resource_gen.go b/internal/aws/ecs/service_resource_gen.go index 63b708445a..ce126c8e33 100644 --- a/internal/aws/ecs/service_resource_gen.go +++ b/internal/aws/ecs/service_resource_gen.go @@ -14,7 +14,6 @@ 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/stringdefault" @@ -325,6 +324,7 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1006,14 +1006,8 @@ 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.", - Optional: true, - Computed: true, - Validators: []validator.Bool{ /*START VALIDATORS*/ - fwvalidators.NotNullBool(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Enabled is a write-only property. }, /*END ATTRIBUTE*/ // Property: LogConfiguration "log_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1022,10 +1016,7 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { "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.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LogDriver is a write-only property. }, /*END ATTRIBUTE*/ // Property: Options "options": // Pattern: "" @@ -1033,10 +1024,7 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "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}}'``", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ - mapplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Options is a write-only property. }, /*END ATTRIBUTE*/ // Property: SecretOptions "secret_options": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1045,53 +1033,34 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the secret.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Name is a write-only property. }, /*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.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // ValueFrom is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "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*.", Optional: true, - Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // SecretOptions is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "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.\n 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.\n Understand the following when specifying a log configuration for your containers.\n + Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon. Additional log drivers may be available in future releases of the Amazon ECS container agent.\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 + This parameter requires version 1.18 of the Docker Remote API or greater on your container instance.\n + For tasks that are hosted on Amazon EC2 instances, the Amazon ECS container agent must register the available logging drivers with the ``ECS_AVAILABLE_LOGGING_DRIVERS`` environment variable before containers placed on that instance can use these log configuration options. For more information, see [Amazon ECS container agent configuration](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html) in the *Amazon Elastic Container Service Developer Guide*.\n + For tasks that are on FARGATElong, because you don't have access to the underlying infrastructure your tasks are hosted on, any additional software needed must be installed outside of the task. For example, the Fluentd output aggregators or a remote host running Logstash to send Gelf logs to.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LogConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: Namespace "namespace": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The namespace name or full Amazon Resource Name (ARN) of the CMAPlong namespace for use with Service Connect. The namespace must be in the same AWS Region as the Amazon ECS service and cluster. The type of namespace doesn't affect Service Connect. For more information about CMAPlong, see [Working with Services](https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-services.html) in the *Developer Guide*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Namespace is a write-only property. }, /*END ATTRIBUTE*/ // Property: Services "services": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1105,61 +1074,37 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { "dns_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "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.\n 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``.\n 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*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DnsName is a write-only property. }, /*END ATTRIBUTE*/ // 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*.", - Optional: true, - Computed: true, - Validators: []validator.Int64{ /*START VALIDATORS*/ - fwvalidators.NotNullInt64(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Port is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "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.\n Each alias (\"endpoint\") is a fully-qualified name and port number that other Amazon ECS tasks (\"clients\") can use to connect to this service.\n Each name and port mapping must be unique within the namespace.\n For each ``ServiceConnectService``, you must provide at least one ``clientAlias`` with one ``port``.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ClientAliases is a write-only property. }, /*END ATTRIBUTE*/ // Property: DiscoveryName "discovery_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ``discoveryName`` is the name of the new CMAP service that Amazon ECS creates for this Amazon ECS service. This must be unique within the CMAP namespace. The name can contain up to 64 characters. The name can include lowercase letters, numbers, underscores (_), and hyphens (-). The name can't start with a hyphen.\n If the ``discoveryName`` isn't specified, the port mapping name from the task definition is used in ``portName.namespace``.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DiscoveryName is a write-only property. }, /*END ATTRIBUTE*/ // Property: IngressPortOverride "ingress_port_override": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The port number for the Service Connect proxy to listen on.\n 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.\n 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.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IngressPortOverride is a write-only property. }, /*END ATTRIBUTE*/ // 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.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // PortName is a write-only property. }, /*END ATTRIBUTE*/ // Property: Timeout "timeout": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1168,27 +1113,18 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { "idle_timeout_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The amount of time in seconds a connection will stay active while idle. A value of ``0`` can be set to disable ``idleTimeout``.\n The ``idleTimeout`` default for ``HTTP``/``HTTP2``/``GRPC`` is 5 minutes.\n The ``idleTimeout`` default for ``TCP`` is 1 hour.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IdleTimeoutSeconds is a write-only property. }, /*END ATTRIBUTE*/ // Property: PerRequestTimeoutSeconds "per_request_timeout_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The amount of time waiting for the upstream to respond with a complete response per request. A value of ``0`` can be set to disable ``perRequestTimeout``. ``perRequestTimeout`` can only be set if Service Connect ``appProtocol`` isn't ``TCP``. Only ``idleTimeout`` is allowed for ``TCP`` ``appProtocol``.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PerRequestTimeoutSeconds is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A reference to an object that represents the configured timeouts for Service Connect.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Timeout is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tls "tls": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1200,64 +1136,39 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { "aws_pca_authority_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the AWS Private Certificate Authority certificate.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AwsPcaAuthorityArn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The signer certificate authority.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // IssuerCertificateAuthority is a write-only property. }, /*END ATTRIBUTE*/ // Property: KmsKey "kms_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The AWS Key Management Service key.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // KmsKey is a write-only property. }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the IAM role that's associated with the Service Connect TLS.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RoleArn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A reference to an object that represents a Transport Layer Security (TLS) configuration.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Tls is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The list of Service Connect service objects. These are names and aliases (also known as endpoints) that are used by other Amazon ECS services to connect to this service. \n This field is not required for a \"client\" Amazon ECS service that's a member of a namespace only to connect to other services within the namespace. An example of this would be a frontend application that accepts incoming requests from either a load balancer that's attached to the service or by other means.\n An object selects a port from the task definition, assigns a name for the CMAPlong service, and a list of aliases (endpoints) and ports for client applications to refer to this service.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Services is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The configuration for this service to discover and connect to services, and be discovered by, and connected from, other services within a namespace.\n Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported with Service Connect. 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: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ServiceConnectConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: ServiceName @@ -1543,67 +1454,43 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { "encrypted": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "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*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Encrypted is a write-only property. }, /*END ATTRIBUTE*/ // Property: FilesystemType "filesystem_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Linux filesystem type for the volume. For volumes created from a snapshot, you must specify the same filesystem type that the volume was using when the snapshot was created. If there is a filesystem type mismatch, the task will fail to start.\n The available filesystem types are\u2028 ``ext3``, ``ext4``, and ``xfs``. If no value is specified, the ``xfs`` filesystem type is used by default.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // FilesystemType is a write-only property. }, /*END ATTRIBUTE*/ // Property: Iops "iops": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of I/O operations per second (IOPS). For ``gp3``, ``io1``, and ``io2`` volumes, this represents the number of IOPS that are provisioned for the volume. For ``gp2`` volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.\n The following are the supported values for each volume type.\n + ``gp3``: 3,000 - 16,000 IOPS\n + ``io1``: 100 - 64,000 IOPS\n + ``io2``: 100 - 256,000 IOPS\n \n This parameter is required for ``io1`` and ``io2`` volume types. The default for ``gp3`` volumes is ``3,000 IOPS``. This parameter is not supported for ``st1``, ``sc1``, or ``standard`` volume types.\n 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*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Iops is a write-only property. }, /*END ATTRIBUTE*/ // Property: KmsKeyId "kms_key_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "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*.\n 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.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // KmsKeyId is a write-only property. }, /*END ATTRIBUTE*/ // 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*.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // RoleArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: SizeInGiB "size_in_gi_b": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "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*.\n The following are the supported volume size values for each volume type.\n + ``gp2`` and ``gp3``: 1-16,384\n + ``io1`` and ``io2``: 4-16,384\n + ``st1`` and ``sc1``: 125-16,384\n + ``standard``: 1-1,024", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SizeInGiB is a write-only property. }, /*END ATTRIBUTE*/ // Property: SnapshotId "snapshot_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The snapshot that Amazon ECS uses to create the volume. You must specify either a snapshot ID or a volume size. This parameter maps 1:1 with the ``SnapshotId`` parameter of the [CreateVolume API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) in the *Amazon EC2 API Reference*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SnapshotId is a write-only property. }, /*END ATTRIBUTE*/ // Property: TagSpecifications "tag_specifications": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1613,28 +1500,19 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { "propagate_tags": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Determines whether to propagate the tags from the task definition to \u2028the Amazon EBS volume. Tags can only propagate to a ``SERVICE`` specified in \u2028``ServiceVolumeConfiguration``. If no value is specified, the tags aren't \u2028propagated.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "SERVICE", "TASK_DEFINITION", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PropagateTags is a write-only property. }, /*END ATTRIBUTE*/ // Property: ResourceType "resource_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of volume resource.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // ResourceType is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tags "tags": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1644,84 +1522,53 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { "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.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The optional part of a key-value pair that make up a tag. A ``value`` acts as a descriptor within a tag category (key).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The tags applied to this Amazon EBS volume. ``AmazonECSCreated`` and ``AmazonECSManaged`` are reserved tags that can't be used.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Tags is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The tags to apply to the volume. Amazon ECS applies service-managed tags by default. This parameter maps 1:1 with the ``TagSpecifications.N`` parameter of the [CreateVolume API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) in the *Amazon EC2 API Reference*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TagSpecifications is a write-only property. }, /*END ATTRIBUTE*/ // Property: Throughput "throughput": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The throughput to provision for a volume, in MiB/s, with a maximum of 1,000 MiB/s. This parameter maps 1:1 with the ``Throughput`` parameter of the [CreateVolume API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) in the *Amazon EC2 API Reference*.\n This parameter is only supported for the ``gp3`` volume type.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Throughput is a write-only property. }, /*END ATTRIBUTE*/ // Property: VolumeType "volume_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The volume type. This parameter maps 1:1 with the ``VolumeType`` parameter of the [CreateVolume API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) in the *Amazon EC2 API Reference*. For more information, see [Amazon EBS volume types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volume-types.html) in the *Amazon EC2 User Guide*.\n The following are the supported volume types.\n + General Purpose SSD: ``gp2``|``gp3`` \n + Provisioned IOPS SSD: ``io1``|``io2`` \n + Throughput Optimized HDD: ``st1`` \n + Cold HDD: ``sc1`` \n + Magnetic: ``standard`` \n The magnetic volume type is not supported on Fargate.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // VolumeType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "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.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ManagedEBSVolume is a write-only property. }, /*END ATTRIBUTE*/ // 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.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Name is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The configuration for a volume specified in the task definition as a volume that is configured at launch time. Currently, the only supported volume type is an Amazon EBS volume.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // VolumeConfigurations is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/ecs/task_definition_resource_gen.go b/internal/aws/ecs/task_definition_resource_gen.go index 4f9a62f457..dfa4e8f76e 100644 --- a/internal/aws/ecs/task_definition_resource_gen.go +++ b/internal/aws/ecs/task_definition_resource_gen.go @@ -703,6 +703,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Cpu @@ -712,6 +713,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CredentialSpecs @@ -723,6 +725,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DependsOn @@ -736,6 +739,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContainerName @@ -745,6 +749,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -755,6 +760,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DisableNetworking @@ -764,6 +770,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DnsSearchDomains @@ -775,6 +782,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DnsServers @@ -786,6 +794,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DockerLabels @@ -797,6 +806,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ mapplanmodifier.UseStateForUnknown(), + mapplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DockerSecurityOptions @@ -808,6 +818,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EntryPoint @@ -818,6 +829,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Environment @@ -831,6 +843,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -840,6 +853,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -849,6 +863,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ setplanmodifier.UseStateForUnknown(), + setplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EnvironmentFiles @@ -862,6 +877,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -871,6 +887,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -880,6 +897,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Essential @@ -889,6 +907,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ExtraHosts @@ -902,6 +921,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IpAddress @@ -911,6 +931,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -921,6 +942,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FirelensConfiguration @@ -935,6 +957,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ mapplanmodifier.UseStateForUnknown(), + mapplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type @@ -944,6 +967,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -952,6 +976,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HealthCheck @@ -965,6 +990,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Interval @@ -974,6 +1000,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Retries @@ -983,6 +1010,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StartPeriod @@ -992,6 +1020,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Timeout @@ -1001,6 +1030,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1009,6 +1039,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Hostname @@ -1018,6 +1049,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Image @@ -1030,6 +1062,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Interactive @@ -1039,6 +1072,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Links @@ -1049,6 +1083,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ setplanmodifier.UseStateForUnknown(), + setplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LinuxParameters @@ -1066,6 +1101,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Drop @@ -1077,6 +1113,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1085,6 +1122,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Devices @@ -1098,6 +1136,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HostPath @@ -1107,6 +1146,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Permissions @@ -1117,6 +1157,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ setplanmodifier.UseStateForUnknown(), + setplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1127,6 +1168,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InitProcessEnabled @@ -1136,6 +1178,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaxSwap @@ -1145,6 +1188,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SharedMemorySize @@ -1154,6 +1198,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Swappiness @@ -1163,6 +1208,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Tmpfs @@ -1176,6 +1222,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MountOptions @@ -1187,6 +1234,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Size @@ -1199,6 +1247,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1209,6 +1258,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1217,6 +1267,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LogConfiguration @@ -1232,6 +1283,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Options @@ -1243,6 +1295,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ mapplanmodifier.UseStateForUnknown(), + mapplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecretOptions @@ -1259,6 +1312,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ValueFrom @@ -1271,6 +1325,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1281,6 +1336,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1289,6 +1345,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Memory @@ -1298,6 +1355,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MemoryReservation @@ -1307,6 +1365,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MountPoints @@ -1320,6 +1379,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ReadOnly @@ -1329,6 +1389,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceVolume @@ -1338,6 +1399,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1350,6 +1412,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name @@ -1362,6 +1425,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PortMappings @@ -1382,6 +1446,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContainerPort @@ -1391,6 +1456,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContainerPortRange @@ -1400,6 +1466,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HostPort @@ -1409,6 +1476,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name @@ -1418,6 +1486,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Protocol @@ -1427,6 +1496,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1436,6 +1506,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ setplanmodifier.UseStateForUnknown(), + setplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Privileged @@ -1445,6 +1516,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PseudoTerminal @@ -1454,6 +1526,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ReadonlyRootFilesystem @@ -1463,6 +1536,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RepositoryCredentials @@ -1475,6 +1549,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1483,6 +1558,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceRequirements @@ -1499,6 +1575,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -1511,6 +1588,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1521,6 +1599,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RestartPolicy @@ -1533,6 +1612,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IgnoredExitCodes @@ -1544,6 +1624,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RestartAttemptPeriod @@ -1553,6 +1634,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1561,6 +1643,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Secrets @@ -1577,6 +1660,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ValueFrom @@ -1589,6 +1673,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1599,6 +1684,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StartTimeout @@ -1608,6 +1694,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StopTimeout @@ -1617,6 +1704,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SystemControls @@ -1630,6 +1718,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -1639,6 +1728,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1649,6 +1739,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Ulimits @@ -1665,6 +1756,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name @@ -1677,6 +1769,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SoftLimit @@ -1689,6 +1782,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1699,6 +1793,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: User @@ -1708,6 +1803,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VolumesFrom @@ -1721,6 +1817,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceContainer @@ -1730,6 +1827,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1739,6 +1837,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ setplanmodifier.UseStateForUnknown(), + setplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WorkingDirectory @@ -1748,6 +1847,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1799,6 +1899,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1876,6 +1977,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DeviceType @@ -1885,6 +1987,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1998,6 +2101,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type @@ -2010,6 +2114,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2076,6 +2181,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProxyConfigurationProperties @@ -2089,6 +2195,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -2098,6 +2205,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2107,6 +2215,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ setplanmodifier.UseStateForUnknown(), + setplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type @@ -2116,6 +2225,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2176,6 +2286,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OperatingSystemFamily @@ -2185,6 +2296,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2451,6 +2563,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DockerVolumeConfiguration @@ -2463,6 +2576,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Driver @@ -2472,6 +2586,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DriverOpts @@ -2483,6 +2598,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ mapplanmodifier.UseStateForUnknown(), + mapplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Labels @@ -2494,6 +2610,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ mapplanmodifier.UseStateForUnknown(), + mapplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Scope @@ -2503,6 +2620,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2511,6 +2629,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EFSVolumeConfiguration @@ -2526,6 +2645,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IAM @@ -2541,6 +2661,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2549,6 +2670,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FilesystemId @@ -2561,6 +2683,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RootDirectory @@ -2570,6 +2693,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TransitEncryption @@ -2585,6 +2709,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TransitEncryptionPort @@ -2594,6 +2719,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2602,6 +2728,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FSxWindowsFileServerVolumeConfiguration @@ -2620,6 +2747,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Domain @@ -2632,6 +2760,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2640,6 +2769,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FileSystemId @@ -2652,6 +2782,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RootDirectory @@ -2664,6 +2795,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2672,6 +2804,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Host @@ -2684,6 +2817,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2692,6 +2826,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name @@ -2701,6 +2836,7 @@ func taskDefinitionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/ecs/task_set_resource_gen.go b/internal/aws/ecs/task_set_resource_gen.go index 363ca2efa5..86028a819d 100644 --- a/internal/aws/ecs/task_set_resource_gen.go +++ b/internal/aws/ecs/task_set_resource_gen.go @@ -139,6 +139,7 @@ func taskSetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContainerPort @@ -148,6 +149,7 @@ func taskSetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TargetGroupArn @@ -157,6 +159,7 @@ func taskSetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -230,6 +233,7 @@ func taskSetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecurityGroups @@ -243,6 +247,7 @@ func taskSetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Subnets @@ -257,6 +262,7 @@ func taskSetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -265,6 +271,7 @@ func taskSetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -404,6 +411,7 @@ func taskSetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContainerPort @@ -413,6 +421,7 @@ func taskSetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Port @@ -422,6 +431,7 @@ func taskSetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RegistryArn @@ -431,6 +441,7 @@ func taskSetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/efs/access_point_resource_gen.go b/internal/aws/efs/access_point_resource_gen.go index 81560e4df4..9e18038148 100644 --- a/internal/aws/efs/access_point_resource_gen.go +++ b/internal/aws/efs/access_point_resource_gen.go @@ -287,6 +287,7 @@ func accessPointResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OwnerUid @@ -299,6 +300,7 @@ func accessPointResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Permissions @@ -312,6 +314,7 @@ func accessPointResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/efs/file_system_resource_gen.go b/internal/aws/efs/file_system_resource_gen.go index fe3f6c9f05..6d86f0fd9f 100644 --- a/internal/aws/efs/file_system_resource_gen.go +++ b/internal/aws/efs/file_system_resource_gen.go @@ -118,10 +118,6 @@ func fileSystemResource(ctx context.Context) (resource.Resource, error) { "bypass_policy_lockout_safety_check": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "(Optional) A boolean that specifies whether or not to bypass the ``FileSystemPolicy`` lockout safety check. The lockout safety check determines whether the policy in the request will lock out, or prevent, the IAM principal that is making the request from making future ``PutFileSystemPolicy`` requests on this file system. Set ``BypassPolicyLockoutSafetyCheck`` to ``True`` only when you intend to prevent the IAM principal that is making the request from making subsequent ``PutFileSystemPolicy`` requests on this file system. The default value is ``False``.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // BypassPolicyLockoutSafetyCheck is a write-only property. }, /*END ATTRIBUTE*/ // Property: Encrypted diff --git a/internal/aws/eks/addon_resource_gen.go b/internal/aws/eks/addon_resource_gen.go index 96e116e40d..3df2ebf116 100644 --- a/internal/aws/eks/addon_resource_gen.go +++ b/internal/aws/eks/addon_resource_gen.go @@ -12,7 +12,6 @@ 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/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" @@ -153,36 +152,22 @@ 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.", - Optional: true, - Computed: true, + Required: 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*/ + // RoleArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: ServiceAccount "service_account": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Kubernetes service account that the pod identity association is created for.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // ServiceAccount is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "An array of pod identities to apply to this add-on.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // PodIdentityAssociations is a write-only property. }, /*END ATTRIBUTE*/ // Property: PreserveOnDelete @@ -195,10 +180,6 @@ func addonResource(ctx context.Context) (resource.Resource, error) { "preserve_on_delete": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "PreserveOnDelete parameter value", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // PreserveOnDelete is a write-only property. }, /*END ATTRIBUTE*/ // Property: ResolveConflicts @@ -217,7 +198,6 @@ func addonResource(ctx context.Context) (resource.Resource, error) { "resolve_conflicts": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Resolve parameter value conflicts", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), stringvalidator.OneOf( @@ -226,9 +206,6 @@ func addonResource(ctx context.Context) (resource.Resource, error) { "PRESERVE", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ResolveConflicts is a write-only property. }, /*END ATTRIBUTE*/ // Property: ServiceAccountRoleArn diff --git a/internal/aws/eks/cluster_resource_gen.go b/internal/aws/eks/cluster_resource_gen.go index 2038fa96eb..d29172185a 100644 --- a/internal/aws/eks/cluster_resource_gen.go +++ b/internal/aws/eks/cluster_resource_gen.go @@ -198,6 +198,7 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -206,6 +207,7 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Resources @@ -217,6 +219,7 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -312,6 +315,7 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ServiceIpv4Cidr @@ -321,6 +325,7 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ServiceIpv6Cidr @@ -329,6 +334,7 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplace(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -520,6 +526,7 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ControlPlanePlacement @@ -532,6 +539,7 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -540,6 +548,7 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OutpostArns @@ -554,6 +563,7 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/eks/fargate_profile_resource_gen.go b/internal/aws/eks/fargate_profile_resource_gen.go index 562ad694d3..e857f8d92a 100644 --- a/internal/aws/eks/fargate_profile_resource_gen.go +++ b/internal/aws/eks/fargate_profile_resource_gen.go @@ -162,6 +162,7 @@ func fargateProfileResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -175,6 +176,7 @@ func fargateProfileResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -183,6 +185,7 @@ func fargateProfileResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Namespace @@ -191,6 +194,9 @@ func fargateProfileResource(ctx context.Context) (resource.Resource, error) { Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtLeast(1), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*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 47a98d908d..b6f18105e1 100644 --- a/internal/aws/eks/identity_provider_config_resource_gen.go +++ b/internal/aws/eks/identity_provider_config_resource_gen.go @@ -151,6 +151,7 @@ func identityProviderConfigResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: GroupsClaim @@ -160,6 +161,7 @@ func identityProviderConfigResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: GroupsPrefix @@ -169,6 +171,7 @@ func identityProviderConfigResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IssuerUrl @@ -181,6 +184,7 @@ func identityProviderConfigResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RequiredClaims @@ -198,6 +202,7 @@ func identityProviderConfigResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -211,6 +216,7 @@ func identityProviderConfigResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -219,6 +225,7 @@ func identityProviderConfigResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ setplanmodifier.UseStateForUnknown(), + setplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: UsernameClaim @@ -228,6 +235,7 @@ func identityProviderConfigResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: UsernamePrefix @@ -237,6 +245,7 @@ func identityProviderConfigResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/eks/nodegroup_resource_gen.go b/internal/aws/eks/nodegroup_resource_gen.go index 3ef9596b59..0540d7b77f 100644 --- a/internal/aws/eks/nodegroup_resource_gen.go +++ b/internal/aws/eks/nodegroup_resource_gen.go @@ -340,6 +340,7 @@ func nodegroupResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceSecurityGroups @@ -350,6 +351,7 @@ func nodegroupResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/elasticache/global_replication_group_resource_gen.go b/internal/aws/elasticache/global_replication_group_resource_gen.go index 37ed3f7af4..7dda082fa8 100644 --- a/internal/aws/elasticache/global_replication_group_resource_gen.go +++ b/internal/aws/elasticache/global_replication_group_resource_gen.go @@ -12,9 +12,6 @@ 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/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" @@ -41,10 +38,6 @@ func globalReplicationGroupResource(ctx context.Context) (resource.Resource, err "automatic_failover_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "AutomaticFailoverEnabled", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AutomaticFailoverEnabled is a write-only property. }, /*END ATTRIBUTE*/ // Property: CacheNodeType @@ -57,10 +50,6 @@ func globalReplicationGroupResource(ctx context.Context) (resource.Resource, err "cache_node_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The cache node type of the Global Datastore", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // CacheNodeType is a write-only property. }, /*END ATTRIBUTE*/ // Property: CacheParameterGroupName @@ -88,10 +77,6 @@ func globalReplicationGroupResource(ctx context.Context) (resource.Resource, err "engine_version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The engine version of the Global Datastore.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // EngineVersion is a write-only property. }, /*END ATTRIBUTE*/ // Property: GlobalNodeGroupCount @@ -104,10 +89,6 @@ func globalReplicationGroupResource(ctx context.Context) (resource.Resource, err "global_node_group_count": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Indicates the number of node groups in the Global Datastore.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // GlobalNodeGroupCount is a write-only property. }, /*END ATTRIBUTE*/ // Property: GlobalReplicationGroupDescription @@ -149,10 +130,6 @@ func globalReplicationGroupResource(ctx context.Context) (resource.Resource, err "global_replication_group_id_suffix": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The suffix name of a Global Datastore. Amazon ElastiCache automatically applies a prefix to the Global Datastore ID when it is created. Each AWS Region has its own prefix. ", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // GlobalReplicationGroupIdSuffix is a write-only property. }, /*END ATTRIBUTE*/ // Property: Members @@ -283,19 +260,13 @@ func globalReplicationGroupResource(ctx context.Context) (resource.Resource, err "replication_group_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The replication group id of the Global Datastore member.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ReplicationGroupId is a write-only property. }, /*END ATTRIBUTE*/ // Property: ReplicationGroupRegion "replication_group_region": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The AWS region of the Global Datastore member.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ReplicationGroupRegion is a write-only property. }, /*END ATTRIBUTE*/ // Property: ReshardingConfigurations "resharding_configurations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -305,44 +276,31 @@ func globalReplicationGroupResource(ctx context.Context) (resource.Resource, err "node_group_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Unique identifier for the Node Group. This is either auto-generated by ElastiCache (4-digit id) or a user supplied id.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // NodeGroupId is a write-only property. }, /*END ATTRIBUTE*/ // Property: PreferredAvailabilityZones "preferred_availability_zones": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "A list of preferred availability zones for the nodes of new node groups.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PreferredAvailabilityZones is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of PreferredAvailabilityZones objects that specifies the configuration of a node group in the resharded cluster. ", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ReshardingConfigurations is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Describes the replication group IDs, the AWS regions where they are stored and the shard configuration for each that comprise the Global Datastore ", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // RegionalConfigurations is a write-only property. }, /*END ATTRIBUTE*/ // Property: Status diff --git a/internal/aws/elasticache/serverless_cache_resource_gen.go b/internal/aws/elasticache/serverless_cache_resource_gen.go index dc460ce2eb..72daac0a98 100644 --- a/internal/aws/elasticache/serverless_cache_resource_gen.go +++ b/internal/aws/elasticache/serverless_cache_resource_gen.go @@ -291,10 +291,6 @@ func serverlessCacheResource(ctx context.Context) (resource.Resource, error) { "final_snapshot_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The final snapshot name which is taken before Serverless Cache is deleted.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // FinalSnapshotName is a write-only property. }, /*END ATTRIBUTE*/ // Property: FullEngineVersion diff --git a/internal/aws/elasticache/user_resource_gen.go b/internal/aws/elasticache/user_resource_gen.go index c861a69f58..7c2175a434 100644 --- a/internal/aws/elasticache/user_resource_gen.go +++ b/internal/aws/elasticache/user_resource_gen.go @@ -14,9 +14,6 @@ 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" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" @@ -45,10 +42,6 @@ func userResource(ctx context.Context) (resource.Resource, error) { "access_string": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Access permissions string used for this user account.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AccessString is a write-only property. }, /*END ATTRIBUTE*/ // Property: Arn @@ -103,37 +96,26 @@ func userResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "Passwords used for this user account. You can create up to two passwords for each user.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Passwords is a write-only property. }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Authentication Type", - Optional: true, - Computed: true, + Required: 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*/ + // Type is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AuthenticationMode is a write-only property. }, /*END ATTRIBUTE*/ // Property: Engine @@ -168,10 +150,6 @@ func userResource(ctx context.Context) (resource.Resource, error) { "no_password_required": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates a password is not required for this user account.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // NoPasswordRequired is a write-only property. }, /*END ATTRIBUTE*/ // Property: Passwords @@ -191,13 +169,9 @@ func userResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "Passwords used for this user account. You can create up to two passwords for each user.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Passwords is a write-only property. }, /*END ATTRIBUTE*/ // Property: Status diff --git a/internal/aws/elasticbeanstalk/application_version_resource_gen.go b/internal/aws/elasticbeanstalk/application_version_resource_gen.go index a56c1bf40e..4b197f5c13 100644 --- a/internal/aws/elasticbeanstalk/application_version_resource_gen.go +++ b/internal/aws/elasticbeanstalk/application_version_resource_gen.go @@ -94,11 +94,17 @@ func applicationVersionResource(ctx context.Context) (resource.Resource, error) "s3_bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 bucket where the data is located.", Required: true, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Key "s3_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 key where the data is located.", Required: true, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The Amazon S3 bucket and key that identify the location of the source bundle for this version. ", diff --git a/internal/aws/elasticbeanstalk/configuration_template_resource_gen.go b/internal/aws/elasticbeanstalk/configuration_template_resource_gen.go index a3d31afdd7..6420008671 100644 --- a/internal/aws/elasticbeanstalk/configuration_template_resource_gen.go +++ b/internal/aws/elasticbeanstalk/configuration_template_resource_gen.go @@ -231,6 +231,7 @@ func configurationTemplateResource(ctx context.Context) (resource.Resource, erro }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ // ApplicationName is a write-only property. }, /*END ATTRIBUTE*/ @@ -244,6 +245,7 @@ func configurationTemplateResource(ctx context.Context) (resource.Resource, erro }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ // TemplateName is a write-only property. }, /*END ATTRIBUTE*/ diff --git a/internal/aws/elasticbeanstalk/environment_resource_gen.go b/internal/aws/elasticbeanstalk/environment_resource_gen.go index bb93ad61f2..9dfee060f4 100644 --- a/internal/aws/elasticbeanstalk/environment_resource_gen.go +++ b/internal/aws/elasticbeanstalk/environment_resource_gen.go @@ -157,53 +157,33 @@ 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.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Namespace is a write-only property. }, /*END ATTRIBUTE*/ // Property: OptionName "option_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the configuration option.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // OptionName is a write-only property. }, /*END ATTRIBUTE*/ // Property: ResourceName "resource_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A unique resource name for the option setting. Use it for a time–based scaling configuration option.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ResourceName is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The current value for the configuration option.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Key-value pairs defining configuration options for this environment, such as the instance type.", Optional: true, - Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // OptionSettings is a write-only property. }, /*END ATTRIBUTE*/ @@ -312,10 +292,6 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { "template_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the Elastic Beanstalk configuration template to use with the environment.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // TemplateName is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tier diff --git a/internal/aws/elasticloadbalancingv2/trust_store_resource_gen.go b/internal/aws/elasticloadbalancingv2/trust_store_resource_gen.go index 67b394aa6d..027ec4f327 100644 --- a/internal/aws/elasticloadbalancingv2/trust_store_resource_gen.go +++ b/internal/aws/elasticloadbalancingv2/trust_store_resource_gen.go @@ -38,10 +38,6 @@ func trustStoreResource(ctx context.Context) (resource.Resource, error) { "ca_certificates_bundle_s3_bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the S3 bucket to fetch the CA certificate bundle from.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // CaCertificatesBundleS3Bucket is a write-only property. }, /*END ATTRIBUTE*/ // Property: CaCertificatesBundleS3Key @@ -54,10 +50,6 @@ func trustStoreResource(ctx context.Context) (resource.Resource, error) { "ca_certificates_bundle_s3_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the S3 object to fetch the CA certificate bundle from.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // CaCertificatesBundleS3Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: CaCertificatesBundleS3ObjectVersion @@ -70,10 +62,6 @@ func trustStoreResource(ctx context.Context) (resource.Resource, error) { "ca_certificates_bundle_s3_object_version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The version of the S3 bucket that contains the CA certificate bundle.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // CaCertificatesBundleS3ObjectVersion is a write-only property. }, /*END ATTRIBUTE*/ // Property: Name diff --git a/internal/aws/elasticloadbalancingv2/trust_store_revocation_resource_gen.go b/internal/aws/elasticloadbalancingv2/trust_store_revocation_resource_gen.go index 3723ba9033..0f704fa079 100644 --- a/internal/aws/elasticloadbalancingv2/trust_store_revocation_resource_gen.go +++ b/internal/aws/elasticloadbalancingv2/trust_store_revocation_resource_gen.go @@ -62,7 +62,9 @@ func trustStoreRevocationResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // RevocationType is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3Bucket "s3_bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -70,7 +72,9 @@ func trustStoreRevocationResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // S3Bucket is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3Key "s3_key": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -78,7 +82,9 @@ func trustStoreRevocationResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // S3Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3ObjectVersion "s3_object_version": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -86,7 +92,9 @@ func trustStoreRevocationResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // S3ObjectVersion is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -218,13 +226,13 @@ func trustStoreRevocationResource(ctx context.Context) (resource.Resource, error "trust_store_revocations": "TrustStoreRevocations", }) + opts = opts.IsImmutableType(true) + opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/RevocationContents", }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) - opts = opts.WithUpdateTimeoutInMinutes(0) - v, err := generic.NewResource(ctx, opts...) if err != nil { diff --git a/internal/aws/emrcontainers/virtual_cluster_resource_gen.go b/internal/aws/emrcontainers/virtual_cluster_resource_gen.go index 34b14f0694..ae685c4410 100644 --- a/internal/aws/emrcontainers/virtual_cluster_resource_gen.go +++ b/internal/aws/emrcontainers/virtual_cluster_resource_gen.go @@ -102,6 +102,9 @@ func virtualClusterResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthBetween(1, 100), stringvalidator.RegexMatches(regexp.MustCompile("^[0-9A-Za-z][A-Za-z0-9\\-_]*"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Info "info": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -116,17 +119,29 @@ func virtualClusterResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthBetween(1, 63), stringvalidator.RegexMatches(regexp.MustCompile("[a-z0-9]([-a-z0-9]*[a-z0-9])?"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of the container provider", Required: true, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Container provider of the virtual cluster.", diff --git a/internal/aws/events/connection_resource_gen.go b/internal/aws/events/connection_resource_gen.go index 9307f91b0c..3f66ed1d2b 100644 --- a/internal/aws/events/connection_resource_gen.go +++ b/internal/aws/events/connection_resource_gen.go @@ -13,14 +13,11 @@ 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/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/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() { @@ -300,64 +297,34 @@ func connectionResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ApiKeyName "api_key_name": 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*/ + Required: true, + // ApiKeyName is a write-only property. }, /*END ATTRIBUTE*/ // Property: ApiKeyValue "api_key_value": 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*/ + Required: true, + // ApiKeyValue is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ApiKeyAuthParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: BasicAuthParameters "basic_auth_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Password "password": 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*/ + Required: true, + // Password is a write-only property. }, /*END ATTRIBUTE*/ // Property: Username "username": 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*/ + Required: true, + // Username is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BasicAuthParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: InvocationHttpParameters "invocation_http_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -374,36 +341,22 @@ func connectionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // IsValueSecret is a write-only property. }, /*END ATTRIBUTE*/ // Property: Key "key": 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*/ + Required: true, + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": 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*/ + Required: true, + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BodyParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: HeaderParameters "header_parameters": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -417,36 +370,22 @@ func connectionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // IsValueSecret is a write-only property. }, /*END ATTRIBUTE*/ // Property: Key "key": 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*/ + Required: true, + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": 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*/ + Required: true, + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // HeaderParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: QueryStringParameters "query_string_parameters": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -460,109 +399,66 @@ func connectionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // IsValueSecret is a write-only property. }, /*END ATTRIBUTE*/ // Property: Key "key": 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*/ + Required: true, + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": 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*/ + Required: true, + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // QueryStringParameters is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // InvocationHttpParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: OAuthParameters "o_auth_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: AuthorizationEndpoint "authorization_endpoint": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // AuthorizationEndpoint is a write-only property. }, /*END ATTRIBUTE*/ // Property: ClientParameters "client_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ClientID "client_id": 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*/ + Required: true, + // ClientID is a write-only property. }, /*END ATTRIBUTE*/ // Property: ClientSecret "client_secret": 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*/ + Required: true, + // ClientSecret is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // ClientParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: HttpMethod "http_method": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "GET", "POST", "PUT", ), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // HttpMethod is a write-only property. }, /*END ATTRIBUTE*/ // Property: OAuthHttpParameters "o_auth_http_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -579,36 +475,22 @@ func connectionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // IsValueSecret is a write-only property. }, /*END ATTRIBUTE*/ // Property: Key "key": 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*/ + Required: true, + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": 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*/ + Required: true, + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BodyParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: HeaderParameters "header_parameters": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -622,36 +504,22 @@ func connectionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // IsValueSecret is a write-only property. }, /*END ATTRIBUTE*/ // Property: Key "key": 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*/ + Required: true, + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": 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*/ + Required: true, + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // HeaderParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: QueryStringParameters "query_string_parameters": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -665,57 +533,33 @@ func connectionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // IsValueSecret is a write-only property. }, /*END ATTRIBUTE*/ // Property: Key "key": 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*/ + Required: true, + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": 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*/ + Required: true, + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // QueryStringParameters is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // OAuthHttpParameters is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // OAuthParameters is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AuthParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: AuthorizationType diff --git a/internal/aws/events/event_bus_resource_gen.go b/internal/aws/events/event_bus_resource_gen.go index 80904208dc..ad2dcb6cdf 100644 --- a/internal/aws/events/event_bus_resource_gen.go +++ b/internal/aws/events/event_bus_resource_gen.go @@ -98,10 +98,6 @@ func eventBusResource(ctx context.Context) (resource.Resource, error) { "event_source_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // EventSourceName is a write-only property. }, /*END ATTRIBUTE*/ // Property: KmsKeyIdentifier diff --git a/internal/aws/finspace/environment_resource_gen.go b/internal/aws/finspace/environment_resource_gen.go index 45020f9226..298f955ce9 100644 --- a/internal/aws/finspace/environment_resource_gen.go +++ b/internal/aws/finspace/environment_resource_gen.go @@ -252,6 +252,7 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AttributeMap @@ -268,7 +269,9 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -280,7 +283,9 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -290,6 +295,7 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ // AttributeMap is a write-only property. }, /*END ATTRIBUTE*/ @@ -304,6 +310,7 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FederationURN @@ -313,6 +320,7 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SamlMetadataDocument @@ -326,6 +334,7 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SamlMetadataURL @@ -338,6 +347,7 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -466,7 +476,9 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // EmailAddress is a write-only property. }, /*END ATTRIBUTE*/ // Property: FirstName "first_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -479,7 +491,9 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // FirstName is a write-only property. }, /*END ATTRIBUTE*/ // Property: LastName "last_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -492,7 +506,9 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // LastName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Parameters of the first Superuser for the FinSpace Environment", @@ -550,7 +566,9 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -563,7 +581,9 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*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 9b13f46d16..0f1cfb5a12 100644 --- a/internal/aws/fms/policy_resource_gen.go +++ b/internal/aws/fms/policy_resource_gen.go @@ -60,10 +60,6 @@ func policyResource(ctx context.Context) (resource.Resource, error) { // } "delete_all_policy_resources": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // DeleteAllPolicyResources is a write-only property. }, /*END ATTRIBUTE*/ // Property: ExcludeMap diff --git a/internal/aws/gamelift/build_resource_gen.go b/internal/aws/gamelift/build_resource_gen.go index 57caccedcb..7d195d4076 100644 --- a/internal/aws/gamelift/build_resource_gen.go +++ b/internal/aws/gamelift/build_resource_gen.go @@ -150,7 +150,9 @@ func buildResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Bucket is a write-only property. }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -162,7 +164,9 @@ func buildResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: ObjectVersion "object_version": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -171,7 +175,9 @@ func buildResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ObjectVersion is a write-only property. }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -183,7 +189,9 @@ func buildResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // RoleArn is a write-only property. }, /*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 d008264f59..069868c83d 100644 --- a/internal/aws/gamelift/container_group_definition_resource_gen.go +++ b/internal/aws/gamelift/container_group_definition_resource_gen.go @@ -326,6 +326,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContainerName @@ -336,6 +337,9 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9-]+$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Cpu "cpu": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -347,6 +351,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DependsOn @@ -369,6 +374,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContainerName @@ -383,6 +389,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -396,6 +403,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EntryPoint @@ -412,6 +420,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Environment @@ -430,6 +439,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -444,6 +454,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -456,6 +467,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ setplanmodifier.UseStateForUnknown(), + setplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Essential @@ -465,6 +477,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HealthCheck @@ -486,6 +499,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Interval @@ -498,6 +512,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Retries @@ -510,6 +525,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StartPeriod @@ -522,6 +538,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Timeout @@ -534,6 +551,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -542,6 +560,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageUri @@ -552,6 +571,9 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e stringvalidator.LengthBetween(1, 255), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9-_\\.@\\/:]+$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MemoryLimits "memory_limits": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -566,6 +588,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SoftLimit @@ -578,6 +601,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -586,6 +610,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PortConfiguration @@ -606,6 +631,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Protocol @@ -622,6 +648,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ToPort @@ -635,6 +662,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -648,6 +676,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ setplanmodifier.UseStateForUnknown(), + setplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -656,6 +685,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResolvedImageDigest @@ -668,6 +698,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WorkingDirectory @@ -681,6 +712,7 @@ func containerGroupDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/gamelift/fleet_resource_gen.go b/internal/aws/gamelift/fleet_resource_gen.go index 14ae351c2d..c91e44aeb7 100644 --- a/internal/aws/gamelift/fleet_resource_gen.go +++ b/internal/aws/gamelift/fleet_resource_gen.go @@ -160,6 +160,7 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -284,6 +285,7 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ToPort @@ -297,6 +299,7 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -308,6 +311,7 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContainerGroupDefinitionNames @@ -327,6 +331,7 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContainerGroupsPerInstance @@ -342,6 +347,7 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaxReplicaContainerGroupsPerInstance @@ -350,6 +356,7 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplace(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -358,6 +365,7 @@ func fleetResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/gamelift/game_server_group_resource_gen.go b/internal/aws/gamelift/game_server_group_resource_gen.go index 1954941000..2305c5593d 100644 --- a/internal/aws/gamelift/game_server_group_resource_gen.go +++ b/internal/aws/gamelift/game_server_group_resource_gen.go @@ -14,16 +14,12 @@ 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" "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() { @@ -88,10 +84,7 @@ func gameServerGroupResource(ctx context.Context) (resource.Resource, error) { "estimated_instance_warmup": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "Length of time, in seconds, it takes for a new instance to start new game server processes and register with GameLift FleetIQ.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ - float64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EstimatedInstanceWarmup is a write-only property. }, /*END ATTRIBUTE*/ // Property: TargetTrackingConfiguration "target_tracking_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -99,33 +92,17 @@ 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.", - Optional: true, - Computed: true, - Validators: []validator.Float64{ /*START VALIDATORS*/ - fwvalidators.NotNullFloat64(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ - float64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // TargetValue is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Settings for a target-based scaling policy applied to Auto Scaling group.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // TargetTrackingConfiguration is a write-only property. }, /*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.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AutoScalingPolicy is a write-only property. }, /*END ATTRIBUTE*/ // Property: BalancingStrategy @@ -170,7 +147,6 @@ func gameServerGroupResource(ctx context.Context) (resource.Resource, error) { "delete_option": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of delete to perform.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "SAFE_DELETE", @@ -178,9 +154,6 @@ func gameServerGroupResource(ctx context.Context) (resource.Resource, error) { "RETAIN", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // DeleteOption is a write-only property. }, /*END ATTRIBUTE*/ // Property: GameServerGroupArn @@ -328,36 +301,23 @@ func gameServerGroupResource(ctx context.Context) (resource.Resource, error) { "launch_template_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A unique identifier for an existing EC2 launch template.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LaunchTemplateId is a write-only property. }, /*END ATTRIBUTE*/ // Property: LaunchTemplateName "launch_template_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A readable identifier for an existing EC2 launch template.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LaunchTemplateName is a write-only property. }, /*END ATTRIBUTE*/ // Property: Version "version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The version of the EC2 launch template to use.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Version is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The EC2 launch template that contains configuration settings and game server code to be deployed to all instances in the game server group. 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.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // LaunchTemplate is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaxSize @@ -371,13 +331,9 @@ func gameServerGroupResource(ctx context.Context) (resource.Resource, error) { "max_size": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum number of instances allowed in the EC2 Auto Scaling group. 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.", Optional: true, - Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.AtLeast(1.000000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ - float64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // MaxSize is a write-only property. }, /*END ATTRIBUTE*/ // Property: MinSize @@ -391,13 +347,9 @@ func gameServerGroupResource(ctx context.Context) (resource.Resource, error) { "min_size": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "The minimum number of instances allowed in the EC2 Auto Scaling group. 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.", Optional: true, - Computed: true, Validators: []validator.Float64{ /*START VALIDATORS*/ float64validator.AtLeast(0.000000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ - float64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // MinSize is a write-only property. }, /*END ATTRIBUTE*/ // Property: RoleArn @@ -449,31 +401,23 @@ func gameServerGroupResource(ctx context.Context) (resource.Resource, error) { "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key for a developer-defined key:value pair for tagging an AWS resource.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value for a developer-defined key:value pair for tagging an AWS resource.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of labels to assign to the new game server group resource. Updating game server group tags with CloudFormation will not take effect. Please update this property using AWS GameLift APIs instead.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 200), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // Tags is a write-only property. }, /*END ATTRIBUTE*/ @@ -497,7 +441,6 @@ func gameServerGroupResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "A list of virtual private cloud (VPC) subnets to use with instances in the game server group. 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.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 20), listvalidator.ValueStringsAre( @@ -507,7 +450,6 @@ func gameServerGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // VpcSubnets is a write-only property. }, /*END ATTRIBUTE*/ diff --git a/internal/aws/glue/schema_resource_gen.go b/internal/aws/glue/schema_resource_gen.go index 3c040b9a2e..ce311258a1 100644 --- a/internal/aws/glue/schema_resource_gen.go +++ b/internal/aws/glue/schema_resource_gen.go @@ -246,6 +246,7 @@ func schemaResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name @@ -258,6 +259,7 @@ func schemaResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/glue/schema_version_resource_gen.go b/internal/aws/glue/schema_version_resource_gen.go index f571a4a06c..0b2e9a6304 100644 --- a/internal/aws/glue/schema_version_resource_gen.go +++ b/internal/aws/glue/schema_version_resource_gen.go @@ -67,6 +67,7 @@ func schemaVersionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SchemaArn @@ -79,6 +80,7 @@ func schemaVersionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SchemaName @@ -91,6 +93,7 @@ func schemaVersionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -164,9 +167,9 @@ func schemaVersionResource(ctx context.Context) (resource.Resource, error) { "version_id": "VersionId", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/glue/trigger_resource_gen.go b/internal/aws/glue/trigger_resource_gen.go index 04fc65608d..785686aebb 100644 --- a/internal/aws/glue/trigger_resource_gen.go +++ b/internal/aws/glue/trigger_resource_gen.go @@ -11,7 +11,6 @@ import ( "github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes" "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" @@ -382,10 +381,6 @@ func triggerResource(ctx context.Context) (resource.Resource, error) { "start_on_creation": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Set to true to start SCHEDULED and CONDITIONAL triggers when created. True is not supported for ON_DEMAND triggers.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // StartOnCreation is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tags diff --git a/internal/aws/greengrassv2/component_version_resource_gen.go b/internal/aws/greengrassv2/component_version_resource_gen.go index 7a691eb813..0beb975a49 100644 --- a/internal/aws/greengrassv2/component_version_resource_gen.go +++ b/internal/aws/greengrassv2/component_version_resource_gen.go @@ -307,7 +307,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DependencyType is a write-only property. }, /*END ATTRIBUTE*/ // Property: VersionRequirement "version_requirement": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -315,7 +317,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // VersionRequirement is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -323,7 +327,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ mapplanmodifier.UseStateForUnknown(), + mapplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ComponentDependencies is a write-only property. }, /*END ATTRIBUTE*/ // Property: ComponentLambdaParameters "component_lambda_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -336,7 +342,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ mapplanmodifier.UseStateForUnknown(), + mapplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // EnvironmentVariables is a write-only property. }, /*END ATTRIBUTE*/ // Property: EventSources "event_sources": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -348,7 +356,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Topic is a write-only property. }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -362,7 +372,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Type is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -371,7 +383,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // EventSources is a write-only property. }, /*END ATTRIBUTE*/ // Property: ExecArgs "exec_args": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -380,7 +394,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ExecArgs is a write-only property. }, /*END ATTRIBUTE*/ // Property: InputPayloadEncodingType "input_payload_encoding_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -394,7 +410,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // InputPayloadEncodingType is a write-only property. }, /*END ATTRIBUTE*/ // Property: LinuxProcessParams "linux_process_params": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -412,7 +430,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // AddGroupOwner is a write-only property. }, /*END ATTRIBUTE*/ // Property: Path "path": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -420,7 +440,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Path is a write-only property. }, /*END ATTRIBUTE*/ // Property: Permission "permission": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -434,7 +456,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Permission is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -443,7 +467,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Devices is a write-only property. }, /*END ATTRIBUTE*/ // Property: MemorySizeInKB "memory_size_in_kb": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -451,7 +477,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // MemorySizeInKB is a write-only property. }, /*END ATTRIBUTE*/ // Property: MountROSysfs "mount_ro_sysfs": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -459,7 +487,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // MountROSysfs is a write-only property. }, /*END ATTRIBUTE*/ // Property: Volumes "volumes": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -471,7 +501,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // AddGroupOwner is a write-only property. }, /*END ATTRIBUTE*/ // Property: DestinationPath "destination_path": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -479,7 +511,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DestinationPath is a write-only property. }, /*END ATTRIBUTE*/ // Property: Permission "permission": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -493,7 +527,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Permission is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourcePath "source_path": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -501,7 +537,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // SourcePath is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -510,14 +548,18 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Volumes is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ContainerParams is a write-only property. }, /*END ATTRIBUTE*/ // Property: IsolationMode "isolation_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -531,14 +573,18 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // IsolationMode is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // LinuxProcessParams is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaxIdleTimeInSeconds "max_idle_time_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -546,7 +592,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // MaxIdleTimeInSeconds is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaxInstancesCount "max_instances_count": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -554,7 +602,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // MaxInstancesCount is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaxQueueSize "max_queue_size": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -562,7 +612,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // MaxQueueSize is a write-only property. }, /*END ATTRIBUTE*/ // Property: Pinned "pinned": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -570,7 +622,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Pinned is a write-only property. }, /*END ATTRIBUTE*/ // Property: StatusTimeoutInSeconds "status_timeout_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -578,7 +632,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // StatusTimeoutInSeconds is a write-only property. }, /*END ATTRIBUTE*/ // Property: TimeoutInSeconds "timeout_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -586,14 +642,18 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // TimeoutInSeconds is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ComponentLambdaParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: ComponentName "component_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -601,7 +661,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ComponentName is a write-only property. }, /*END ATTRIBUTE*/ // Property: ComponentPlatforms "component_platforms": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -615,7 +677,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ mapplanmodifier.UseStateForUnknown(), + mapplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Attributes is a write-only property. }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -623,7 +687,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -632,7 +698,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ComponentPlatforms is a write-only property. }, /*END ATTRIBUTE*/ // Property: ComponentVersion "component_version": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -640,7 +708,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ComponentVersion is a write-only property. }, /*END ATTRIBUTE*/ // Property: LambdaArn "lambda_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -651,7 +721,9 @@ func componentVersionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // LambdaArn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/greengrassv2/deployment_resource_gen.go b/internal/aws/greengrassv2/deployment_resource_gen.go index 00c8d16533..448790b100 100644 --- a/internal/aws/greengrassv2/deployment_resource_gen.go +++ b/internal/aws/greengrassv2/deployment_resource_gen.go @@ -120,6 +120,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConfigurationUpdate @@ -134,6 +135,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Reset @@ -149,6 +151,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -156,6 +159,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RunWith @@ -170,6 +174,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SystemResourceLimits @@ -184,6 +189,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Memory @@ -195,6 +201,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -202,6 +209,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WindowsUser @@ -213,6 +221,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -220,6 +229,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -325,6 +335,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TimeoutInSeconds @@ -336,6 +347,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -343,6 +355,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConfigurationValidationPolicy @@ -357,6 +370,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -364,6 +378,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FailureHandlingPolicy @@ -378,6 +393,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -527,6 +543,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FailureType @@ -544,6 +561,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinNumberOfExecutedThings @@ -556,6 +574,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ThresholdPercentage @@ -568,6 +587,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -581,6 +601,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -588,6 +609,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: JobExecutionsRolloutConfig @@ -606,6 +628,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IncrementFactor @@ -618,6 +641,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RateIncreaseCriteria @@ -632,6 +656,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NumberOfSucceededThings @@ -643,6 +668,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -653,6 +679,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -660,6 +687,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaximumPerMinute @@ -671,6 +699,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -678,6 +707,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TimeoutConfig @@ -692,6 +722,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -699,6 +730,7 @@ func deploymentResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/guardduty/ip_set_resource_gen.go b/internal/aws/guardduty/ip_set_resource_gen.go index bc1e49e520..5f43a7af83 100644 --- a/internal/aws/guardduty/ip_set_resource_gen.go +++ b/internal/aws/guardduty/ip_set_resource_gen.go @@ -11,7 +11,6 @@ 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/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" @@ -37,10 +36,6 @@ func iPSetResource(ctx context.Context) (resource.Resource, error) { // } "activate": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Activate is a write-only property. }, /*END ATTRIBUTE*/ // Property: DetectorId diff --git a/internal/aws/guardduty/member_resource_gen.go b/internal/aws/guardduty/member_resource_gen.go index 0480339459..3b091e212f 100644 --- a/internal/aws/guardduty/member_resource_gen.go +++ b/internal/aws/guardduty/member_resource_gen.go @@ -10,7 +10,6 @@ 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/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-provider-awscc/internal/generic" @@ -47,10 +46,6 @@ func memberResource(ctx context.Context) (resource.Resource, error) { // } "disable_email_notification": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // DisableEmailNotification is a write-only property. }, /*END ATTRIBUTE*/ // Property: Email @@ -84,10 +79,6 @@ func memberResource(ctx context.Context) (resource.Resource, error) { // } "message": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Message is a write-only property. }, /*END ATTRIBUTE*/ // Property: Status diff --git a/internal/aws/guardduty/threat_intel_set_resource_gen.go b/internal/aws/guardduty/threat_intel_set_resource_gen.go index c2fe0d82ff..b56ff04595 100644 --- a/internal/aws/guardduty/threat_intel_set_resource_gen.go +++ b/internal/aws/guardduty/threat_intel_set_resource_gen.go @@ -11,7 +11,6 @@ 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/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" @@ -37,10 +36,6 @@ func threatIntelSetResource(ctx context.Context) (resource.Resource, error) { // } "activate": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Activate is a write-only property. }, /*END ATTRIBUTE*/ // Property: DetectorId diff --git a/internal/aws/healthlake/fhir_datastore_resource_gen.go b/internal/aws/healthlake/fhir_datastore_resource_gen.go index 2bdcd24767..fc58b15f0a 100644 --- a/internal/aws/healthlake/fhir_datastore_resource_gen.go +++ b/internal/aws/healthlake/fhir_datastore_resource_gen.go @@ -233,6 +233,7 @@ func fHIRDatastoreResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FineGrainedAuthorizationEnabled @@ -242,6 +243,7 @@ func fHIRDatastoreResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IdpLambdaArn @@ -255,6 +257,7 @@ func fHIRDatastoreResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Metadata @@ -264,6 +267,7 @@ func fHIRDatastoreResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -310,6 +314,7 @@ func fHIRDatastoreResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -378,6 +383,7 @@ func fHIRDatastoreResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KmsKeyId @@ -391,6 +397,7 @@ func fHIRDatastoreResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -402,6 +409,7 @@ func fHIRDatastoreResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/identitystore/group_membership_resource_gen.go b/internal/aws/identitystore/group_membership_resource_gen.go index 4fd694a20b..b4654bedaa 100644 --- a/internal/aws/identitystore/group_membership_resource_gen.go +++ b/internal/aws/identitystore/group_membership_resource_gen.go @@ -100,6 +100,9 @@ func groupMembershipResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthBetween(1, 47), stringvalidator.RegexMatches(regexp.MustCompile("^([0-9a-f]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "An object containing the identifier of a group member.", @@ -154,9 +157,9 @@ func groupMembershipResource(ctx context.Context) (resource.Resource, error) { "user_id": "UserId", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/imagebuilder/container_recipe_resource_gen.go b/internal/aws/imagebuilder/container_recipe_resource_gen.go index d3325de7b2..2d58eff7e3 100644 --- a/internal/aws/imagebuilder/container_recipe_resource_gen.go +++ b/internal/aws/imagebuilder/container_recipe_resource_gen.go @@ -104,6 +104,7 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Parameters @@ -120,6 +121,7 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -133,6 +135,7 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -143,6 +146,7 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -345,6 +349,7 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Ebs @@ -357,6 +362,7 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Encrypted @@ -366,6 +372,7 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Iops @@ -375,6 +382,7 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KmsKeyId @@ -384,6 +392,7 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SnapshotId @@ -393,6 +402,7 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Throughput @@ -402,6 +412,7 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VolumeSize @@ -411,6 +422,7 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VolumeType @@ -431,6 +443,7 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -439,6 +452,7 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NoDevice @@ -448,6 +462,7 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VirtualName @@ -457,6 +472,7 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -467,6 +483,7 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Image @@ -476,6 +493,7 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -616,6 +634,7 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Service @@ -630,6 +649,7 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -731,6 +751,8 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { "working_directory": "WorkingDirectory", }) + opts = opts.IsImmutableType(true) + opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/DockerfileTemplateData", "/properties/DockerfileTemplateUri", @@ -739,8 +761,6 @@ func containerRecipeResource(ctx context.Context) (resource.Resource, error) { }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) - opts = opts.WithUpdateTimeoutInMinutes(0) - v, err := generic.NewResource(ctx, opts...) if err != nil { diff --git a/internal/aws/imagebuilder/image_recipe_resource_gen.go b/internal/aws/imagebuilder/image_recipe_resource_gen.go index 6ab7875502..d4a48d8864 100644 --- a/internal/aws/imagebuilder/image_recipe_resource_gen.go +++ b/internal/aws/imagebuilder/image_recipe_resource_gen.go @@ -196,6 +196,7 @@ func imageRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Ebs @@ -208,6 +209,7 @@ func imageRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Encrypted @@ -217,6 +219,7 @@ func imageRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Iops @@ -226,6 +229,7 @@ func imageRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KmsKeyId @@ -235,6 +239,7 @@ func imageRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SnapshotId @@ -244,6 +249,7 @@ func imageRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Throughput @@ -253,6 +259,7 @@ func imageRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VolumeSize @@ -262,6 +269,7 @@ func imageRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VolumeType @@ -282,6 +290,7 @@ func imageRecipeResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -290,6 +299,7 @@ func imageRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NoDevice @@ -299,6 +309,7 @@ func imageRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VirtualName @@ -308,6 +319,7 @@ func imageRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -378,6 +390,7 @@ func imageRecipeResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Parameters @@ -394,6 +407,7 @@ func imageRecipeResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -407,6 +421,7 @@ func imageRecipeResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -417,6 +432,7 @@ func imageRecipeResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/imagebuilder/image_resource_gen.go b/internal/aws/imagebuilder/image_resource_gen.go index fee7f547c0..af146214b1 100644 --- a/internal/aws/imagebuilder/image_resource_gen.go +++ b/internal/aws/imagebuilder/image_resource_gen.go @@ -186,6 +186,7 @@ func imageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RepositoryName @@ -195,6 +196,7 @@ func imageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -203,6 +205,7 @@ func imageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageScanningEnabled @@ -212,6 +215,7 @@ func imageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -252,6 +256,7 @@ func imageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TimeoutMinutes @@ -264,6 +269,7 @@ func imageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -413,6 +419,7 @@ func imageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParallelGroup @@ -422,6 +429,7 @@ func imageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Parameters @@ -434,6 +442,7 @@ func imageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -443,6 +452,7 @@ func imageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -453,6 +463,7 @@ func imageResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WorkflowArn @@ -462,6 +473,7 @@ func imageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/inspector/assessment_template_resource_gen.go b/internal/aws/inspector/assessment_template_resource_gen.go index a8fa1c2076..1e1c2b73f5 100644 --- a/internal/aws/inspector/assessment_template_resource_gen.go +++ b/internal/aws/inspector/assessment_template_resource_gen.go @@ -131,6 +131,7 @@ func assessmentTemplateResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -142,6 +143,7 @@ func assessmentTemplateResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -185,9 +187,9 @@ func assessmentTemplateResource(ctx context.Context) (resource.Resource, error) "value": "Value", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/inspector/resource_group_resource_gen.go b/internal/aws/inspector/resource_group_resource_gen.go index 29fad6934a..23a2700041 100644 --- a/internal/aws/inspector/resource_group_resource_gen.go +++ b/internal/aws/inspector/resource_group_resource_gen.go @@ -66,10 +66,16 @@ func resourceGroupResource(ctx context.Context) (resource.Resource, error) { // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Required: true, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Required: true, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -106,9 +112,9 @@ func resourceGroupResource(ctx context.Context) (resource.Resource, error) { "value": "Value", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/internetmonitor/monitor_resource_gen.go b/internal/aws/internetmonitor/monitor_resource_gen.go index 3df5b44377..5ef278c38e 100644 --- a/internal/aws/internetmonitor/monitor_resource_gen.go +++ b/internal/aws/internetmonitor/monitor_resource_gen.go @@ -15,7 +15,6 @@ 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/listplanmodifier" @@ -247,10 +246,6 @@ func monitorResource(ctx context.Context) (resource.Resource, error) { // } "include_linked_accounts": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // IncludeLinkedAccounts is a write-only property. }, /*END ATTRIBUTE*/ // Property: InternetMeasurementsLogDelivery @@ -345,14 +340,10 @@ func monitorResource(ctx context.Context) (resource.Resource, error) { // } "linked_account_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(12, 12), stringvalidator.RegexMatches(regexp.MustCompile("^(\\d{12})$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // LinkedAccountId is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaxCityNetworksToMonitor @@ -497,7 +488,6 @@ func monitorResource(ctx context.Context) (resource.Resource, error) { "resources_to_add": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthBetween(20, 2048), @@ -505,7 +495,6 @@ func monitorResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // ResourcesToAdd is a write-only property. }, /*END ATTRIBUTE*/ @@ -524,7 +513,6 @@ func monitorResource(ctx context.Context) (resource.Resource, error) { "resources_to_remove": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthBetween(20, 2048), @@ -532,7 +520,6 @@ func monitorResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // ResourcesToRemove is a write-only property. }, /*END ATTRIBUTE*/ diff --git a/internal/aws/iot/ca_certificate_resource_gen.go b/internal/aws/iot/ca_certificate_resource_gen.go index 15ac0978f3..600ba06eb9 100644 --- a/internal/aws/iot/ca_certificate_resource_gen.go +++ b/internal/aws/iot/ca_certificate_resource_gen.go @@ -12,7 +12,6 @@ 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" @@ -201,10 +200,6 @@ func cACertificateResource(ctx context.Context) (resource.Resource, error) { // } "remove_auto_registration": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // RemoveAutoRegistration is a write-only property. }, /*END ATTRIBUTE*/ // Property: Status diff --git a/internal/aws/iot/job_template_resource_gen.go b/internal/aws/iot/job_template_resource_gen.go index 4d52ee3f66..1a8ca727a7 100644 --- a/internal/aws/iot/job_template_resource_gen.go +++ b/internal/aws/iot/job_template_resource_gen.go @@ -115,7 +115,9 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Action is a write-only property. }, /*END ATTRIBUTE*/ // Property: FailureType "failure_type": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -133,7 +135,9 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // FailureType is a write-only property. }, /*END ATTRIBUTE*/ // Property: MinNumberOfExecutedThings "min_number_of_executed_things": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -146,7 +150,9 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // MinNumberOfExecutedThings is a write-only property. }, /*END ATTRIBUTE*/ // Property: ThresholdPercentage "threshold_percentage": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -159,7 +165,9 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ThresholdPercentage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -172,7 +180,9 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // CriteriaList is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The criteria that determine when and how a job abort takes place.", @@ -359,7 +369,9 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // FailureType is a write-only property. }, /*END ATTRIBUTE*/ // Property: NumberOfRetries "number_of_retries": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -370,7 +382,9 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // NumberOfRetries is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -382,7 +396,9 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // RetryCriteriaList is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -462,7 +478,9 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // BaseRatePerMinute is a write-only property. }, /*END ATTRIBUTE*/ // Property: IncrementFactor "increment_factor": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -475,7 +493,9 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // IncrementFactor is a write-only property. }, /*END ATTRIBUTE*/ // Property: RateIncreaseCriteria "rate_increase_criteria": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -489,7 +509,9 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // NumberOfNotifiedThings is a write-only property. }, /*END ATTRIBUTE*/ // Property: NumberOfSucceededThings "number_of_succeeded_things": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -500,7 +522,9 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // NumberOfSucceededThings is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The criteria to initiate the increase in rate of rollout for a job.", @@ -511,7 +535,9 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // RateIncreaseCriteria is a write-only property. }, /*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.", @@ -519,7 +545,9 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ExponentialRolloutRate is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaximumPerMinute "maximum_per_minute": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -531,7 +559,9 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // MaximumPerMinute is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Allows you to create a staged rollout of a job.", @@ -598,7 +628,9 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DurationInMinutes is a write-only property. }, /*END ATTRIBUTE*/ // Property: StartTime "start_time": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -609,7 +641,9 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // StartTime is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -659,7 +693,9 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ExpiresInSec is a write-only property. }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -672,7 +708,9 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // RoleArn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration for pre-signed S3 URLs.", @@ -731,7 +769,9 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -744,7 +784,9 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -792,7 +834,9 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // InProgressTimeoutInMinutes is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the amount of time each device has to finish its execution of the job.", @@ -863,6 +907,8 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { "value": "Value", }) + opts = opts.IsImmutableType(true) + opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/JobArn", "/properties/Tags", @@ -878,8 +924,6 @@ func jobTemplateResource(ctx context.Context) (resource.Resource, error) { }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) - opts = opts.WithUpdateTimeoutInMinutes(0) - v, err := generic.NewResource(ctx, opts...) if err != nil { diff --git a/internal/aws/iot/thing_type_resource_gen.go b/internal/aws/iot/thing_type_resource_gen.go index be5f28e0e6..8d43aaf292 100644 --- a/internal/aws/iot/thing_type_resource_gen.go +++ b/internal/aws/iot/thing_type_resource_gen.go @@ -211,6 +211,7 @@ func thingTypeResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ThingTypeDescription @@ -222,6 +223,7 @@ func thingTypeResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/iot/topic_rule_destination_resource_gen.go b/internal/aws/iot/topic_rule_destination_resource_gen.go index da2f62c2a1..55f7c9d559 100644 --- a/internal/aws/iot/topic_rule_destination_resource_gen.go +++ b/internal/aws/iot/topic_rule_destination_resource_gen.go @@ -65,6 +65,7 @@ func topicRuleDestinationResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -155,6 +156,7 @@ func topicRuleDestinationResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecurityGroups @@ -167,6 +169,7 @@ func topicRuleDestinationResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetIds @@ -179,6 +182,7 @@ func topicRuleDestinationResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VpcId @@ -187,6 +191,7 @@ func topicRuleDestinationResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/iotfleetwise/campaign_resource_gen.go b/internal/aws/iotfleetwise/campaign_resource_gen.go index bb769c87a1..64bb4318ab 100644 --- a/internal/aws/iotfleetwise/campaign_resource_gen.go +++ b/internal/aws/iotfleetwise/campaign_resource_gen.go @@ -56,7 +56,6 @@ func campaignResource(ctx context.Context) (resource.Resource, error) { // } "action": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "APPROVE", @@ -65,9 +64,6 @@ func campaignResource(ctx context.Context) (resource.Resource, error) { "UPDATE", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Action is a write-only property. }, /*END ATTRIBUTE*/ // Property: Arn @@ -148,6 +144,7 @@ func campaignResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Expression @@ -160,6 +157,7 @@ func campaignResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinimumTriggerIntervalMs @@ -171,6 +169,7 @@ func campaignResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TriggerMode @@ -185,6 +184,7 @@ func campaignResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -192,6 +192,7 @@ func campaignResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TimeBasedCollectionScheme @@ -207,6 +208,7 @@ func campaignResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -214,6 +216,7 @@ func campaignResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/iotfleetwise/vehicle_resource_gen.go b/internal/aws/iotfleetwise/vehicle_resource_gen.go index 55a88fd67b..a8971757f8 100644 --- a/internal/aws/iotfleetwise/vehicle_resource_gen.go +++ b/internal/aws/iotfleetwise/vehicle_resource_gen.go @@ -57,16 +57,12 @@ func vehicleResource(ctx context.Context) (resource.Resource, error) { // } "association_behavior": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "CreateIotThing", "ValidateIotThingExists", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AssociationBehavior is a write-only property. }, /*END ATTRIBUTE*/ // Property: Attributes diff --git a/internal/aws/iotsitewise/gateway_resource_gen.go b/internal/aws/iotsitewise/gateway_resource_gen.go index ecab56405f..91a45387f6 100644 --- a/internal/aws/iotsitewise/gateway_resource_gen.go +++ b/internal/aws/iotsitewise/gateway_resource_gen.go @@ -201,6 +201,7 @@ func gatewayResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -209,6 +210,7 @@ func gatewayResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: GreengrassV2 @@ -224,6 +226,7 @@ func gatewayResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -232,6 +235,7 @@ func gatewayResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SiemensIE @@ -247,6 +251,7 @@ func gatewayResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -255,6 +260,7 @@ func gatewayResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/iotsitewise/portal_resource_gen.go b/internal/aws/iotsitewise/portal_resource_gen.go index bd33dc3825..7617f537b9 100644 --- a/internal/aws/iotsitewise/portal_resource_gen.go +++ b/internal/aws/iotsitewise/portal_resource_gen.go @@ -10,14 +10,11 @@ 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/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() { @@ -240,34 +237,20 @@ func portalResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": 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*/ + Required: true, + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": 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*/ + Required: true, + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of key-value pairs that contain metadata for the portal.", Optional: true, - Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // Tags is a write-only property. }, /*END ATTRIBUTE*/ diff --git a/internal/aws/iotwireless/network_analyzer_configuration_resource_gen.go b/internal/aws/iotwireless/network_analyzer_configuration_resource_gen.go index edce0c315e..399f14e7f6 100644 --- a/internal/aws/iotwireless/network_analyzer_configuration_resource_gen.go +++ b/internal/aws/iotwireless/network_analyzer_configuration_resource_gen.go @@ -134,6 +134,7 @@ func networkAnalyzerConfigurationResource(ctx context.Context) (resource.Resourc }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -147,6 +148,7 @@ func networkAnalyzerConfigurationResource(ctx context.Context) (resource.Resourc }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/iotwireless/partner_account_resource_gen.go b/internal/aws/iotwireless/partner_account_resource_gen.go index 908898b972..8b77dd0319 100644 --- a/internal/aws/iotwireless/partner_account_resource_gen.go +++ b/internal/aws/iotwireless/partner_account_resource_gen.go @@ -21,7 +21,6 @@ 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,24 +140,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*/ - Optional: true, - Computed: true, + Required: 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*/ + // AppServerPrivateKey is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The Sidewalk account credentials.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Sidewalk is a write-only property. }, /*END ATTRIBUTE*/ // Property: SidewalkResponse @@ -246,22 +237,15 @@ func partnerAccountResource(ctx context.Context) (resource.Resource, error) { // Property: AppServerPrivateKey "app_server_private_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 4096), stringvalidator.RegexMatches(regexp.MustCompile("[a-fA-F0-9]{64}"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AppServerPrivateKey is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The Sidewalk account credentials.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // SidewalkUpdate is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tags 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 bba713247f..339fedbf74 100644 --- a/internal/aws/iotwireless/wireless_device_import_task_resource_gen.go +++ b/internal/aws/iotwireless/wireless_device_import_task_resource_gen.go @@ -206,13 +206,9 @@ func wirelessDeviceImportTaskResource(ctx context.Context) (resource.Resource, e // Property: DeviceCreationFile "device_creation_file": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // DeviceCreationFile is a write-only property. }, /*END ATTRIBUTE*/ // Property: DeviceCreationFileList @@ -239,13 +235,9 @@ func wirelessDeviceImportTaskResource(ctx context.Context) (resource.Resource, e // Property: SidewalkManufacturingSn "sidewalk_manufacturing_sn": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(64), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // SidewalkManufacturingSn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/kafkaconnect/connector_resource_gen.go b/internal/aws/kafkaconnect/connector_resource_gen.go index dfd4207c59..7ac9793b41 100644 --- a/internal/aws/kafkaconnect/connector_resource_gen.go +++ b/internal/aws/kafkaconnect/connector_resource_gen.go @@ -442,6 +442,9 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { "bootstrap_servers": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The bootstrap servers string of the Apache Kafka cluster.", Required: true, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Vpc "vpc": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -451,6 +454,9 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "The AWS security groups to associate with the elastic network interfaces in order to specify what the connector has access to.", Required: true, + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Subnets "subnets": schema.SetAttribute{ /*START ATTRIBUTE*/ @@ -460,14 +466,23 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeAtLeast(1), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information about a VPC used with the connector.", Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Details of how to connect to an Apache Kafka cluster.", Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Details of how to connect to the Kafka cluster.", @@ -509,6 +524,9 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { "IAM", ), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Details of the client authentication used by the Kafka cluster.", @@ -550,6 +568,9 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { "TLS", ), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Details of encryption in transit to the Kafka cluster.", @@ -668,6 +689,7 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LogGroup @@ -677,6 +699,7 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -685,6 +708,7 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Firehose @@ -697,6 +721,7 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Enabled @@ -709,6 +734,7 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -717,6 +743,7 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3 @@ -729,6 +756,7 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Enabled @@ -741,6 +769,7 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Prefix @@ -750,6 +779,7 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -758,6 +788,7 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -769,6 +800,7 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -835,6 +867,9 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("arn:(aws|aws-us-gov|aws-cn):kafkaconnect:.*"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Revision "revision": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -843,10 +878,16 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Details about a custom plugin.", Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -979,6 +1020,7 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: WorkerConfigurationArn @@ -992,6 +1034,7 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/kafkaconnect/custom_plugin_resource_gen.go b/internal/aws/kafkaconnect/custom_plugin_resource_gen.go index e97ffc1d67..6793469bac 100644 --- a/internal/aws/kafkaconnect/custom_plugin_resource_gen.go +++ b/internal/aws/kafkaconnect/custom_plugin_resource_gen.go @@ -172,11 +172,17 @@ func customPluginResource(ctx context.Context) (resource.Resource, error) { "bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of an S3 bucket.", Required: true, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FileKey "file_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The file key for an object in an S3 bucket.", Required: true, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ObjectVersion "object_version": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -185,11 +191,15 @@ func customPluginResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The S3 bucket Amazon Resource Name (ARN), file key, and object version of the plugin file stored in Amazon S3.", Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information about the location of a custom plugin.", diff --git a/internal/aws/kendra/faq_resource_gen.go b/internal/aws/kendra/faq_resource_gen.go index 88c7321f3d..208304a5fd 100644 --- a/internal/aws/kendra/faq_resource_gen.go +++ b/internal/aws/kendra/faq_resource_gen.go @@ -223,6 +223,9 @@ func faqResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -230,6 +233,9 @@ func faqResource(ctx context.Context) (resource.Resource, error) { Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "FAQ S3 path", diff --git a/internal/aws/kendra/index_resource_gen.go b/internal/aws/kendra/index_resource_gen.go index 70e6c04e51..edccb89574 100644 --- a/internal/aws/kendra/index_resource_gen.go +++ b/internal/aws/kendra/index_resource_gen.go @@ -492,6 +492,7 @@ func indexResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/kinesisanalyticsv2/application_resource_gen.go b/internal/aws/kinesisanalyticsv2/application_resource_gen.go index 71644eedd6..d6ecb22eb4 100644 --- a/internal/aws/kinesisanalyticsv2/application_resource_gen.go +++ b/internal/aws/kinesisanalyticsv2/application_resource_gen.go @@ -17,7 +17,6 @@ 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/stringdefault" @@ -798,10 +797,6 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "zip_file_content": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The zip-format code for a Flink-based Kinesis Data Analytics application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ZipFileContent is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -896,14 +891,11 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "property_group_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Describes the key of an application execution property key-value pair.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_.-]+$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PropertyGroupId is a write-only property. }, /*END ATTRIBUTE*/ // Property: PropertyMap "property_map": // Pattern: "" @@ -911,31 +903,23 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "Describes the value of an application execution property key-value pair.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ - mapplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PropertyMap is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Describes the execution property groups.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(50), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // PropertyGroups is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Describes execution properties for a Flink-based Kinesis Data Analytics application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // EnvironmentProperties is a write-only property. }, /*END ATTRIBUTE*/ // Property: FlinkApplicationConfiguration @@ -1952,40 +1936,30 @@ 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.", - Optional: true, - Computed: true, + Required: 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*/ + // ApplicationRestoreType is a write-only property. }, /*END ATTRIBUTE*/ // Property: SnapshotName "snapshot_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "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.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_.-]+$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SnapshotName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Describes the restore behavior of a restarting application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ApplicationRestoreConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: FlinkRunConfiguration "flink_run_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1994,26 +1968,16 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { "allow_non_restored_state": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "When restoring from a snapshot, specifies whether the runtime is allowed to skip a state that cannot be mapped to the new program. Defaults to false. If you update your application without specifying this parameter, AllowNonRestoredState will be set to false, even if it was previously set to true.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AllowNonRestoredState is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Describes the starting parameters for a Flink-based Kinesis Data Analytics application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // FlinkRunConfiguration is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies run configuration (start parameters) of a Kinesis Data Analytics application. Evaluated on update for RUNNING applications an only.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // RunConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: RuntimeEnvironment diff --git a/internal/aws/kinesisfirehose/delivery_stream_resource_gen.go b/internal/aws/kinesisfirehose/delivery_stream_resource_gen.go index 5d417d1dde..64de295135 100644 --- a/internal/aws/kinesisfirehose/delivery_stream_resource_gen.go +++ b/internal/aws/kinesisfirehose/delivery_stream_resource_gen.go @@ -765,6 +765,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecurityGroupIds @@ -782,6 +783,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetIds @@ -799,6 +801,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1642,6 +1645,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecurityGroupIds @@ -1659,6 +1663,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetIds @@ -1676,6 +1681,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2647,6 +2653,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SecurityGroupIds @@ -2664,6 +2671,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetIds @@ -2681,6 +2689,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -5216,6 +5225,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SizeInMBs @@ -5224,6 +5234,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -5231,6 +5242,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CatalogConfiguration @@ -5246,6 +5258,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -5256,6 +5269,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CloudWatchLoggingOptions @@ -5267,6 +5281,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LogGroupName @@ -5275,6 +5290,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LogStreamName @@ -5283,6 +5299,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -5290,6 +5307,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DestinationTableConfigurationList @@ -5306,6 +5324,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DestinationTableName @@ -5318,6 +5337,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3ErrorOutputPrefix @@ -5329,6 +5349,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: UniqueKeys @@ -5344,6 +5365,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -5352,6 +5374,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProcessingConfiguration @@ -5363,6 +5386,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Processors @@ -5382,6 +5406,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ParameterValue @@ -5393,6 +5418,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -5404,6 +5430,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type @@ -5423,6 +5450,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -5434,6 +5462,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -5441,6 +5470,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RetryOptions @@ -5452,6 +5482,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -5459,6 +5490,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleARN @@ -5472,6 +5504,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Configuration @@ -5488,6 +5521,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BufferingHints @@ -5499,6 +5533,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SizeInMBs @@ -5507,6 +5542,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -5514,6 +5550,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CloudWatchLoggingOptions @@ -5525,6 +5562,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LogGroupName @@ -5533,6 +5571,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LogStreamName @@ -5541,6 +5580,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -5548,6 +5588,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CompressionFormat @@ -5565,6 +5606,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EncryptionConfiguration @@ -5582,6 +5624,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -5589,6 +5632,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NoEncryptionConfig @@ -5602,6 +5646,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -5609,6 +5654,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ErrorOutputPrefix @@ -5620,6 +5666,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Prefix @@ -5631,6 +5678,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleARN @@ -5644,6 +5692,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -5654,6 +5703,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: s3BackupMode @@ -5668,6 +5718,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -5724,6 +5775,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleARN @@ -5737,6 +5789,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -5825,6 +5878,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleARN @@ -5838,6 +5892,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -5848,6 +5903,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MSKClusterARN @@ -5861,6 +5917,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ReadFromTimestamp @@ -5869,6 +5926,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TopicName @@ -5882,6 +5940,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -8197,6 +8256,7 @@ func deliveryStreamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/kms/key_resource_gen.go b/internal/aws/kms/key_resource_gen.go index 41591a3b8f..462dc912c8 100644 --- a/internal/aws/kms/key_resource_gen.go +++ b/internal/aws/kms/key_resource_gen.go @@ -283,13 +283,9 @@ func keyResource(ctx context.Context) (resource.Resource, error) { "pending_window_in_days": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Specifies the number of days in the waiting period before KMS deletes a KMS key that has been removed from a CloudFormation stack. Enter a value between 7 and 30 days. The default value is 30 days.\n When you remove a KMS key from a CloudFormation stack, KMS schedules the KMS key for deletion and starts the mandatory waiting period. The ``PendingWindowInDays`` property determines the length of waiting period. During the waiting period, the key state of KMS key is ``Pending Deletion`` or ``Pending Replica Deletion``, which prevents the KMS key from being used in cryptographic operations. When the waiting period expires, KMS permanently deletes the KMS key.\n KMS will not delete a [multi-Region primary key](https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html) that has replica keys. If you remove a multi-Region primary key from a CloudFormation stack, its key state changes to ``PendingReplicaDeletion`` so it cannot be replicated or used in cryptographic operations. This state can persist indefinitely. When the last of its replica keys is deleted, the key state of the primary key changes to ``PendingDeletion`` and the waiting period specified by ``PendingWindowInDays`` begins. When this waiting period expires, KMS deletes the primary key. For details, see [Deleting multi-Region keys](https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-delete.html) in the *Developer Guide*.\n You cannot use a CloudFormation template to cancel deletion of the KMS key after you remove it from the stack, regardless of the waiting period. If you specify a KMS key in your template, even one with the same name, CloudFormation creates a new KMS key. To cancel deletion of a KMS key, use the KMS console or the [CancelKeyDeletion](https://docs.aws.amazon.com/kms/latest/APIReference/API_CancelKeyDeletion.html) operation.\n For information about the ``Pending Deletion`` and ``Pending Replica Deletion`` key states, see [Key state: Effect on your KMS key](https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) in the *Developer Guide*. For more information about deleting KMS keys, see the [ScheduleKeyDeletion](https://docs.aws.amazon.com/kms/latest/APIReference/API_ScheduleKeyDeletion.html) operation in the *API Reference* and [Deleting KMS keys](https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html) in the *Developer Guide*.", Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(7, 30), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // PendingWindowInDays is a write-only property. }, /*END ATTRIBUTE*/ // Property: RotationPeriodInDays diff --git a/internal/aws/kms/replica_key_resource_gen.go b/internal/aws/kms/replica_key_resource_gen.go index 1fd1e2bb56..926c3f6bcc 100644 --- a/internal/aws/kms/replica_key_resource_gen.go +++ b/internal/aws/kms/replica_key_resource_gen.go @@ -13,7 +13,6 @@ 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/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" @@ -113,13 +112,9 @@ func replicaKeyResource(ctx context.Context) (resource.Resource, error) { "pending_window_in_days": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "Specifies the number of days in the waiting period before AWS KMS deletes an AWS KMS key that has been removed from a CloudFormation stack. Enter a value between 7 and 30 days. The default value is 30 days.", Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(7, 30), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // PendingWindowInDays is a write-only property. }, /*END ATTRIBUTE*/ // Property: PrimaryKeyArn diff --git a/internal/aws/lakeformation/data_cells_filter_resource_gen.go b/internal/aws/lakeformation/data_cells_filter_resource_gen.go index fe10e85b4b..96ed37c08e 100644 --- a/internal/aws/lakeformation/data_cells_filter_resource_gen.go +++ b/internal/aws/lakeformation/data_cells_filter_resource_gen.go @@ -98,6 +98,7 @@ func dataCellsFilterResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -176,6 +177,7 @@ func dataCellsFilterResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FilterExpression @@ -185,6 +187,7 @@ func dataCellsFilterResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -268,9 +271,9 @@ func dataCellsFilterResource(ctx context.Context) (resource.Resource, error) { "table_name": "TableName", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/lakeformation/principal_permissions_resource_gen.go b/internal/aws/lakeformation/principal_permissions_resource_gen.go index 75351b2542..79326a8a3f 100644 --- a/internal/aws/lakeformation/principal_permissions_resource_gen.go +++ b/internal/aws/lakeformation/principal_permissions_resource_gen.go @@ -185,6 +185,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -499,6 +500,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DataCellsFilter @@ -515,6 +517,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name @@ -528,6 +531,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableCatalogId @@ -541,6 +545,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableName @@ -554,6 +559,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -562,6 +568,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DataLocation @@ -578,6 +585,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceArn @@ -590,6 +598,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -598,6 +607,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Database @@ -614,6 +624,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name @@ -627,6 +638,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -635,6 +647,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LFTag @@ -651,6 +664,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TagKey @@ -664,6 +678,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TagValues @@ -682,6 +697,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -690,6 +706,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LFTagPolicy @@ -706,6 +723,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Expression @@ -722,6 +740,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TagValues @@ -739,6 +758,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -753,6 +773,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ResourceType @@ -769,6 +790,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -777,6 +799,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Table @@ -793,6 +816,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabaseName @@ -806,6 +830,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name @@ -818,6 +843,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableWildcard @@ -828,6 +854,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -836,6 +863,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableWithColumns @@ -852,6 +880,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ColumnNames @@ -868,6 +897,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ColumnWildcard @@ -887,6 +917,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -895,6 +926,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabaseName @@ -908,6 +940,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name @@ -921,6 +954,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -929,6 +963,7 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1005,9 +1040,9 @@ func principalPermissionsResource(ctx context.Context) (resource.Resource, error "tag_values": "TagValues", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/lakeformation/tag_association_resource_gen.go b/internal/aws/lakeformation/tag_association_resource_gen.go index f5be05f5c8..6b25ba28ca 100644 --- a/internal/aws/lakeformation/tag_association_resource_gen.go +++ b/internal/aws/lakeformation/tag_association_resource_gen.go @@ -81,6 +81,9 @@ func tagAssociationResource(ctx context.Context) (resource.Resource, error) { Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(12, 12), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TagKey "tag_key": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -88,6 +91,9 @@ func tagAssociationResource(ctx context.Context) (resource.Resource, error) { Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TagValues "tag_values": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -101,6 +107,7 @@ func tagAssociationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), + listplanmodifier.RequiresReplace(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -220,6 +227,7 @@ func tagAssociationResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Database @@ -235,6 +243,7 @@ func tagAssociationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name @@ -247,6 +256,7 @@ func tagAssociationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -254,6 +264,7 @@ func tagAssociationResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Table @@ -269,6 +280,7 @@ func tagAssociationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabaseName @@ -281,6 +293,7 @@ func tagAssociationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name @@ -292,6 +305,7 @@ func tagAssociationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableWildcard @@ -301,6 +315,7 @@ func tagAssociationResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -308,6 +323,7 @@ func tagAssociationResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableWithColumns @@ -323,6 +339,7 @@ func tagAssociationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ColumnNames @@ -339,6 +356,7 @@ func tagAssociationResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatabaseName @@ -351,6 +369,7 @@ func tagAssociationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name @@ -363,6 +382,7 @@ func tagAssociationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -370,6 +390,7 @@ func tagAssociationResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -446,9 +467,9 @@ func tagAssociationResource(ctx context.Context) (resource.Resource, error) { "tags_identifier": "TagsIdentifier", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/lambda/event_source_mapping_resource_gen.go b/internal/aws/lambda/event_source_mapping_resource_gen.go index c2f98c70b5..b235306b8a 100644 --- a/internal/aws/lambda/event_source_mapping_resource_gen.go +++ b/internal/aws/lambda/event_source_mapping_resource_gen.go @@ -67,6 +67,7 @@ func eventSourceMappingResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -669,6 +670,7 @@ func eventSourceMappingResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -677,6 +679,7 @@ func eventSourceMappingResource(ctx context.Context) (resource.Resource, error) Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -718,6 +721,7 @@ func eventSourceMappingResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/lambda/function_resource_gen.go b/internal/aws/lambda/function_resource_gen.go index d86ee89c64..70e80fbeef 100644 --- a/internal/aws/lambda/function_resource_gen.go +++ b/internal/aws/lambda/function_resource_gen.go @@ -135,71 +135,48 @@ func functionResource(ctx context.Context) (resource.Resource, error) { "image_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "URI of a [container image](https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html) in the Amazon ECR registry.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ImageUri is a write-only property. }, /*END ATTRIBUTE*/ // 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.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 63), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // S3Bucket is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3Key "s3_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 key of the deployment package.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // S3Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3ObjectVersion "s3_object_version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "For versioned objects, the version of the deployment package object to use.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // S3ObjectVersion is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourceKMSKeyArn "source_kms_key_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SourceKMSKeyArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: ZipFile "zip_file": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "(Node.js and Python) The source code of your Lambda function. If you include your function source inline with this parameter, CFN places it in a file named ``index`` and zips it to create a [deployment package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html). This zip file cannot exceed 4MB. For the ``Handler`` property, the first part of the handler identifier must be ``index``. For example, ``index.handler``.\n For JSON, you must escape quotes and special characters such as newline (``\\n``) with a backslash.\n If you specify a function that interacts with an AWS CloudFormation custom resource, you don't have to write your own functions to send responses to the custom resource that invoked the function. AWS CloudFormation provides a response module ([cfn-response](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-lambda-function-code-cfnresponsemodule.html)) that simplifies sending responses. See [Using Lambda with CloudFormation](https://docs.aws.amazon.com/lambda/latest/dg/services-cloudformation.html) for details.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ZipFile is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -919,27 +896,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.", - Optional: true, - Computed: true, + Required: 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*/ Description: "The function's [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // SnapStart is a write-only property. }, /*END ATTRIBUTE*/ // Property: SnapStartResponse diff --git a/internal/aws/lambda/layer_version_resource_gen.go b/internal/aws/lambda/layer_version_resource_gen.go index 1e7e904126..a6e4c64117 100644 --- a/internal/aws/lambda/layer_version_resource_gen.go +++ b/internal/aws/lambda/layer_version_resource_gen.go @@ -105,11 +105,19 @@ func layerVersionResource(ctx context.Context) (resource.Resource, error) { "s3_bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 bucket of the layer archive.", Required: true, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ + // S3Bucket is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3Key "s3_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 key of the layer archive.", Required: true, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ + // S3Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3ObjectVersion "s3_object_version": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -118,7 +126,9 @@ func layerVersionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // S3ObjectVersion is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The function layer archive.", @@ -222,13 +232,13 @@ func layerVersionResource(ctx context.Context) (resource.Resource, error) { "s3_object_version": "S3ObjectVersion", }) + opts = opts.IsImmutableType(true) + opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/Content", }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) - opts = opts.WithUpdateTimeoutInMinutes(0) - v, err := generic.NewResource(ctx, opts...) if err != nil { diff --git a/internal/aws/lambda/version_resource_gen.go b/internal/aws/lambda/version_resource_gen.go index 1dc76e52b5..fb80d5b6ec 100644 --- a/internal/aws/lambda/version_resource_gen.go +++ b/internal/aws/lambda/version_resource_gen.go @@ -153,6 +153,7 @@ func versionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -201,6 +202,7 @@ func versionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: UpdateRuntimeOn @@ -213,6 +215,7 @@ func versionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/lex/bot_alias_resource_gen.go b/internal/aws/lex/bot_alias_resource_gen.go index 76c4c194cc..0d78961c65 100644 --- a/internal/aws/lex/bot_alias_resource_gen.go +++ b/internal/aws/lex/bot_alias_resource_gen.go @@ -316,40 +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", - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string containing the value for the tag", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of tags to add to the bot alias.", Optional: true, - Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeAtMost(200), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // BotAliasTags is a write-only property. }, /*END ATTRIBUTE*/ // Property: BotId diff --git a/internal/aws/lex/bot_resource_gen.go b/internal/aws/lex/bot_resource_gen.go index 3a33086536..1b963a09c1 100644 --- a/internal/aws/lex/bot_resource_gen.go +++ b/internal/aws/lex/bot_resource_gen.go @@ -17,10 +17,6 @@ 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" "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" @@ -64,10 +60,6 @@ func botResource(ctx context.Context) (resource.Resource, error) { "auto_build_bot_locales": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether to build the bot locales after bot creation completes.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AutoBuildBotLocales is a write-only property. }, /*END ATTRIBUTE*/ // Property: BotFileS3Location @@ -109,50 +101,35 @@ 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.", - Optional: true, - Computed: true, + Required: 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*/ + // S3Bucket is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3ObjectKey "s3_object_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 key of the deployment package.", - Optional: true, - Computed: true, + Required: 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*/ + // S3ObjectKey is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3ObjectVersion "s3_object_version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "For versioned objects, the version of the deployment package object to use. If not specified, the current object version will be used.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // S3ObjectVersion is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "S3 location of bot definitions zip file, if it's not defined inline in CloudFormation.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // BotFileS3Location is a write-only property. }, /*END ATTRIBUTE*/ // Property: BotLocales @@ -4278,59 +4255,42 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Phrase "phrase": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Phrase that should be recognized.", - Optional: true, - Computed: true, + Required: 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*/ + // Phrase is a write-only property. }, /*END ATTRIBUTE*/ // Property: Weight "weight": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The degree to which the phrase recognition is boosted.", Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 3), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Weight is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeAtMost(500), - fwvalidators.NotNullSet(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomVocabularyItems is a write-only property. }, /*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.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomVocabulary is a write-only property. }, /*END ATTRIBUTE*/ // Property: Description "description": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A description of the resource", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(200), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Description is a write-only property. }, /*END ATTRIBUTE*/ // Property: Intents "intents": schema.SetNestedAttribute{ /*START ATTRIBUTE*/ @@ -4340,49 +4300,31 @@ func botResource(ctx context.Context) (resource.Resource, error) { "description": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A description of the resource", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(200), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Description is a write-only property. }, /*END ATTRIBUTE*/ // Property: DialogCodeHook "dialog_code_hook": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, - Validators: []validator.Bool{ /*START VALIDATORS*/ - fwvalidators.NotNullBool(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Enabled is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Settings that determine the Lambda function that Amazon Lex uses for processing user responses.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DialogCodeHook is a write-only property. }, /*END ATTRIBUTE*/ // Property: FulfillmentCodeHook "fulfillment_code_hook": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, - Validators: []validator.Bool{ /*START VALIDATORS*/ - fwvalidators.NotNullBool(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Enabled is a write-only property. }, /*END ATTRIBUTE*/ // Property: FulfillmentUpdatesSpecification "fulfillment_updates_specification": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4390,14 +4332,8 @@ 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.", - Optional: true, - Computed: true, - Validators: []validator.Bool{ /*START VALIDATORS*/ - fwvalidators.NotNullBool(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Active is a write-only property. }, /*END ATTRIBUTE*/ // Property: StartResponse "start_response": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4406,23 +4342,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { "allow_interrupt": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Determines whether the user can interrupt the start message while it is playing.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AllowInterrupt is a write-only property. }, /*END ATTRIBUTE*/ // 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.", - Optional: true, - Computed: true, + Required: 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*/ + // DelayInSeconds is a write-only property. }, /*END ATTRIBUTE*/ // Property: MessageGroups "message_groups": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -4437,23 +4366,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4465,86 +4387,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4552,23 +4452,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4576,34 +4469,21 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Message is a write-only property. }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -4615,23 +4495,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4643,86 +4516,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4730,23 +4581,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4754,70 +4598,54 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Message variations to send to the user.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(2), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Variations is a write-only property. }, /*END ATTRIBUTE*/ }, /*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.", - Optional: true, - Computed: true, + Required: 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*/ + // MessageGroups is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Provides settings for a message that is sent to the user when a fulfillment Lambda function starts running.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // StartResponse is a write-only property. }, /*END ATTRIBUTE*/ // Property: TimeoutInSeconds "timeout_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The length of time that the fulfillment Lambda function should run before it times out.", Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 900), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TimeoutInSeconds is a write-only property. }, /*END ATTRIBUTE*/ // Property: UpdateResponse "update_response": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4826,23 +4654,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { "allow_interrupt": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Determines whether the user can interrupt an update message while it is playing.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AllowInterrupt is a write-only property. }, /*END ATTRIBUTE*/ // 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.", - Optional: true, - Computed: true, + Required: 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*/ + // FrequencyInSeconds is a write-only property. }, /*END ATTRIBUTE*/ // Property: MessageGroups "message_groups": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -4857,23 +4678,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4885,86 +4699,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4972,23 +4764,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -4996,34 +4781,21 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Message is a write-only property. }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -5035,23 +4807,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -5063,86 +4828,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -5150,23 +4893,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -5174,66 +4910,50 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Message variations to send to the user.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(2), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Variations is a write-only property. }, /*END ATTRIBUTE*/ }, /*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.", - Optional: true, - Computed: true, + Required: 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*/ + // MessageGroups is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Provides settings for a message that is sent periodically to the user while a fulfillment Lambda function is running.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // UpdateResponse is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Provides information for updating the user on the progress of fulfilling an intent.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // FulfillmentUpdatesSpecification is a write-only property. }, /*END ATTRIBUTE*/ // Property: PostFulfillmentStatusSpecification "post_fulfillment_status_specification": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -5245,10 +4965,7 @@ func botResource(ctx context.Context) (resource.Resource, error) { "allow_interrupt": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether the user can interrupt a speech prompt from the bot.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AllowInterrupt is a write-only property. }, /*END ATTRIBUTE*/ // Property: MessageGroupsList "message_groups_list": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -5263,23 +4980,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -5291,86 +5001,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -5378,23 +5066,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -5402,34 +5083,21 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Message is a write-only property. }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -5441,23 +5109,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -5469,86 +5130,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -5556,23 +5195,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -5580,58 +5212,45 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Message variations to send to the user.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(2), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Variations is a write-only property. }, /*END ATTRIBUTE*/ }, /*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.", - Optional: true, - Computed: true, + Required: 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*/ + // MessageGroupsList is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A list of message groups that Amazon Lex uses to respond the user input.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // FailureResponse is a write-only property. }, /*END ATTRIBUTE*/ // Property: SuccessResponse "success_response": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -5640,10 +5259,7 @@ func botResource(ctx context.Context) (resource.Resource, error) { "allow_interrupt": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether the user can interrupt a speech prompt from the bot.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AllowInterrupt is a write-only property. }, /*END ATTRIBUTE*/ // Property: MessageGroupsList "message_groups_list": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -5658,23 +5274,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -5686,86 +5295,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -5773,23 +5360,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -5797,34 +5377,21 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Message is a write-only property. }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -5836,23 +5403,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -5864,86 +5424,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -5951,23 +5489,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -5975,58 +5506,45 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Message variations to send to the user.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(2), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Variations is a write-only property. }, /*END ATTRIBUTE*/ }, /*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.", - Optional: true, - Computed: true, + Required: 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*/ + // MessageGroupsList is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A list of message groups that Amazon Lex uses to respond the user input.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SuccessResponse is a write-only property. }, /*END ATTRIBUTE*/ // Property: TimeoutResponse "timeout_response": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -6035,10 +5553,7 @@ func botResource(ctx context.Context) (resource.Resource, error) { "allow_interrupt": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether the user can interrupt a speech prompt from the bot.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AllowInterrupt is a write-only property. }, /*END ATTRIBUTE*/ // Property: MessageGroupsList "message_groups_list": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -6053,23 +5568,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -6081,86 +5589,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -6168,23 +5654,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -6192,34 +5671,21 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Message is a write-only property. }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -6231,23 +5697,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -6259,86 +5718,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -6346,23 +5783,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -6370,74 +5800,55 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Message variations to send to the user.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(2), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Variations is a write-only property. }, /*END ATTRIBUTE*/ }, /*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.", - Optional: true, - Computed: true, + Required: 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*/ + // MessageGroupsList is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A list of message groups that Amazon Lex uses to respond the user input.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TimeoutResponse is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Provides information for updating the user on the progress of fulfilling an intent.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PostFulfillmentStatusSpecification is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Settings that determine if a Lambda function should be invoked to fulfill a specific intent.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // FulfillmentCodeHook is a write-only property. }, /*END ATTRIBUTE*/ // Property: InputContexts "input_contexts": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -6446,29 +5857,24 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the context.", - Optional: true, - Computed: true, + Required: 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*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The list of input contexts specified for the intent.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // InputContexts is a write-only property. }, /*END ATTRIBUTE*/ // Property: IntentClosingSetting "intent_closing_setting": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -6480,10 +5886,7 @@ func botResource(ctx context.Context) (resource.Resource, error) { "allow_interrupt": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether the user can interrupt a speech prompt from the bot.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AllowInterrupt is a write-only property. }, /*END ATTRIBUTE*/ // Property: MessageGroupsList "message_groups_list": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -6498,23 +5901,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -6526,86 +5922,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -6613,23 +5987,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -6637,34 +6004,21 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Message is a write-only property. }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -6676,23 +6030,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -6704,86 +6051,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -6791,23 +6116,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -6815,77 +6133,55 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Message variations to send to the user.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(2), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Variations is a write-only property. }, /*END ATTRIBUTE*/ }, /*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.", - Optional: true, - Computed: true, + Required: 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*/ + // MessageGroupsList is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A list of message groups that Amazon Lex uses to respond the user input.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // ClosingResponse is a write-only property. }, /*END ATTRIBUTE*/ // Property: IsActive "is_active": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IsActive is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Response that Amazon Lex sends to the user when the intent is closed.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IntentClosingSetting is a write-only property. }, /*END ATTRIBUTE*/ // Property: IntentConfirmationSetting "intent_confirmation_setting": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -6897,10 +6193,7 @@ func botResource(ctx context.Context) (resource.Resource, error) { "allow_interrupt": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether the user can interrupt a speech prompt from the bot.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AllowInterrupt is a write-only property. }, /*END ATTRIBUTE*/ // Property: MessageGroupsList "message_groups_list": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -6915,23 +6208,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -6943,86 +6229,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -7030,23 +6294,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -7054,34 +6311,21 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Message is a write-only property. }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -7093,23 +6337,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -7121,86 +6358,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -7208,23 +6423,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -7232,69 +6440,50 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Message variations to send to the user.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(2), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Variations is a write-only property. }, /*END ATTRIBUTE*/ }, /*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.", - Optional: true, - Computed: true, + Required: 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*/ + // MessageGroupsList is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A list of message groups that Amazon Lex uses to respond the user input.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // DeclinationResponse is a write-only property. }, /*END ATTRIBUTE*/ // Property: IsActive "is_active": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IsActive is a write-only property. }, /*END ATTRIBUTE*/ // Property: PromptSpecification "prompt_specification": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -7303,23 +6492,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { "allow_interrupt": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether the user can interrupt a speech prompt from the bot.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AllowInterrupt is a write-only property. }, /*END ATTRIBUTE*/ // 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.", - Optional: true, - Computed: true, + Required: 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*/ + // MaxRetries is a write-only property. }, /*END ATTRIBUTE*/ // Property: MessageGroupsList "message_groups_list": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -7334,23 +6516,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -7362,86 +6537,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -7449,23 +6602,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -7473,34 +6619,21 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Message is a write-only property. }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -7512,23 +6645,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -7540,86 +6666,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -7627,23 +6731,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -7651,65 +6748,52 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Message variations to send to the user.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(2), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Variations is a write-only property. }, /*END ATTRIBUTE*/ }, /*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.", - Optional: true, - Computed: true, + Required: 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*/ + // MessageGroupsList is a write-only property. }, /*END ATTRIBUTE*/ // Property: MessageSelectionStrategy "message_selection_strategy": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Indicates how a message is selected from a message group among retries.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Random", "Ordered", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MessageSelectionStrategy is a write-only property. }, /*END ATTRIBUTE*/ // Property: PromptAttemptsSpecification "prompt_attempts_specification": // Pattern: "" @@ -7720,10 +6804,7 @@ func botResource(ctx context.Context) (resource.Resource, error) { "allow_interrupt": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether the user can interrupt a speech prompt attempt from the bot.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AllowInterrupt is a write-only property. }, /*END ATTRIBUTE*/ // Property: AllowedInputTypes "allowed_input_types": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -7731,34 +6812,19 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: AllowAudioInput "allow_audio_input": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether audio input is allowed.", - Optional: true, - Computed: true, - Validators: []validator.Bool{ /*START VALIDATORS*/ - fwvalidators.NotNullBool(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // AllowAudioInput is a write-only property. }, /*END ATTRIBUTE*/ // Property: AllowDTMFInput "allow_dtmf_input": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether DTMF input is allowed.", - Optional: true, - Computed: true, - Validators: []validator.Bool{ /*START VALIDATORS*/ - fwvalidators.NotNullBool(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // AllowDTMFInput is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the allowed input types.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AllowedInputTypes is a write-only property. }, /*END ATTRIBUTE*/ // Property: AudioAndDTMFInputSpecification "audio_and_dtmf_input_specification": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -7769,36 +6835,25 @@ 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.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), - fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EndTimeoutMs is a write-only property. }, /*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.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), - fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MaxLengthMs is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the audio input specifications.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AudioSpecification is a write-only property. }, /*END ATTRIBUTE*/ // Property: DTMFSpecification "dtmf_specification": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -7806,83 +6861,57 @@ 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.", - Optional: true, - Computed: true, + Required: 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*/ + // DeletionCharacter is a write-only property. }, /*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.", - Optional: true, - Computed: true, + Required: 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*/ + // EndCharacter is a write-only property. }, /*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.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), - fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EndTimeoutMs is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaxLength "max_length": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum number of DTMF digits allowed in an utterance.", - Optional: true, - Computed: true, + Required: 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*/ + // MaxLength is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the settings on DTMF input.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DTMFSpecification is a write-only property. }, /*END ATTRIBUTE*/ // 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.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), - fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // StartTimeoutMs is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the audio and DTMF input specification.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AudioAndDTMFInputSpecification is a write-only property. }, /*END ATTRIBUTE*/ // Property: TextInputSpecification "text_input_specification": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -7890,51 +6919,32 @@ 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.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), - fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // StartTimeoutMs is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the text input specifications.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TextInputSpecification is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Specifies the advanced settings on each attempt of the prompt.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ - mapplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PromptAttemptsSpecification is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Prompts the user to confirm the intent.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // PromptSpecification is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Prompts that Amazon Lex sends to the user to confirm the completion of an intent.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IntentConfirmationSetting is a write-only property. }, /*END ATTRIBUTE*/ // Property: KendraConfiguration "kendra_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -7942,59 +6952,42 @@ 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.", - Optional: true, - Computed: true, + Required: 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*/ + // KendraIndex is a write-only property. }, /*END ATTRIBUTE*/ // Property: QueryFilterString "query_filter_string": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A query filter that Amazon Lex sends to Amazon Kendra to filter the response from a query.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 5000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // QueryFilterString is a write-only property. }, /*END ATTRIBUTE*/ // Property: QueryFilterStringEnabled "query_filter_string_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Determines whether the AMAZON.KendraSearchIntent intent uses a custom query string to query the Amazon Kendra index.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // QueryFilterStringEnabled is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration for searching a Amazon Kendra index specified for the intent.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // KendraConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Unique name for a resource.", - Optional: true, - Computed: true, + Required: 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*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: OutputContexts "output_contexts": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -8003,64 +6996,48 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Unique name for a resource.", - Optional: true, - Computed: true, + Required: 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*/ + // Name is a write-only property. }, /*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.", - Optional: true, - Computed: true, + Required: 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*/ + // TimeToLiveInSeconds is a write-only property. }, /*END ATTRIBUTE*/ // Property: TurnsToLive "turns_to_live": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of conversation turns that the output context should remain active.", - Optional: true, - Computed: true, + Required: 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*/ + // TurnsToLive is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of contexts that the intent activates when it is fulfilled.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(10), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // OutputContexts is a write-only property. }, /*END ATTRIBUTE*/ // Property: ParentIntentSignature "parent_intent_signature": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A unique identifier for the built-in intent to base this intent on.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ParentIntentSignature is a write-only property. }, /*END ATTRIBUTE*/ // Property: SampleUtterances "sample_utterances": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -8069,24 +7046,17 @@ 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.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Utterance is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "An array of sample utterances", Optional: true, - Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // SampleUtterances is a write-only property. }, /*END ATTRIBUTE*/ // Property: SlotPriorities "slot_priorities": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -8095,39 +7065,30 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Priority "priority": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The priority that a slot should be elicited.", - Optional: true, - Computed: true, + Required: 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*/ + // Priority is a write-only property. }, /*END ATTRIBUTE*/ // Property: SlotName "slot_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the slot.", - Optional: true, - Computed: true, + Required: 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*/ + // SlotName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "List for slot priorities", Optional: true, - Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // SlotPriorities is a write-only property. }, /*END ATTRIBUTE*/ // Property: Slots "slots": schema.SetNestedAttribute{ /*START ATTRIBUTE*/ @@ -8137,13 +7098,10 @@ func botResource(ctx context.Context) (resource.Resource, error) { "description": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A description of the resource", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(200), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Description is a write-only property. }, /*END ATTRIBUTE*/ // Property: MultipleValuesSetting "multiple_values_setting": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -8151,32 +7109,22 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: AllowMultipleValues "allow_multiple_values": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AllowMultipleValues is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Indicates whether a slot can return multiple values.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MultipleValuesSetting is a write-only property. }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Unique name for a resource.", - Optional: true, - Computed: true, + Required: 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*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: ObfuscationSetting "obfuscation_setting": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -8184,38 +7132,25 @@ 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.", - Optional: true, - Computed: true, + Required: 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*/ + // ObfuscationSettingType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Determines whether Amazon Lex obscures slot values in conversation logs.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ObfuscationSetting is a write-only property. }, /*END ATTRIBUTE*/ // 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", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // SlotTypeName is a write-only property. }, /*END ATTRIBUTE*/ // Property: ValueElicitationSetting "value_elicitation_setting": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -8230,37 +7165,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.", - Optional: true, - Computed: true, + Required: 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*/ + // DefaultValue is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of slot default values", - Optional: true, - Computed: true, + Required: 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*/ + // DefaultValueList is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A list of default values for a slot.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DefaultValueSpecification is a write-only property. }, /*END ATTRIBUTE*/ // Property: PromptSpecification "prompt_specification": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -8269,23 +7195,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { "allow_interrupt": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether the user can interrupt a speech prompt from the bot.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AllowInterrupt is a write-only property. }, /*END ATTRIBUTE*/ // 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.", - Optional: true, - Computed: true, + Required: 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*/ + // MaxRetries is a write-only property. }, /*END ATTRIBUTE*/ // Property: MessageGroupsList "message_groups_list": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -8300,23 +7219,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -8328,86 +7240,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -8415,23 +7305,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -8439,34 +7322,21 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Message is a write-only property. }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -8478,23 +7348,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -8506,86 +7369,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -8593,23 +7434,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -8617,65 +7451,52 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Message variations to send to the user.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(2), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Variations is a write-only property. }, /*END ATTRIBUTE*/ }, /*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.", - Optional: true, - Computed: true, + Required: 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*/ + // MessageGroupsList is a write-only property. }, /*END ATTRIBUTE*/ // Property: MessageSelectionStrategy "message_selection_strategy": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Indicates how a message is selected from a message group among retries.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Random", "Ordered", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MessageSelectionStrategy is a write-only property. }, /*END ATTRIBUTE*/ // Property: PromptAttemptsSpecification "prompt_attempts_specification": // Pattern: "" @@ -8686,10 +7507,7 @@ func botResource(ctx context.Context) (resource.Resource, error) { "allow_interrupt": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether the user can interrupt a speech prompt attempt from the bot.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AllowInterrupt is a write-only property. }, /*END ATTRIBUTE*/ // Property: AllowedInputTypes "allowed_input_types": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -8697,34 +7515,19 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: AllowAudioInput "allow_audio_input": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether audio input is allowed.", - Optional: true, - Computed: true, - Validators: []validator.Bool{ /*START VALIDATORS*/ - fwvalidators.NotNullBool(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // AllowAudioInput is a write-only property. }, /*END ATTRIBUTE*/ // Property: AllowDTMFInput "allow_dtmf_input": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether DTMF input is allowed.", - Optional: true, - Computed: true, - Validators: []validator.Bool{ /*START VALIDATORS*/ - fwvalidators.NotNullBool(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // AllowDTMFInput is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the allowed input types.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AllowedInputTypes is a write-only property. }, /*END ATTRIBUTE*/ // Property: AudioAndDTMFInputSpecification "audio_and_dtmf_input_specification": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -8735,36 +7538,25 @@ 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.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), - fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EndTimeoutMs is a write-only property. }, /*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.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), - fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MaxLengthMs is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the audio input specifications.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AudioSpecification is a write-only property. }, /*END ATTRIBUTE*/ // Property: DTMFSpecification "dtmf_specification": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -8772,83 +7564,57 @@ 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.", - Optional: true, - Computed: true, + Required: 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*/ + // DeletionCharacter is a write-only property. }, /*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.", - Optional: true, - Computed: true, + Required: 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*/ + // EndCharacter is a write-only property. }, /*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.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), - fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EndTimeoutMs is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaxLength "max_length": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The maximum number of DTMF digits allowed in an utterance.", - Optional: true, - Computed: true, + Required: 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*/ + // MaxLength is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the settings on DTMF input.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DTMFSpecification is a write-only property. }, /*END ATTRIBUTE*/ // 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.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), - fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // StartTimeoutMs is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the audio and DTMF input specification.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AudioAndDTMFInputSpecification is a write-only property. }, /*END ATTRIBUTE*/ // Property: TextInputSpecification "text_input_specification": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -8856,40 +7622,27 @@ 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.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), - fwvalidators.NotNullInt64(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // StartTimeoutMs is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the text input specifications.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TextInputSpecification is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Specifies the advanced settings on each attempt of the prompt.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ - mapplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PromptAttemptsSpecification is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The prompt that Amazon Lex uses to elicit the slot value from the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PromptSpecification is a write-only property. }, /*END ATTRIBUTE*/ // Property: SampleUtterances "sample_utterances": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -8898,40 +7651,29 @@ 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.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Utterance is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "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.", Optional: true, - Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // SampleUtterances is a write-only property. }, /*END ATTRIBUTE*/ // Property: SlotConstraint "slot_constraint": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether the slot is required or optional.", - Optional: true, - Computed: true, + Required: 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*/ + // SlotConstraint is a write-only property. }, /*END ATTRIBUTE*/ // Property: WaitAndContinueSpecification "wait_and_continue_specification": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -8943,10 +7685,7 @@ func botResource(ctx context.Context) (resource.Resource, error) { "allow_interrupt": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether the user can interrupt a speech prompt from the bot.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AllowInterrupt is a write-only property. }, /*END ATTRIBUTE*/ // Property: MessageGroupsList "message_groups_list": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -8961,23 +7700,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -8989,86 +7721,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -9076,23 +7786,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -9100,34 +7803,21 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Message is a write-only property. }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -9139,23 +7829,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -9167,86 +7850,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -9254,23 +7915,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -9278,70 +7932,51 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Message variations to send to the user.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(2), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Variations is a write-only property. }, /*END ATTRIBUTE*/ }, /*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.", - Optional: true, - Computed: true, + Required: 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*/ + // MessageGroupsList is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The response that Amazon Lex sends to indicate that the bot is ready to continue the conversation.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // ContinueResponse is a write-only property. }, /*END ATTRIBUTE*/ // Property: IsActive "is_active": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether the bot will wait for a user to respond.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IsActive is a write-only property. }, /*END ATTRIBUTE*/ // Property: StillWaitingResponse "still_waiting_response": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -9350,23 +7985,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { "allow_interrupt": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether the user can interrupt a speech prompt from the bot.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AllowInterrupt is a write-only property. }, /*END ATTRIBUTE*/ // Property: FrequencyInSeconds "frequency_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "How often a message should be sent to the user in seconds.", - Optional: true, - Computed: true, + Required: 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*/ + // FrequencyInSeconds is a write-only property. }, /*END ATTRIBUTE*/ // Property: MessageGroupsList "message_groups_list": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -9381,23 +8009,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -9409,86 +8030,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -9496,23 +8095,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -9520,34 +8112,21 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Message is a write-only property. }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -9559,23 +8138,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -9587,86 +8159,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -9674,23 +8224,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -9698,71 +8241,54 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Message variations to send to the user.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(2), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Variations is a write-only property. }, /*END ATTRIBUTE*/ }, /*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.", - Optional: true, - Computed: true, + Required: 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*/ + // MessageGroupsList is a write-only property. }, /*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.", - Optional: true, - Computed: true, + Required: 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*/ + // TimeoutInSeconds is a write-only property. }, /*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.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // StillWaitingResponse is a write-only property. }, /*END ATTRIBUTE*/ // Property: WaitingResponse "waiting_response": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -9771,10 +8297,7 @@ func botResource(ctx context.Context) (resource.Resource, error) { "allow_interrupt": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Indicates whether the user can interrupt a speech prompt from the bot.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AllowInterrupt is a write-only property. }, /*END ATTRIBUTE*/ // Property: MessageGroupsList "message_groups_list": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -9789,23 +8312,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -9817,86 +8333,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -9904,23 +8398,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -9928,34 +8415,21 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The primary message that Amazon Lex should send to the user.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Message is a write-only property. }, /*END ATTRIBUTE*/ // Property: Variations "variations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -9967,23 +8441,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The string that is sent to your application.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in a custom format defined by the client application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomPayload is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageResponseCard "image_response_card": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -9995,86 +8462,64 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Text "text": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text that appears on the button.", - Optional: true, - Computed: true, + Required: 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*/ + // Text is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The value returned to Amazon Lex when the user chooses this button.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of buttons that should be displayed on the response card.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(5), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Buttons is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageUrl "image_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The URL of an image to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subtitle "subtitle": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The subtitle to display on the response card.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subtitle is a write-only property. }, /*END ATTRIBUTE*/ // Property: Title "title": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The title to display on the response card.", - Optional: true, - Computed: true, + Required: 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*/ + // Title is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message that defines a response card that the client application can show to the user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageResponseCard is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlainTextMessage "plain_text_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -10082,23 +8527,16 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The message to send to the user.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in plain text format.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlainTextMessage is a write-only property. }, /*END ATTRIBUTE*/ // Property: SSMLMessage "ssml_message": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -10106,129 +8544,88 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The SSML text that defines the prompt.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A message in Speech Synthesis Markup Language (SSML).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SSMLMessage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Message variations to send to the user.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(2), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Variations is a write-only property. }, /*END ATTRIBUTE*/ }, /*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.", - Optional: true, - Computed: true, + Required: 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*/ + // MessageGroupsList is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The response that Amazon Lex sends to indicate that the bot is waiting for the conversation to continue.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // WaitingResponse is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the prompts that Amazon Lex uses while a bot is waiting for customer input.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // WaitAndContinueSpecification is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Settings that you can use for eliciting a slot value.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // ValueElicitationSetting is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "List of slots", Optional: true, - Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeAtMost(100), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Slots is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "List of intents", Optional: true, - Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeAtMost(1000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Intents is a write-only property. }, /*END ATTRIBUTE*/ // Property: LocaleId "locale_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The identifier of the language and locale that the bot will be used in.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // LocaleId is a write-only property. }, /*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.", - Optional: true, - Computed: true, + Required: 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*/ + // NluConfidenceThreshold is a write-only property. }, /*END ATTRIBUTE*/ // Property: SlotTypes "slot_types": schema.SetNestedAttribute{ /*START ATTRIBUTE*/ @@ -10238,13 +8635,10 @@ func botResource(ctx context.Context) (resource.Resource, error) { "description": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A description of the resource", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(200), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Description is a write-only property. }, /*END ATTRIBUTE*/ // Property: ExternalSourceSetting "external_source_setting": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -10259,89 +8653,62 @@ func botResource(ctx context.Context) (resource.Resource, error) { "kms_key_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon KMS key required to decrypt the contents of the grammar, if any.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:[\\w\\-]+:kms:[\\w\\-]+:[\\d]{12}:(?:key\\/[\\w\\-]+|alias\\/[a-zA-Z0-9:\\/_\\-]{1,256})$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // KmsKeyArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3BucketName "s3_bucket_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the S3 bucket that contains the grammar source.", - Optional: true, - Computed: true, + Required: 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*/ + // S3BucketName is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3ObjectKey "s3_object_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The path to the grammar in the S3 bucket.", - Optional: true, - Computed: true, + Required: 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*/ + // S3ObjectKey is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Describes the Amazon S3 bucket name and location for the grammar that is the source for the slot type.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Source is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Settings required for a slot type based on a grammar that you provide.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // GrammarSlotTypeSetting is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Provides information about the external source of the slot type's definition.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ExternalSourceSetting is a write-only property. }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Unique name for a resource.", - Optional: true, - Computed: true, + Required: 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*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: ParentSlotTypeSignature "parent_slot_type_signature": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The built-in slot type used as a parent of this slot type.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ParentSlotTypeSignature is a write-only property. }, /*END ATTRIBUTE*/ // Property: SlotTypeValues "slot_type_values": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -10353,26 +8720,16 @@ 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.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Defines one of the values for a slot type.", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // SampleValue is a write-only property. }, /*END ATTRIBUTE*/ // Property: Synonyms "synonyms": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -10381,41 +8738,35 @@ 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.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Additional values related to the slot type entry.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(10000), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Synonyms is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A List of slot type values", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(10000), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // SlotTypeValues is a write-only property. }, /*END ATTRIBUTE*/ // Property: ValueSelectionSetting "value_selection_setting": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -10427,23 +8778,17 @@ func botResource(ctx context.Context) (resource.Resource, error) { "audio_recognition_strategy": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Enables using slot values as a custom vocabulary when recognizing user utterances.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "UseSlotValuesAsCustomVocabulary", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AudioRecognitionStrategy is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Provides settings that enable advanced recognition settings for slot values.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AdvancedRecognitionSetting is a write-only property. }, /*END ATTRIBUTE*/ // Property: RegexFilter "regex_filter": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -10451,58 +8796,41 @@ func botResource(ctx context.Context) (resource.Resource, error) { // Property: Pattern "pattern": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Regex pattern", - Optional: true, - Computed: true, + Required: 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*/ + // Pattern is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A regular expression used to validate the value of a slot.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RegexFilter is a write-only property. }, /*END ATTRIBUTE*/ // Property: ResolutionStrategy "resolution_strategy": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // ResolutionStrategy is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Contains settings used by Amazon Lex to select a slot value.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ValueSelectionSetting is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "List of SlotTypes", Optional: true, - Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeAtMost(250), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SlotTypes is a write-only property. }, /*END ATTRIBUTE*/ // Property: VoiceSettings "voice_settings": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -10511,45 +8839,29 @@ func botResource(ctx context.Context) (resource.Resource, error) { "engine": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "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.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "standard", "neural", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Engine is a write-only property. }, /*END ATTRIBUTE*/ // Property: VoiceId "voice_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // VoiceId is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Settings for using an Amazon Polly voice to communicate with a user.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // VoiceSettings is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "List of bot locales", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // BotLocales is a write-only property. }, /*END ATTRIBUTE*/ // Property: BotTags @@ -10591,40 +8903,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 -.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*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 -.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of tags to add to the bot, which can only be added at bot creation.", Optional: true, - Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeAtMost(200), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // BotTags is a write-only property. }, /*END ATTRIBUTE*/ // Property: DataPrivacy @@ -11345,40 +9645,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 -.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*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 -.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of tags to add to the test alias for a bot, , which can only be added at bot/bot alias creation.", Optional: true, - Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeAtMost(200), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // TestBotAliasTags is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/lex/bot_version_resource_gen.go b/internal/aws/lex/bot_version_resource_gen.go index adc51c447e..de8e6f97cf 100644 --- a/internal/aws/lex/bot_version_resource_gen.go +++ b/internal/aws/lex/bot_version_resource_gen.go @@ -120,15 +120,18 @@ func botVersionResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthBetween(1, 5), stringvalidator.RegexMatches(regexp.MustCompile("^(DRAFT|[0-9]+)$"), ""), }, /*END VALIDATORS*/ + // SourceBotVersion is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The version of a bot used for a bot locale.", Required: true, + // BotVersionLocaleDetails is a write-only property. }, /*END ATTRIBUTE*/ // 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, + // LocaleId is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/licensemanager/grant_resource_gen.go b/internal/aws/licensemanager/grant_resource_gen.go index 7d765db4c0..29f7c00065 100644 --- a/internal/aws/licensemanager/grant_resource_gen.go +++ b/internal/aws/licensemanager/grant_resource_gen.go @@ -12,7 +12,6 @@ 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/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" @@ -42,13 +41,9 @@ func grantResource(ctx context.Context) (resource.Resource, error) { "allowed_operations": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AllowedOperations is a write-only property. }, /*END ATTRIBUTE*/ // Property: GrantArn @@ -129,16 +124,12 @@ func grantResource(ctx context.Context) (resource.Resource, error) { "principals": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), listvalidator.ValueStringsAre( stringvalidator.LengthAtMost(2048), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Principals is a write-only property. }, /*END ATTRIBUTE*/ // Property: Status @@ -149,10 +140,6 @@ func grantResource(ctx context.Context) (resource.Resource, error) { // } "status": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Status is a write-only property. }, /*END ATTRIBUTE*/ // Property: Version diff --git a/internal/aws/licensemanager/license_resource_gen.go b/internal/aws/licensemanager/license_resource_gen.go index 2d46dbee8b..a8ed1198bf 100644 --- a/internal/aws/licensemanager/license_resource_gen.go +++ b/internal/aws/licensemanager/license_resource_gen.go @@ -409,10 +409,6 @@ func licenseResource(ctx context.Context) (resource.Resource, error) { // } "status": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Status is a write-only property. }, /*END ATTRIBUTE*/ // Property: Validity diff --git a/internal/aws/lightsail/database_resource_gen.go b/internal/aws/lightsail/database_resource_gen.go index 7d1056f7a0..8715cc529c 100644 --- a/internal/aws/lightsail/database_resource_gen.go +++ b/internal/aws/lightsail/database_resource_gen.go @@ -124,13 +124,9 @@ func databaseResource(ctx context.Context) (resource.Resource, error) { "master_user_password": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The password for the master user. The password can include any printable ASCII character except \"/\", \"\"\", or \"@\". It cannot contain spaces.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 63), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // MasterUserPassword is a write-only property. }, /*END ATTRIBUTE*/ // Property: MasterUsername @@ -311,82 +307,54 @@ func databaseResource(ctx context.Context) (resource.Resource, error) { "allowed_values": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the valid range of values for the parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AllowedValues is a write-only property. }, /*END ATTRIBUTE*/ // Property: ApplyMethod "apply_method": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Indicates when parameter updates are applied. Can be immediate or pending-reboot.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ApplyMethod is a write-only property. }, /*END ATTRIBUTE*/ // Property: ApplyType "apply_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the engine-specific parameter type.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ApplyType is a write-only property. }, /*END ATTRIBUTE*/ // Property: DataType "data_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the valid data type for the parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DataType is a write-only property. }, /*END ATTRIBUTE*/ // Property: Description "description": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Provides a description of the parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Description is a write-only property. }, /*END ATTRIBUTE*/ // Property: IsModifiable "is_modifiable": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "A Boolean value indicating whether the parameter can be modified.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IsModifiable is a write-only property. }, /*END ATTRIBUTE*/ // Property: ParameterName "parameter_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the name of the parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ParameterName is a write-only property. }, /*END ATTRIBUTE*/ // Property: ParameterValue "parameter_value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the value of the parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ParameterValue is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "Update one or more parameters of the relational database.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // RelationalDatabaseParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: RotateMasterUserPassword @@ -399,10 +367,6 @@ func databaseResource(ctx context.Context) (resource.Resource, error) { "rotate_master_user_password": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "When true, the master user password is changed to a new strong password generated by Lightsail. Use the get relational database master user password operation to get the new password.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // RotateMasterUserPassword is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tags diff --git a/internal/aws/lightsail/instance_resource_gen.go b/internal/aws/lightsail/instance_resource_gen.go index e69b1b1631..c8fb81344e 100644 --- a/internal/aws/lightsail/instance_resource_gen.go +++ b/internal/aws/lightsail/instance_resource_gen.go @@ -935,10 +935,6 @@ func instanceResource(ctx context.Context) (resource.Resource, error) { "user_data": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A launch script you can create that configures a server with additional user data. For example, you might want to run apt-get -y update.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // UserData is a write-only property. }, /*END ATTRIBUTE*/ // Property: UserName diff --git a/internal/aws/location/api_key_resource_gen.go b/internal/aws/location/api_key_resource_gen.go index 98f55d04de..e6fdb7d95f 100644 --- a/internal/aws/location/api_key_resource_gen.go +++ b/internal/aws/location/api_key_resource_gen.go @@ -14,7 +14,6 @@ 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/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" @@ -108,10 +107,6 @@ func aPIKeyResource(ctx context.Context) (resource.Resource, error) { // } "force_delete": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ForceDelete is a write-only property. }, /*END ATTRIBUTE*/ // Property: ForceUpdate @@ -122,10 +117,6 @@ func aPIKeyResource(ctx context.Context) (resource.Resource, error) { // } "force_update": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ForceUpdate is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeyArn @@ -169,10 +160,6 @@ func aPIKeyResource(ctx context.Context) (resource.Resource, error) { // } "no_expiry": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // NoExpiry is a write-only property. }, /*END ATTRIBUTE*/ // Property: Restrictions diff --git a/internal/aws/location/map_resource_gen.go b/internal/aws/location/map_resource_gen.go index bce7e4e8b3..10d3c3e22a 100644 --- a/internal/aws/location/map_resource_gen.go +++ b/internal/aws/location/map_resource_gen.go @@ -98,6 +98,7 @@ func mapResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PoliticalView @@ -110,6 +111,7 @@ func mapResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Style @@ -119,6 +121,9 @@ func mapResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthBetween(1, 100), stringvalidator.RegexMatches(regexp.MustCompile("^[-._\\w]+$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Required: true, diff --git a/internal/aws/logs/delivery_source_resource_gen.go b/internal/aws/logs/delivery_source_resource_gen.go index 5f508f4e7d..2c66ab22a2 100644 --- a/internal/aws/logs/delivery_source_resource_gen.go +++ b/internal/aws/logs/delivery_source_resource_gen.go @@ -103,14 +103,10 @@ func deliverySourceResource(ctx context.Context) (resource.Resource, error) { "resource_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the resource that will be sending the logs.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(16, 2048), stringvalidator.RegexMatches(regexp.MustCompile("[\\w#+=/:,.@-]*\\*?"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ResourceArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: ResourceArns diff --git a/internal/aws/logs/log_anomaly_detector_resource_gen.go b/internal/aws/logs/log_anomaly_detector_resource_gen.go index cbd8a47148..07c4aed502 100644 --- a/internal/aws/logs/log_anomaly_detector_resource_gen.go +++ b/internal/aws/logs/log_anomaly_detector_resource_gen.go @@ -40,10 +40,6 @@ func logAnomalyDetectorResource(ctx context.Context) (resource.Resource, error) "account_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Account ID for owner of detector", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AccountId is a write-only property. }, /*END ATTRIBUTE*/ // Property: AnomalyDetectorArn diff --git a/internal/aws/lookoutmetrics/alert_resource_gen.go b/internal/aws/lookoutmetrics/alert_resource_gen.go index 6242e3cc8c..075ae25025 100644 --- a/internal/aws/lookoutmetrics/alert_resource_gen.go +++ b/internal/aws/lookoutmetrics/alert_resource_gen.go @@ -104,6 +104,7 @@ func alertResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RoleArn @@ -118,6 +119,7 @@ func alertResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -126,6 +128,7 @@ func alertResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SNSConfiguration @@ -143,6 +146,7 @@ func alertResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SnsTopicArn @@ -157,6 +161,7 @@ func alertResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -165,6 +170,7 @@ func alertResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -309,9 +315,9 @@ func alertResource(ctx context.Context) (resource.Resource, error) { "sns_topic_arn": "SnsTopicArn", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/m2/application_resource_gen.go b/internal/aws/m2/application_resource_gen.go index b42ee19d5b..7eb104163b 100644 --- a/internal/aws/m2/application_resource_gen.go +++ b/internal/aws/m2/application_resource_gen.go @@ -77,21 +77,15 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // Property: Content "content": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 65000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Content is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3Location "s3_location": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // S3Location is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Required: true, diff --git a/internal/aws/m2/environment_resource_gen.go b/internal/aws/m2/environment_resource_gen.go index 2e202244d6..ec26cc4545 100644 --- a/internal/aws/m2/environment_resource_gen.go +++ b/internal/aws/m2/environment_resource_gen.go @@ -359,6 +359,7 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MountPoint @@ -372,6 +373,7 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -380,6 +382,7 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Fsx @@ -396,6 +399,7 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MountPoint @@ -409,6 +413,7 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -417,6 +422,7 @@ func environmentResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/managedblockchain/accessor_resource_gen.go b/internal/aws/managedblockchain/accessor_resource_gen.go index de1a0ceb52..0ec9dedc2a 100644 --- a/internal/aws/managedblockchain/accessor_resource_gen.go +++ b/internal/aws/managedblockchain/accessor_resource_gen.go @@ -13,12 +13,10 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" "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() { @@ -190,40 +188,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 -. ", - Optional: true, - Computed: true, + Required: 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*/ + // Key is a write-only property. }, /*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 -. ", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "An array of key-value pairs to apply to this resource.", Optional: true, - Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeAtMost(50), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Tags is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/mediaconnect/gateway_resource_gen.go b/internal/aws/mediaconnect/gateway_resource_gen.go index 6fdb24e091..a95f72baaa 100644 --- a/internal/aws/mediaconnect/gateway_resource_gen.go +++ b/internal/aws/mediaconnect/gateway_resource_gen.go @@ -133,11 +133,17 @@ func gatewayResource(ctx context.Context) (resource.Resource, error) { "cidr_block": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A unique IP address range to use for this network. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.", Required: true, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the network. This name is used to reference the network and must be unique among networks in this gateway.", Required: true, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -180,9 +186,9 @@ func gatewayResource(ctx context.Context) (resource.Resource, error) { "networks": "Networks", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/medialive/multiplexprogram_resource_gen.go b/internal/aws/medialive/multiplexprogram_resource_gen.go index 1340a6ed41..4bca5dc810 100644 --- a/internal/aws/medialive/multiplexprogram_resource_gen.go +++ b/internal/aws/medialive/multiplexprogram_resource_gen.go @@ -547,7 +547,6 @@ func multiplexprogramResource(ctx context.Context) (resource.Resource, error) { "preferred_channel_pipeline": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The settings for this multiplex program.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "CURRENTLY_ACTIVE", @@ -555,9 +554,6 @@ func multiplexprogramResource(ctx context.Context) (resource.Resource, error) { "PIPELINE_1", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // PreferredChannelPipeline is a write-only property. }, /*END ATTRIBUTE*/ // Property: ProgramName diff --git a/internal/aws/medialive/signal_map_resource_gen.go b/internal/aws/medialive/signal_map_resource_gen.go index 335f2de8a9..53de806474 100644 --- a/internal/aws/medialive/signal_map_resource_gen.go +++ b/internal/aws/medialive/signal_map_resource_gen.go @@ -63,15 +63,11 @@ func signalMapResource(ctx context.Context) (resource.Resource, error) { "cloudwatch_alarm_template_group_identifiers": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.RegexMatches(regexp.MustCompile("^[^\\s]+$"), ""), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // CloudWatchAlarmTemplateGroupIdentifiers is a write-only property. }, /*END ATTRIBUTE*/ // Property: CloudWatchAlarmTemplateGroupIds @@ -172,15 +168,11 @@ func signalMapResource(ctx context.Context) (resource.Resource, error) { "event_bridge_rule_template_group_identifiers": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.RegexMatches(regexp.MustCompile("^[^\\s]+$"), ""), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // EventBridgeRuleTemplateGroupIdentifiers is a write-only property. }, /*END ATTRIBUTE*/ // Property: EventBridgeRuleTemplateGroupIds diff --git a/internal/aws/mediapackage/channel_resource_gen.go b/internal/aws/mediapackage/channel_resource_gen.go index 0200e60953..5d202ab70c 100644 --- a/internal/aws/mediapackage/channel_resource_gen.go +++ b/internal/aws/mediapackage/channel_resource_gen.go @@ -307,6 +307,7 @@ func channelResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -318,6 +319,7 @@ func channelResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/mediapackage/packaging_group_resource_gen.go b/internal/aws/mediapackage/packaging_group_resource_gen.go index cec3148b72..dd1b71378b 100644 --- a/internal/aws/mediapackage/packaging_group_resource_gen.go +++ b/internal/aws/mediapackage/packaging_group_resource_gen.go @@ -209,6 +209,7 @@ func packagingGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -220,6 +221,7 @@ func packagingGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/mediatailor/channel_resource_gen.go b/internal/aws/mediatailor/channel_resource_gen.go index 962c700e67..dad0426acf 100644 --- a/internal/aws/mediatailor/channel_resource_gen.go +++ b/internal/aws/mediatailor/channel_resource_gen.go @@ -255,45 +255,30 @@ func channelResource(ctx context.Context) (resource.Resource, error) { "manifest_window_seconds": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "

The total duration (in seconds) of each manifest. Minimum value: 30 seconds. Maximum value: 3600 seconds.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ - float64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ManifestWindowSeconds is a write-only property. }, /*END ATTRIBUTE*/ // Property: MinBufferTimeSeconds "min_buffer_time_seconds": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "

Minimum amount of content (measured in seconds) that a player must keep available in the buffer. Minimum value: 2 seconds. Maximum value: 60 seconds.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ - float64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MinBufferTimeSeconds is a write-only property. }, /*END ATTRIBUTE*/ // Property: MinUpdatePeriodSeconds "min_update_period_seconds": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "

Minimum amount of time (in seconds) that the player should wait before requesting updates to the manifest. Minimum value: 2 seconds. Maximum value: 60 seconds.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ - float64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MinUpdatePeriodSeconds is a write-only property. }, /*END ATTRIBUTE*/ // Property: SuggestedPresentationDelaySeconds "suggested_presentation_delay_seconds": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "

Amount of time (in seconds) that the player should be from the live point at the end of the manifest. Minimum value: 2 seconds. Maximum value: 60 seconds.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ - float64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SuggestedPresentationDelaySeconds is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

Dash manifest configuration parameters.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DashPlaylistSettings is a write-only property. }, /*END ATTRIBUTE*/ // Property: HlsPlaylistSettings "hls_playlist_settings": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -303,7 +288,6 @@ func channelResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "

Determines the type of SCTE 35 tags to use in ad markup. Specify DATERANGE to use DATERANGE tags (for live or VOD content). Specify SCTE35_ENHANCED to use EXT-X-CUE-OUT and EXT-X-CUE-IN tags (for VOD content only).

", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.OneOf( @@ -312,36 +296,30 @@ func channelResource(ctx context.Context) (resource.Resource, error) { ), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AdMarkupType is a write-only property. }, /*END ATTRIBUTE*/ // Property: ManifestWindowSeconds "manifest_window_seconds": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "

The total duration (in seconds) of each manifest. Minimum value: 30 seconds. Maximum value: 3600 seconds.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ - float64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ManifestWindowSeconds is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

HLS playlist configuration parameters.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // HlsPlaylistSettings is a write-only property. }, /*END ATTRIBUTE*/ // Property: ManifestName "manifest_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The name of the manifest for the channel. The name appears in the PlaybackUrl.

", Required: true, + // ManifestName is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourceGroup "source_group": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

A string used to match which HttpPackageConfiguration is used for each VodSource.

", Required: true, + // SourceGroup is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/memorydb/cluster_resource_gen.go b/internal/aws/memorydb/cluster_resource_gen.go index 51b512fd41..be18cfab32 100644 --- a/internal/aws/memorydb/cluster_resource_gen.go +++ b/internal/aws/memorydb/cluster_resource_gen.go @@ -207,10 +207,6 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { "final_snapshot_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The user-supplied name of a final cluster snapshot. This is the unique name that identifies the snapshot. MemoryDB creates the snapshot, and then deletes the cluster immediately afterward.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // FinalSnapshotName is a write-only property. }, /*END ATTRIBUTE*/ // Property: KmsKeyId diff --git a/internal/aws/memorydb/parameter_group_resource_gen.go b/internal/aws/memorydb/parameter_group_resource_gen.go index f8a72fc5cc..03384415dc 100644 --- a/internal/aws/memorydb/parameter_group_resource_gen.go +++ b/internal/aws/memorydb/parameter_group_resource_gen.go @@ -99,10 +99,6 @@ func parameterGroupResource(ctx context.Context) (resource.Resource, error) { CustomType: jsontypes.NormalizedType{}, Description: "An map of parameter names and values for the parameter update. You must supply at least one parameter name and value; subsequent arguments are optional.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Parameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tags diff --git a/internal/aws/memorydb/user_resource_gen.go b/internal/aws/memorydb/user_resource_gen.go index 557825977f..6b13ad7e54 100644 --- a/internal/aws/memorydb/user_resource_gen.go +++ b/internal/aws/memorydb/user_resource_gen.go @@ -14,8 +14,6 @@ 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/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" @@ -44,10 +42,6 @@ func userResource(ctx context.Context) (resource.Resource, error) { "access_string": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Access permissions string used for this user account.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AccessString is a write-only property. }, /*END ATTRIBUTE*/ // Property: Arn @@ -100,36 +94,26 @@ func userResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "Passwords used for this user account. You can create up to two passwords for each user.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 2), listvalidator.UniqueValues(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Passwords is a write-only property. }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Type of authentication strategy for this user.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "password", "iam", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Type is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AuthenticationMode is a write-only property. }, /*END ATTRIBUTE*/ // Property: Status diff --git a/internal/aws/msk/cluster_resource_gen.go b/internal/aws/msk/cluster_resource_gen.go index 5154ce3cbb..2aebc788de 100644 --- a/internal/aws/msk/cluster_resource_gen.go +++ b/internal/aws/msk/cluster_resource_gen.go @@ -722,6 +722,7 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/msk/replicator_resource_gen.go b/internal/aws/msk/replicator_resource_gen.go index a027db938f..58401b6f92 100644 --- a/internal/aws/msk/replicator_resource_gen.go +++ b/internal/aws/msk/replicator_resource_gen.go @@ -150,10 +150,16 @@ func replicatorResource(ctx context.Context) (resource.Resource, error) { Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("arn:(aws|aws-us-gov|aws-cn):kafka:.*"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Details of an Amazon MSK cluster. Exactly one of AmazonMskCluster is required.", Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VpcConfig "vpc_config": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -169,6 +175,7 @@ func replicatorResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ setplanmodifier.UseStateForUnknown(), + setplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetIds @@ -179,10 +186,16 @@ func replicatorResource(ctx context.Context) (resource.Resource, error) { Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeBetween(2, 3), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Details of an Amazon VPC which has network connectivity to the Apache Kafka cluster.", Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/msk/serverless_cluster_resource_gen.go b/internal/aws/msk/serverless_cluster_resource_gen.go index a755374840..01e875e201 100644 --- a/internal/aws/msk/serverless_cluster_resource_gen.go +++ b/internal/aws/msk/serverless_cluster_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/mapplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" @@ -86,12 +87,21 @@ func serverlessClusterResource(ctx context.Context) (resource.Resource, error) { // Property: Enabled "enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/ Required: true, + PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ + boolplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Required: true, @@ -183,12 +193,16 @@ func serverlessClusterResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ setplanmodifier.UseStateForUnknown(), + setplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SubnetIds "subnet_ids": schema.SetAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Required: true, + PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ + setplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -231,9 +245,9 @@ func serverlessClusterResource(ctx context.Context) (resource.Resource, error) { "vpc_configs": "VpcConfigs", }) - opts = opts.WithCreateTimeoutInMinutes(120).WithDeleteTimeoutInMinutes(75) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(120).WithDeleteTimeoutInMinutes(75) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/neptune/db_cluster_resource_gen.go b/internal/aws/neptune/db_cluster_resource_gen.go index 5eb6402e20..6af4288f67 100644 --- a/internal/aws/neptune/db_cluster_resource_gen.go +++ b/internal/aws/neptune/db_cluster_resource_gen.go @@ -227,10 +227,6 @@ func dBClusterResource(ctx context.Context) (resource.Resource, error) { "db_instance_parameter_group_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the DB parameter group to apply to all instances of the DB cluster. Used only in case of a major EngineVersion upgrade request.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // DBInstanceParameterGroupName is a write-only property. }, /*END ATTRIBUTE*/ // Property: DBPort diff --git a/internal/aws/neptunegraph/graph_resource_gen.go b/internal/aws/neptunegraph/graph_resource_gen.go index a2d7eb34dd..9fcedff3f6 100644 --- a/internal/aws/neptunegraph/graph_resource_gen.go +++ b/internal/aws/neptunegraph/graph_resource_gen.go @@ -256,6 +256,7 @@ func graphResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/networkmanager/connect_attachment_resource_gen.go b/internal/aws/networkmanager/connect_attachment_resource_gen.go index 78e50e9632..302f72c78d 100644 --- a/internal/aws/networkmanager/connect_attachment_resource_gen.go +++ b/internal/aws/networkmanager/connect_attachment_resource_gen.go @@ -165,6 +165,7 @@ func connectAttachmentResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/networkmanager/connect_peer_resource_gen.go b/internal/aws/networkmanager/connect_peer_resource_gen.go index 8edbd6b108..e320ae37e6 100644 --- a/internal/aws/networkmanager/connect_peer_resource_gen.go +++ b/internal/aws/networkmanager/connect_peer_resource_gen.go @@ -52,7 +52,9 @@ func connectPeerResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // PeerAsn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Bgp options for connect peer.", diff --git a/internal/aws/omics/reference_store_resource_gen.go b/internal/aws/omics/reference_store_resource_gen.go index a6598a8bf8..8de03c17f0 100644 --- a/internal/aws/omics/reference_store_resource_gen.go +++ b/internal/aws/omics/reference_store_resource_gen.go @@ -163,6 +163,7 @@ func referenceStoreResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type @@ -177,6 +178,7 @@ func referenceStoreResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -246,13 +248,13 @@ func referenceStoreResource(ctx context.Context) (resource.Resource, error) { "type": "Type", }) + opts = opts.IsImmutableType(true) + opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/Tags", }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) - opts = opts.WithUpdateTimeoutInMinutes(0) - v, err := generic.NewResource(ctx, opts...) if err != nil { diff --git a/internal/aws/omics/sequence_store_resource_gen.go b/internal/aws/omics/sequence_store_resource_gen.go index 47a0d25daa..65521e104f 100644 --- a/internal/aws/omics/sequence_store_resource_gen.go +++ b/internal/aws/omics/sequence_store_resource_gen.go @@ -184,6 +184,7 @@ func sequenceStoreResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type @@ -198,6 +199,7 @@ func sequenceStoreResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -268,13 +270,13 @@ func sequenceStoreResource(ctx context.Context) (resource.Resource, error) { "type": "Type", }) + opts = opts.IsImmutableType(true) + opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/Tags", }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) - opts = opts.WithUpdateTimeoutInMinutes(0) - v, err := generic.NewResource(ctx, opts...) if err != nil { diff --git a/internal/aws/omics/variant_store_resource_gen.go b/internal/aws/omics/variant_store_resource_gen.go index 68883ed8da..ce0f06546e 100644 --- a/internal/aws/omics/variant_store_resource_gen.go +++ b/internal/aws/omics/variant_store_resource_gen.go @@ -121,6 +121,9 @@ func variantStoreResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthBetween(1, 127), stringvalidator.RegexMatches(regexp.MustCompile("^arn:.+$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Required: true, @@ -164,6 +167,7 @@ func variantStoreResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type @@ -178,6 +182,7 @@ func variantStoreResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/omics/workflow_resource_gen.go b/internal/aws/omics/workflow_resource_gen.go index 36b4b9636e..8294dae90f 100644 --- a/internal/aws/omics/workflow_resource_gen.go +++ b/internal/aws/omics/workflow_resource_gen.go @@ -252,6 +252,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Optional @@ -260,6 +261,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/opensearchserverless/collection_resource_gen.go b/internal/aws/opensearchserverless/collection_resource_gen.go index 697cebfbdb..a538faf57f 100644 --- a/internal/aws/opensearchserverless/collection_resource_gen.go +++ b/internal/aws/opensearchserverless/collection_resource_gen.go @@ -200,7 +200,9 @@ func collectionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -213,7 +215,9 @@ func collectionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/opensearchservice/domain_resource_gen.go b/internal/aws/opensearchservice/domain_resource_gen.go index d44732cec8..c5c3d940fe 100644 --- a/internal/aws/opensearchservice/domain_resource_gen.go +++ b/internal/aws/opensearchservice/domain_resource_gen.go @@ -214,10 +214,6 @@ func domainResource(ctx context.Context) (resource.Resource, error) { // Property: PublicKey "public_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // PublicKey is a write-only property. }, /*END ATTRIBUTE*/ // Property: RolesKey @@ -249,33 +245,20 @@ func domainResource(ctx context.Context) (resource.Resource, error) { // Property: MasterUserARN "master_user_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MasterUserARN is a write-only property. }, /*END ATTRIBUTE*/ // Property: MasterUserName "master_user_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MasterUserName is a write-only property. }, /*END ATTRIBUTE*/ // Property: MasterUserPassword "master_user_password": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MasterUserPassword is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // MasterUserOptions is a write-only property. }, /*END ATTRIBUTE*/ // Property: SAMLOptions @@ -325,19 +308,11 @@ func domainResource(ctx context.Context) (resource.Resource, error) { // Property: MasterBackendRole "master_backend_role": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // MasterBackendRole is a write-only property. }, /*END ATTRIBUTE*/ // Property: MasterUserName "master_user_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // MasterUserName is a write-only property. }, /*END ATTRIBUTE*/ // Property: RolesKey diff --git a/internal/aws/opsworkscm/server_resource_gen.go b/internal/aws/opsworkscm/server_resource_gen.go index 68f9904b74..d508c07943 100644 --- a/internal/aws/opsworkscm/server_resource_gen.go +++ b/internal/aws/opsworkscm/server_resource_gen.go @@ -22,7 +22,6 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/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,34 +229,24 @@ func serverResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(10000), stringvalidator.RegexMatches(regexp.MustCompile("(?s).*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(10000), stringvalidator.RegexMatches(regexp.MustCompile("(?s).*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // EngineAttributes is a write-only property. }, /*END ATTRIBUTE*/ // Property: EngineModel @@ -508,37 +497,25 @@ func serverResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Tags is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/osis/pipeline_resource_gen.go b/internal/aws/osis/pipeline_resource_gen.go index 410e595cbf..52933bffd8 100644 --- a/internal/aws/osis/pipeline_resource_gen.go +++ b/internal/aws/osis/pipeline_resource_gen.go @@ -600,7 +600,6 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "A list of security groups associated with the VPC endpoint.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthBetween(11, 20), @@ -609,26 +608,24 @@ func pipelineResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // SecurityGroupIds is a write-only property. }, /*END ATTRIBUTE*/ // Property: SubnetIds "subnet_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "A list of subnet IDs associated with the VPC endpoint.", - Optional: true, - Computed: true, + Required: 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*/ + // SubnetIds is a write-only property. }, /*END ATTRIBUTE*/ // Property: VpcAttachmentOptions "vpc_attachment_options": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -636,58 +633,38 @@ 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", - Optional: true, - Computed: true, - Validators: []validator.Bool{ /*START VALIDATORS*/ - fwvalidators.NotNullBool(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // AttachToVpc is a write-only property. }, /*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).", - Optional: true, - Computed: true, + Required: 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*/ + // CidrBlock is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Options for attaching a VPC to the pipeline.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // VpcAttachmentOptions is a write-only property. }, /*END ATTRIBUTE*/ // Property: VpcEndpointManagement "vpc_endpoint_management": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Defines whether you or Amazon OpenSearch Ingestion service create and manage the VPC endpoint configured for the pipeline.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "CUSTOMER", "SERVICE", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // VpcEndpointManagement is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Container for the values required to configure VPC access for the pipeline. If you don't specify these values, OpenSearch Ingestion Service creates the pipeline with a public endpoint.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // VpcOptions is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/panorama/application_instance_resource_gen.go b/internal/aws/panorama/application_instance_resource_gen.go index 65a010a281..1e86ed3780 100644 --- a/internal/aws/panorama/application_instance_resource_gen.go +++ b/internal/aws/panorama/application_instance_resource_gen.go @@ -214,6 +214,7 @@ func applicationInstanceResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -255,6 +256,7 @@ func applicationInstanceResource(ctx context.Context) (resource.Resource, error) }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/panorama/package_version_resource_gen.go b/internal/aws/panorama/package_version_resource_gen.go index 894a460429..1fdb31c914 100644 --- a/internal/aws/panorama/package_version_resource_gen.go +++ b/internal/aws/panorama/package_version_resource_gen.go @@ -230,14 +230,10 @@ func packageVersionResource(ctx context.Context) (resource.Resource, error) { "updated_latest_patch_version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "If the version was marked latest, the new version to maker as latest.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), stringvalidator.RegexMatches(regexp.MustCompile("^[a-z0-9]+$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // UpdatedLatestPatchVersion is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/pcaconnectorad/connector_resource_gen.go b/internal/aws/pcaconnectorad/connector_resource_gen.go index f67a5d401d..d459d244f4 100644 --- a/internal/aws/pcaconnectorad/connector_resource_gen.go +++ b/internal/aws/pcaconnectorad/connector_resource_gen.go @@ -13,7 +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/mapplanmodifier" + "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/stringplanmodifier" @@ -99,10 +99,6 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { schema.MapAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ - mapplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Tags is a write-only property. }, /*END ATTRIBUTE*/ // Property: VpcInformation @@ -143,6 +139,10 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { stringvalidator.RegexMatches(regexp.MustCompile("^(?:sg-[0-9a-f]{8}|sg-[0-9a-f]{17})$"), ""), ), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ + // SecurityGroupIds is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Required: true, diff --git a/internal/aws/pcaconnectorad/directory_registration_resource_gen.go b/internal/aws/pcaconnectorad/directory_registration_resource_gen.go index 4ac6285aff..daaa6feec4 100644 --- a/internal/aws/pcaconnectorad/directory_registration_resource_gen.go +++ b/internal/aws/pcaconnectorad/directory_registration_resource_gen.go @@ -12,7 +12,6 @@ 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/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" @@ -77,10 +76,6 @@ func directoryRegistrationResource(ctx context.Context) (resource.Resource, erro schema.MapAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ - mapplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Tags is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/pcaconnectorad/template_group_access_control_entry_resource_gen.go b/internal/aws/pcaconnectorad/template_group_access_control_entry_resource_gen.go index 59f2db7a3d..503cd520b4 100644 --- a/internal/aws/pcaconnectorad/template_group_access_control_entry_resource_gen.go +++ b/internal/aws/pcaconnectorad/template_group_access_control_entry_resource_gen.go @@ -55,30 +55,24 @@ func templateGroupAccessControlEntryResource(ctx context.Context) (resource.Reso // Property: AutoEnroll "auto_enroll": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ALLOW", "DENY", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AutoEnroll is a write-only property. }, /*END ATTRIBUTE*/ // Property: Enroll "enroll": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ALLOW", "DENY", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Enroll is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Required: true, diff --git a/internal/aws/pcaconnectorad/template_resource_gen.go b/internal/aws/pcaconnectorad/template_resource_gen.go index 9230f6f51f..f6048c58aa 100644 --- a/internal/aws/pcaconnectorad/template_resource_gen.go +++ b/internal/aws/pcaconnectorad/template_resource_gen.go @@ -14,18 +14,12 @@ 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/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() { @@ -1245,20 +1239,15 @@ func templateResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Period "period": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Period is a write-only property. }, /*END ATTRIBUTE*/ // Property: PeriodType "period_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "HOURS", @@ -1267,41 +1256,27 @@ 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*/ + // PeriodType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // RenewalPeriod is a write-only property. }, /*END ATTRIBUTE*/ // Property: ValidityPeriod "validity_period": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Period "period": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Period is a write-only property. }, /*END ATTRIBUTE*/ // Property: PeriodType "period_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "HOURS", @@ -1310,31 +1285,16 @@ 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*/ + // PeriodType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // ValidityPeriod is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // CertificateValidity is a write-only property. }, /*END ATTRIBUTE*/ // Property: EnrollmentFlags "enrollment_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1342,52 +1302,31 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: EnableKeyReuseOnNtTokenKeysetStorageFull "enable_key_reuse_on_nt_token_keyset_storage_full": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EnableKeyReuseOnNtTokenKeysetStorageFull is a write-only property. }, /*END ATTRIBUTE*/ // Property: IncludeSymmetricAlgorithms "include_symmetric_algorithms": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IncludeSymmetricAlgorithms is a write-only property. }, /*END ATTRIBUTE*/ // Property: NoSecurityExtension "no_security_extension": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // NoSecurityExtension is a write-only property. }, /*END ATTRIBUTE*/ // Property: RemoveInvalidCertificateFromPersonalStore "remove_invalid_certificate_from_personal_store": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RemoveInvalidCertificateFromPersonalStore is a write-only property. }, /*END ATTRIBUTE*/ // Property: UserInteractionRequired "user_interaction_required": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // UserInteractionRequired is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // EnrollmentFlags is a write-only property. }, /*END ATTRIBUTE*/ // Property: Extensions "extensions": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1398,10 +1337,7 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: Critical "critical": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Critical is a write-only property. }, /*END ATTRIBUTE*/ // Property: Policies "policies": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1410,19 +1346,15 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: PolicyObjectIdentifier "policy_object_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), stringvalidator.RegexMatches(regexp.MustCompile("^([0-2])\\.([0-9]|([0-3][0-9]))(\\.([0-9]+)){0,126}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PolicyObjectIdentifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: PolicyType "policy_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ALL_APPLICATION_POLICIES", @@ -1494,29 +1426,20 @@ func templateResource(ctx context.Context) (resource.Resource, error) { "WINDOWS_UPDATE", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PolicyType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Optional: true, - Computed: true, + Required: 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*/ + // Policies is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ApplicationPolicies is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeyUsage "key_usage": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1524,10 +1447,7 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: Critical "critical": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Critical is a write-only property. }, /*END ATTRIBUTE*/ // Property: UsageFlags "usage_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1535,72 +1455,39 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: DataEncipherment "data_encipherment": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DataEncipherment is a write-only property. }, /*END ATTRIBUTE*/ // Property: DigitalSignature "digital_signature": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DigitalSignature is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeyAgreement "key_agreement": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // KeyAgreement is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeyEncipherment "key_encipherment": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // KeyEncipherment is a write-only property. }, /*END ATTRIBUTE*/ // Property: NonRepudiation "non_repudiation": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // NonRepudiation is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // UsageFlags is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // KeyUsage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Extensions is a write-only property. }, /*END ATTRIBUTE*/ // Property: GeneralFlags "general_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1608,28 +1495,16 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: AutoEnrollment "auto_enrollment": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AutoEnrollment is a write-only property. }, /*END ATTRIBUTE*/ // Property: MachineType "machine_type": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MachineType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // GeneralFlags is a write-only property. }, /*END ATTRIBUTE*/ // Property: PrivateKeyAttributes "private_key_attributes": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1638,7 +1513,6 @@ func templateResource(ctx context.Context) (resource.Resource, error) { "crypto_providers": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 100), listvalidator.UniqueValues(), @@ -1646,54 +1520,37 @@ func templateResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthBetween(1, 100), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CryptoProviders is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeySpec "key_spec": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // KeySpec is a write-only property. }, /*END ATTRIBUTE*/ // Property: MinimalKeyLength "minimal_key_length": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // MinimalKeyLength is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // PrivateKeyAttributes is a write-only property. }, /*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*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "WINDOWS_SERVER_2003", @@ -1703,37 +1560,22 @@ 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*/ + // ClientVersion is a write-only property. }, /*END ATTRIBUTE*/ // Property: ExportableKey "exportable_key": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ExportableKey is a write-only property. }, /*END ATTRIBUTE*/ // Property: StrongKeyProtectionRequired "strong_key_protection_required": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // StrongKeyProtectionRequired is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // PrivateKeyFlags is a write-only property. }, /*END ATTRIBUTE*/ // Property: SubjectNameFlags "subject_name_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1741,98 +1583,61 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: RequireCommonName "require_common_name": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RequireCommonName is a write-only property. }, /*END ATTRIBUTE*/ // Property: RequireDirectoryPath "require_directory_path": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RequireDirectoryPath is a write-only property. }, /*END ATTRIBUTE*/ // Property: RequireDnsAsCn "require_dns_as_cn": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RequireDnsAsCn is a write-only property. }, /*END ATTRIBUTE*/ // Property: RequireEmail "require_email": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RequireEmail is a write-only property. }, /*END ATTRIBUTE*/ // Property: SanRequireDirectoryGuid "san_require_directory_guid": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SanRequireDirectoryGuid is a write-only property. }, /*END ATTRIBUTE*/ // Property: SanRequireDns "san_require_dns": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SanRequireDns is a write-only property. }, /*END ATTRIBUTE*/ // Property: SanRequireDomainDns "san_require_domain_dns": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SanRequireDomainDns is a write-only property. }, /*END ATTRIBUTE*/ // Property: SanRequireEmail "san_require_email": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SanRequireEmail is a write-only property. }, /*END ATTRIBUTE*/ // Property: SanRequireSpn "san_require_spn": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SanRequireSpn is a write-only property. }, /*END ATTRIBUTE*/ // Property: SanRequireUpn "san_require_upn": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SanRequireUpn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // SubjectNameFlags is a write-only property. }, /*END ATTRIBUTE*/ // Property: SupersededTemplates "superseded_templates": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 100), listvalidator.UniqueValues(), @@ -1840,16 +1645,11 @@ func templateResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthBetween(1, 64), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SupersededTemplates is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TemplateV2 is a write-only property. }, /*END ATTRIBUTE*/ // Property: TemplateV3 "template_v3": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1862,20 +1662,15 @@ func templateResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Period "period": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Period is a write-only property. }, /*END ATTRIBUTE*/ // Property: PeriodType "period_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "HOURS", @@ -1884,41 +1679,27 @@ 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*/ + // PeriodType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // RenewalPeriod is a write-only property. }, /*END ATTRIBUTE*/ // Property: ValidityPeriod "validity_period": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Period "period": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Period is a write-only property. }, /*END ATTRIBUTE*/ // Property: PeriodType "period_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "HOURS", @@ -1927,31 +1708,16 @@ 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*/ + // PeriodType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // ValidityPeriod is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // CertificateValidity is a write-only property. }, /*END ATTRIBUTE*/ // Property: EnrollmentFlags "enrollment_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1959,52 +1725,31 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: EnableKeyReuseOnNtTokenKeysetStorageFull "enable_key_reuse_on_nt_token_keyset_storage_full": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EnableKeyReuseOnNtTokenKeysetStorageFull is a write-only property. }, /*END ATTRIBUTE*/ // Property: IncludeSymmetricAlgorithms "include_symmetric_algorithms": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IncludeSymmetricAlgorithms is a write-only property. }, /*END ATTRIBUTE*/ // Property: NoSecurityExtension "no_security_extension": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // NoSecurityExtension is a write-only property. }, /*END ATTRIBUTE*/ // Property: RemoveInvalidCertificateFromPersonalStore "remove_invalid_certificate_from_personal_store": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RemoveInvalidCertificateFromPersonalStore is a write-only property. }, /*END ATTRIBUTE*/ // Property: UserInteractionRequired "user_interaction_required": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // UserInteractionRequired is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // EnrollmentFlags is a write-only property. }, /*END ATTRIBUTE*/ // Property: Extensions "extensions": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2015,10 +1760,7 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: Critical "critical": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Critical is a write-only property. }, /*END ATTRIBUTE*/ // Property: Policies "policies": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2027,19 +1769,15 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: PolicyObjectIdentifier "policy_object_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), stringvalidator.RegexMatches(regexp.MustCompile("^([0-2])\\.([0-9]|([0-3][0-9]))(\\.([0-9]+)){0,126}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PolicyObjectIdentifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: PolicyType "policy_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ALL_APPLICATION_POLICIES", @@ -2111,29 +1849,20 @@ func templateResource(ctx context.Context) (resource.Resource, error) { "WINDOWS_UPDATE", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PolicyType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Optional: true, - Computed: true, + Required: 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*/ + // Policies is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ApplicationPolicies is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeyUsage "key_usage": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2141,10 +1870,7 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: Critical "critical": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Critical is a write-only property. }, /*END ATTRIBUTE*/ // Property: UsageFlags "usage_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2152,72 +1878,39 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: DataEncipherment "data_encipherment": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DataEncipherment is a write-only property. }, /*END ATTRIBUTE*/ // Property: DigitalSignature "digital_signature": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DigitalSignature is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeyAgreement "key_agreement": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // KeyAgreement is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeyEncipherment "key_encipherment": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // KeyEncipherment is a write-only property. }, /*END ATTRIBUTE*/ // Property: NonRepudiation "non_repudiation": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // NonRepudiation is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // UsageFlags is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // KeyUsage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Extensions is a write-only property. }, /*END ATTRIBUTE*/ // Property: GeneralFlags "general_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2225,52 +1918,35 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: AutoEnrollment "auto_enrollment": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AutoEnrollment is a write-only property. }, /*END ATTRIBUTE*/ // Property: MachineType "machine_type": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MachineType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // GeneralFlags is a write-only property. }, /*END ATTRIBUTE*/ // Property: HashAlgorithm "hash_algorithm": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // HashAlgorithm is a write-only property. }, /*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*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "RSA", @@ -2278,17 +1954,13 @@ 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*/ + // Algorithm is a write-only property. }, /*END ATTRIBUTE*/ // Property: CryptoProviders "crypto_providers": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 100), listvalidator.UniqueValues(), @@ -2296,24 +1968,18 @@ func templateResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthBetween(1, 100), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CryptoProviders is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeySpec "key_spec": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // KeySpec is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeyUsageProperty "key_usage_property": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2324,86 +1990,54 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: Decrypt "decrypt": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Decrypt is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeyAgreement "key_agreement": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // KeyAgreement is a write-only property. }, /*END ATTRIBUTE*/ // Property: Sign "sign": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Sign is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PropertyFlags is a write-only property. }, /*END ATTRIBUTE*/ // Property: PropertyType "property_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ALL", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PropertyType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // KeyUsageProperty is a write-only property. }, /*END ATTRIBUTE*/ // Property: MinimalKeyLength "minimal_key_length": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // MinimalKeyLength is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // PrivateKeyAttributes is a write-only property. }, /*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*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "WINDOWS_SERVER_2008", @@ -2412,45 +2046,27 @@ 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*/ + // ClientVersion is a write-only property. }, /*END ATTRIBUTE*/ // Property: ExportableKey "exportable_key": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ExportableKey is a write-only property. }, /*END ATTRIBUTE*/ // Property: RequireAlternateSignatureAlgorithm "require_alternate_signature_algorithm": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RequireAlternateSignatureAlgorithm is a write-only property. }, /*END ATTRIBUTE*/ // Property: StrongKeyProtectionRequired "strong_key_protection_required": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // StrongKeyProtectionRequired is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // PrivateKeyFlags is a write-only property. }, /*END ATTRIBUTE*/ // Property: SubjectNameFlags "subject_name_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2458,98 +2074,61 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: RequireCommonName "require_common_name": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RequireCommonName is a write-only property. }, /*END ATTRIBUTE*/ // Property: RequireDirectoryPath "require_directory_path": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RequireDirectoryPath is a write-only property. }, /*END ATTRIBUTE*/ // Property: RequireDnsAsCn "require_dns_as_cn": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RequireDnsAsCn is a write-only property. }, /*END ATTRIBUTE*/ // Property: RequireEmail "require_email": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RequireEmail is a write-only property. }, /*END ATTRIBUTE*/ // Property: SanRequireDirectoryGuid "san_require_directory_guid": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SanRequireDirectoryGuid is a write-only property. }, /*END ATTRIBUTE*/ // Property: SanRequireDns "san_require_dns": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SanRequireDns is a write-only property. }, /*END ATTRIBUTE*/ // Property: SanRequireDomainDns "san_require_domain_dns": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SanRequireDomainDns is a write-only property. }, /*END ATTRIBUTE*/ // Property: SanRequireEmail "san_require_email": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SanRequireEmail is a write-only property. }, /*END ATTRIBUTE*/ // Property: SanRequireSpn "san_require_spn": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SanRequireSpn is a write-only property. }, /*END ATTRIBUTE*/ // Property: SanRequireUpn "san_require_upn": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SanRequireUpn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // SubjectNameFlags is a write-only property. }, /*END ATTRIBUTE*/ // Property: SupersededTemplates "superseded_templates": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 100), listvalidator.UniqueValues(), @@ -2557,16 +2136,11 @@ func templateResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthBetween(1, 64), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SupersededTemplates is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TemplateV3 is a write-only property. }, /*END ATTRIBUTE*/ // Property: TemplateV4 "template_v4": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2579,20 +2153,15 @@ func templateResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Period "period": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Period is a write-only property. }, /*END ATTRIBUTE*/ // Property: PeriodType "period_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "HOURS", @@ -2601,41 +2170,27 @@ 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*/ + // PeriodType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // RenewalPeriod is a write-only property. }, /*END ATTRIBUTE*/ // Property: ValidityPeriod "validity_period": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Period "period": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Period is a write-only property. }, /*END ATTRIBUTE*/ // Property: PeriodType "period_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "HOURS", @@ -2644,31 +2199,16 @@ 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*/ + // PeriodType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // ValidityPeriod is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // CertificateValidity is a write-only property. }, /*END ATTRIBUTE*/ // Property: EnrollmentFlags "enrollment_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2676,52 +2216,31 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: EnableKeyReuseOnNtTokenKeysetStorageFull "enable_key_reuse_on_nt_token_keyset_storage_full": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EnableKeyReuseOnNtTokenKeysetStorageFull is a write-only property. }, /*END ATTRIBUTE*/ // Property: IncludeSymmetricAlgorithms "include_symmetric_algorithms": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IncludeSymmetricAlgorithms is a write-only property. }, /*END ATTRIBUTE*/ // Property: NoSecurityExtension "no_security_extension": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // NoSecurityExtension is a write-only property. }, /*END ATTRIBUTE*/ // Property: RemoveInvalidCertificateFromPersonalStore "remove_invalid_certificate_from_personal_store": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RemoveInvalidCertificateFromPersonalStore is a write-only property. }, /*END ATTRIBUTE*/ // Property: UserInteractionRequired "user_interaction_required": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // UserInteractionRequired is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // EnrollmentFlags is a write-only property. }, /*END ATTRIBUTE*/ // Property: Extensions "extensions": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2732,10 +2251,7 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: Critical "critical": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Critical is a write-only property. }, /*END ATTRIBUTE*/ // Property: Policies "policies": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2744,19 +2260,15 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: PolicyObjectIdentifier "policy_object_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), stringvalidator.RegexMatches(regexp.MustCompile("^([0-2])\\.([0-9]|([0-3][0-9]))(\\.([0-9]+)){0,126}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PolicyObjectIdentifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: PolicyType "policy_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ALL_APPLICATION_POLICIES", @@ -2828,29 +2340,20 @@ func templateResource(ctx context.Context) (resource.Resource, error) { "WINDOWS_UPDATE", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PolicyType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Optional: true, - Computed: true, + Required: 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*/ + // Policies is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ApplicationPolicies is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeyUsage "key_usage": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2858,10 +2361,7 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: Critical "critical": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Critical is a write-only property. }, /*END ATTRIBUTE*/ // Property: UsageFlags "usage_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2869,72 +2369,39 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: DataEncipherment "data_encipherment": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DataEncipherment is a write-only property. }, /*END ATTRIBUTE*/ // Property: DigitalSignature "digital_signature": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DigitalSignature is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeyAgreement "key_agreement": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // KeyAgreement is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeyEncipherment "key_encipherment": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // KeyEncipherment is a write-only property. }, /*END ATTRIBUTE*/ // Property: NonRepudiation "non_repudiation": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // NonRepudiation is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // UsageFlags is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // KeyUsage is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Extensions is a write-only property. }, /*END ATTRIBUTE*/ // Property: GeneralFlags "general_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2942,33 +2409,20 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: AutoEnrollment "auto_enrollment": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AutoEnrollment is a write-only property. }, /*END ATTRIBUTE*/ // Property: MachineType "machine_type": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MachineType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // GeneralFlags is a write-only property. }, /*END ATTRIBUTE*/ // Property: HashAlgorithm "hash_algorithm": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "SHA256", @@ -2976,9 +2430,7 @@ func templateResource(ctx context.Context) (resource.Resource, error) { "SHA512", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // HashAlgorithm is a write-only property. }, /*END ATTRIBUTE*/ // Property: PrivateKeyAttributes "private_key_attributes": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2986,7 +2438,6 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: Algorithm "algorithm": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "RSA", @@ -2995,15 +2446,12 @@ func templateResource(ctx context.Context) (resource.Resource, error) { "ECDH_P521", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Algorithm is a write-only property. }, /*END ATTRIBUTE*/ // Property: CryptoProviders "crypto_providers": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 100), listvalidator.UniqueValues(), @@ -3011,24 +2459,18 @@ func templateResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthBetween(1, 100), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CryptoProviders is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeySpec "key_spec": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // KeySpec is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeyUsageProperty "key_usage_property": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3039,144 +2481,91 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: Decrypt "decrypt": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Decrypt is a write-only property. }, /*END ATTRIBUTE*/ // Property: KeyAgreement "key_agreement": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // KeyAgreement is a write-only property. }, /*END ATTRIBUTE*/ // Property: Sign "sign": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Sign is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PropertyFlags is a write-only property. }, /*END ATTRIBUTE*/ // Property: PropertyType "property_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ALL", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PropertyType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // KeyUsageProperty is a write-only property. }, /*END ATTRIBUTE*/ // Property: MinimalKeyLength "minimal_key_length": schema.Float64Attribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // MinimalKeyLength is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // PrivateKeyAttributes is a write-only property. }, /*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*/ - Optional: true, - Computed: true, + Required: 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*/ + // ClientVersion is a write-only property. }, /*END ATTRIBUTE*/ // Property: ExportableKey "exportable_key": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ExportableKey is a write-only property. }, /*END ATTRIBUTE*/ // Property: RequireAlternateSignatureAlgorithm "require_alternate_signature_algorithm": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RequireAlternateSignatureAlgorithm is a write-only property. }, /*END ATTRIBUTE*/ // Property: RequireSameKeyRenewal "require_same_key_renewal": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RequireSameKeyRenewal is a write-only property. }, /*END ATTRIBUTE*/ // Property: StrongKeyProtectionRequired "strong_key_protection_required": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // StrongKeyProtectionRequired is a write-only property. }, /*END ATTRIBUTE*/ // Property: UseLegacyProvider "use_legacy_provider": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // UseLegacyProvider is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // PrivateKeyFlags is a write-only property. }, /*END ATTRIBUTE*/ // Property: SubjectNameFlags "subject_name_flags": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3184,98 +2573,61 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: RequireCommonName "require_common_name": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RequireCommonName is a write-only property. }, /*END ATTRIBUTE*/ // Property: RequireDirectoryPath "require_directory_path": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RequireDirectoryPath is a write-only property. }, /*END ATTRIBUTE*/ // Property: RequireDnsAsCn "require_dns_as_cn": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RequireDnsAsCn is a write-only property. }, /*END ATTRIBUTE*/ // Property: RequireEmail "require_email": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RequireEmail is a write-only property. }, /*END ATTRIBUTE*/ // Property: SanRequireDirectoryGuid "san_require_directory_guid": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SanRequireDirectoryGuid is a write-only property. }, /*END ATTRIBUTE*/ // Property: SanRequireDns "san_require_dns": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SanRequireDns is a write-only property. }, /*END ATTRIBUTE*/ // Property: SanRequireDomainDns "san_require_domain_dns": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SanRequireDomainDns is a write-only property. }, /*END ATTRIBUTE*/ // Property: SanRequireEmail "san_require_email": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SanRequireEmail is a write-only property. }, /*END ATTRIBUTE*/ // Property: SanRequireSpn "san_require_spn": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SanRequireSpn is a write-only property. }, /*END ATTRIBUTE*/ // Property: SanRequireUpn "san_require_upn": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SanRequireUpn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // SubjectNameFlags is a write-only property. }, /*END ATTRIBUTE*/ // Property: SupersededTemplates "superseded_templates": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 100), listvalidator.UniqueValues(), @@ -3283,16 +2635,11 @@ func templateResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthBetween(1, 64), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SupersededTemplates is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TemplateV4 is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Required: true, @@ -3325,10 +2672,6 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // } "reenroll_all_certificate_holders": schema.BoolAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ReenrollAllCertificateHolders is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tags @@ -3347,10 +2690,6 @@ func templateResource(ctx context.Context) (resource.Resource, error) { schema.MapAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ - mapplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Tags is a write-only property. }, /*END ATTRIBUTE*/ // Property: TemplateArn diff --git a/internal/aws/pcaconnectorscep/connector_resource_gen.go b/internal/aws/pcaconnectorscep/connector_resource_gen.go index c054b113b7..dba8b4934f 100644 --- a/internal/aws/pcaconnectorscep/connector_resource_gen.go +++ b/internal/aws/pcaconnectorscep/connector_resource_gen.go @@ -125,6 +125,7 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Domain @@ -138,6 +139,7 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -145,6 +147,7 @@ func connectorResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/personalize/solution_resource_gen.go b/internal/aws/personalize/solution_resource_gen.go index fab5e48648..e6c95ff2d0 100644 --- a/internal/aws/personalize/solution_resource_gen.go +++ b/internal/aws/personalize/solution_resource_gen.go @@ -377,6 +377,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ mapplanmodifier.UseStateForUnknown(), + mapplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AutoMLConfig @@ -392,6 +393,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RecipeList @@ -409,6 +411,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -417,6 +420,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EventValueThreshold @@ -429,6 +433,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FeatureTransformationParameters @@ -440,6 +445,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ mapplanmodifier.UseStateForUnknown(), + mapplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HpoConfig @@ -462,6 +468,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Values @@ -478,6 +485,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -490,6 +498,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContinuousHyperParameterRanges @@ -506,6 +515,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinValue @@ -518,6 +528,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name @@ -530,6 +541,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -542,6 +554,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IntegerHyperParameterRanges @@ -558,6 +571,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MinValue @@ -570,6 +584,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name @@ -582,6 +597,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -594,6 +610,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -602,6 +619,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HpoObjective @@ -617,6 +635,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MetricRegex @@ -629,6 +648,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type @@ -644,6 +664,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -652,6 +673,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: HpoResourceConfig @@ -667,6 +689,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaxParallelTrainingJobs @@ -679,6 +702,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -687,6 +711,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -695,6 +720,7 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -758,9 +784,9 @@ func solutionResource(ctx context.Context) (resource.Resource, error) { "values": "Values", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/pipes/pipe_resource_gen.go b/internal/aws/pipes/pipe_resource_gen.go index db6671efd0..28c7014b8a 100644 --- a/internal/aws/pipes/pipe_resource_gen.go +++ b/internal/aws/pipes/pipe_resource_gen.go @@ -28,7 +28,6 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" - fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -1004,13 +1003,10 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: BatchSize "batch_size": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 10000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BatchSize is a write-only property. }, /*END ATTRIBUTE*/ // Property: Credentials "credentials": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1019,56 +1015,39 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { "basic_auth": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Optional SecretManager ARN which stores the database credentials", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1600), stringvalidator.RegexMatches(regexp.MustCompile("^(^arn:aws([a-z]|\\-)*:secretsmanager:([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}):(\\d{12}):secret:.+)$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BasicAuth is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Credentials is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaximumBatchingWindowInSeconds "maximum_batching_window_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 300), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MaximumBatchingWindowInSeconds is a write-only property. }, /*END ATTRIBUTE*/ // Property: QueueName "queue_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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.UseStateForUnknown(), - stringplanmodifier.RequiresReplaceIfConfigured(), + stringplanmodifier.RequiresReplace(), }, /*END PLAN MODIFIERS*/ + // QueueName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ActiveMQBrokerParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: DynamoDBStreamParameters "dynamo_db_stream_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1076,13 +1055,10 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: BatchSize "batch_size": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 10000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BatchSize is a write-only property. }, /*END ATTRIBUTE*/ // Property: DeadLetterConfig "dead_letter_config": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1090,101 +1066,75 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: Arn "arn": schema.StringAttribute{ /*START ATTRIBUTE*/ 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})?:(.+)$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Arn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DeadLetterConfig is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaximumBatchingWindowInSeconds "maximum_batching_window_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 300), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MaximumBatchingWindowInSeconds is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaximumRecordAgeInSeconds "maximum_record_age_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(-1, 604800), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MaximumRecordAgeInSeconds is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaximumRetryAttempts "maximum_retry_attempts": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(-1, 10000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MaximumRetryAttempts is a write-only property. }, /*END ATTRIBUTE*/ // Property: OnPartialBatchItemFailure "on_partial_batch_item_failure": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "AUTOMATIC_BISECT", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // OnPartialBatchItemFailure is a write-only property. }, /*END ATTRIBUTE*/ // Property: ParallelizationFactor "parallelization_factor": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 10), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ParallelizationFactor is a write-only property. }, /*END ATTRIBUTE*/ // Property: StartingPosition "starting_position": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "TRIM_HORIZON", "LATEST", ), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - stringplanmodifier.RequiresReplaceIfConfigured(), + stringplanmodifier.RequiresReplace(), }, /*END PLAN MODIFIERS*/ + // StartingPosition is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DynamoDBStreamParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: FilterCriteria "filter_criteria": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1196,31 +1146,22 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: Pattern "pattern": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 4096), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Pattern is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 5), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Filters is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // FilterCriteria is a write-only property. }, /*END ATTRIBUTE*/ // Property: KinesisStreamParameters "kinesis_stream_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1228,13 +1169,10 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: BatchSize "batch_size": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 10000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BatchSize is a write-only property. }, /*END ATTRIBUTE*/ // Property: DeadLetterConfig "dead_letter_config": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1242,95 +1180,72 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: Arn "arn": schema.StringAttribute{ /*START ATTRIBUTE*/ 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})?:(.+)$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Arn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DeadLetterConfig is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaximumBatchingWindowInSeconds "maximum_batching_window_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 300), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MaximumBatchingWindowInSeconds is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaximumRecordAgeInSeconds "maximum_record_age_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(-1, 604800), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MaximumRecordAgeInSeconds is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaximumRetryAttempts "maximum_retry_attempts": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(-1, 10000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MaximumRetryAttempts is a write-only property. }, /*END ATTRIBUTE*/ // Property: OnPartialBatchItemFailure "on_partial_batch_item_failure": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "AUTOMATIC_BISECT", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // OnPartialBatchItemFailure is a write-only property. }, /*END ATTRIBUTE*/ // Property: ParallelizationFactor "parallelization_factor": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 10), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ParallelizationFactor is a write-only property. }, /*END ATTRIBUTE*/ // Property: StartingPosition "starting_position": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "TRIM_HORIZON", "LATEST", "AT_TIMESTAMP", ), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - stringplanmodifier.RequiresReplaceIfConfigured(), + stringplanmodifier.RequiresReplace(), }, /*END PLAN MODIFIERS*/ + // StartingPosition is a write-only property. }, /*END ATTRIBUTE*/ // Property: StartingPositionTimestamp "starting_position_timestamp": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1341,13 +1256,11 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { stringplanmodifier.UseStateForUnknown(), stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // StartingPositionTimestamp is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // KinesisStreamParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: ManagedStreamingKafkaParameters "managed_streaming_kafka_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1355,13 +1268,10 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: BatchSize "batch_size": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 10000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BatchSize is a write-only property. }, /*END ATTRIBUTE*/ // Property: ConsumerGroupID "consumer_group_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1375,6 +1285,7 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { stringplanmodifier.UseStateForUnknown(), stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ConsumerGroupID is a write-only property. }, /*END ATTRIBUTE*/ // Property: Credentials "credentials": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1383,45 +1294,33 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { "client_certificate_tls_auth": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Optional SecretManager ARN which stores the database credentials", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1600), stringvalidator.RegexMatches(regexp.MustCompile("^(^arn:aws([a-z]|\\-)*:secretsmanager:([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}):(\\d{12}):secret:.+)$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ClientCertificateTlsAuth is a write-only property. }, /*END ATTRIBUTE*/ // Property: SaslScram512Auth "sasl_scram_512_auth": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Optional SecretManager ARN which stores the database credentials", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1600), stringvalidator.RegexMatches(regexp.MustCompile("^(^arn:aws([a-z]|\\-)*:secretsmanager:([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}):(\\d{12}):secret:.+)$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SaslScram512Auth is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Credentials is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaximumBatchingWindowInSeconds "maximum_batching_window_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 300), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MaximumBatchingWindowInSeconds is a write-only property. }, /*END ATTRIBUTE*/ // Property: StartingPosition "starting_position": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1437,27 +1336,23 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { stringplanmodifier.UseStateForUnknown(), stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // StartingPosition is a write-only property. }, /*END ATTRIBUTE*/ // Property: TopicName "topic_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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.UseStateForUnknown(), - stringplanmodifier.RequiresReplaceIfConfigured(), + stringplanmodifier.RequiresReplace(), }, /*END PLAN MODIFIERS*/ + // TopicName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ManagedStreamingKafkaParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: RabbitMQBrokerParameters "rabbit_mq_broker_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1465,13 +1360,10 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: BatchSize "batch_size": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 10000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BatchSize is a write-only property. }, /*END ATTRIBUTE*/ // Property: Credentials "credentials": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1480,49 +1372,35 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { "basic_auth": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Optional SecretManager ARN which stores the database credentials", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1600), stringvalidator.RegexMatches(regexp.MustCompile("^(^arn:aws([a-z]|\\-)*:secretsmanager:([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}):(\\d{12}):secret:.+)$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BasicAuth is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Credentials is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaximumBatchingWindowInSeconds "maximum_batching_window_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 300), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MaximumBatchingWindowInSeconds is a write-only property. }, /*END ATTRIBUTE*/ // Property: QueueName "queue_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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.UseStateForUnknown(), - stringplanmodifier.RequiresReplaceIfConfigured(), + stringplanmodifier.RequiresReplace(), }, /*END PLAN MODIFIERS*/ + // QueueName is a write-only property. }, /*END ATTRIBUTE*/ // Property: VirtualHost "virtual_host": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1536,13 +1414,11 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { stringplanmodifier.UseStateForUnknown(), stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // VirtualHost is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RabbitMQBrokerParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: SelfManagedKafkaParameters "self_managed_kafka_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1563,17 +1439,15 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { listplanmodifier.UseStateForUnknown(), listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // AdditionalBootstrapServers is a write-only property. }, /*END ATTRIBUTE*/ // Property: BatchSize "batch_size": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 10000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BatchSize is a write-only property. }, /*END ATTRIBUTE*/ // Property: ConsumerGroupID "consumer_group_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1587,6 +1461,7 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { stringplanmodifier.UseStateForUnknown(), stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // ConsumerGroupID is a write-only property. }, /*END ATTRIBUTE*/ // Property: Credentials "credentials": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1595,84 +1470,63 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { "basic_auth": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Optional SecretManager ARN which stores the database credentials", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1600), stringvalidator.RegexMatches(regexp.MustCompile("^(^arn:aws([a-z]|\\-)*:secretsmanager:([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}):(\\d{12}):secret:.+)$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BasicAuth is a write-only property. }, /*END ATTRIBUTE*/ // Property: ClientCertificateTlsAuth "client_certificate_tls_auth": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Optional SecretManager ARN which stores the database credentials", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1600), stringvalidator.RegexMatches(regexp.MustCompile("^(^arn:aws([a-z]|\\-)*:secretsmanager:([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}):(\\d{12}):secret:.+)$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ClientCertificateTlsAuth is a write-only property. }, /*END ATTRIBUTE*/ // Property: SaslScram256Auth "sasl_scram_256_auth": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Optional SecretManager ARN which stores the database credentials", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1600), stringvalidator.RegexMatches(regexp.MustCompile("^(^arn:aws([a-z]|\\-)*:secretsmanager:([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}):(\\d{12}):secret:.+)$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SaslScram256Auth is a write-only property. }, /*END ATTRIBUTE*/ // Property: SaslScram512Auth "sasl_scram_512_auth": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Optional SecretManager ARN which stores the database credentials", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1600), stringvalidator.RegexMatches(regexp.MustCompile("^(^arn:aws([a-z]|\\-)*:secretsmanager:([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}):(\\d{12}):secret:.+)$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SaslScram512Auth is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Credentials is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaximumBatchingWindowInSeconds "maximum_batching_window_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 300), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MaximumBatchingWindowInSeconds is a write-only property. }, /*END ATTRIBUTE*/ // Property: ServerRootCaCertificate "server_root_ca_certificate": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Optional SecretManager ARN which stores the database credentials", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1600), stringvalidator.RegexMatches(regexp.MustCompile("^(^arn:aws([a-z]|\\-)*:secretsmanager:([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}):(\\d{12}):secret:.+)$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ServerRootCaCertificate is a write-only property. }, /*END ATTRIBUTE*/ // Property: StartingPosition "starting_position": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1688,20 +1542,19 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { stringplanmodifier.UseStateForUnknown(), stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // StartingPosition is a write-only property. }, /*END ATTRIBUTE*/ // Property: TopicName "topic_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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.UseStateForUnknown(), - stringplanmodifier.RequiresReplaceIfConfigured(), + stringplanmodifier.RequiresReplace(), }, /*END PLAN MODIFIERS*/ + // TopicName is a write-only property. }, /*END ATTRIBUTE*/ // Property: Vpc "vpc": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1711,7 +1564,6 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "List of SecurityGroupId.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 5), listvalidator.ValueStringsAre( @@ -1719,16 +1571,13 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { stringvalidator.RegexMatches(regexp.MustCompile("^sg-[0-9a-zA-Z]*$"), ""), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SecurityGroup is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subnets "subnets": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "List of SubnetId.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 16), listvalidator.ValueStringsAre( @@ -1736,23 +1585,15 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { stringvalidator.RegexMatches(regexp.MustCompile("^subnet-[0-9a-z]*$"), ""), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Subnets is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Vpc is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SelfManagedKafkaParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: SqsQueueParameters "sqs_queue_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1760,38 +1601,25 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: BatchSize "batch_size": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 10000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BatchSize is a write-only property. }, /*END ATTRIBUTE*/ // Property: MaximumBatchingWindowInSeconds "maximum_batching_window_in_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(0, 300), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MaximumBatchingWindowInSeconds is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SqsQueueParameters is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // SourceParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: StateReason @@ -2742,13 +2570,11 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Size is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ArrayProperties is a write-only property. }, /*END ATTRIBUTE*/ // Property: ContainerOverrides "container_overrides": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2757,10 +2583,7 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { "command": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Command is a write-only property. }, /*END ATTRIBUTE*/ // Property: Environment "environment": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2769,34 +2592,22 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Environment is a write-only property. }, /*END ATTRIBUTE*/ // Property: InstanceType "instance_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // InstanceType is a write-only property. }, /*END ATTRIBUTE*/ // Property: ResourceRequirements "resource_requirements": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2804,45 +2615,29 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Type is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": 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*/ + Required: true, + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ResourceRequirements is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ContainerOverrides is a write-only property. }, /*END ATTRIBUTE*/ // Property: DependsOn "depends_on": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -2851,67 +2646,43 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: JobId "job_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // JobId is a write-only property. }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "N_TO_N", "SEQUENTIAL", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Type is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 20), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DependsOn is a write-only property. }, /*END ATTRIBUTE*/ // Property: JobDefinition "job_definition": 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*/ + Required: true, + // JobDefinition is a write-only property. }, /*END ATTRIBUTE*/ // Property: JobName "job_name": 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*/ + Required: true, + // JobName is a write-only property. }, /*END ATTRIBUTE*/ // Property: Parameters "parameters": // Pattern: "" schema.MapAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ - mapplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Parameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: RetryStrategy "retry_strategy": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2927,20 +2698,15 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Attempts is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RetryStrategy is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BatchJobParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: CloudWatchLogsParameters "cloudwatch_logs_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2948,32 +2714,23 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: LogStreamName "log_stream_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LogStreamName is a write-only property. }, /*END ATTRIBUTE*/ // Property: Timestamp "timestamp": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^\\$(\\.[\\w_-]+(\\[(\\d+|\\*)\\])*)*$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Timestamp is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CloudWatchLogsParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: EcsTaskParameters "ecs_task_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2993,18 +2750,15 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Base is a write-only property. }, /*END ATTRIBUTE*/ // Property: CapacityProvider "capacity_provider": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // CapacityProvider is a write-only property. }, /*END ATTRIBUTE*/ // Property: Weight "weight": schema.Int64Attribute{ /*START ATTRIBUTE*/ @@ -3017,17 +2771,15 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Weight is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 6), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CapacityProviderStrategy is a write-only property. }, /*END ATTRIBUTE*/ // Property: EnableECSManagedTags "enable_ecs_managed_tags": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -3037,6 +2789,7 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // EnableECSManagedTags is a write-only property. }, /*END ATTRIBUTE*/ // Property: EnableExecuteCommand "enable_execute_command": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -3046,19 +2799,16 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // EnableExecuteCommand is a write-only property. }, /*END ATTRIBUTE*/ // Property: Group "group": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Group is a write-only property. }, /*END ATTRIBUTE*/ // Property: LaunchType "launch_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EC2", @@ -3066,9 +2816,7 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { "EXTERNAL", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LaunchType is a write-only property. }, /*END ATTRIBUTE*/ // Property: NetworkConfiguration "network_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3079,22 +2827,18 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: AssignPublicIp "assign_public_ip": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ENABLED", "DISABLED", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AssignPublicIp is a write-only property. }, /*END ATTRIBUTE*/ // Property: SecurityGroups "security_groups": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 5), listvalidator.ValueStringsAre( @@ -3102,40 +2846,28 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { stringvalidator.RegexMatches(regexp.MustCompile("^sg-[0-9a-zA-Z]*|(\\$(\\.[\\w/_-]+(\\[(\\d+|\\*)\\])*)*)$"), ""), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SecurityGroups is a write-only property. }, /*END ATTRIBUTE*/ // Property: Subnets "subnets": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, - Optional: true, - Computed: true, + Required: 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*/ + // Subnets is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AwsvpcConfiguration is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // NetworkConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: Overrides "overrides": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3148,18 +2880,12 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { "command": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Command is a write-only property. }, /*END ATTRIBUTE*/ // Property: Cpu "cpu": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Cpu is a write-only property. }, /*END ATTRIBUTE*/ // Property: Environment "environment": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -3168,26 +2894,17 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Environment is a write-only property. }, /*END ATTRIBUTE*/ // Property: EnvironmentFiles "environment_files": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -3195,60 +2912,38 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "s3", ), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Type is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": 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*/ + Required: true, + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EnvironmentFiles is a write-only property. }, /*END ATTRIBUTE*/ // Property: Memory "memory": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Memory is a write-only property. }, /*END ATTRIBUTE*/ // Property: MemoryReservation "memory_reservation": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MemoryReservation is a write-only property. }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: ResourceRequirements "resource_requirements": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -3256,53 +2951,34 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Type is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": 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*/ + Required: true, + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ResourceRequirements is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ContainerOverrides is a write-only property. }, /*END ATTRIBUTE*/ // Property: Cpu "cpu": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Cpu is a write-only property. }, /*END ATTRIBUTE*/ // Property: EphemeralStorage "ephemeral_storage": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3318,25 +2994,20 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // SizeInGiB is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EphemeralStorage is a write-only property. }, /*END ATTRIBUTE*/ // Property: ExecutionRoleArn "execution_role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ 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+|\\*)\\])*)*)$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ExecutionRoleArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: InferenceAcceleratorOverrides "inference_accelerator_overrides": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -3345,53 +3016,35 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: DeviceName "device_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DeviceName is a write-only property. }, /*END ATTRIBUTE*/ // Property: DeviceType "device_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DeviceType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // InferenceAcceleratorOverrides is a write-only property. }, /*END ATTRIBUTE*/ // Property: Memory "memory": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Memory is a write-only property. }, /*END ATTRIBUTE*/ // Property: TaskRoleArn "task_role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ 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+|\\*)\\])*)*)$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TaskRoleArn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Overrides is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlacementConstraints "placement_constraints": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -3400,38 +3053,29 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: Expression "expression": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 2000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Expression is a write-only property. }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "distinctInstance", "memberOf", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Type is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 10), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlacementConstraints is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlacementStrategy "placement_strategy": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -3440,18 +3084,14 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: Field "field": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 255), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Field is a write-only property. }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "random", @@ -3459,52 +3099,38 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { "binpack", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Type is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 5), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlacementStrategy is a write-only property. }, /*END ATTRIBUTE*/ // Property: PlatformVersion "platform_version": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PlatformVersion is a write-only property. }, /*END ATTRIBUTE*/ // Property: PropagateTags "propagate_tags": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "TASK_DEFINITION", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PropagateTags is a write-only property. }, /*END ATTRIBUTE*/ // Property: ReferenceId "reference_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 1024), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ReferenceId is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tags "tags": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -3512,66 +3138,45 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Tags is a write-only property. }, /*END ATTRIBUTE*/ // Property: TaskCount "task_count": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(1), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TaskCount is a write-only property. }, /*END ATTRIBUTE*/ // Property: TaskDefinitionArn "task_definition_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // TaskDefinitionArn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EcsTaskParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: EventBridgeEventBusParameters "event_bridge_event_bus_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3579,31 +3184,24 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: DetailType "detail_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DetailType is a write-only property. }, /*END ATTRIBUTE*/ // Property: EndpointId "endpoint_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 50), stringvalidator.RegexMatches(regexp.MustCompile("^[A-Za-z0-9\\-]+[\\.][A-Za-z0-9\\-]+$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EndpointId is a write-only property. }, /*END ATTRIBUTE*/ // Property: Resources "resources": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 10), listvalidator.ValueStringsAre( @@ -3611,39 +3209,28 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { 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+|\\*)\\])*)*)$"), ""), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Resources is a write-only property. }, /*END ATTRIBUTE*/ // Property: Source "source": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Source is a write-only property. }, /*END ATTRIBUTE*/ // Property: Time "time": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^\\$(\\.[\\w/_-]+(\\[(\\d+|\\*)\\])*)*$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Time is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EventBridgeEventBusParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: HttpParameters "http_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3653,69 +3240,47 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { schema.MapAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ - mapplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // HeaderParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: PathParameterValues "path_parameter_values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PathParameterValues is a write-only property. }, /*END ATTRIBUTE*/ // Property: QueryStringParameters "query_string_parameters": // Pattern: "" schema.MapAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ - mapplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // QueryStringParameters is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // HttpParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: InputTemplate "input_template": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 8192), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // InputTemplate is a write-only property. }, /*END ATTRIBUTE*/ // Property: KinesisStreamParameters "kinesis_stream_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: PartitionKey "partition_key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // PartitionKey is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // KinesisStreamParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: LambdaFunctionParameters "lambda_function_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3723,23 +3288,17 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: InvocationType "invocation_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "REQUEST_RESPONSE", "FIRE_AND_FORGET", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // InvocationType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LambdaFunctionParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: RedshiftDataParameters "redshift_data_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3747,69 +3306,52 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Redshift Database", - Optional: true, - Computed: true, + Required: 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*/ + // Database is a write-only property. }, /*END ATTRIBUTE*/ // Property: DbUser "db_user": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Database user name", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DbUser is a write-only property. }, /*END ATTRIBUTE*/ // Property: SecretManagerArn "secret_manager_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Optional SecretManager ARN which stores the database credentials", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1600), stringvalidator.RegexMatches(regexp.MustCompile("^(^arn:aws([a-z]|\\-)*:secretsmanager:([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}):(\\d{12}):secret:.+)|(\\$(\\.[\\w/_-]+(\\[(\\d+|\\*)\\])*)*)$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SecretManagerArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: Sqls "sqls": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "A list of SQLs.", - Optional: true, - Computed: true, + Required: 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*/ + // Sqls is a write-only property. }, /*END ATTRIBUTE*/ // Property: StatementName "statement_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A name for Redshift DataAPI statement which can be used as filter of ListStatement.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 500), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // StatementName is a write-only property. }, /*END ATTRIBUTE*/ // Property: WithEvent "with_event": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -3819,13 +3361,11 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // WithEvent is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RedshiftDataParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: SageMakerPipelineParameters "sage_maker_pipeline_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3836,46 +3376,32 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 200), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PipelineParameterList is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SageMakerPipelineParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: SqsQueueParameters "sqs_queue_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3883,31 +3409,22 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: MessageDeduplicationId "message_deduplication_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 100), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MessageDeduplicationId is a write-only property. }, /*END ATTRIBUTE*/ // Property: MessageGroupId "message_group_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 100), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MessageGroupId is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SqsQueueParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: StepFunctionStateMachineParameters "step_function_state_machine_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3915,23 +3432,17 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { // Property: InvocationType "invocation_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "REQUEST_RESPONSE", "FIRE_AND_FORGET", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // InvocationType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // StepFunctionStateMachineParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: TimestreamParameters "timestream_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3942,58 +3453,41 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: DimensionName "dimension_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // DimensionName is a write-only property. }, /*END ATTRIBUTE*/ // Property: DimensionValue "dimension_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // DimensionValue is a write-only property. }, /*END ATTRIBUTE*/ // Property: DimensionValueType "dimension_value_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "VARCHAR", ), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DimensionValueType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Optional: true, - Computed: true, + Required: 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*/ + // DimensionMappings is a write-only property. }, /*END ATTRIBUTE*/ // Property: EpochTimeUnit "epoch_time_unit": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "MILLISECONDS", @@ -4002,9 +3496,7 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { "NANOSECONDS", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EpochTimeUnit is a write-only property. }, /*END ATTRIBUTE*/ // Property: MultiMeasureMappings "multi_measure_mappings": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -4016,20 +3508,15 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: MeasureValue "measure_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // MeasureValue is a write-only property. }, /*END ATTRIBUTE*/ // Property: MeasureValueType "measure_value_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DOUBLE", @@ -4038,58 +3525,40 @@ 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*/ + // MeasureValueType is a write-only property. }, /*END ATTRIBUTE*/ // Property: MultiMeasureAttributeName "multi_measure_attribute_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // MultiMeasureAttributeName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ - Optional: true, - Computed: true, + Required: 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*/ + // MultiMeasureAttributeMappings is a write-only property. }, /*END ATTRIBUTE*/ // Property: MultiMeasureName "multi_measure_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // MultiMeasureName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 1024), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MultiMeasureMappings is a write-only property. }, /*END ATTRIBUTE*/ // Property: SingleMeasureMappings "single_measure_mappings": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -4097,32 +3566,23 @@ func pipeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: MeasureName "measure_name": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // MeasureName is a write-only property. }, /*END ATTRIBUTE*/ // Property: MeasureValue "measure_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // MeasureValue is a write-only property. }, /*END ATTRIBUTE*/ // Property: MeasureValueType "measure_value_type": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "DOUBLE", @@ -4131,85 +3591,58 @@ 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*/ + // MeasureValueType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 8192), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SingleMeasureMappings is a write-only property. }, /*END ATTRIBUTE*/ // Property: TimeFieldType "time_field_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EPOCH", "TIMESTAMP_FORMAT", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TimeFieldType is a write-only property. }, /*END ATTRIBUTE*/ // Property: TimeValue "time_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // TimeValue is a write-only property. }, /*END ATTRIBUTE*/ // Property: TimestampFormat "timestamp_format": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TimestampFormat is a write-only property. }, /*END ATTRIBUTE*/ // Property: VersionValue "version_value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // VersionValue is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TimestreamParameters is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // TargetParameters is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/qbusiness/application_resource_gen.go b/internal/aws/qbusiness/application_resource_gen.go index 6f61b548d3..5c1204e08d 100644 --- a/internal/aws/qbusiness/application_resource_gen.go +++ b/internal/aws/qbusiness/application_resource_gen.go @@ -274,6 +274,7 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -331,14 +332,10 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { // } "identity_center_instance_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(10, 1224), stringvalidator.RegexMatches(regexp.MustCompile("^arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b):sso:::instance/(sso)?ins-[a-zA-Z0-9-.]{16}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // IdentityCenterInstanceArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: IdentityType diff --git a/internal/aws/qldb/stream_resource_gen.go b/internal/aws/qldb/stream_resource_gen.go index e76888bbe4..4cf0925282 100644 --- a/internal/aws/qldb/stream_resource_gen.go +++ b/internal/aws/qldb/stream_resource_gen.go @@ -107,6 +107,7 @@ func streamResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StreamArn @@ -118,6 +119,7 @@ func streamResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/quicksight/analysis_resource_gen.go b/internal/aws/quicksight/analysis_resource_gen.go index a81b9e2e45..995626b014 100644 --- a/internal/aws/quicksight/analysis_resource_gen.go +++ b/internal/aws/quicksight/analysis_resource_gen.go @@ -14,7 +14,6 @@ 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/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" @@ -375,40 +374,27 @@ func analysisResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

A display name for the date-time parameter.

", - Optional: true, - Computed: true, + Required: 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*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "

The values for the date-time parameter.

", - Optional: true, - Computed: true, - Validators: []validator.List{ /*START VALIDATORS*/ - fwvalidators.NotNullList(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Values is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

Date-time parameters.

", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 100), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DateTimeParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: DecimalParameters "decimal_parameters": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -417,40 +403,27 @@ func analysisResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

A display name for the decimal parameter.

", - Optional: true, - Computed: true, + Required: 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*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.Float64Type, Description: "

The values for the decimal parameter.

", - Optional: true, - Computed: true, - Validators: []validator.List{ /*START VALIDATORS*/ - fwvalidators.NotNullList(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Values is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

Decimal parameters.

", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 100), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DecimalParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: IntegerParameters "integer_parameters": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -459,40 +432,27 @@ func analysisResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The name of the integer parameter.

", - Optional: true, - Computed: true, + Required: 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*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.Float64Type, Description: "

The values for the integer parameter.

", - Optional: true, - Computed: true, - Validators: []validator.List{ /*START VALIDATORS*/ - fwvalidators.NotNullList(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Values is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

Integer parameters.

", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 100), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IntegerParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: StringParameters "string_parameters": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -501,48 +461,31 @@ func analysisResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

A display name for a string parameter.

", - Optional: true, - Computed: true, + Required: 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*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "

The values of a string parameter.

", - Optional: true, - Computed: true, - Validators: []validator.List{ /*START VALIDATORS*/ - fwvalidators.NotNullList(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Values is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

String parameters.

", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 100), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // StringParameters is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

A list of QuickSight parameters and the list's override values.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Parameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: Permissions @@ -657,11 +600,13 @@ func analysisResource(ctx context.Context) (resource.Resource, error) { "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The name of a sheet. This name is displayed on the sheet's tab in the QuickSight\n console.

", Computed: true, + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: SheetId "sheet_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The unique identifier associated with a sheet.

", Computed: true, + // SheetId is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -730,14 +675,8 @@ 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.

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

Dataset Amazon Resource Name (ARN).

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

Dataset placeholder.

", - Optional: true, - Computed: true, + Required: 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*/ + // DataSetPlaceholder is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

The dataset references of the source template of an analysis.

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

The source template of an analysis.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SourceTemplate is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The source entity of an analysis.

", diff --git a/internal/aws/quicksight/dashboard_resource_gen.go b/internal/aws/quicksight/dashboard_resource_gen.go index 9aa318ae3b..f26c95e092 100644 --- a/internal/aws/quicksight/dashboard_resource_gen.go +++ b/internal/aws/quicksight/dashboard_resource_gen.go @@ -162,24 +162,18 @@ func dashboardResource(ctx context.Context) (resource.Resource, error) { // Property: AvailabilityStatus "availability_status": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ENABLED", "DISABLED", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AvailabilityStatus is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

Ad hoc (one-time) filtering option.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AdHocFilteringOption is a write-only property. }, /*END ATTRIBUTE*/ // Property: ExportToCSVOption "export_to_csv_option": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -187,24 +181,18 @@ func dashboardResource(ctx context.Context) (resource.Resource, error) { // Property: AvailabilityStatus "availability_status": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "ENABLED", "DISABLED", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AvailabilityStatus is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

Export to .csv option.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ExportToCSVOption is a write-only property. }, /*END ATTRIBUTE*/ // Property: SheetControlsOption "sheet_controls_option": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -212,32 +200,22 @@ func dashboardResource(ctx context.Context) (resource.Resource, error) { // Property: VisibilityState "visibility_state": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "EXPANDED", "COLLAPSED", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // VisibilityState is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

Sheet controls option.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SheetControlsOption is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

Dashboard publish options.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // DashboardPublishOptions is a write-only property. }, /*END ATTRIBUTE*/ // Property: LastPublishedTime @@ -427,40 +405,27 @@ func dashboardResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

A display name for the date-time parameter.

", - Optional: true, - Computed: true, + Required: 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*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "

The values for the date-time parameter.

", - Optional: true, - Computed: true, - Validators: []validator.List{ /*START VALIDATORS*/ - fwvalidators.NotNullList(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Values is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

Date-time parameters.

", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 100), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DateTimeParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: DecimalParameters "decimal_parameters": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -469,40 +434,27 @@ func dashboardResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

A display name for the decimal parameter.

", - Optional: true, - Computed: true, + Required: 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*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.Float64Type, Description: "

The values for the decimal parameter.

", - Optional: true, - Computed: true, - Validators: []validator.List{ /*START VALIDATORS*/ - fwvalidators.NotNullList(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Values is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

Decimal parameters.

", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 100), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DecimalParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: IntegerParameters "integer_parameters": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -511,40 +463,27 @@ func dashboardResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The name of the integer parameter.

", - Optional: true, - Computed: true, + Required: 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*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.Float64Type, Description: "

The values for the integer parameter.

", - Optional: true, - Computed: true, - Validators: []validator.List{ /*START VALIDATORS*/ - fwvalidators.NotNullList(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Values is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

Integer parameters.

", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 100), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IntegerParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: StringParameters "string_parameters": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -553,48 +492,31 @@ func dashboardResource(ctx context.Context) (resource.Resource, error) { // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

A display name for a string parameter.

", - Optional: true, - Computed: true, + Required: 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*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "

The values of a string parameter.

", - Optional: true, - Computed: true, - Validators: []validator.List{ /*START VALIDATORS*/ - fwvalidators.NotNullList(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // Values is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

String parameters.

", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 100), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // StringParameters is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

A list of QuickSight parameters and the list's override values.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Parameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: Permissions @@ -732,14 +654,8 @@ func dashboardResource(ctx context.Context) (resource.Resource, error) { // Property: Arn "arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Resource Name (ARN) of the resource.

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

Dataset Amazon Resource Name (ARN).

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

Dataset placeholder.

", - Optional: true, - Computed: true, + Required: 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*/ + // DataSetPlaceholder is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

Dataset references.

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

Dashboard source template.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SourceTemplate is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

Dashboard source entity.

", @@ -879,10 +778,6 @@ func dashboardResource(ctx context.Context) (resource.Resource, error) { "theme_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Resource Name (ARN) of the theme that is being used for this dashboard. If\n you add a value for this field, it overrides the value that is used in the source\n entity. The theme ARN must exist in the same AWS account where you create the\n dashboard.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ThemeArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: Version @@ -1007,22 +902,26 @@ func dashboardResource(ctx context.Context) (resource.Resource, error) { "arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Resource Name (ARN) of the resource.

", Computed: true, + // Arn is a write-only property. }, /*END ATTRIBUTE*/ // Property: CreatedTime "created_time": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The time that this dashboard version was created.

", Computed: true, + // CreatedTime is a write-only property. }, /*END ATTRIBUTE*/ // Property: DataSetArns "data_set_arns": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "

The Amazon Resource Numbers (ARNs) for the datasets that are associated with this\n version of the dashboard.

", Computed: true, + // DataSetArns is a write-only property. }, /*END ATTRIBUTE*/ // Property: Description "description": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Description.

", Computed: true, + // Description is a write-only property. }, /*END ATTRIBUTE*/ // Property: Errors "errors": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1032,15 +931,18 @@ func dashboardResource(ctx context.Context) (resource.Resource, error) { "message": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Message.

", Computed: true, + // Message is a write-only property. }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Computed: true, + // Type is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

Errors associated with this dashboard version.

", Computed: true, + // Errors is a write-only property. }, /*END ATTRIBUTE*/ // Property: Sheets "sheets": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1050,35 +952,42 @@ func dashboardResource(ctx context.Context) (resource.Resource, error) { "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The name of a sheet. This name is displayed on the sheet's tab in the QuickSight\n console.

", Computed: true, + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: SheetId "sheet_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The unique identifier associated with a sheet.

", Computed: true, + // SheetId is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

A list of the associated sheets with the unique identifier and name of each sheet.

", Computed: true, + // Sheets is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourceEntityArn "source_entity_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Source entity ARN.

", Computed: true, + // SourceEntityArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: Status "status": schema.StringAttribute{ /*START ATTRIBUTE*/ Computed: true, + // Status is a write-only property. }, /*END ATTRIBUTE*/ // Property: ThemeArn "theme_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The ARN of the theme associated with a version of the dashboard.

", Computed: true, + // ThemeArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: VersionNumber "version_number": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "

Version number for this version of the dashboard.

", Computed: true, + // VersionNumber is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

Dashboard version.

", @@ -1100,13 +1009,9 @@ func dashboardResource(ctx context.Context) (resource.Resource, error) { "version_description": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

A description for the first version of the dashboard being created.

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // VersionDescription is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/quicksight/data_set_resource_gen.go b/internal/aws/quicksight/data_set_resource_gen.go index c7d0cac4c2..61f46c6552 100644 --- a/internal/aws/quicksight/data_set_resource_gen.go +++ b/internal/aws/quicksight/data_set_resource_gen.go @@ -373,32 +373,22 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { "columns": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 5000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Columns is a write-only property. }, /*END ATTRIBUTE*/ // Property: Description "description": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 500), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Description is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ - mapplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // FieldFolders is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImportMode @@ -459,6 +449,7 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // IngestionWaitTimeInHours is a write-only property. }, /*END ATTRIBUTE*/ // Property: WaitForSpiceIngestion "wait_for_spice_ingestion": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -469,14 +460,11 @@ func dataSetResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // WaitForSpiceIngestion is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

Wait policy to use when creating/updating dataset. Default is to wait for SPICE ingestion to finish with timeout of 36 hours.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // IngestionWaitPolicy is a write-only property. }, /*END ATTRIBUTE*/ // Property: LastUpdatedTime diff --git a/internal/aws/quicksight/data_source_resource_gen.go b/internal/aws/quicksight/data_source_resource_gen.go index 95f0edcc47..2622045330 100644 --- a/internal/aws/quicksight/data_source_resource_gen.go +++ b/internal/aws/quicksight/data_source_resource_gen.go @@ -2471,13 +2471,10 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { "copy_source_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Resource Name (ARN) of a data source that has the credential pair that you\n want to use. When CopySourceArn is not null, the credential pair from the\n data source in the ARN is used as the credentials for the\n DataSourceCredentials structure.

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:[-a-z0-9]*:quicksight:[-a-z0-9]*:[0-9]{12}:datasource/.+$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CopySourceArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: CredentialPair "credential_pair": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2492,23 +2489,16 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Domain "domain": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The OpenSearch domain.

", - Optional: true, - Computed: true, + Required: 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*/ + // Domain is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for OpenSearch.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AmazonElasticsearchParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: AmazonOpenSearchParameters "amazon_open_search_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2516,23 +2506,16 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Domain "domain": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The OpenSearch domain.

", - Optional: true, - Computed: true, + Required: 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*/ + // Domain is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for OpenSearch.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AmazonOpenSearchParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: AthenaParameters "athena_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2541,33 +2524,24 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

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

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(20, 2048), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RoleArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: WorkGroup "work_group": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The workgroup that Amazon Athena uses.

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

Parameters for Amazon Athena.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AthenaParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: AuroraParameters "aurora_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2575,28 +2549,20 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

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

Host.

", - Optional: true, - Computed: true, + Required: 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*/ + // Host is a write-only property. }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -2610,14 +2576,12 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Port is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

Parameters for Amazon Aurora.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AuroraParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: AuroraPostgreSqlParameters "aurora_postgre_sql_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2625,28 +2589,20 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Aurora PostgreSQL database to connect to.

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

The Amazon Aurora PostgreSQL-Compatible host to connect to.

", - Optional: true, - Computed: true, + Required: 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*/ + // Host is a write-only property. }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -2660,14 +2616,12 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Port is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

Parameters for Amazon Aurora PostgreSQL-Compatible Edition.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AuroraPostgreSqlParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: DatabricksParameters "databricks_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2675,15 +2629,11 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The host name of the Databricks data source.

", - Optional: true, - Computed: true, + Required: 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*/ + // Host is a write-only property. }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -2697,27 +2647,21 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Port is a write-only property. }, /*END ATTRIBUTE*/ // Property: SqlEndpointPath "sql_endpoint_path": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The HTTP path of the Databricks data source.

", - Optional: true, - Computed: true, + Required: 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*/ + // SqlEndpointPath is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

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

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DatabricksParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: MariaDbParameters "maria_db_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2725,28 +2669,20 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

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

Host.

", - Optional: true, - Computed: true, + Required: 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*/ + // Host is a write-only property. }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -2760,14 +2696,12 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Port is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for MariaDB.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MariaDbParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: MySqlParameters "my_sql_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2775,28 +2709,20 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

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

Host.

", - Optional: true, - Computed: true, + Required: 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*/ + // Host is a write-only property. }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -2810,14 +2736,12 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Port is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for MySQL.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MySqlParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: OracleParameters "oracle_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2825,28 +2749,20 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The database.

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

An Oracle host.

", - Optional: true, - Computed: true, + Required: 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*/ + // Host is a write-only property. }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -2860,14 +2776,12 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Port is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for Oracle.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // OracleParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: PostgreSqlParameters "postgre_sql_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2875,28 +2789,20 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

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

Host.

", - Optional: true, - Computed: true, + Required: 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*/ + // Host is a write-only property. }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -2910,14 +2816,12 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Port is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for PostgreSQL.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PostgreSqlParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: PrestoParameters "presto_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2925,28 +2829,20 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Catalog "catalog": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Catalog.

", - Optional: true, - Computed: true, + Required: 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*/ + // Catalog is a write-only property. }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Optional: true, - Computed: true, + Required: 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*/ + // Host is a write-only property. }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -2960,14 +2856,12 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Port is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for Presto.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PrestoParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: RdsParameters "rds_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -2975,36 +2869,25 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

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

Instance ID.

", - Optional: true, - Computed: true, + Required: 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*/ + // InstanceId is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for Amazon RDS.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RdsParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: RedshiftParameters "redshift_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3013,38 +2896,28 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { "cluster_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

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

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ClusterId is a write-only property. }, /*END ATTRIBUTE*/ // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

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

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

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Host is a write-only property. }, /*END ATTRIBUTE*/ // Property: IAMParameters "iam_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3058,55 +2931,43 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // AutoCreateDatabaseUser is a write-only property. }, /*END ATTRIBUTE*/ // Property: DatabaseGroups "database_groups": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "

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.

", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 50), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 64), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DatabaseGroups is a write-only property. }, /*END ATTRIBUTE*/ // Property: DatabaseUser "database_user": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

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.

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 64), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DatabaseUser is a write-only property. }, /*END ATTRIBUTE*/ // 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.

", - Optional: true, - Computed: true, + Required: 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*/ + // RoleArn is a write-only property. }, /*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 .

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IAMParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: IdentityCenterConfiguration "identity_center_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3115,18 +2976,12 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { "enable_identity_propagation": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "

A Boolean option that controls whether Trusted Identity Propagation should be used.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EnableIdentityPropagation is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for an IAM Identity Center configuration.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IdentityCenterConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -3140,14 +2995,12 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Port is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for Amazon Redshift. The ClusterId field can be blank if\n Host and Port are both set. The Host and Port fields can be blank if the ClusterId field is set.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RedshiftParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3Parameters "s3_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3158,59 +3011,39 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Bucket "bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Amazon S3 bucket.

", - Optional: true, - Computed: true, + Required: 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*/ + // Bucket is a write-only property. }, /*END ATTRIBUTE*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Amazon S3 key that identifies an object.

", - Optional: true, - Computed: true, + Required: 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*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

Amazon S3 manifest file location.

", - Optional: true, - Computed: true, - Validators: []validator.Object{ /*START VALIDATORS*/ - fwvalidators.NotNullObject(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // ManifestFileLocation is a write-only property. }, /*END ATTRIBUTE*/ // Property: RoleArn "role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

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.

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

The parameters for S3.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // S3Parameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: SnowflakeParameters "snowflake_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3218,49 +3051,34 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

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

Host.

", - Optional: true, - Computed: true, + Required: 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*/ + // Host is a write-only property. }, /*END ATTRIBUTE*/ // Property: Warehouse "warehouse": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Warehouse.

", - Optional: true, - Computed: true, + Required: 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*/ + // Warehouse is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for Snowflake.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SnowflakeParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: SparkParameters "spark_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3268,15 +3086,11 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Host.

", - Optional: true, - Computed: true, + Required: 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*/ + // Host is a write-only property. }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -3290,14 +3104,12 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Port is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for Spark.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SparkParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: SqlServerParameters "sql_server_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3305,28 +3117,20 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

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

Host.

", - Optional: true, - Computed: true, + Required: 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*/ + // Host is a write-only property. }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -3340,14 +3144,12 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Port is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for SQL Server.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SqlServerParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: StarburstParameters "starburst_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3355,28 +3157,20 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Catalog "catalog": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The catalog name for the Starburst data source.

", - Optional: true, - Computed: true, + Required: 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*/ + // Catalog is a write-only property. }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The host name of the Starburst data source.

", - Optional: true, - Computed: true, + Required: 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*/ + // Host is a write-only property. }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -3390,28 +3184,23 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Port is a write-only property. }, /*END ATTRIBUTE*/ // Property: ProductType "product_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "GALAXY", "ENTERPRISE", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ProductType is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

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

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // StarburstParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: TeradataParameters "teradata_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3419,28 +3208,20 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Database "database": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Database.

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

Host.

", - Optional: true, - Computed: true, + Required: 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*/ + // Host is a write-only property. }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -3454,14 +3235,12 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Port is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The parameters for Teradata.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TeradataParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: TrinoParameters "trino_parameters": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -3469,28 +3248,20 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { // Property: Catalog "catalog": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The catalog name for the Trino data source.

", - Optional: true, - Computed: true, + Required: 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*/ + // Catalog is a write-only property. }, /*END ATTRIBUTE*/ // Property: Host "host": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The host name of the Trino data source.

", - Optional: true, - Computed: true, + Required: 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*/ + // Host is a write-only property. }, /*END ATTRIBUTE*/ // Property: Port "port": schema.Float64Attribute{ /*START ATTRIBUTE*/ @@ -3504,81 +3275,58 @@ func dataSourceResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Port is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

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

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TrinoParameters is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

A set of alternate data source parameters that you want to share for these\n credentials. The credentials are applied in tandem with the data source parameters when\n you copy a data source by using a create or update request. The API operation compares\n the DataSourceParameters structure that's in the request with the\n structures in the AlternateDataSourceParameters allow list. If the\n structures are an exact match, the request is allowed to use the new data source with\n the existing credentials. If the AlternateDataSourceParameters list is\n null, the DataSourceParameters originally used with these\n Credentials is automatically allowed.

", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 50), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AlternateDataSourceParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: Password "password": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Password.

", - Optional: true, - Computed: true, + Required: 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*/ + // Password is a write-only property. }, /*END ATTRIBUTE*/ // Property: Username "username": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

User name.

", - Optional: true, - Computed: true, + Required: 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*/ + // Username is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

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

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CredentialPair is a write-only property. }, /*END ATTRIBUTE*/ // Property: SecretArn "secret_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager.

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), stringvalidator.RegexMatches(regexp.MustCompile("^arn:[-a-z0-9]*:secretsmanager:[-a-z0-9]*:[0-9]{12}:secret:.+$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SecretArn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

Data source credentials. This is a variant type structure. For this structure to be\n valid, only one of the attributes can be non-null.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Credentials is a write-only property. }, /*END ATTRIBUTE*/ // Property: DataSourceId diff --git a/internal/aws/quicksight/template_resource_gen.go b/internal/aws/quicksight/template_resource_gen.go index 9ed7bb4dfd..953d223964 100644 --- a/internal/aws/quicksight/template_resource_gen.go +++ b/internal/aws/quicksight/template_resource_gen.go @@ -267,14 +267,8 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: Arn "arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Resource Name (ARN) of the resource.

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

Dataset Amazon Resource Name (ARN).

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

Dataset placeholder.

", - Optional: true, - Computed: true, + Required: 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*/ + // DataSetPlaceholder is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

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

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

The source analysis of the template.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SourceAnalysis is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourceTemplate "source_template": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -332,22 +309,13 @@ func templateResource(ctx context.Context) (resource.Resource, error) { // Property: Arn "arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Resource Name (ARN) of the resource.

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

The source template of the template.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SourceTemplate is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The source entity of the template.

", @@ -632,6 +600,7 @@ func templateResource(ctx context.Context) (resource.Resource, error) { "created_time": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The time that this template version was created.

", Computed: true, + // CreatedTime is a write-only property. }, /*END ATTRIBUTE*/ // Property: DataSetConfigurations "data_set_configurations": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -649,21 +618,25 @@ func templateResource(ctx context.Context) (resource.Resource, error) { "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The name of the column group's column schema.

", Computed: true, + // Name is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

A structure containing the list of schemas for column group columns.

", Computed: true, + // ColumnGroupColumnSchemaList is a write-only property. }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The name of the column group schema.

", Computed: true, + // Name is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

A structure containing the list of column group schemas.

", Computed: true, + // ColumnGroupSchemaList is a write-only property. }, /*END ATTRIBUTE*/ // Property: DataSetSchema "data_set_schema": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -676,40 +649,48 @@ func templateResource(ctx context.Context) (resource.Resource, error) { "data_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The data type of the column schema.

", Computed: true, + // DataType is a write-only property. }, /*END ATTRIBUTE*/ // Property: GeographicRole "geographic_role": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The geographic role of the column schema.

", Computed: true, + // GeographicRole is a write-only property. }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The name of the column schema.

", Computed: true, + // Name is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

A structure containing the list of column schemas.

", Computed: true, + // ColumnSchemaList is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

Dataset schema.

", Computed: true, + // DataSetSchema is a write-only property. }, /*END ATTRIBUTE*/ // Property: Placeholder "placeholder": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Placeholder.

", Computed: true, + // Placeholder is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

Schema of the dataset identified by the placeholder. Any dashboard created from this\n template should be bound to new datasets matching the same schema described through this\n API operation.

", Computed: true, + // DataSetConfigurations is a write-only property. }, /*END ATTRIBUTE*/ // Property: Description "description": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The description of the template.

", Computed: true, + // Description is a write-only property. }, /*END ATTRIBUTE*/ // Property: Errors "errors": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -719,15 +700,18 @@ func templateResource(ctx context.Context) (resource.Resource, error) { "message": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

Description of the error type.

", Computed: true, + // Message is a write-only property. }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Computed: true, + // Type is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

Errors associated with this template version.

", Computed: true, + // Errors is a write-only property. }, /*END ATTRIBUTE*/ // Property: Sheets "sheets": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -737,35 +721,42 @@ func templateResource(ctx context.Context) (resource.Resource, error) { "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The name of a sheet. This name is displayed on the sheet's tab in the QuickSight\n console.

", Computed: true, + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: SheetId "sheet_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The unique identifier associated with a sheet.

", Computed: true, + // SheetId is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "

A list of the associated sheets with the unique identifier and name of each sheet.

", Computed: true, + // Sheets is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourceEntityArn "source_entity_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The Amazon Resource Name (ARN) of an analysis or template that was used to create this\n template.

", Computed: true, + // SourceEntityArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: Status "status": schema.StringAttribute{ /*START ATTRIBUTE*/ Computed: true, + // Status is a write-only property. }, /*END ATTRIBUTE*/ // Property: ThemeArn "theme_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The ARN of the theme associated with this version of the template.

", Computed: true, + // ThemeArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: VersionNumber "version_number": schema.Float64Attribute{ /*START ATTRIBUTE*/ Description: "

The version number of the template version.

", Computed: true, + // VersionNumber is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

A version of a template.

", @@ -787,13 +778,9 @@ func templateResource(ctx context.Context) (resource.Resource, error) { "version_description": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

A description of the current template version being created. This API operation creates the\n\t\t\tfirst version of the template. Every time UpdateTemplate is called, a new\n\t\t\tversion is created. Each version of the template maintains a description of the version\n\t\t\tin the VersionDescription field.

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // VersionDescription is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/quicksight/theme_resource_gen.go b/internal/aws/quicksight/theme_resource_gen.go index e7509672a9..d8779df233 100644 --- a/internal/aws/quicksight/theme_resource_gen.go +++ b/internal/aws/quicksight/theme_resource_gen.go @@ -14,7 +14,6 @@ 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" @@ -297,52 +296,40 @@ func themeResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "

The hexadecimal codes for the colors.

", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 100), listvalidator.ValueStringsAre( stringvalidator.RegexMatches(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Colors is a write-only property. }, /*END ATTRIBUTE*/ // Property: EmptyFillColor "empty_fill_color": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The hexadecimal code of a color that applies to charts where a lack of data is\n highlighted.

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EmptyFillColor is a write-only property. }, /*END ATTRIBUTE*/ // Property: MinMaxGradient "min_max_gradient": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "

The minimum and maximum hexadecimal codes that describe a color gradient.

", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 100), listvalidator.ValueStringsAre( stringvalidator.RegexMatches(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MinMaxGradient is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The theme colors that are used for data colors in charts. The colors description is a\n hexadecimal color code that consists of six alphanumerical characters, prefixed with\n #, for example #37BFF5.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DataColorPalette is a write-only property. }, /*END ATTRIBUTE*/ // Property: Sheet "sheet": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -357,26 +344,17 @@ func themeResource(ctx context.Context) (resource.Resource, error) { "show": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "

The option to enable display of borders for visuals.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Show is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The display options for tile borders for visuals.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Border is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

Display options related to tiles on a sheet.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Tile is a write-only property. }, /*END ATTRIBUTE*/ // Property: TileLayout "tile_layout": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -388,18 +366,12 @@ func themeResource(ctx context.Context) (resource.Resource, error) { "show": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "

This Boolean value controls whether to display a gutter space between sheet tiles.\n

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Show is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The display options for gutter spacing between tiles on a sheet.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Gutter is a write-only property. }, /*END ATTRIBUTE*/ // Property: Margin "margin": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -408,34 +380,22 @@ func themeResource(ctx context.Context) (resource.Resource, error) { "show": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "

This Boolean value controls whether to display sheet margins.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Show is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The display options for margins around the outside edge of sheets.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Margin is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The display options for the layout of tiles on a sheet.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // TileLayout is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The theme display options for sheets.

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Sheet is a write-only property. }, /*END ATTRIBUTE*/ // Property: Typography "typography": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -447,28 +407,19 @@ func themeResource(ctx context.Context) (resource.Resource, error) { // Property: FontFamily "font_family": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // FontFamily is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 5), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // FontFamilies is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Typography is a write-only property. }, /*END ATTRIBUTE*/ // Property: UIColorPalette "ui_color_palette": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -477,201 +428,150 @@ func themeResource(ctx context.Context) (resource.Resource, error) { "accent": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

This color is that applies to selected states and buttons.

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Accent is a write-only property. }, /*END ATTRIBUTE*/ // Property: AccentForeground "accent_foreground": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The foreground color that applies to any text or other elements that appear over the\n accent color.

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AccentForeground is a write-only property. }, /*END ATTRIBUTE*/ // Property: Danger "danger": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The color that applies to error messages.

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Danger is a write-only property. }, /*END ATTRIBUTE*/ // Property: DangerForeground "danger_foreground": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The foreground color that applies to any text or other elements that appear over the\n error color.

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DangerForeground is a write-only property. }, /*END ATTRIBUTE*/ // Property: Dimension "dimension": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The color that applies to the names of fields that are identified as\n dimensions.

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Dimension is a write-only property. }, /*END ATTRIBUTE*/ // Property: DimensionForeground "dimension_foreground": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The foreground color that applies to any text or other elements that appear over the\n dimension color.

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DimensionForeground is a write-only property. }, /*END ATTRIBUTE*/ // Property: Measure "measure": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The color that applies to the names of fields that are identified as measures.

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Measure is a write-only property. }, /*END ATTRIBUTE*/ // Property: MeasureForeground "measure_foreground": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The foreground color that applies to any text or other elements that appear over the\n measure color.

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // MeasureForeground is a write-only property. }, /*END ATTRIBUTE*/ // Property: PrimaryBackground "primary_background": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The background color that applies to visuals and other high emphasis UI.

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PrimaryBackground is a write-only property. }, /*END ATTRIBUTE*/ // Property: PrimaryForeground "primary_foreground": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The color of text and other foreground elements that appear over the primary\n background regions, such as grid lines, borders, table banding, icons, and so on.

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PrimaryForeground is a write-only property. }, /*END ATTRIBUTE*/ // Property: SecondaryBackground "secondary_background": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The background color that applies to the sheet background and sheet controls.

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SecondaryBackground is a write-only property. }, /*END ATTRIBUTE*/ // Property: SecondaryForeground "secondary_foreground": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The foreground color that applies to any sheet title, sheet control text, or UI that\n appears over the secondary background.

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SecondaryForeground is a write-only property. }, /*END ATTRIBUTE*/ // Property: Success "success": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The color that applies to success messages, for example the check mark for a\n successful download.

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Success is a write-only property. }, /*END ATTRIBUTE*/ // Property: SuccessForeground "success_foreground": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The foreground color that applies to any text or other elements that appear over the\n success color.

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SuccessForeground is a write-only property. }, /*END ATTRIBUTE*/ // Property: Warning "warning": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

This color that applies to warning and informational messages.

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Warning is a write-only property. }, /*END ATTRIBUTE*/ // Property: WarningForeground "warning_foreground": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "

The foreground color that applies to any text or other elements that appear over the\n warning color.

", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // WarningForeground is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The theme colors that apply to UI and to charts, excluding data colors. The colors\n description is a hexadecimal color code that consists of six alphanumerical characters,\n prefixed with #, for example #37BFF5. For more information, see Using Themes in Amazon QuickSight in the Amazon QuickSight User\n Guide.\n

", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // UIColorPalette is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "

The theme configuration. This configuration contains all of the display properties for\n a theme.

", @@ -1438,13 +1338,9 @@ func themeResource(ctx context.Context) (resource.Resource, error) { // } "version_description": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 512), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // VersionDescription is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/quicksight/vpc_connection_resource_gen.go b/internal/aws/quicksight/vpc_connection_resource_gen.go index 684c0b536b..58d4c87a64 100644 --- a/internal/aws/quicksight/vpc_connection_resource_gen.go +++ b/internal/aws/quicksight/vpc_connection_resource_gen.go @@ -336,7 +336,6 @@ func vPCConnectionResource(ctx context.Context) (resource.Resource, error) { "subnet_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(2, 15), listvalidator.ValueStringsAre( @@ -346,7 +345,6 @@ func vPCConnectionResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // SubnetIds is a write-only property. }, /*END ATTRIBUTE*/ diff --git a/internal/aws/rds/db_cluster_resource_gen.go b/internal/aws/rds/db_cluster_resource_gen.go index f8aa2cf8f6..4b401ec11a 100644 --- a/internal/aws/rds/db_cluster_resource_gen.go +++ b/internal/aws/rds/db_cluster_resource_gen.go @@ -301,10 +301,6 @@ func dBClusterResource(ctx context.Context) (resource.Resource, error) { "db_instance_parameter_group_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the DB parameter group to apply to all instances of the DB cluster.\n When you apply a parameter group using the ``DBInstanceParameterGroupName`` parameter, the DB cluster isn't rebooted automatically. Also, parameter changes are applied immediately rather than during the next maintenance window.\n Valid for Cluster Type: Aurora DB clusters only\n Default: The existing name setting\n Constraints:\n + The DB parameter group must be in the same DB parameter group family as this DB cluster.\n + The ``DBInstanceParameterGroupName`` parameter is valid in combination with the ``AllowMajorVersionUpgrade`` parameter for a major version upgrade only.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // DBInstanceParameterGroupName is a write-only property. }, /*END ATTRIBUTE*/ // Property: DBSubnetGroupName @@ -659,10 +655,6 @@ func dBClusterResource(ctx context.Context) (resource.Resource, error) { "master_user_password": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The master password for the DB instance.\n If you specify the ``SourceDBClusterIdentifier``, ``SnapshotIdentifier``, or ``GlobalClusterIdentifier`` property, don't specify this property. The value is inherited from the source DB cluster, the snapshot, or the primary DB cluster for the global database cluster, respectively.\n Valid for: Aurora DB clusters and Multi-AZ DB clusters", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // MasterUserPassword is a write-only property. }, /*END ATTRIBUTE*/ // Property: MasterUserSecret diff --git a/internal/aws/rds/db_instance_resource_gen.go b/internal/aws/rds/db_instance_resource_gen.go index c093289b20..757802a8cf 100644 --- a/internal/aws/rds/db_instance_resource_gen.go +++ b/internal/aws/rds/db_instance_resource_gen.go @@ -65,10 +65,6 @@ func dBInstanceResource(ctx context.Context) (resource.Resource, error) { "allow_major_version_upgrade": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "A value that indicates whether major version upgrades are allowed. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible.\n Constraints: Major version upgrades must be allowed when specifying a value for the ``EngineVersion`` parameter that is a different major version than the DB instance's current version.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AllowMajorVersionUpgrade is a write-only property. }, /*END ATTRIBUTE*/ // Property: AssociatedRoles @@ -158,10 +154,6 @@ func dBInstanceResource(ctx context.Context) (resource.Resource, error) { "automatic_backup_replication_kms_key_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The AWS KMS key identifier for encryption of the replicated automated backups. The KMS key ID is the Amazon Resource Name (ARN) for the KMS encryption key in the destination AWS-Region, for example, ``arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE``.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AutomaticBackupReplicationKmsKeyId is a write-only property. }, /*END ATTRIBUTE*/ // Property: AutomaticBackupReplicationRegion @@ -284,10 +276,6 @@ func dBInstanceResource(ctx context.Context) (resource.Resource, error) { "certificate_rotation_restart": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether the DB instance is restarted when you rotate your SSL/TLS certificate.\n By default, the DB instance is restarted when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted.\n Set this parameter only if you are *not* using SSL/TLS to connect to the DB instance.\n If you are using SSL/TLS to connect to the DB instance, follow the appropriate instructions for your DB engine to rotate your SSL/TLS certificate:\n + For more information about rotating your SSL/TLS certificate for RDS DB engines, see [Rotating Your SSL/TLS Certificate.](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL-certificate-rotation.html) in the *Amazon RDS User Guide.* \n + For more information about rotating your SSL/TLS certificate for Aurora DB engines, see [Rotating Your SSL/TLS Certificate](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL-certificate-rotation.html) in the *Amazon Aurora User Guide*.\n \n This setting doesn't apply to RDS Custom DB instances.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // CertificateRotationRestart is a write-only property. }, /*END ATTRIBUTE*/ // Property: CharacterSetName @@ -484,10 +472,6 @@ func dBInstanceResource(ctx context.Context) (resource.Resource, error) { "db_snapshot_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name or Amazon Resource Name (ARN) of the DB snapshot that's used to restore the DB instance. If you're restoring from a shared manual DB snapshot, you must specify the ARN of the snapshot.\n By specifying this property, you can create a DB instance from the specified DB snapshot. If the ``DBSnapshotIdentifier`` property is an empty string or the ``AWS::RDS::DBInstance`` declaration has no ``DBSnapshotIdentifier`` property, AWS CloudFormation creates a new database. If the property contains a value (other than an empty string), AWS CloudFormation creates a database from the specified snapshot. If a snapshot with the specified name doesn't exist, AWS CloudFormation can't create the database and it rolls back the stack.\n Some DB instance properties aren't valid when you restore from a snapshot, such as the ``MasterUsername`` and ``MasterUserPassword`` properties. For information about the properties that you can specify, see the ``RestoreDBInstanceFromDBSnapshot`` action in the *Amazon RDS API Reference*.\n After you restore a DB instance with a ``DBSnapshotIdentifier`` property, you must specify the same ``DBSnapshotIdentifier`` property for any future updates to the DB instance. When you specify this property for an update, the DB instance is not restored from the DB snapshot again, and the data in the database is not changed. However, if you don't specify the ``DBSnapshotIdentifier`` property, an empty DB instance is created, and the original DB instance is deleted. If you specify a property that is different from the previous snapshot restore property, a new DB instance is restored from the specified ``DBSnapshotIdentifier`` property, and the original DB instance is deleted.\n If you specify the ``DBSnapshotIdentifier`` property to restore a DB instance (as opposed to specifying it for DB instance updates), then don't specify the following properties:\n + ``CharacterSetName`` \n + ``DBClusterIdentifier`` \n + ``DBName`` \n + ``DeleteAutomatedBackups`` \n + ``KmsKeyId`` \n + ``MasterUsername`` \n + ``MasterUserPassword`` \n + ``PerformanceInsightsKMSKeyId`` \n + ``PerformanceInsightsRetentionPeriod`` \n + ``PromotionTier`` \n + ``SourceDBInstanceIdentifier`` \n + ``SourceRegion`` \n + ``StorageEncrypted`` (for an encrypted snapshot)\n + ``Timezone`` \n \n *Amazon Aurora* \n Not applicable. Snapshot restore is managed by the DB cluster.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // DBSnapshotIdentifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: DBSubnetGroupName @@ -559,10 +543,6 @@ func dBInstanceResource(ctx context.Context) (resource.Resource, error) { "delete_automated_backups": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "A value that indicates whether to remove automated backups immediately after the DB instance is deleted. This parameter isn't case-sensitive. The default is to remove automated backups immediately after the DB instance is deleted.\n *Amazon Aurora* \n Not applicable. When you delete a DB cluster, all automated backups for that DB cluster are deleted and can't be recovered. Manual DB cluster snapshots of the DB cluster are not deleted.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // DeleteAutomatedBackups is a write-only property. }, /*END ATTRIBUTE*/ // Property: DeletionProtection @@ -895,10 +875,6 @@ func dBInstanceResource(ctx context.Context) (resource.Resource, error) { "master_user_password": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The password for the master user. The password can include any printable ASCII character except \"/\", \"\"\", or \"@\".\n *Amazon Aurora* \n Not applicable. The password for the master user is managed by the DB cluster.\n *RDS for Db2* \n Must contain from 8 to 255 characters.\n *RDS for MariaDB* \n Constraints: Must contain from 8 to 41 characters.\n *RDS for Microsoft SQL Server* \n Constraints: Must contain from 8 to 128 characters.\n *RDS for MySQL* \n Constraints: Must contain from 8 to 41 characters.\n *RDS for Oracle* \n Constraints: Must contain from 8 to 30 characters.\n *RDS for PostgreSQL* \n Constraints: Must contain from 8 to 128 characters.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // MasterUserPassword is a write-only property. }, /*END ATTRIBUTE*/ // Property: MasterUserSecret @@ -1279,10 +1255,6 @@ func dBInstanceResource(ctx context.Context) (resource.Resource, error) { CustomType: timetypes.RFC3339Type{}, Description: "The date and time to restore from. This parameter applies to point-in-time recovery. For more information, see [Restoring a DB instance to a specified time](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html) in the in the *Amazon RDS User Guide*.\n Constraints:\n + Must be a time in Universal Coordinated Time (UTC) format.\n + Must be before the latest restorable time for the DB instance.\n + Can't be specified if the ``UseLatestRestorableTime`` parameter is enabled.\n \n Example: ``2009-09-07T23:45:00Z``", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // RestoreTime is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourceDBClusterIdentifier @@ -1310,10 +1282,6 @@ func dBInstanceResource(ctx context.Context) (resource.Resource, error) { "source_db_instance_automated_backups_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the replicated automated backups from which to restore, for example, ``arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE``.\n This setting doesn't apply to RDS Custom.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // SourceDBInstanceAutomatedBackupsArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourceDBInstanceIdentifier @@ -1326,10 +1294,6 @@ func dBInstanceResource(ctx context.Context) (resource.Resource, error) { "source_db_instance_identifier": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "If you want to create a read replica DB instance, specify the ID of the source DB instance. Each DB instance can have a limited number of read replicas. For more information, see [Working with Read Replicas](https://docs.aws.amazon.com/AmazonRDS/latest/DeveloperGuide/USER_ReadRepl.html) in the *Amazon RDS User Guide*.\n For information about constraints that apply to DB instance identifiers, see [Naming constraints in Amazon RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Limits.html#RDS_Limits.Constraints) in the *Amazon RDS User Guide*.\n The ``SourceDBInstanceIdentifier`` property determines whether a DB instance is a read replica. If you remove the ``SourceDBInstanceIdentifier`` property from your template and then update your stack, AWS CloudFormation promotes the read replica to a standalone DB instance.\n If you specify the ``UseLatestRestorableTime`` or ``RestoreTime`` properties in conjunction with the ``SourceDBInstanceIdentifier`` property, RDS restores the DB instance to the requested point in time, thereby creating a new DB instance.\n + If you specify a source DB instance that uses VPC security groups, we recommend that you specify the ``VPCSecurityGroups`` property. If you don't specify the property, the read replica inherits the value of the ``VPCSecurityGroups`` property from the source DB when you create the replica. However, if you update the stack, AWS CloudFormation reverts the replica's ``VPCSecurityGroups`` property to the default value because it's not defined in the stack's template. This change might cause unexpected issues.\n + Read replicas don't support deletion policies. AWS CloudFormation ignores any deletion policy that's associated with a read replica.\n + If you specify ``SourceDBInstanceIdentifier``, don't specify the ``DBSnapshotIdentifier`` property. You can't create a read replica from a snapshot.\n + Don't set the ``BackupRetentionPeriod``, ``DBName``, ``MasterUsername``, ``MasterUserPassword``, and ``PreferredBackupWindow`` properties. The database attributes are inherited from the source DB instance, and backups are disabled for read replicas.\n + If the source DB instance is in a different region than the read replica, specify the source region in ``SourceRegion``, and specify an ARN for a valid DB instance in ``SourceDBInstanceIdentifier``. For more information, see [Constructing a Amazon RDS Amazon Resource Name (ARN)](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.ARN) in the *Amazon RDS User Guide*.\n + For DB instances in Amazon Aurora clusters, don't specify this property. Amazon RDS automatically assigns writer and reader DB instances.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // SourceDBInstanceIdentifier is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourceDbiResourceId @@ -1342,10 +1306,6 @@ func dBInstanceResource(ctx context.Context) (resource.Resource, error) { "source_dbi_resource_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The resource ID of the source DB instance from which to restore.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // SourceDbiResourceId is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourceRegion @@ -1505,10 +1465,6 @@ func dBInstanceResource(ctx context.Context) (resource.Resource, error) { "tde_credential_password": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // TdeCredentialPassword is a write-only property. }, /*END ATTRIBUTE*/ // Property: Timezone @@ -1537,10 +1493,6 @@ func dBInstanceResource(ctx context.Context) (resource.Resource, error) { "use_default_processor_features": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether the DB instance class of the DB instance uses its default processor features.\n This setting doesn't apply to RDS Custom DB instances.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // UseDefaultProcessorFeatures is a write-only property. }, /*END ATTRIBUTE*/ // Property: UseLatestRestorableTime @@ -1553,10 +1505,6 @@ func dBInstanceResource(ctx context.Context) (resource.Resource, error) { "use_latest_restorable_time": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether the DB instance is restored from the latest backup time. By default, the DB instance isn't restored from the latest backup time. This parameter applies to point-in-time recovery. For more information, see [Restoring a DB instance to a specified time](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html) in the in the *Amazon RDS User Guide*.\n Constraints:\n + Can't be specified if the ``RestoreTime`` parameter is provided.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // UseLatestRestorableTime is a write-only property. }, /*END ATTRIBUTE*/ // Property: VPCSecurityGroups diff --git a/internal/aws/redshift/cluster_parameter_group_resource_gen.go b/internal/aws/redshift/cluster_parameter_group_resource_gen.go index 9e75c6a855..0fcff7334e 100644 --- a/internal/aws/redshift/cluster_parameter_group_resource_gen.go +++ b/internal/aws/redshift/cluster_parameter_group_resource_gen.go @@ -176,37 +176,27 @@ 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 -.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*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 -.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "An array of key-value pairs to apply to this resource.", Optional: true, - Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // Tags is a write-only property. }, /*END ATTRIBUTE*/ diff --git a/internal/aws/redshift/cluster_resource_gen.go b/internal/aws/redshift/cluster_resource_gen.go index 1c0f93bc4f..d0fc5dbf4d 100644 --- a/internal/aws/redshift/cluster_resource_gen.go +++ b/internal/aws/redshift/cluster_resource_gen.go @@ -134,10 +134,6 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { "classic": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "A boolean value indicating whether the resize operation is using the classic resize process. If you don't provide this parameter or set the value to false , the resize type is elastic.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Classic is a write-only property. }, /*END ATTRIBUTE*/ // Property: ClusterIdentifier @@ -285,10 +281,6 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { "defer_maintenance": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "A boolean indicating whether to enable the deferred maintenance window.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // DeferMaintenance is a write-only property. }, /*END ATTRIBUTE*/ // Property: DeferMaintenanceDuration @@ -301,10 +293,6 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { "defer_maintenance_duration": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "An integer indicating the duration of the maintenance window in days. If you specify a duration, you can't specify an end time. The duration must be 45 days or less.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // DeferMaintenanceDuration is a write-only property. }, /*END ATTRIBUTE*/ // Property: DeferMaintenanceEndTime @@ -628,10 +616,6 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { "manage_master_password": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "A boolean indicating if the redshift cluster's admin user credentials is managed by Redshift or not. You can't use MasterUserPassword if ManageMasterPassword is true. If ManageMasterPassword is false or not set, Amazon Redshift uses MasterUserPassword for the admin user account's password.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ManageMasterPassword is a write-only property. }, /*END ATTRIBUTE*/ // Property: ManualSnapshotRetentionPeriod @@ -693,13 +677,9 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { "master_user_password": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The password associated with the master user account for the cluster that is being created. You can't use MasterUserPassword if ManageMasterPassword is true. Password must be between 8 and 64 characters in length, should have at least one uppercase letter.Must contain at least one lowercase letter.Must contain one number.Can be any printable ASCII character.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(64), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // MasterUserPassword is a write-only property. }, /*END ATTRIBUTE*/ // Property: MasterUsername diff --git a/internal/aws/redshift/cluster_subnet_group_resource_gen.go b/internal/aws/redshift/cluster_subnet_group_resource_gen.go index 3504362f10..0c27b7ac58 100644 --- a/internal/aws/redshift/cluster_subnet_group_resource_gen.go +++ b/internal/aws/redshift/cluster_subnet_group_resource_gen.go @@ -12,14 +12,12 @@ 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/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() { @@ -121,40 +119,30 @@ 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 -.", - Optional: true, - Computed: true, + Required: 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*/ + // Key is a write-only property. }, /*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 -.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The list of tags for the cluster parameter group.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtMost(50), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // Tags is a write-only property. }, /*END ATTRIBUTE*/ diff --git a/internal/aws/redshift/endpoint_authorization_resource_gen.go b/internal/aws/redshift/endpoint_authorization_resource_gen.go index b304ef169c..da9ed21760 100644 --- a/internal/aws/redshift/endpoint_authorization_resource_gen.go +++ b/internal/aws/redshift/endpoint_authorization_resource_gen.go @@ -156,10 +156,6 @@ func endpointAuthorizationResource(ctx context.Context) (resource.Resource, erro "force": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: " Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Force is a write-only property. }, /*END ATTRIBUTE*/ // Property: Grantee diff --git a/internal/aws/redshift/event_subscription_resource_gen.go b/internal/aws/redshift/event_subscription_resource_gen.go index 766b98bf99..0828f0f6ce 100644 --- a/internal/aws/redshift/event_subscription_resource_gen.go +++ b/internal/aws/redshift/event_subscription_resource_gen.go @@ -21,7 +21,6 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" - fwvalidators "github.com/hashicorp/terraform-provider-awscc/internal/validators" ) func init() { @@ -331,37 +330,27 @@ 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 -.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*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 -.", - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "An array of key-value pairs to apply to this resource.", Optional: true, - Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // Tags is a write-only property. }, /*END ATTRIBUTE*/ diff --git a/internal/aws/redshiftserverless/namespace_resource_gen.go b/internal/aws/redshiftserverless/namespace_resource_gen.go index 4386899a13..c46b623fe9 100644 --- a/internal/aws/redshiftserverless/namespace_resource_gen.go +++ b/internal/aws/redshiftserverless/namespace_resource_gen.go @@ -14,7 +14,6 @@ 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" @@ -63,13 +62,9 @@ func namespaceResource(ctx context.Context) (resource.Resource, error) { "admin_user_password": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The password associated with the admin user for the namespace that is being created. Password must be at least 8 characters in length, should be any printable ASCII character. Must contain at least one lowercase letter, one uppercase letter and one decimal digit. You can't use adminUserPassword if manageAdminPassword is true.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(8, 64), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AdminUserPassword is a write-only property. }, /*END ATTRIBUTE*/ // Property: AdminUsername @@ -139,14 +134,10 @@ func namespaceResource(ctx context.Context) (resource.Resource, error) { "final_snapshot_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the namespace the source snapshot was created from. Please specify the name if needed before deleting namespace", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(255), stringvalidator.RegexMatches(regexp.MustCompile("[a-z][a-z0-9]*(-[a-z0-9]+)*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // FinalSnapshotName is a write-only property. }, /*END ATTRIBUTE*/ // Property: FinalSnapshotRetentionPeriod @@ -159,10 +150,6 @@ func namespaceResource(ctx context.Context) (resource.Resource, error) { "final_snapshot_retention_period": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of days to retain automated snapshot in the destination region after they are copied from the source region. If the value is -1, the manual snapshot is retained indefinitely. The value must be either -1 or an integer between 1 and 3,653.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // FinalSnapshotRetentionPeriod is a write-only property. }, /*END ATTRIBUTE*/ // Property: IamRoles @@ -256,10 +243,6 @@ func namespaceResource(ctx context.Context) (resource.Resource, error) { "manage_admin_password": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "If true, Amazon Redshift uses AWS Secrets Manager to manage the namespace's admin credentials. You can't use adminUserPassword if manageAdminPassword is true. If manageAdminPassword is false or not set, Amazon Redshift uses adminUserPassword for the admin user account's password.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ManageAdminPassword is a write-only property. }, /*END ATTRIBUTE*/ // Property: Namespace @@ -453,10 +436,6 @@ func namespaceResource(ctx context.Context) (resource.Resource, error) { "redshift_idc_application_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN for the Redshift application that integrates with IAM Identity Center.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // RedshiftIdcApplicationArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: SnapshotCopyConfigurations @@ -573,7 +552,9 @@ func namespaceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -585,7 +566,9 @@ func namespaceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*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 afca97c56c..cb40562b27 100644 --- a/internal/aws/redshiftserverless/workgroup_resource_gen.go +++ b/internal/aws/redshiftserverless/workgroup_resource_gen.go @@ -17,16 +17,13 @@ import ( "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/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() { @@ -47,10 +44,6 @@ func workgroupResource(ctx context.Context) (resource.Resource, error) { "base_capacity": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The base compute capacity of the workgroup in Redshift Processing Units (RPUs).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // BaseCapacity is a write-only property. }, /*END ATTRIBUTE*/ // Property: ConfigParameters @@ -85,36 +78,26 @@ func workgroupResource(ctx context.Context) (resource.Resource, error) { // Property: ParameterKey "parameter_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 255), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ParameterKey is a write-only property. }, /*END ATTRIBUTE*/ // Property: ParameterValue "parameter_value": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(0, 15000), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ParameterValue is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of parameters to set for finer control over a database. Available options are datestyle, enable_user_activity_logging, query_group, search_path, max_query_execution_time, and require_ssl.", Optional: true, - Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeAtLeast(1), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ConfigParameters is a write-only property. }, /*END ATTRIBUTE*/ // Property: EnhancedVpcRouting @@ -144,10 +127,6 @@ func workgroupResource(ctx context.Context) (resource.Resource, error) { "max_capacity": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The max compute capacity of the workgroup in Redshift Processing Units (RPUs).", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // MaxCapacity is a write-only property. }, /*END ATTRIBUTE*/ // Property: NamespaceName @@ -224,7 +203,6 @@ func workgroupResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "A list of security group IDs to associate with the workgroup.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 32), listvalidator.ValueStringsAre( @@ -234,7 +212,6 @@ func workgroupResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // SecurityGroupIds is a write-only property. }, /*END ATTRIBUTE*/ @@ -258,7 +235,6 @@ func workgroupResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "A list of subnet IDs the workgroup is associated with.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 32), listvalidator.ValueStringsAre( @@ -268,7 +244,6 @@ func workgroupResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // SubnetIds is a write-only property. }, /*END ATTRIBUTE*/ @@ -307,39 +282,29 @@ func workgroupResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The map of the key-value pairs used to tag the workgroup.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 200), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // Tags is a write-only property. }, /*END ATTRIBUTE*/ diff --git a/internal/aws/refactorspaces/application_resource_gen.go b/internal/aws/refactorspaces/application_resource_gen.go index 9ec1a6eeff..274fad2f84 100644 --- a/internal/aws/refactorspaces/application_resource_gen.go +++ b/internal/aws/refactorspaces/application_resource_gen.go @@ -81,7 +81,9 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // EndpointType is a write-only property. }, /*END ATTRIBUTE*/ // Property: StageName "stage_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -93,7 +95,9 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // StageName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/refactorspaces/route_resource_gen.go b/internal/aws/refactorspaces/route_resource_gen.go index a65805f5a1..686cd5f2e9 100644 --- a/internal/aws/refactorspaces/route_resource_gen.go +++ b/internal/aws/refactorspaces/route_resource_gen.go @@ -15,7 +15,6 @@ 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/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/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" @@ -90,25 +89,17 @@ func routeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ActivationState "activation_state": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // ActivationState is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // DefaultRoute is a write-only property. }, /*END ATTRIBUTE*/ // Property: EnvironmentIdentifier @@ -322,18 +313,14 @@ func routeResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: ActivationState "activation_state": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // ActivationState is a write-only property. }, /*END ATTRIBUTE*/ // Property: AppendSourcePath "append_source_path": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -343,6 +330,7 @@ func routeResource(ctx context.Context) (resource.Resource, error) { boolplanmodifier.UseStateForUnknown(), boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // AppendSourcePath is a write-only property. }, /*END ATTRIBUTE*/ // Property: IncludeChildPaths "include_child_paths": schema.BoolAttribute{ /*START ATTRIBUTE*/ @@ -352,6 +340,7 @@ func routeResource(ctx context.Context) (resource.Resource, error) { boolplanmodifier.UseStateForUnknown(), boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // IncludeChildPaths is a write-only property. }, /*END ATTRIBUTE*/ // Property: Methods "methods": schema.ListAttribute{ /*START ATTRIBUTE*/ @@ -376,6 +365,7 @@ func routeResource(ctx context.Context) (resource.Resource, error) { listplanmodifier.UseStateForUnknown(), listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Methods is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourcePath "source_path": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -389,13 +379,10 @@ func routeResource(ctx context.Context) (resource.Resource, error) { stringplanmodifier.UseStateForUnknown(), stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // SourcePath is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // UriPathRoute is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/refactorspaces/service_resource_gen.go b/internal/aws/refactorspaces/service_resource_gen.go index 994c8d4706..76799708e9 100644 --- a/internal/aws/refactorspaces/service_resource_gen.go +++ b/internal/aws/refactorspaces/service_resource_gen.go @@ -159,7 +159,9 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Arn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, @@ -311,7 +313,9 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // HealthUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Url "url": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -324,7 +328,9 @@ func serviceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Url is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, diff --git a/internal/aws/robomaker/robot_application_resource_gen.go b/internal/aws/robomaker/robot_application_resource_gen.go index 461d624e34..b92c39bf37 100644 --- a/internal/aws/robomaker/robot_application_resource_gen.go +++ b/internal/aws/robomaker/robot_application_resource_gen.go @@ -11,7 +11,6 @@ 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/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" @@ -19,7 +18,6 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/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,7 +146,6 @@ func robotApplicationResource(ctx context.Context) (resource.Resource, error) { "version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The version of robot software suite.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Kinetic", @@ -156,9 +153,6 @@ func robotApplicationResource(ctx context.Context) (resource.Resource, error) { "Dashing", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Version is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -209,8 +203,7 @@ func robotApplicationResource(ctx context.Context) (resource.Resource, error) { // Property: Architecture "architecture": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The architecture of robot application.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 255), stringvalidator.OneOf( @@ -218,44 +211,27 @@ 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*/ + // Architecture is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3Bucket "s3_bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Arn of the S3Bucket that stores the robot application source.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // S3Bucket is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3Key "s3_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The s3 key of robot application source.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // S3Key is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The sources of the robot application.", Optional: true, - Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // Sources is a write-only property. }, /*END ATTRIBUTE*/ diff --git a/internal/aws/robomaker/simulation_application_resource_gen.go b/internal/aws/robomaker/simulation_application_resource_gen.go index b21aae9587..2df581dbcb 100644 --- a/internal/aws/robomaker/simulation_application_resource_gen.go +++ b/internal/aws/robomaker/simulation_application_resource_gen.go @@ -12,16 +12,13 @@ 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" "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() { @@ -129,38 +126,26 @@ func simulationApplicationResource(ctx context.Context) (resource.Resource, erro // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the rendering engine.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "OGRE", ), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: Version "version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The version of the rendering engine.", - Optional: true, - Computed: true, + Required: 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*/ + // Version is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The rendering engine for the simulation application.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // RenderingEngine is a write-only property. }, /*END ATTRIBUTE*/ // Property: RobotSoftwareSuite @@ -213,7 +198,6 @@ func simulationApplicationResource(ctx context.Context) (resource.Resource, erro "version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The version of the robot software suite.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Kinetic", @@ -222,9 +206,6 @@ func simulationApplicationResource(ctx context.Context) (resource.Resource, erro "Foxy", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Version is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -284,7 +265,6 @@ func simulationApplicationResource(ctx context.Context) (resource.Resource, erro "version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The version of the simulation software suite.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "7", @@ -296,9 +276,6 @@ func simulationApplicationResource(ctx context.Context) (resource.Resource, erro "Foxy", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Version is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -351,54 +328,40 @@ func simulationApplicationResource(ctx context.Context) (resource.Resource, erro // Property: Architecture "architecture": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The target processor architecture for the application.", - Optional: true, - Computed: true, + Required: 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*/ + // Architecture is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3Bucket "s3_bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon S3 bucket name.", - Optional: true, - Computed: true, + Required: 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*/ + // S3Bucket is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3Key "s3_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The s3 object key.", - Optional: true, - Computed: true, + Required: 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*/ + // S3Key is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The sources of the simulation application.", Optional: true, - Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // Sources is a write-only property. }, /*END ATTRIBUTE*/ diff --git a/internal/aws/route53profiles/profile_association_resource_gen.go b/internal/aws/route53profiles/profile_association_resource_gen.go index 2137da51c2..a74b5c6943 100644 --- a/internal/aws/route53profiles/profile_association_resource_gen.go +++ b/internal/aws/route53profiles/profile_association_resource_gen.go @@ -38,10 +38,6 @@ func profileAssociationResource(ctx context.Context) (resource.Resource, error) "arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the profile association.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Arn is a write-only property. }, /*END ATTRIBUTE*/ // Property: Id diff --git a/internal/aws/route53recoverycontrol/cluster_resource_gen.go b/internal/aws/route53recoverycontrol/cluster_resource_gen.go index a4d563231a..b233d1310b 100644 --- a/internal/aws/route53recoverycontrol/cluster_resource_gen.go +++ b/internal/aws/route53recoverycontrol/cluster_resource_gen.go @@ -167,7 +167,9 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -179,7 +181,9 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -226,13 +230,13 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { "value": "Value", }) + opts = opts.IsImmutableType(true) + opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/Tags", }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) - opts = opts.WithUpdateTimeoutInMinutes(0) - v, err := generic.NewResource(ctx, opts...) if err != nil { diff --git a/internal/aws/route53recoverycontrol/control_panel_resource_gen.go b/internal/aws/route53recoverycontrol/control_panel_resource_gen.go index 3744c33824..a146391fcb 100644 --- a/internal/aws/route53recoverycontrol/control_panel_resource_gen.go +++ b/internal/aws/route53recoverycontrol/control_panel_resource_gen.go @@ -169,7 +169,9 @@ func controlPanelResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -181,7 +183,9 @@ func controlPanelResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*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 636ed87ef8..4007bad915 100644 --- a/internal/aws/route53recoverycontrol/safety_rule_resource_gen.go +++ b/internal/aws/route53recoverycontrol/safety_rule_resource_gen.go @@ -357,36 +357,26 @@ func safetyRuleResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A collection of tags associated with a resource", Optional: true, - Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // Tags is a write-only property. }, /*END ATTRIBUTE*/ diff --git a/internal/aws/route53resolver/firewall_domain_list_resource_gen.go b/internal/aws/route53resolver/firewall_domain_list_resource_gen.go index bb948d116d..d1533df495 100644 --- a/internal/aws/route53resolver/firewall_domain_list_resource_gen.go +++ b/internal/aws/route53resolver/firewall_domain_list_resource_gen.go @@ -13,7 +13,6 @@ 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/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" @@ -107,13 +106,9 @@ func firewallDomainListResource(ctx context.Context) (resource.Resource, error) "domain_file_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "S3 URL to import domains from.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // DomainFileUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: Domains @@ -134,16 +129,12 @@ func firewallDomainListResource(ctx context.Context) (resource.Resource, error) ElementType: types.StringType, Description: "An inline list of domains to use for this domain list.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 255), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Domains is a write-only property. }, /*END ATTRIBUTE*/ // Property: Id diff --git a/internal/aws/s3/access_grant_resource_gen.go b/internal/aws/s3/access_grant_resource_gen.go index 14d2c8c4fb..8880034bed 100644 --- a/internal/aws/s3/access_grant_resource_gen.go +++ b/internal/aws/s3/access_grant_resource_gen.go @@ -276,7 +276,9 @@ func accessGrantResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -287,7 +289,9 @@ func accessGrantResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*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 be3031028a..b7988d83b8 100644 --- a/internal/aws/s3/access_grants_instance_resource_gen.go +++ b/internal/aws/s3/access_grants_instance_resource_gen.go @@ -106,7 +106,9 @@ func accessGrantsInstanceResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -117,7 +119,9 @@ func accessGrantsInstanceResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*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 fb83e94889..66764d473a 100644 --- a/internal/aws/s3/access_grants_location_resource_gen.go +++ b/internal/aws/s3/access_grants_location_resource_gen.go @@ -130,7 +130,9 @@ func accessGrantsLocationResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -141,7 +143,9 @@ func accessGrantsLocationResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/s3/access_point_resource_gen.go b/internal/aws/s3/access_point_resource_gen.go index 068fc607f0..621920abc3 100644 --- a/internal/aws/s3/access_point_resource_gen.go +++ b/internal/aws/s3/access_point_resource_gen.go @@ -257,6 +257,7 @@ func accessPointResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/s3/bucket_resource_gen.go b/internal/aws/s3/bucket_resource_gen.go index 4e4f5ffcc6..fb800df2f7 100644 --- a/internal/aws/s3/bucket_resource_gen.go +++ b/internal/aws/s3/bucket_resource_gen.go @@ -106,7 +106,6 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { "access_control": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "This is a legacy property, and it is not recommended for most use cases. A majority of modern use cases in Amazon S3 no longer require the use of ACLs, and we recommend that you keep ACLs disabled. For more information, see [Controlling object ownership](https://docs.aws.amazon.com//AmazonS3/latest/userguide/about-object-ownership.html) in the *Amazon S3 User Guide*.\n A canned access control list (ACL) that grants predefined permissions to the bucket. For more information about canned ACLs, see [Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) in the *Amazon S3 User Guide*.\n S3 buckets are created with ACLs disabled by default. Therefore, unless you explicitly set the [AWS::S3::OwnershipControls](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-ownershipcontrols.html) property to enable ACLs, your resource will fail to deploy with any value other than Private. Use cases requiring ACLs are uncommon.\n The majority of access control configurations can be successfully and more easily achieved with bucket policies. For more information, see [AWS::S3::BucketPolicy](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-s3-policy.html). For examples of common policy configurations, including S3 Server Access Logs buckets and more, see [Bucket policy examples](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html) in the *Amazon S3 User Guide*.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "AuthenticatedRead", @@ -119,9 +118,6 @@ func bucketResource(ctx context.Context) (resource.Resource, error) { "PublicReadWrite", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AccessControl is a write-only property. }, /*END ATTRIBUTE*/ // Property: AnalyticsConfigurations diff --git a/internal/aws/s3/multi_region_access_point_resource_gen.go b/internal/aws/s3/multi_region_access_point_resource_gen.go index 04395a8d6a..55733b79da 100644 --- a/internal/aws/s3/multi_region_access_point_resource_gen.go +++ b/internal/aws/s3/multi_region_access_point_resource_gen.go @@ -117,6 +117,7 @@ func multiRegionAccessPointResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BlockPublicPolicy @@ -126,6 +127,7 @@ func multiRegionAccessPointResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: IgnorePublicAcls @@ -135,6 +137,7 @@ func multiRegionAccessPointResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RestrictPublicBuckets @@ -144,6 +147,7 @@ func multiRegionAccessPointResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -200,6 +204,9 @@ func multiRegionAccessPointResource(ctx context.Context) (resource.Resource, err stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("^[a-z0-9][a-z0-9//.//-]*[a-z0-9]$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BucketAccountId "bucket_account_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -211,6 +218,7 @@ func multiRegionAccessPointResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -260,9 +268,9 @@ func multiRegionAccessPointResource(ctx context.Context) (resource.Resource, err "restrict_public_buckets": "RestrictPublicBuckets", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/s3outposts/access_point_resource_gen.go b/internal/aws/s3outposts/access_point_resource_gen.go index 9aa8dc7bf1..a8bbc92db7 100644 --- a/internal/aws/s3outposts/access_point_resource_gen.go +++ b/internal/aws/s3outposts/access_point_resource_gen.go @@ -132,6 +132,7 @@ func accessPointResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/sagemaker/app_image_config_resource_gen.go b/internal/aws/sagemaker/app_image_config_resource_gen.go index 9c063fc07c..5661584cba 100644 --- a/internal/aws/sagemaker/app_image_config_resource_gen.go +++ b/internal/aws/sagemaker/app_image_config_resource_gen.go @@ -615,7 +615,9 @@ func appImageConfigResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -627,7 +629,9 @@ func appImageConfigResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*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 7f64f82c24..95e9c43922 100644 --- a/internal/aws/sagemaker/app_resource_gen.go +++ b/internal/aws/sagemaker/app_resource_gen.go @@ -293,6 +293,7 @@ func appResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LifecycleConfigArn @@ -306,6 +307,7 @@ func appResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SageMakerImageArn @@ -319,6 +321,7 @@ func appResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SageMakerImageVersionArn @@ -332,6 +335,7 @@ func appResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -386,7 +390,9 @@ func appResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -398,7 +404,9 @@ func appResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -472,13 +480,13 @@ func appResource(ctx context.Context) (resource.Resource, error) { "value": "Value", }) + opts = opts.IsImmutableType(true) + opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/Tags", }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) - opts = opts.WithUpdateTimeoutInMinutes(0) - v, err := generic.NewResource(ctx, opts...) if err != nil { diff --git a/internal/aws/sagemaker/cluster_resource_gen.go b/internal/aws/sagemaker/cluster_resource_gen.go index c95f21e899..64ca25f5f7 100644 --- a/internal/aws/sagemaker/cluster_resource_gen.go +++ b/internal/aws/sagemaker/cluster_resource_gen.go @@ -465,6 +465,7 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -476,6 +477,7 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -622,6 +624,7 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Subnets @@ -641,6 +644,7 @@ func clusterResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*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 0eeb15ba5f..6b9f291dfc 100644 --- a/internal/aws/sagemaker/data_quality_job_definition_resource_gen.go +++ b/internal/aws/sagemaker/data_quality_job_definition_resource_gen.go @@ -133,6 +133,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContainerEntrypoint @@ -149,6 +150,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Environment @@ -161,6 +163,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ mapplanmodifier.UseStateForUnknown(), + mapplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageUri @@ -171,6 +174,9 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e stringvalidator.LengthAtMost(255), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PostAnalyticsProcessorSourceUri "post_analytics_processor_source_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -183,6 +189,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RecordPreprocessorSourceUri @@ -196,6 +203,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -261,6 +269,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConstraintsResource @@ -277,6 +286,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -285,6 +295,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StatisticsResource @@ -301,6 +312,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -309,6 +321,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -466,6 +479,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatasetFormat @@ -481,6 +495,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -489,6 +504,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Json @@ -501,6 +517,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -509,6 +526,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Parquet @@ -518,6 +536,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -529,6 +548,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ExcludeFeaturesAttribute @@ -541,6 +561,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LocalPath @@ -555,6 +576,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3DataDistributionType @@ -570,6 +592,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3InputMode @@ -585,6 +608,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -593,6 +617,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EndpointInput @@ -610,6 +635,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ExcludeFeaturesAttribute @@ -622,6 +648,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LocalPath @@ -636,6 +663,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3DataDistributionType @@ -651,6 +679,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3InputMode @@ -666,6 +695,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -674,6 +704,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -762,6 +793,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MonitoringOutputs @@ -779,6 +811,9 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3UploadMode "s3_upload_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -793,6 +828,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -803,15 +839,24 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information about where and how to store the results of a monitoring job.", Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*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, + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The output configuration for monitoring jobs.", @@ -940,11 +985,17 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 100), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.RequiresReplace(), + }, /*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, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VolumeKmsKeyId "volume_kms_key_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -953,6 +1004,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VolumeSizeInGB @@ -962,10 +1014,16 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 16384), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration for the cluster used to run model monitoring jobs.", Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Identifies the resources to deploy for a monitoring job.", @@ -1034,6 +1092,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EnableNetworkIsolation @@ -1043,6 +1102,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VpcConfig @@ -1064,6 +1124,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Subnets @@ -1082,6 +1143,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1090,6 +1152,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1154,6 +1217,7 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1212,7 +1276,9 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1226,7 +1292,9 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1319,6 +1387,8 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e "vpc_config": "VpcConfig", }) + opts = opts.IsImmutableType(true) + opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/EndpointName", "/properties/Tags", @@ -1327,8 +1397,6 @@ func dataQualityJobDefinitionResource(ctx context.Context) (resource.Resource, e }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) - opts = opts.WithUpdateTimeoutInMinutes(0) - v, err := generic.NewResource(ctx, opts...) if err != nil { diff --git a/internal/aws/sagemaker/domain_resource_gen.go b/internal/aws/sagemaker/domain_resource_gen.go index 04fcd21e65..e093739f3f 100644 --- a/internal/aws/sagemaker/domain_resource_gen.go +++ b/internal/aws/sagemaker/domain_resource_gen.go @@ -4425,6 +4425,7 @@ func domainResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LifecycleConfigArn @@ -4438,6 +4439,7 @@ func domainResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SageMakerImageArn @@ -4451,6 +4453,7 @@ func domainResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SageMakerImageVersionArn @@ -4464,6 +4467,7 @@ func domainResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -4704,7 +4708,9 @@ func domainResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -4716,7 +4722,9 @@ func domainResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*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 8592035f30..1672dd6918 100644 --- a/internal/aws/sagemaker/feature_group_resource_gen.go +++ b/internal/aws/sagemaker/feature_group_resource_gen.go @@ -276,6 +276,7 @@ func featureGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Database @@ -288,6 +289,7 @@ func featureGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableName @@ -300,6 +302,7 @@ func featureGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -307,6 +310,7 @@ func featureGroupResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DisableGlueTableCreation @@ -315,6 +319,7 @@ func featureGroupResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3StorageConfig @@ -329,6 +334,7 @@ func featureGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -342,6 +348,7 @@ func featureGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -352,6 +359,7 @@ func featureGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableFormat @@ -367,6 +375,7 @@ func featureGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -451,6 +460,7 @@ func featureGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -604,6 +614,7 @@ func featureGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -615,6 +626,7 @@ func featureGroupResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/sagemaker/image_version_resource_gen.go b/internal/aws/sagemaker/image_version_resource_gen.go index 99ab48852d..a711e0e3f6 100644 --- a/internal/aws/sagemaker/image_version_resource_gen.go +++ b/internal/aws/sagemaker/image_version_resource_gen.go @@ -15,7 +15,6 @@ 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/int64planmodifier" - "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" @@ -45,13 +44,9 @@ func imageVersionResource(ctx context.Context) (resource.Resource, error) { "alias": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The alias of the image version.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Alias is a write-only property. }, /*END ATTRIBUTE*/ // Property: Aliases @@ -72,15 +67,11 @@ func imageVersionResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "List of aliases for the image version.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 128), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Aliases is a write-only property. }, /*END ATTRIBUTE*/ // Property: BaseImage diff --git a/internal/aws/sagemaker/inference_component_resource_gen.go b/internal/aws/sagemaker/inference_component_resource_gen.go index a529e66c24..283e438d75 100644 --- a/internal/aws/sagemaker/inference_component_resource_gen.go +++ b/internal/aws/sagemaker/inference_component_resource_gen.go @@ -200,13 +200,9 @@ func inferenceComponentResource(ctx context.Context) (resource.Resource, error) "copy_count": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The number of copies for the inference component", Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(0), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // CopyCount is a write-only property. }, /*END ATTRIBUTE*/ // Property: CurrentCopyCount @@ -447,14 +443,10 @@ func inferenceComponentResource(ctx context.Context) (resource.Resource, error) "image": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The image to use for the container that will be materialized for the inference component", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(255), stringvalidator.RegexMatches(regexp.MustCompile("[\\S]+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Image is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ 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 63832d5ee1..ae81aea168 100644 --- a/internal/aws/sagemaker/model_bias_job_definition_resource_gen.go +++ b/internal/aws/sagemaker/model_bias_job_definition_resource_gen.go @@ -171,11 +171,17 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 100), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.RequiresReplace(), + }, /*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, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VolumeKmsKeyId "volume_kms_key_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -184,6 +190,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VolumeSizeInGB @@ -193,10 +200,16 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 16384), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration for the cluster used to run model monitoring jobs.", Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Identifies the resources to deploy for a monitoring job.", @@ -257,6 +270,9 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Environment "environment": // Pattern: "" @@ -268,6 +284,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ mapplanmodifier.UseStateForUnknown(), + mapplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageUri @@ -278,6 +295,9 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err stringvalidator.LengthAtMost(255), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Container image configuration object for the monitoring job.", @@ -329,6 +349,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConstraintsResource @@ -345,6 +366,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -353,6 +375,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -585,6 +608,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatasetFormat @@ -600,6 +624,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -608,6 +633,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Json @@ -620,6 +646,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -628,6 +655,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Parquet @@ -637,6 +665,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -648,6 +677,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EndTimeOffset @@ -661,6 +691,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FeaturesAttribute @@ -673,6 +704,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InferenceAttribute @@ -685,6 +717,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LocalPath @@ -699,6 +732,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProbabilityAttribute @@ -711,6 +745,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProbabilityThresholdAttribute @@ -719,6 +754,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3DataDistributionType @@ -734,6 +770,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3InputMode @@ -749,6 +786,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StartTimeOffset @@ -762,6 +800,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -770,6 +809,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EndpointInput @@ -786,6 +826,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EndpointName @@ -800,6 +841,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FeaturesAttribute @@ -812,6 +854,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InferenceAttribute @@ -824,6 +867,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LocalPath @@ -838,6 +882,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProbabilityAttribute @@ -850,6 +895,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProbabilityThresholdAttribute @@ -858,6 +904,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3DataDistributionType @@ -873,6 +920,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3InputMode @@ -888,6 +936,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StartTimeOffset @@ -901,6 +950,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -909,6 +959,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: GroundTruthS3Input @@ -922,10 +973,16 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Ground truth input provided in S3 ", Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The inputs for a monitoring job.", @@ -1013,6 +1070,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MonitoringOutputs @@ -1030,6 +1088,9 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3UploadMode "s3_upload_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1044,6 +1105,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -1054,15 +1116,24 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information about where and how to store the results of a monitoring job.", Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*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, + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The output configuration for monitoring jobs.", @@ -1131,6 +1202,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EnableNetworkIsolation @@ -1140,6 +1212,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VpcConfig @@ -1161,6 +1234,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Subnets @@ -1179,6 +1253,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1187,6 +1262,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1251,6 +1327,7 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1309,7 +1386,9 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1323,7 +1402,9 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1418,6 +1499,8 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err "vpc_config": "VpcConfig", }) + opts = opts.IsImmutableType(true) + opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/EndpointName", "/properties/Tags", @@ -1426,8 +1509,6 @@ func modelBiasJobDefinitionResource(ctx context.Context) (resource.Resource, err }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) - opts = opts.WithUpdateTimeoutInMinutes(0) - v, err := generic.NewResource(ctx, opts...) if err != nil { 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 78a5688cab..85445f34b5 100644 --- a/internal/aws/sagemaker/model_explainability_job_definition_resource_gen.go +++ b/internal/aws/sagemaker/model_explainability_job_definition_resource_gen.go @@ -170,11 +170,17 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 100), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.RequiresReplace(), + }, /*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, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VolumeKmsKeyId "volume_kms_key_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -183,6 +189,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VolumeSizeInGB @@ -192,10 +199,16 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 16384), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration for the cluster used to run model monitoring jobs.", Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Identifies the resources to deploy for a monitoring job.", @@ -256,6 +269,9 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Environment "environment": // Pattern: "" @@ -267,6 +283,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res Computed: true, PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ mapplanmodifier.UseStateForUnknown(), + mapplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageUri @@ -277,6 +294,9 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res stringvalidator.LengthAtMost(255), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Container image configuration object for the monitoring job.", @@ -328,6 +348,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConstraintsResource @@ -344,6 +365,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -352,6 +374,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -529,6 +552,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatasetFormat @@ -544,6 +568,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -552,6 +577,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Json @@ -564,6 +590,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -572,6 +599,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Parquet @@ -581,6 +609,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -592,6 +621,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FeaturesAttribute @@ -604,6 +634,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InferenceAttribute @@ -616,6 +647,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LocalPath @@ -630,6 +662,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProbabilityAttribute @@ -642,6 +675,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3DataDistributionType @@ -657,6 +691,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3InputMode @@ -672,6 +707,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -680,6 +716,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EndpointInput @@ -697,6 +734,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FeaturesAttribute @@ -709,6 +747,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InferenceAttribute @@ -721,6 +760,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LocalPath @@ -735,6 +775,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProbabilityAttribute @@ -747,6 +788,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3DataDistributionType @@ -762,6 +804,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3InputMode @@ -777,6 +820,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -785,6 +829,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -873,6 +918,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MonitoringOutputs @@ -890,6 +936,9 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3UploadMode "s3_upload_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -904,6 +953,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -914,15 +964,24 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information about where and how to store the results of a monitoring job.", Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*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, + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The output configuration for monitoring jobs.", @@ -991,6 +1050,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EnableNetworkIsolation @@ -1000,6 +1060,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VpcConfig @@ -1021,6 +1082,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Subnets @@ -1039,6 +1101,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1047,6 +1110,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1111,6 +1175,7 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1169,7 +1234,9 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1183,7 +1250,9 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1274,6 +1343,8 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res "vpc_config": "VpcConfig", }) + opts = opts.IsImmutableType(true) + opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/EndpointName", "/properties/Tags", @@ -1282,8 +1353,6 @@ func modelExplainabilityJobDefinitionResource(ctx context.Context) (resource.Res }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) - opts = opts.WithUpdateTimeoutInMinutes(0) - v, err := generic.NewResource(ctx, opts...) if err != nil { diff --git a/internal/aws/sagemaker/model_package_resource_gen.go b/internal/aws/sagemaker/model_package_resource_gen.go index 58ab8d2dba..a4477f8a45 100644 --- a/internal/aws/sagemaker/model_package_resource_gen.go +++ b/internal/aws/sagemaker/model_package_resource_gen.go @@ -808,14 +808,11 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { "container_hostname": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The DNS host name for the Docker container.", 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}"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ContainerHostname is a write-only property. }, /*END ATTRIBUTE*/ // Property: Environment "environment": // Pattern: "" @@ -824,59 +821,43 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { // Pattern "[\\S\\s]*" ignored. Description: "Sets the environment variables in the Docker container", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ - mapplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Environment is a write-only property. }, /*END ATTRIBUTE*/ // Property: Framework "framework": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The machine learning framework of the model package container image.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Framework is a write-only property. }, /*END ATTRIBUTE*/ // Property: FrameworkVersion "framework_version": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The framework version of the Model Package Container Image.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(3, 10), stringvalidator.RegexMatches(regexp.MustCompile("[0-9]\\.[A-Za-z0-9.]+"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // FrameworkVersion is a write-only property. }, /*END ATTRIBUTE*/ // Property: Image "image": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.", - Optional: true, - Computed: true, + Required: 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*/ + // Image is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageDigest "image_digest": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "An MD5 hash of the training algorithm that identifies the Docker image used for training.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(72), stringvalidator.RegexMatches(regexp.MustCompile("^[Ss][Hh][Aa]256:[0-9a-fA-F]{64}$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageDigest is a write-only property. }, /*END ATTRIBUTE*/ // Property: ModelDataSource "model_data_source": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -887,18 +868,14 @@ 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.", - Optional: true, - Computed: true, + Required: 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*/ + // CompressionType is a write-only property. }, /*END ATTRIBUTE*/ // Property: ModelAccessConfig "model_access_config": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -906,81 +883,55 @@ 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).", - Optional: true, - Computed: true, - Validators: []validator.Bool{ /*START VALIDATORS*/ - fwvalidators.NotNullBool(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // AcceptEula is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the access configuration file for the ML model.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ModelAccessConfig is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3DataType "s3_data_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the type of ML model data to deploy.", - Optional: true, - Computed: true, + Required: 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*/ + // S3DataType is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3Uri "s3_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Specifies the S3 path of ML model data to deploy.", - Optional: true, - Computed: true, + Required: 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*/ + // S3Uri is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the S3 location of ML model data to deploy.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // S3DataSource is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Specifies the location of ML model data to deploy during endpoint creation.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ModelDataSource is a write-only property. }, /*END ATTRIBUTE*/ // Property: ModelDataUrl "model_data_url": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A structure with Model Input details.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ModelDataUrl is a write-only property. }, /*END ATTRIBUTE*/ // Property: ModelInput "model_input": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -988,139 +939,102 @@ 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.", - Optional: true, - Computed: true, + Required: 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*/ + // DataInputConfig is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ModelInput is a write-only property. }, /*END ATTRIBUTE*/ // Property: NearestModelName "nearest_model_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that matches your model.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // NearestModelName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The Amazon ECR registry path of the Docker image that contains the inference code.", - Optional: true, - Computed: true, + Required: 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*/ + // Containers is a write-only property. }, /*END ATTRIBUTE*/ // Property: Description "description": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A description of the additional Inference specification.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Description is a write-only property. }, /*END ATTRIBUTE*/ // 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.", - Optional: true, - Computed: true, + Required: 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*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: SupportedContentTypes "supported_content_types": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The supported MIME types for the input data.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SupportedContentTypes is a write-only property. }, /*END ATTRIBUTE*/ // Property: SupportedRealtimeInferenceInstanceTypes "supported_realtime_inference_instance_types": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "A list of the instance types that are used to generate inferences in real-time", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SupportedRealtimeInferenceInstanceTypes is a write-only property. }, /*END ATTRIBUTE*/ // Property: SupportedResponseMIMETypes "supported_response_mime_types": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The supported MIME types for the output data.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.ValueStringsAre( stringvalidator.LengthAtMost(1024), stringvalidator.RegexMatches(regexp.MustCompile("^[-\\w]+\\/.+$"), ""), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SupportedResponseMIMETypes is a write-only property. }, /*END ATTRIBUTE*/ // Property: SupportedTransformInstanceTypes "supported_transform_instance_types": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeAtLeast(1), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SupportedTransformInstanceTypes is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "An array of additional Inference Specification objects.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 15), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AdditionalInferenceSpecificationsToAdd is a write-only property. }, /*END ATTRIBUTE*/ // Property: ApprovalDescription @@ -1560,6 +1474,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContentType @@ -1573,6 +1488,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -1587,6 +1503,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1595,6 +1512,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PostTrainingConstraints @@ -1611,6 +1529,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContentType @@ -1625,6 +1544,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -1639,6 +1559,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1647,6 +1568,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PreTrainingConstraints @@ -1663,6 +1585,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContentType @@ -1677,6 +1600,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -1691,6 +1615,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1699,6 +1624,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1707,6 +1633,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Explainability @@ -1726,6 +1653,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContentType @@ -1739,6 +1667,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -1753,6 +1682,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1761,6 +1691,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Constraints @@ -1777,6 +1708,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContentType @@ -1791,6 +1723,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -1805,6 +1738,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1813,6 +1747,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1821,6 +1756,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ModelDataQuality @@ -1840,6 +1776,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContentType @@ -1854,6 +1791,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -1868,6 +1806,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1876,6 +1815,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Statistics @@ -1892,6 +1832,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContentType @@ -1906,6 +1847,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -1920,6 +1862,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1928,6 +1871,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1936,6 +1880,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ModelQuality @@ -1955,6 +1900,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContentType @@ -1969,6 +1915,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -1983,6 +1930,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1991,6 +1939,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Statistics @@ -2007,6 +1956,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContentType @@ -2021,6 +1971,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -2035,6 +1986,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2043,6 +1995,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2051,6 +2004,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2279,6 +2233,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Environment @@ -2291,6 +2246,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ mapplanmodifier.UseStateForUnknown(), + mapplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Framework @@ -2300,6 +2256,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: FrameworkVersion @@ -2313,6 +2270,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Image @@ -2327,6 +2285,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageDigest @@ -2340,6 +2299,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ModelDataSource @@ -2362,6 +2322,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ModelAccessConfig @@ -2377,6 +2338,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2385,6 +2347,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3DataType @@ -2401,6 +2364,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -2415,6 +2379,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2423,6 +2388,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2431,6 +2397,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ModelDataUrl @@ -2444,6 +2411,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ModelInput @@ -2461,6 +2429,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2468,6 +2437,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: NearestModelName @@ -2477,6 +2447,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2491,6 +2462,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SupportedContentTypes @@ -2508,6 +2480,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SupportedRealtimeInferenceInstanceTypes @@ -2518,6 +2491,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SupportedResponseMIMETypes @@ -2535,6 +2509,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SupportedTransformInstanceTypes @@ -2548,6 +2523,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -2621,6 +2597,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: GeneratedBy @@ -2634,6 +2611,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProjectId @@ -2647,6 +2625,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Repository @@ -2660,6 +2639,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -3060,6 +3040,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContentType @@ -3074,6 +3055,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -3088,6 +3070,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -3096,6 +3079,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PreTrainingReport @@ -3112,6 +3096,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContentType @@ -3126,6 +3111,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -3140,6 +3126,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -3148,6 +3135,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Report @@ -3164,6 +3152,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContentType @@ -3178,6 +3167,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -3192,6 +3182,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -3200,6 +3191,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -3208,6 +3200,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Explainability @@ -3227,6 +3220,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContentType @@ -3241,6 +3235,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -3255,6 +3250,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -3263,6 +3259,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -3271,6 +3268,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ModelDataQuality @@ -3290,6 +3288,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContentType @@ -3304,6 +3303,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -3318,6 +3318,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -3326,6 +3327,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Statistics @@ -3342,6 +3344,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContentType @@ -3356,6 +3359,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -3370,6 +3374,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -3378,6 +3383,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -3386,6 +3392,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ModelQuality @@ -3405,6 +3412,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContentType @@ -3419,6 +3427,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -3433,6 +3442,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -3441,6 +3451,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Statistics @@ -3457,6 +3468,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContentType @@ -3471,6 +3483,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -3485,6 +3498,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -3493,6 +3507,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -3501,6 +3516,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -3792,6 +3808,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -3889,6 +3906,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ModelDataUrl @@ -3902,6 +3920,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -3915,6 +3934,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -4279,6 +4299,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TransformJobDefinition @@ -4297,6 +4318,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Environment @@ -4309,6 +4331,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ mapplanmodifier.UseStateForUnknown(), + mapplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaxConcurrentTransforms @@ -4321,6 +4344,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MaxPayloadInMB @@ -4333,6 +4357,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TransformInput @@ -4351,6 +4376,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContentType @@ -4364,6 +4390,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DataSource @@ -4387,6 +4414,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -4401,6 +4429,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -4412,6 +4441,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -4423,6 +4453,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SplitType @@ -4440,6 +4471,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -4451,6 +4483,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TransformOutput @@ -4467,6 +4500,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: AssembleWith @@ -4482,6 +4516,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KmsKeyId @@ -4495,6 +4530,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3OutputPath @@ -4509,6 +4545,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -4520,6 +4557,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TransformResources @@ -4536,6 +4574,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InstanceType @@ -4548,6 +4587,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VolumeKmsKeyId @@ -4561,6 +4601,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -4572,6 +4613,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -4583,6 +4625,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -4595,6 +4638,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ValidationRole @@ -4609,6 +4653,7 @@ func modelPackageResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ 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 dd30aeef81..f3548f57ab 100644 --- a/internal/aws/sagemaker/model_quality_job_definition_resource_gen.go +++ b/internal/aws/sagemaker/model_quality_job_definition_resource_gen.go @@ -171,11 +171,17 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 100), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.RequiresReplace(), + }, /*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, + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VolumeKmsKeyId "volume_kms_key_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -184,6 +190,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VolumeSizeInGB @@ -193,10 +200,16 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 16384), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ + int64planmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration for the cluster used to run model monitoring jobs.", Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Identifies the resources to deploy for a monitoring job.", @@ -298,6 +311,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ContainerEntrypoint @@ -314,6 +328,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Environment @@ -326,6 +341,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ mapplanmodifier.UseStateForUnknown(), + mapplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ImageUri @@ -336,6 +352,9 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, stringvalidator.LengthAtMost(255), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: PostAnalyticsProcessorSourceUri "post_analytics_processor_source_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -348,6 +367,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProblemType @@ -361,6 +381,9 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, "Regression", ), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: RecordPreprocessorSourceUri "record_preprocessor_source_uri": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -373,6 +396,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -425,6 +449,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ConstraintsResource @@ -441,6 +466,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -449,6 +475,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -671,6 +698,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DatasetFormat @@ -686,6 +714,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -694,6 +723,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Json @@ -706,6 +736,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -714,6 +745,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Parquet @@ -723,6 +755,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -734,6 +767,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EndTimeOffset @@ -747,6 +781,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InferenceAttribute @@ -759,6 +794,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LocalPath @@ -773,6 +809,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProbabilityAttribute @@ -785,6 +822,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProbabilityThresholdAttribute @@ -793,6 +831,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3DataDistributionType @@ -808,6 +847,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3InputMode @@ -823,6 +863,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StartTimeOffset @@ -836,6 +877,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -844,6 +886,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EndpointInput @@ -860,6 +903,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EndpointName @@ -874,6 +918,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: InferenceAttribute @@ -886,6 +931,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: LocalPath @@ -900,6 +946,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProbabilityAttribute @@ -912,6 +959,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProbabilityThresholdAttribute @@ -920,6 +968,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.Float64{ /*START PLAN MODIFIERS*/ float64planmodifier.UseStateForUnknown(), + float64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3DataDistributionType @@ -935,6 +984,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3InputMode @@ -950,6 +1000,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: StartTimeOffset @@ -963,6 +1014,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -971,6 +1023,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: GroundTruthS3Input @@ -984,10 +1037,16 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Ground truth input provided in S3 ", Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The inputs for a monitoring job.", @@ -1075,6 +1134,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MonitoringOutputs @@ -1092,6 +1152,9 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile(".*"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3UploadMode "s3_upload_mode": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1106,6 +1169,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3Uri @@ -1116,15 +1180,24 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, stringvalidator.LengthAtMost(512), stringvalidator.RegexMatches(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information about where and how to store the results of a monitoring job.", Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*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, + PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ + listplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The output configuration for monitoring jobs.", @@ -1193,6 +1266,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EnableNetworkIsolation @@ -1202,6 +1276,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ boolplanmodifier.UseStateForUnknown(), + boolplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: VpcConfig @@ -1223,6 +1298,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Subnets @@ -1241,6 +1317,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1249,6 +1326,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1313,6 +1391,7 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1371,7 +1450,9 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -1385,7 +1466,9 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ @@ -1483,6 +1566,8 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, "vpc_config": "VpcConfig", }) + opts = opts.IsImmutableType(true) + opts = opts.WithWriteOnlyPropertyPaths([]string{ "/properties/EndpointName", "/properties/Tags", @@ -1491,8 +1576,6 @@ func modelQualityJobDefinitionResource(ctx context.Context) (resource.Resource, }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) - opts = opts.WithUpdateTimeoutInMinutes(0) - v, err := generic.NewResource(ctx, opts...) if err != nil { diff --git a/internal/aws/sagemaker/project_resource_gen.go b/internal/aws/sagemaker/project_resource_gen.go index 36b92b43b7..6b73642663 100644 --- a/internal/aws/sagemaker/project_resource_gen.go +++ b/internal/aws/sagemaker/project_resource_gen.go @@ -268,6 +268,7 @@ func projectResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProductId @@ -278,6 +279,9 @@ func projectResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthAtMost(100), stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProvisioningArtifactId "provisioning_artifact_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -290,6 +294,7 @@ func projectResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ProvisioningParameters @@ -308,6 +313,7 @@ func projectResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -322,6 +328,7 @@ func projectResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -331,6 +338,7 @@ func projectResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -387,6 +395,7 @@ func projectResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -401,6 +410,7 @@ func projectResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/sagemaker/space_resource_gen.go b/internal/aws/sagemaker/space_resource_gen.go index c77bf1c259..9aa8ad9085 100644 --- a/internal/aws/sagemaker/space_resource_gen.go +++ b/internal/aws/sagemaker/space_resource_gen.go @@ -14,8 +14,6 @@ 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" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" @@ -83,6 +81,7 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -743,7 +742,6 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { // Property: AppType "app_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "JupyterServer", @@ -755,9 +753,7 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { "CodeEditor", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AppType is a write-only property. }, /*END ATTRIBUTE*/ // Property: CodeEditorAppSettings "code_editor_app_settings": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -772,27 +768,18 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { "idle_timeout_in_minutes": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The space idle timeout value set in minutes", Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(60, 525600), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IdleTimeoutInMinutes is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IdleSettings is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AppLifecycleManagement is a write-only property. }, /*END ATTRIBUTE*/ // Property: DefaultResourceSpec "default_resource_spec": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -801,7 +788,6 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { "instance_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The instance type that the image version runs on.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "system", @@ -869,63 +855,46 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { "ml.trn1n.32xlarge", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // InstanceType is a write-only property. }, /*END ATTRIBUTE*/ // Property: LifecycleConfigArn "lifecycle_config_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the Lifecycle Configuration to attach to the Resource.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:studio-lifecycle-config/.*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LifecycleConfigArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: SageMakerImageArn "sage_maker_image_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the SageMaker image that the image version belongs to.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image/[a-z0-9]([-.]?[a-z0-9])*$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SageMakerImageArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: SageMakerImageVersionArn "sage_maker_image_version_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the image version created on the instance.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image-version/[a-z0-9]([-.]?[a-z0-9])*/[0-9]+$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SageMakerImageVersionArn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DefaultResourceSpec is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The CodeEditor app settings.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CodeEditorAppSettings is a write-only property. }, /*END ATTRIBUTE*/ // Property: CustomFileSystems "custom_file_systems": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -936,35 +905,25 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: FileSystemId "file_system_id": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // FileSystemId is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EFSFileSystem is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 1), listvalidator.UniqueValues(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomFileSystems is a write-only property. }, /*END ATTRIBUTE*/ // Property: JupyterLabAppSettings "jupyter_lab_app_settings": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -979,27 +938,18 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { "idle_timeout_in_minutes": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The space idle timeout value set in minutes", Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(60, 525600), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IdleTimeoutInMinutes is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IdleSettings is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // AppLifecycleManagement is a write-only property. }, /*END ATTRIBUTE*/ // Property: CodeRepositories "code_repositories": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -1008,27 +958,20 @@ 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.", - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RepositoryUrl is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of CodeRepositories available for use with JupyterLab apps.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 30), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CodeRepositories is a write-only property. }, /*END ATTRIBUTE*/ // Property: DefaultResourceSpec "default_resource_spec": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1037,7 +980,6 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { "instance_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The instance type that the image version runs on.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "system", @@ -1105,63 +1047,46 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { "ml.trn1n.32xlarge", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // InstanceType is a write-only property. }, /*END ATTRIBUTE*/ // Property: LifecycleConfigArn "lifecycle_config_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the Lifecycle Configuration to attach to the Resource.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:studio-lifecycle-config/.*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LifecycleConfigArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: SageMakerImageArn "sage_maker_image_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the SageMaker image that the image version belongs to.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image/[a-z0-9]([-.]?[a-z0-9])*$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SageMakerImageArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: SageMakerImageVersionArn "sage_maker_image_version_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the image version created on the instance.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image-version/[a-z0-9]([-.]?[a-z0-9])*/[0-9]+$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SageMakerImageVersionArn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DefaultResourceSpec is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The JupyterLab app settings.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // JupyterLabAppSettings is a write-only property. }, /*END ATTRIBUTE*/ // Property: JupyterServerAppSettings "jupyter_server_app_settings": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1173,7 +1098,6 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { "instance_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The instance type that the image version runs on.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "system", @@ -1241,62 +1165,47 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { "ml.trn1n.32xlarge", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // InstanceType is a write-only property. }, /*END ATTRIBUTE*/ // Property: LifecycleConfigArn "lifecycle_config_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the Lifecycle Configuration to attach to the Resource.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:studio-lifecycle-config/.*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LifecycleConfigArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: SageMakerImageArn "sage_maker_image_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the SageMaker image that the image version belongs to.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image/[a-z0-9]([-.]?[a-z0-9])*$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SageMakerImageArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: SageMakerImageVersionArn "sage_maker_image_version_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the image version created on the instance.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image-version/[a-z0-9]([-.]?[a-z0-9])*/[0-9]+$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SageMakerImageVersionArn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DefaultResourceSpec is a write-only property. }, /*END ATTRIBUTE*/ // Property: LifecycleConfigArns "lifecycle_config_arns": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "A list of LifecycleConfigArns available for use with JupyterServer apps.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 30), listvalidator.ValueStringsAre( @@ -1304,17 +1213,12 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { stringvalidator.RegexMatches(regexp.MustCompile("arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:studio-lifecycle-config/.*"), ""), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LifecycleConfigArns is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The Jupyter server's app settings.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // JupyterServerAppSettings is a write-only property. }, /*END ATTRIBUTE*/ // Property: KernelGatewayAppSettings "kernel_gateway_app_settings": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1326,54 +1230,40 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { // Property: AppImageConfigName "app_image_config_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Name of the AppImageConfig.", - Optional: true, - Computed: true, + Required: 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*/ + // AppImageConfigName is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageName "image_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the CustomImage. Must be unique to your account.", - Optional: true, - Computed: true, + Required: 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*/ + // ImageName is a write-only property. }, /*END ATTRIBUTE*/ // Property: ImageVersionNumber "image_version_number": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The version number of the CustomImage.", Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.AtLeast(0), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ImageVersionNumber is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of custom SageMaker images that are configured to run as a KernelGateway app.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 30), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // CustomImages is a write-only property. }, /*END ATTRIBUTE*/ // Property: DefaultResourceSpec "default_resource_spec": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1382,7 +1272,6 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { "instance_type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The instance type that the image version runs on.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "system", @@ -1450,63 +1339,48 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { "ml.trn1n.32xlarge", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // InstanceType is a write-only property. }, /*END ATTRIBUTE*/ // Property: LifecycleConfigArn "lifecycle_config_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) of the Lifecycle Configuration to attach to the Resource.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:studio-lifecycle-config/.*"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LifecycleConfigArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: SageMakerImageArn "sage_maker_image_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the SageMaker image that the image version belongs to.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image/[a-z0-9]([-.]?[a-z0-9])*$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SageMakerImageArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: SageMakerImageVersionArn "sage_maker_image_version_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The ARN of the image version created on the instance.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthAtMost(256), stringvalidator.RegexMatches(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image-version/[a-z0-9]([-.]?[a-z0-9])*/[0-9]+$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SageMakerImageVersionArn is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The default instance type and the Amazon Resource Name (ARN) of the default SageMaker image used by the KernelGateway app.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DefaultResourceSpec is a write-only property. }, /*END ATTRIBUTE*/ // Property: LifecycleConfigArns "lifecycle_config_arns": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "A list of LifecycleConfigArns available for use with KernelGateway apps.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 30), listvalidator.ValueStringsAre( @@ -1514,17 +1388,12 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { stringvalidator.RegexMatches(regexp.MustCompile("arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:studio-lifecycle-config/.*"), ""), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // LifecycleConfigArns is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The kernel gateway app settings.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // KernelGatewayAppSettings is a write-only property. }, /*END ATTRIBUTE*/ // Property: SpaceStorageSettings "space_storage_settings": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -1535,39 +1404,25 @@ 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", - Optional: true, - Computed: true, + Required: 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*/ + // EbsVolumeSizeInGb is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Properties related to the space's Amazon Elastic Block Store volume.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // EbsStorageSettings is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Default storage settings for a space.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SpaceStorageSettings is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A collection of settings.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // SpaceSettings is a write-only property. }, /*END ATTRIBUTE*/ // Property: SpaceSharingSettings @@ -1604,6 +1459,7 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1649,39 +1505,27 @@ func spaceResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), - fwvalidators.NotNullString(), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of tags to apply to the space.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 50), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Tags is a write-only property. }, /*END ATTRIBUTE*/ // Property: Url diff --git a/internal/aws/sagemaker/studio_lifecycle_config_resource_gen.go b/internal/aws/sagemaker/studio_lifecycle_config_resource_gen.go index 23869146d6..f23e55997d 100644 --- a/internal/aws/sagemaker/studio_lifecycle_config_resource_gen.go +++ b/internal/aws/sagemaker/studio_lifecycle_config_resource_gen.go @@ -161,6 +161,7 @@ func studioLifecycleConfigResource(ctx context.Context) (resource.Resource, erro }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -173,6 +174,7 @@ func studioLifecycleConfigResource(ctx context.Context) (resource.Resource, erro }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -220,9 +222,9 @@ func studioLifecycleConfigResource(ctx context.Context) (resource.Resource, erro "value": "Value", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/sagemaker/user_profile_resource_gen.go b/internal/aws/sagemaker/user_profile_resource_gen.go index 117bce0ce1..1e118026ce 100644 --- a/internal/aws/sagemaker/user_profile_resource_gen.go +++ b/internal/aws/sagemaker/user_profile_resource_gen.go @@ -139,7 +139,9 @@ func userProfileResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -151,7 +153,9 @@ func userProfileResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/secretsmanager/resource_policy_resource_gen.go b/internal/aws/secretsmanager/resource_policy_resource_gen.go index 75337214d6..f8b7511a91 100644 --- a/internal/aws/secretsmanager/resource_policy_resource_gen.go +++ b/internal/aws/secretsmanager/resource_policy_resource_gen.go @@ -11,7 +11,6 @@ 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/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" @@ -37,10 +36,6 @@ func resourcePolicyResource(ctx context.Context) (resource.Resource, error) { "block_public_policy": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether to block resource-based policies that allow broad access to the secret.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // BlockPublicPolicy is a write-only property. }, /*END ATTRIBUTE*/ // Property: Id diff --git a/internal/aws/secretsmanager/secret_resource_gen.go b/internal/aws/secretsmanager/secret_resource_gen.go index 0fe1d63b7a..13db94d500 100644 --- a/internal/aws/secretsmanager/secret_resource_gen.go +++ b/internal/aws/secretsmanager/secret_resource_gen.go @@ -10,10 +10,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" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" @@ -101,99 +98,65 @@ func secretResource(ctx context.Context) (resource.Resource, error) { "exclude_characters": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A string of the characters that you don't want in the password.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ExcludeCharacters is a write-only property. }, /*END ATTRIBUTE*/ // Property: ExcludeLowercase "exclude_lowercase": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether to exclude lowercase letters from the password. If you don't include this switch, the password can contain lowercase letters.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ExcludeLowercase is a write-only property. }, /*END ATTRIBUTE*/ // Property: ExcludeNumbers "exclude_numbers": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether to exclude numbers from the password. If you don't include this switch, the password can contain numbers.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ExcludeNumbers is a write-only property. }, /*END ATTRIBUTE*/ // Property: ExcludePunctuation "exclude_punctuation": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether to exclude the following punctuation characters from the password: ``! \" # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \\ ] ^ _ ` { | } ~``. If you don't include this switch, the password can contain punctuation.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ExcludePunctuation is a write-only property. }, /*END ATTRIBUTE*/ // Property: ExcludeUppercase "exclude_uppercase": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether to exclude uppercase letters from the password. If you don't include this switch, the password can contain uppercase letters.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ExcludeUppercase is a write-only property. }, /*END ATTRIBUTE*/ // Property: GenerateStringKey "generate_string_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The JSON key name for the key/value pair, where the value is the generated password. This pair is added to the JSON structure specified by the ``SecretStringTemplate`` parameter. If you specify this parameter, then you must also specify ``SecretStringTemplate``.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // GenerateStringKey is a write-only property. }, /*END ATTRIBUTE*/ // Property: IncludeSpace "include_space": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether to include the space character. If you include this switch, the password can contain space characters.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IncludeSpace is a write-only property. }, /*END ATTRIBUTE*/ // Property: PasswordLength "password_length": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The length of the password. If you don't include this parameter, the default length is 32 characters.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // PasswordLength is a write-only property. }, /*END ATTRIBUTE*/ // Property: RequireEachIncludedType "require_each_included_type": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Specifies whether to include at least one upper and lowercase letter, one number, and one punctuation. If you don't include this switch, the password contains at least one of every character type.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // RequireEachIncludedType is a write-only property. }, /*END ATTRIBUTE*/ // Property: SecretStringTemplate "secret_string_template": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A template that the generated string must match. When you make a change to this property, a new secret version is created.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SecretStringTemplate is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "A structure that specifies how to generate a password to encrypt and store in the secret. To include a specific string in the secret, use ``SecretString`` instead. If you omit both ``GenerateSecretString`` and ``SecretString``, you create an empty secret. When you make a change to this property, a new secret version is created.\n We recommend that you specify the maximum length and include every character type that the system you are generating a password for can support.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // GenerateSecretString is a write-only property. }, /*END ATTRIBUTE*/ // Property: Id @@ -312,10 +275,6 @@ func secretResource(ctx context.Context) (resource.Resource, error) { "secret_string": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The text to encrypt and store in the secret. We recommend you use a JSON structure of key/value pairs for your secret value. To generate a random password, use ``GenerateSecretString`` instead. If you omit both ``GenerateSecretString`` and ``SecretString``, you create an empty secret. When you make a change to this property, a new secret version is created.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // SecretString is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tags diff --git a/internal/aws/securityhub/hub_resource_gen.go b/internal/aws/securityhub/hub_resource_gen.go index b1a924c1a5..56633eae0b 100644 --- a/internal/aws/securityhub/hub_resource_gen.go +++ b/internal/aws/securityhub/hub_resource_gen.go @@ -89,10 +89,6 @@ func hubResource(ctx context.Context) (resource.Resource, error) { "enable_default_standards": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Whether to enable the security standards that Security Hub has designated as automatically enabled.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // EnableDefaultStandards is a write-only property. }, /*END ATTRIBUTE*/ // Property: SubscribedAt diff --git a/internal/aws/securitylake/data_lake_resource_gen.go b/internal/aws/securitylake/data_lake_resource_gen.go index 188282fad7..8fb9ce7114 100644 --- a/internal/aws/securitylake/data_lake_resource_gen.go +++ b/internal/aws/securitylake/data_lake_resource_gen.go @@ -206,13 +206,9 @@ func dataLakeResource(ctx context.Context) (resource.Resource, error) { "meta_store_manager_role_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The Amazon Resource Name (ARN) used to index AWS Glue table partitions that are generated by the ingestion and normalization of AWS log sources and custom sources.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:.*$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // MetaStoreManagerRoleArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: ReplicationConfiguration diff --git a/internal/aws/securitylake/subscriber_notification_resource_gen.go b/internal/aws/securitylake/subscriber_notification_resource_gen.go index 1d561d0b70..c9281de706 100644 --- a/internal/aws/securitylake/subscriber_notification_resource_gen.go +++ b/internal/aws/securitylake/subscriber_notification_resource_gen.go @@ -101,20 +101,12 @@ func subscriberNotificationResource(ctx context.Context) (resource.Resource, err "authorization_api_key_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key name for the notification subscription.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AuthorizationApiKeyName is a write-only property. }, /*END ATTRIBUTE*/ // Property: AuthorizationApiKeyValue "authorization_api_key_value": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key value for the notification subscription.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AuthorizationApiKeyValue is a write-only property. }, /*END ATTRIBUTE*/ // Property: Endpoint @@ -135,16 +127,12 @@ func subscriberNotificationResource(ctx context.Context) (resource.Resource, err "http_method": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The HTTPS method used for the notification subscription.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "POST", "PUT", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // HttpMethod is a write-only property. }, /*END ATTRIBUTE*/ // Property: TargetRoleArn diff --git a/internal/aws/servicecatalog/service_action_resource_gen.go b/internal/aws/servicecatalog/service_action_resource_gen.go index b22ed8b657..6273ea4cde 100644 --- a/internal/aws/servicecatalog/service_action_resource_gen.go +++ b/internal/aws/servicecatalog/service_action_resource_gen.go @@ -39,7 +39,6 @@ func serviceActionResource(ctx context.Context) (resource.Resource, error) { // } "accept_language": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "en", @@ -47,9 +46,6 @@ func serviceActionResource(ctx context.Context) (resource.Resource, error) { "zh", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AcceptLanguage is a write-only property. }, /*END ATTRIBUTE*/ // Property: Definition diff --git a/internal/aws/ses/email_identity_resource_gen.go b/internal/aws/ses/email_identity_resource_gen.go index f45503b589..8f12a4516b 100644 --- a/internal/aws/ses/email_identity_resource_gen.go +++ b/internal/aws/ses/email_identity_resource_gen.go @@ -196,20 +196,12 @@ func emailIdentityResource(ctx context.Context) (resource.Resource, error) { "domain_signing_private_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "[Bring Your Own DKIM] A private key that's used to generate a DKIM signature. The private key must use 1024 or 2048-bit RSA encryption, and must be encoded using base64 encoding.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // DomainSigningPrivateKey is a write-only property. }, /*END ATTRIBUTE*/ // Property: DomainSigningSelector "domain_signing_selector": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "[Bring Your Own DKIM] A string that's used to identify a public key in the DNS configuration for a domain.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // DomainSigningSelector is a write-only property. }, /*END ATTRIBUTE*/ // Property: NextSigningKeyLength 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 61e294bd76..94f518137e 100644 --- a/internal/aws/ses/mail_manager_ingress_point_resource_gen.go +++ b/internal/aws/ses/mail_manager_ingress_point_resource_gen.go @@ -14,7 +14,6 @@ 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/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" @@ -78,32 +77,22 @@ func mailManagerIngressPointResource(ctx context.Context) (resource.Resource, er // Property: SecretArn "secret_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^arn:(aws|aws-cn|aws-us-gov):secretsmanager:[a-z0-9-]+:\\d{12}:secret:[a-zA-Z0-9/_+=,.@-]+$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SecretArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: SmtpPassword "smtp_password": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(8, 64), stringvalidator.RegexMatches(regexp.MustCompile("^[A-Za-z0-9!@#$%^&*()_+\\-=\\[\\]{}|.,?]+$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // SmtpPassword is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // IngressPointConfiguration is a write-only property. }, /*END ATTRIBUTE*/ // Property: IngressPointId diff --git a/internal/aws/signer/signing_profile_resource_gen.go b/internal/aws/signer/signing_profile_resource_gen.go index 71bee57879..0973890585 100644 --- a/internal/aws/signer/signing_profile_resource_gen.go +++ b/internal/aws/signer/signing_profile_resource_gen.go @@ -152,6 +152,7 @@ func signingProfileResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -160,6 +161,7 @@ func signingProfileResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/simspaceweaver/simulation_resource_gen.go b/internal/aws/simspaceweaver/simulation_resource_gen.go index 475aa4ed95..70e825edee 100644 --- a/internal/aws/simspaceweaver/simulation_resource_gen.go +++ b/internal/aws/simspaceweaver/simulation_resource_gen.go @@ -138,6 +138,7 @@ func simulationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ObjectKey @@ -151,6 +152,7 @@ func simulationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -201,6 +203,7 @@ func simulationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ObjectKey @@ -214,6 +217,7 @@ func simulationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -256,9 +260,9 @@ func simulationResource(ctx context.Context) (resource.Resource, error) { "snapshot_s3_location": "SnapshotS3Location", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/sns/subscription_resource_gen.go b/internal/aws/sns/subscription_resource_gen.go index 09077a1100..380cb20858 100644 --- a/internal/aws/sns/subscription_resource_gen.go +++ b/internal/aws/sns/subscription_resource_gen.go @@ -154,10 +154,6 @@ func subscriptionResource(ctx context.Context) (resource.Resource, error) { "region": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "For cross-region subscriptions, the region in which the topic resides.If no region is specified, AWS CloudFormation uses the region of the caller as the default.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Region is a write-only property. }, /*END ATTRIBUTE*/ // Property: ReplayPolicy diff --git a/internal/aws/ssm/association_resource_gen.go b/internal/aws/ssm/association_resource_gen.go index c90359690d..15b7388ef9 100644 --- a/internal/aws/ssm/association_resource_gen.go +++ b/internal/aws/ssm/association_resource_gen.go @@ -529,13 +529,9 @@ func associationResource(ctx context.Context) (resource.Resource, error) { // } "wait_for_success_timeout_seconds": schema.Int64Attribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(15, 172800), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // WaitForSuccessTimeoutSeconds is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/ssm/document_resource_gen.go b/internal/aws/ssm/document_resource_gen.go index eab2b6c3d5..665225e35f 100644 --- a/internal/aws/ssm/document_resource_gen.go +++ b/internal/aws/ssm/document_resource_gen.go @@ -82,7 +82,6 @@ func documentResource(ctx context.Context) (resource.Resource, error) { "key": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The key of a key-value pair that identifies the location of an attachment to a document.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "SourceUrl", @@ -90,29 +89,23 @@ func documentResource(ctx context.Context) (resource.Resource, error) { "AttachmentReference", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Name "name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The name of the document attachment file.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 128), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Name is a write-only property. }, /*END ATTRIBUTE*/ // Property: Values "values": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "The value of a key-value pair that identifies the location of an attachment to a document. The format for Value depends on the type of key you specify.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(1, 1), listvalidator.ValueStringsAre( @@ -121,20 +114,18 @@ func documentResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // Values is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "A list of key and value pairs that describe attachments to a version of a document.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.SizeBetween(0, 20), }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // Attachments is a write-only property. }, /*END ATTRIBUTE*/ diff --git a/internal/aws/ssm/parameter_resource_gen.go b/internal/aws/ssm/parameter_resource_gen.go index a638ea3d19..72e777c6ca 100644 --- a/internal/aws/ssm/parameter_resource_gen.go +++ b/internal/aws/ssm/parameter_resource_gen.go @@ -11,7 +11,6 @@ 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/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" @@ -38,10 +37,6 @@ func parameterResource(ctx context.Context) (resource.Resource, error) { "allowed_pattern": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "A regular expression used to validate the parameter value. For example, for ``String`` types with values restricted to numbers, you can specify the following: ``AllowedPattern=^\\d+$``", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // AllowedPattern is a write-only property. }, /*END ATTRIBUTE*/ // Property: DataType @@ -79,10 +74,6 @@ func parameterResource(ctx context.Context) (resource.Resource, error) { "description": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Information about the parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Description is a write-only property. }, /*END ATTRIBUTE*/ // Property: Name @@ -111,10 +102,6 @@ func parameterResource(ctx context.Context) (resource.Resource, error) { "policies": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Information about the policies assigned to a parameter.\n [Assigning parameter policies](https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-policies.html) in the *User Guide*.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Policies is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tags @@ -135,10 +122,6 @@ func parameterResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "Optional metadata that you assign to a resource in the form of an arbitrary set of tags (key-value pairs). Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a SYS parameter to identify the type of resource to which it applies, the environment, or the type of configuration data referenced by the parameter.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ - mapplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Tags is a write-only property. }, /*END ATTRIBUTE*/ // Property: Tier @@ -156,7 +139,6 @@ func parameterResource(ctx context.Context) (resource.Resource, error) { "tier": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The parameter tier.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.OneOf( "Standard", @@ -164,9 +146,6 @@ func parameterResource(ctx context.Context) (resource.Resource, error) { "Intelligent-Tiering", ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Tier is a write-only property. }, /*END ATTRIBUTE*/ // Property: Type diff --git a/internal/aws/ssm/resource_data_sync_resource_gen.go b/internal/aws/ssm/resource_data_sync_resource_gen.go index 8eb6c9bb27..bda445dabd 100644 --- a/internal/aws/ssm/resource_data_sync_resource_gen.go +++ b/internal/aws/ssm/resource_data_sync_resource_gen.go @@ -158,6 +158,7 @@ func resourceDataSyncResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BucketPrefix @@ -169,6 +170,7 @@ func resourceDataSyncResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: BucketRegion @@ -181,6 +183,7 @@ func resourceDataSyncResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KMSKeyArn @@ -192,6 +195,7 @@ func resourceDataSyncResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SyncFormat @@ -204,6 +208,7 @@ func resourceDataSyncResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/ssmcontacts/contact_channel_resource_gen.go b/internal/aws/ssmcontacts/contact_channel_resource_gen.go index a30918ece1..af6bde1382 100644 --- a/internal/aws/ssmcontacts/contact_channel_resource_gen.go +++ b/internal/aws/ssmcontacts/contact_channel_resource_gen.go @@ -12,7 +12,6 @@ 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/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" @@ -139,10 +138,6 @@ func contactChannelResource(ctx context.Context) (resource.Resource, error) { "defer_activation": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "If you want to activate the channel at a later time, you can choose to defer activation. SSM Incident Manager can't engage your contact channel until it has been activated.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // DeferActivation is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/ssmcontacts/contact_resource_gen.go b/internal/aws/ssmcontacts/contact_resource_gen.go index ec38bb8afc..face934c8f 100644 --- a/internal/aws/ssmcontacts/contact_resource_gen.go +++ b/internal/aws/ssmcontacts/contact_resource_gen.go @@ -12,17 +12,12 @@ 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" "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() { @@ -192,21 +187,17 @@ func contactResource(ctx context.Context) (resource.Resource, error) { "duration_in_minutes": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The time to wait until beginning the next stage.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // DurationInMinutes is a write-only property. }, /*END ATTRIBUTE*/ // Property: RotationIds "rotation_ids": schema.ListAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Description: "List of Rotation Ids to associate with Contact", Optional: true, - Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ + // RotationIds is a write-only property. }, /*END ATTRIBUTE*/ // Property: Targets "targets": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -218,34 +209,19 @@ 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.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // ChannelId is a write-only property. }, /*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.", - Optional: true, - Computed: true, - Validators: []validator.Int64{ /*START VALIDATORS*/ - fwvalidators.NotNullInt64(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // RetryIntervalInMinutes is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Information about the contact channel that SSM Incident Manager uses to engage the contact.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ChannelTargetInfo is a write-only property. }, /*END ATTRIBUTE*/ // Property: ContactTargetInfo "contact_target_info": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/ @@ -253,52 +229,30 @@ 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.", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // ContactId is a write-only property. }, /*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.", - Optional: true, - Computed: true, - Validators: []validator.Bool{ /*START VALIDATORS*/ - fwvalidators.NotNullBool(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // IsEssential is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The contact that SSM Incident Manager is engaging during an incident.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // ContactTargetInfo is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The contacts or contact methods that the escalation plan or engagement plan is engaging.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Targets is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "The stages that an escalation plan or engagement plan engages contacts and contact methods in.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Plan is a write-only property. }, /*END ATTRIBUTE*/ // Property: Type diff --git a/internal/aws/ssmcontacts/plan_resource_gen.go b/internal/aws/ssmcontacts/plan_resource_gen.go index 3a0ad0b650..c09c2e99dd 100644 --- a/internal/aws/ssmcontacts/plan_resource_gen.go +++ b/internal/aws/ssmcontacts/plan_resource_gen.go @@ -82,10 +82,8 @@ func planResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "Rotation Ids to associate with Oncall Contact for engagement.", Optional: true, - Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // RotationIds is a write-only property. }, /*END ATTRIBUTE*/ diff --git a/internal/aws/stepfunctions/activity_resource_gen.go b/internal/aws/stepfunctions/activity_resource_gen.go index 4ca58120fc..7a7fa6ff60 100644 --- a/internal/aws/stepfunctions/activity_resource_gen.go +++ b/internal/aws/stepfunctions/activity_resource_gen.go @@ -85,6 +85,7 @@ func activityResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: KmsKeyId @@ -96,6 +97,7 @@ func activityResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type @@ -111,6 +113,7 @@ func activityResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/stepfunctions/state_machine_alias_resource_gen.go b/internal/aws/stepfunctions/state_machine_alias_resource_gen.go index aee15d13a2..9d119c079f 100644 --- a/internal/aws/stepfunctions/state_machine_alias_resource_gen.go +++ b/internal/aws/stepfunctions/state_machine_alias_resource_gen.go @@ -14,7 +14,6 @@ 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" @@ -109,77 +108,56 @@ func stateMachineAliasResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "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.", Optional: true, - Computed: true, Validators: []validator.Set{ /*START VALIDATORS*/ setvalidator.SizeBetween(1, 100), setvalidator.ValueStringsAre( stringvalidator.LengthBetween(1, 256), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ - setplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Alarms is a write-only property. }, /*END ATTRIBUTE*/ // Property: Interval "interval": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The time in minutes between each traffic shifting increment.", Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 2100), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Interval is a write-only property. }, /*END ATTRIBUTE*/ // Property: Percentage "percentage": schema.Int64Attribute{ /*START ATTRIBUTE*/ Description: "The percentage of traffic to shift to the new version in each increment.", Optional: true, - Computed: true, Validators: []validator.Int64{ /*START VALIDATORS*/ int64validator.Between(1, 99), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ - int64planmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Percentage is a write-only property. }, /*END ATTRIBUTE*/ // Property: StateMachineVersionArn "state_machine_version_arn": schema.StringAttribute{ /*START ATTRIBUTE*/ - Optional: true, - Computed: true, + Required: 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*/ + // StateMachineVersionArn is a write-only property. }, /*END ATTRIBUTE*/ // Property: Type "type": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "The type of deployment to perform.", - Optional: true, - Computed: true, + Required: 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*/ + // Type is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "The settings to enable gradual state machine deployments.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // DeploymentPreference is a write-only property. }, /*END ATTRIBUTE*/ // Property: Description diff --git a/internal/aws/stepfunctions/state_machine_resource_gen.go b/internal/aws/stepfunctions/state_machine_resource_gen.go index a2f9df365e..5b55a951c4 100644 --- a/internal/aws/stepfunctions/state_machine_resource_gen.go +++ b/internal/aws/stepfunctions/state_machine_resource_gen.go @@ -15,7 +15,6 @@ 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/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" @@ -57,10 +56,6 @@ func stateMachineResource(ctx context.Context) (resource.Resource, error) { "definition": schema.StringAttribute{ /*START ATTRIBUTE*/ CustomType: jsontypes.NormalizedType{}, Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Definition is a write-only property. }, /*END ATTRIBUTE*/ // Property: DefinitionS3Location @@ -89,40 +84,21 @@ func stateMachineResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Bucket "bucket": 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*/ + Required: true, + // Bucket is a write-only property. }, /*END ATTRIBUTE*/ // Property: Key "key": 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*/ + Required: true, + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Version "version": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // Version is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // DefinitionS3Location is a write-only property. }, /*END ATTRIBUTE*/ // Property: DefinitionString @@ -159,10 +135,6 @@ func stateMachineResource(ctx context.Context) (resource.Resource, error) { schema.MapAttribute{ /*START ATTRIBUTE*/ ElementType: types.StringType, Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ - mapplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // DefinitionSubstitutions is a write-only property. }, /*END ATTRIBUTE*/ // Property: LoggingConfiguration diff --git a/internal/aws/supportapp/slack_workspace_configuration_resource_gen.go b/internal/aws/supportapp/slack_workspace_configuration_resource_gen.go index c04d53d91d..1eaba969ac 100644 --- a/internal/aws/supportapp/slack_workspace_configuration_resource_gen.go +++ b/internal/aws/supportapp/slack_workspace_configuration_resource_gen.go @@ -61,14 +61,10 @@ func slackWorkspaceConfigurationResource(ctx context.Context) (resource.Resource "version_id": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "An identifier used to update an existing Slack workspace configuration in AWS CloudFormation.", Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), stringvalidator.RegexMatches(regexp.MustCompile("^[0-9]+$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // VersionId is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/synthetics/canary_resource_gen.go b/internal/aws/synthetics/canary_resource_gen.go index b1451b6414..b54b366a41 100644 --- a/internal/aws/synthetics/canary_resource_gen.go +++ b/internal/aws/synthetics/canary_resource_gen.go @@ -16,7 +16,6 @@ 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" @@ -167,37 +166,21 @@ func canaryResource(ctx context.Context) (resource.Resource, error) { // Property: S3Bucket "s3_bucket": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // S3Bucket is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3Key "s3_key": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // S3Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: S3ObjectVersion "s3_object_version": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // S3ObjectVersion is a write-only property. }, /*END ATTRIBUTE*/ // Property: Script "script": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Script is a write-only property. }, /*END ATTRIBUTE*/ // Property: SourceLocationArn @@ -221,10 +204,6 @@ func canaryResource(ctx context.Context) (resource.Resource, error) { "delete_lambda_resources_on_canary_deletion": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Deletes associated lambda resources created by Synthetics if set to True. Default is False", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // DeleteLambdaResourcesOnCanaryDeletion is a write-only property. }, /*END ATTRIBUTE*/ // Property: ExecutionRoleArn @@ -304,7 +283,6 @@ func canaryResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "List of resources which canary tags should be replicated to.", Optional: true, - Computed: true, Validators: []validator.List{ /*START VALIDATORS*/ listvalidator.UniqueValues(), listvalidator.ValueStringsAre( @@ -313,9 +291,6 @@ func canaryResource(ctx context.Context) (resource.Resource, error) { ), ), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // ResourcesToReplicateTags is a write-only property. }, /*END ATTRIBUTE*/ // Property: RunConfig @@ -367,10 +342,6 @@ func canaryResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "Environment variable key-value pairs.", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/ - mapplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // EnvironmentVariables is a write-only property. }, /*END ATTRIBUTE*/ // Property: MemoryInMB @@ -457,10 +428,6 @@ func canaryResource(ctx context.Context) (resource.Resource, error) { "start_canary_after_creation": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "Runs canary if set to True. Default is False", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // StartCanaryAfterCreation is a write-only property. }, /*END ATTRIBUTE*/ // Property: State @@ -676,14 +643,8 @@ 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", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // BaseCanaryRunId is a write-only property. }, /*END ATTRIBUTE*/ // Property: BaseScreenshots "base_screenshots": schema.ListNestedAttribute{ /*START ATTRIBUTE*/ @@ -694,39 +655,23 @@ func canaryResource(ctx context.Context) (resource.Resource, error) { ElementType: types.StringType, Description: "List of coordinates of rectangles to be ignored during visual testing", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // IgnoreCoordinates is a write-only property. }, /*END ATTRIBUTE*/ // Property: ScreenshotName "screenshot_name": schema.StringAttribute{ /*START ATTRIBUTE*/ Description: "Name of the screenshot to be used as base reference for visual testing", - Optional: true, - Computed: true, - Validators: []validator.String{ /*START VALIDATORS*/ - fwvalidators.NotNullString(), - }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + Required: true, + // ScreenshotName is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Description: "List of screenshots used as base reference for visual testing", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ - listplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ + // BaseScreenshots is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Visual reference configuration for visual testing", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ - objectplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // VisualReference is a write-only property. }, /*END ATTRIBUTE*/ } /*END SCHEMA*/ diff --git a/internal/aws/systemsmanagersap/application_resource_gen.go b/internal/aws/systemsmanagersap/application_resource_gen.go index 602805cbe2..ce33d7a164 100644 --- a/internal/aws/systemsmanagersap/application_resource_gen.go +++ b/internal/aws/systemsmanagersap/application_resource_gen.go @@ -120,7 +120,9 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // CredentialType is a write-only property. }, /*END ATTRIBUTE*/ // Property: DatabaseName "database_name": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -128,7 +130,9 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // DatabaseName is a write-only property. }, /*END ATTRIBUTE*/ // Property: SecretId "secret_id": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -136,7 +140,9 @@ func applicationResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ + // SecretId is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ diff --git a/internal/aws/timestream/scheduled_query_resource_gen.go b/internal/aws/timestream/scheduled_query_resource_gen.go index 03bbc0f03a..2ae5deffcd 100644 --- a/internal/aws/timestream/scheduled_query_resource_gen.go +++ b/internal/aws/timestream/scheduled_query_resource_gen.go @@ -126,6 +126,9 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { stringvalidator.LengthBetween(3, 63), stringvalidator.RegexMatches(regexp.MustCompile("[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: EncryptionOption "encryption_option": schema.StringAttribute{ /*START ATTRIBUTE*/ @@ -140,6 +143,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ObjectKeyPrefix @@ -153,11 +157,15 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Details on S3 location for error reports that result from running a query.", Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.", @@ -228,10 +236,16 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "SNS configuration for notification upon scheduled query execution.", Required: true, + PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ + objectplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Notification configuration for the scheduled query. A notification is sent by Timestream when a query run finishes, when the state is updated or when you delete it.", @@ -399,6 +413,9 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 256), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Description: "Configuration for when the scheduled query is executed.", @@ -732,6 +749,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DimensionMappings @@ -751,6 +769,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name @@ -763,6 +782,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -776,6 +796,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MeasureNameColumn @@ -785,6 +806,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MixedMeasureMappings @@ -798,6 +820,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MeasureValueType @@ -817,6 +840,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MultiMeasureAttributeMappings @@ -840,6 +864,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceColumn @@ -852,6 +877,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TargetMultiMeasureAttributeName @@ -861,6 +887,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -874,6 +901,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceColumn @@ -883,6 +911,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TargetMeasureName @@ -892,6 +921,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -905,6 +935,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: MultiMeasureMappings @@ -931,6 +962,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceColumn @@ -943,6 +975,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TargetMultiMeasureAttributeName @@ -952,6 +985,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -966,6 +1000,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TargetMultiMeasureName @@ -975,6 +1010,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -983,6 +1019,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TableName @@ -995,6 +1032,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TimeColumn @@ -1007,6 +1045,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1018,6 +1057,7 @@ func scheduledQueryResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/transfer/workflow_resource_gen.go b/internal/aws/transfer/workflow_resource_gen.go index 29a7ee3dc4..d83d275509 100644 --- a/internal/aws/transfer/workflow_resource_gen.go +++ b/internal/aws/transfer/workflow_resource_gen.go @@ -377,6 +377,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key @@ -390,6 +391,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -398,6 +400,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -406,6 +409,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name @@ -419,6 +423,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OverwriteExisting @@ -434,6 +439,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceFileLocation @@ -447,6 +453,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -455,6 +462,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CustomStepDetails @@ -471,6 +479,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceFileLocation @@ -484,6 +493,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Target @@ -497,6 +507,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TimeoutSeconds @@ -509,6 +520,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -517,6 +529,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DecryptStepDetails @@ -539,6 +552,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Path @@ -552,6 +566,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -560,6 +575,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3FileLocation @@ -576,6 +592,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key @@ -589,6 +606,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -597,6 +615,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -608,6 +627,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name @@ -621,6 +641,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OverwriteExisting @@ -636,6 +657,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceFileLocation @@ -649,6 +671,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type @@ -664,6 +687,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -672,6 +696,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DeleteStepDetails @@ -688,6 +713,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceFileLocation @@ -701,6 +727,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -709,6 +736,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TagStepDetails @@ -725,6 +753,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceFileLocation @@ -738,6 +767,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Tags @@ -755,6 +785,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -768,6 +799,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -780,6 +812,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ setplanmodifier.UseStateForUnknown(), + setplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -788,6 +821,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type @@ -805,6 +839,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1123,6 +1158,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key @@ -1136,6 +1172,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1144,6 +1181,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1152,6 +1190,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name @@ -1165,6 +1204,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OverwriteExisting @@ -1180,6 +1220,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceFileLocation @@ -1193,6 +1234,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1201,6 +1243,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: CustomStepDetails @@ -1217,6 +1260,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceFileLocation @@ -1230,6 +1274,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Target @@ -1243,6 +1288,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TimeoutSeconds @@ -1255,6 +1301,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/ int64planmodifier.UseStateForUnknown(), + int64planmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1263,6 +1310,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DecryptStepDetails @@ -1285,6 +1333,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Path @@ -1298,6 +1347,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1306,6 +1356,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: S3FileLocation @@ -1322,6 +1373,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Key @@ -1335,6 +1387,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1343,6 +1396,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1354,6 +1408,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Name @@ -1367,6 +1422,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: OverwriteExisting @@ -1382,6 +1438,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceFileLocation @@ -1395,6 +1452,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type @@ -1410,6 +1468,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1418,6 +1477,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: DeleteStepDetails @@ -1434,6 +1494,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceFileLocation @@ -1447,6 +1508,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1455,6 +1517,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: TagStepDetails @@ -1471,6 +1534,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: SourceFileLocation @@ -1484,6 +1548,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Tags @@ -1501,6 +1566,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -1514,6 +1580,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1526,6 +1593,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.Set{ /*START PLAN MODIFIERS*/ setplanmodifier.UseStateForUnknown(), + setplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -1534,6 +1602,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Type @@ -1551,6 +1620,7 @@ func workflowResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/voiceid/domain_resource_gen.go b/internal/aws/voiceid/domain_resource_gen.go index ea567380a2..9fea80bafd 100644 --- a/internal/aws/voiceid/domain_resource_gen.go +++ b/internal/aws/voiceid/domain_resource_gen.go @@ -41,14 +41,10 @@ func domainResource(ctx context.Context) (resource.Resource, error) { // } "description": schema.StringAttribute{ /*START ATTRIBUTE*/ Optional: true, - Computed: true, Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 1024), stringvalidator.RegexMatches(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-%@]*)$"), ""), }, /*END VALIDATORS*/ - PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ - stringplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // Description is a write-only property. }, /*END ATTRIBUTE*/ // Property: DomainId @@ -108,6 +104,7 @@ func domainResource(ctx context.Context) (resource.Resource, error) { Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.LengthBetween(1, 2048), }, /*END VALIDATORS*/ + // KmsKeyId is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Required: true, diff --git a/internal/aws/wisdom/assistant_association_resource_gen.go b/internal/aws/wisdom/assistant_association_resource_gen.go index 2ce82d4a8f..d35b267352 100644 --- a/internal/aws/wisdom/assistant_association_resource_gen.go +++ b/internal/aws/wisdom/assistant_association_resource_gen.go @@ -109,6 +109,9 @@ func assistantAssociationResource(ctx context.Context) (resource.Resource, error Validators: []validator.String{ /*START VALIDATORS*/ stringvalidator.RegexMatches(regexp.MustCompile("^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"), ""), }, /*END VALIDATORS*/ + PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ + stringplanmodifier.RequiresReplace(), + }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ Required: true, @@ -178,6 +181,7 @@ func assistantAssociationResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -190,6 +194,7 @@ func assistantAssociationResource(ctx context.Context) (resource.Resource, error }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -235,9 +240,9 @@ func assistantAssociationResource(ctx context.Context) (resource.Resource, error "value": "Value", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/wisdom/assistant_resource_gen.go b/internal/aws/wisdom/assistant_resource_gen.go index 64b3fe5dbd..65de8389cd 100644 --- a/internal/aws/wisdom/assistant_resource_gen.go +++ b/internal/aws/wisdom/assistant_resource_gen.go @@ -116,6 +116,7 @@ func assistantResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -168,6 +169,7 @@ func assistantResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -180,6 +182,7 @@ func assistantResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -245,9 +248,9 @@ func assistantResource(ctx context.Context) (resource.Resource, error) { "value": "Value", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/wisdom/knowledge_base_resource_gen.go b/internal/aws/wisdom/knowledge_base_resource_gen.go index 2ea67309de..6089a9ba01 100644 --- a/internal/aws/wisdom/knowledge_base_resource_gen.go +++ b/internal/aws/wisdom/knowledge_base_resource_gen.go @@ -178,6 +178,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -246,6 +247,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: ObjectFields @@ -262,6 +264,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), listplanmodifier.UseStateForUnknown(), + listplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -269,6 +272,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { Computed: true, PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/ objectplanmodifier.UseStateForUnknown(), + objectplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -321,6 +325,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -333,6 +338,7 @@ func knowledgeBaseResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ diff --git a/internal/aws/workspaces/connection_alias_resource_gen.go b/internal/aws/workspaces/connection_alias_resource_gen.go index 6cb1a5f8c6..b2e8c9b193 100644 --- a/internal/aws/workspaces/connection_alias_resource_gen.go +++ b/internal/aws/workspaces/connection_alias_resource_gen.go @@ -180,6 +180,7 @@ func connectionAliasResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ // Property: Value @@ -191,6 +192,7 @@ func connectionAliasResource(ctx context.Context) (resource.Resource, error) { }, /*END VALIDATORS*/ PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/ stringplanmodifier.UseStateForUnknown(), + stringplanmodifier.RequiresReplaceIfConfigured(), }, /*END PLAN MODIFIERS*/ }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ @@ -237,9 +239,9 @@ func connectionAliasResource(ctx context.Context) (resource.Resource, error) { "value": "Value", }) - opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) + opts = opts.IsImmutableType(true) - opts = opts.WithUpdateTimeoutInMinutes(0) + opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) v, err := generic.NewResource(ctx, opts...) diff --git a/internal/aws/workspaces/workspaces_pool_resource_gen.go b/internal/aws/workspaces/workspaces_pool_resource_gen.go index bcdb2c3cbc..c5d3f2c424 100644 --- a/internal/aws/workspaces/workspaces_pool_resource_gen.go +++ b/internal/aws/workspaces/workspaces_pool_resource_gen.go @@ -14,7 +14,6 @@ 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/stringplanmodifier" @@ -252,33 +251,19 @@ func workspacesPoolResource(ctx context.Context) (resource.Resource, error) { Attributes: map[string]schema.Attribute{ /*START SCHEMA*/ // Property: Key "key": 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*/ + Required: true, + // Key is a write-only property. }, /*END ATTRIBUTE*/ // Property: Value "value": 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*/ + Required: true, + // Value is a write-only property. }, /*END ATTRIBUTE*/ }, /*END SCHEMA*/ }, /*END NESTED OBJECT*/ Optional: true, - Computed: true, PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/ generic.Multiset(), - listplanmodifier.UseStateForUnknown(), }, /*END PLAN MODIFIERS*/ // Tags is a write-only property. }, /*END ATTRIBUTE*/ diff --git a/internal/aws/xray/resource_policy_resource_gen.go b/internal/aws/xray/resource_policy_resource_gen.go index 11c435351d..756e13f8b4 100644 --- a/internal/aws/xray/resource_policy_resource_gen.go +++ b/internal/aws/xray/resource_policy_resource_gen.go @@ -12,7 +12,6 @@ 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/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" @@ -38,10 +37,6 @@ func resourcePolicyResource(ctx context.Context) (resource.Resource, error) { "bypass_policy_lockout_check": schema.BoolAttribute{ /*START ATTRIBUTE*/ Description: "A flag to indicate whether to bypass the resource policy lockout safety check", Optional: true, - Computed: true, - PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/ - boolplanmodifier.UseStateForUnknown(), - }, /*END PLAN MODIFIERS*/ // BypassPolicyLockoutCheck is a write-only property. }, /*END ATTRIBUTE*/ // Property: PolicyDocument diff --git a/internal/provider/generators/shared/codegen/emitter.go b/internal/provider/generators/shared/codegen/emitter.go index 7362d62402..0cde8cf213 100644 --- a/internal/provider/generators/shared/codegen/emitter.go +++ b/internal/provider/generators/shared/codegen/emitter.go @@ -120,9 +120,34 @@ func (e Emitter) emitAttribute(tfType string, attributeNameMap map[string]string var planModifiers []string var fwPlanModifierPackage, fwPlanModifierType, fwValidatorType string - createOnly := e.CfResource.CreateOnlyProperties.ContainsPath(path) - readOnly := e.CfResource.ReadOnlyProperties.ContainsPath(path) - writeOnly := e.CfResource.WriteOnlyProperties.ContainsPath(path) + createOnly := false + readOnly := false + writeOnly := false + + var chunks [][]string + + // Build combinations + for i := 1; i <= len(path); i++ { + combination := path[:i] + chunks = append(chunks, combination) + } + + for i := 0; i < len(chunks); i++ { + if e.CfResource.CreateOnlyProperties.ContainsPath(chunks[i]) { + createOnly = true + } + + if e.CfResource.ReadOnlyProperties.ContainsPath(chunks[i]) { + readOnly = true + } + + if e.CfResource.WriteOnlyProperties.ContainsPath(chunks[i]) { + writeOnly = true + } + } + + // check every combination of path for e.CfResource.WriteOnlyProperties.ContainsPath(path) + hasDefaultValue := property.Default != nil if readOnly && required { @@ -154,7 +179,7 @@ func (e Emitter) emitAttribute(tfType string, attributeNameMap map[string]string } // All Optional attributes are also Computed. - if optional && !computed { + if optional && !computed && !writeOnly { computed = true }