diff --git a/CHANGELOG.md b/CHANGELOG.md index 98033351e1..fe2bde7cf3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ ## 0.33.0 (Unreleased) + +NOTES: + +* Optional attributes without a default value specified in the resource's CloudFormation schema are now handled as _Computed_, indicating that if no value has been configured then Terraform will not perform drift detection on the attribute ([#667](https://github.com/hashicorp/terraform-provider-awscc/issues/667)) + ## [0.32.0](https://github.com/hashicorp/terraform-provider-awscc/releases/tag/v0.32.0) (September 8, 2022) FEATURES: diff --git a/internal/aws/accessanalyzer/analyzer_resource_gen.go b/internal/aws/accessanalyzer/analyzer_resource_gen.go index 8fb285b81b..f95a8b28c7 100644 --- a/internal/aws/accessanalyzer/analyzer_resource_gen.go +++ b/internal/aws/accessanalyzer/analyzer_resource_gen.go @@ -114,29 +114,39 @@ func analyzerResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Contains Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "eq": { // Property: Eq Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "exists": { // Property: Exists Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "neq": { // Property: Neq Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "property": { @@ -163,8 +173,10 @@ func analyzerResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "arn": { @@ -239,9 +251,13 @@ func analyzerResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type diff --git a/internal/aws/acmpca/certificate_authority_activation_resource_gen.go b/internal/aws/acmpca/certificate_authority_activation_resource_gen.go index 83f73cf444..ce52e9ad56 100644 --- a/internal/aws/acmpca/certificate_authority_activation_resource_gen.go +++ b/internal/aws/acmpca/certificate_authority_activation_resource_gen.go @@ -57,6 +57,10 @@ func certificateAuthorityActivationResourceType(ctx context.Context) (provider.R Description: "Certificate chain for the Certificate Authority certificate.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // CertificateChain is a write-only property. }, "complete_certificate_chain": { @@ -83,6 +87,10 @@ func certificateAuthorityActivationResourceType(ctx context.Context) (provider.R Description: "The status of the Certificate Authority.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/acmpca/certificate_authority_resource_gen.go b/internal/aws/acmpca/certificate_authority_resource_gen.go index d414d9171d..ae665856b3 100644 --- a/internal/aws/acmpca/certificate_authority_resource_gen.go +++ b/internal/aws/acmpca/certificate_authority_resource_gen.go @@ -366,6 +366,10 @@ func certificateAuthorityResourceType(ctx context.Context) (provider.ResourceTyp }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subject_information_access": { // Property: SubjectInformationAccess @@ -386,11 +390,19 @@ func certificateAuthorityResourceType(ctx context.Context) (provider.ResourceTyp // Property: CommonName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "country": { // Property: Country Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "custom_attributes": { // Property: CustomAttributes @@ -411,76 +423,136 @@ func certificateAuthorityResourceType(ctx context.Context) (provider.ResourceTyp }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "distinguished_name_qualifier": { // Property: DistinguishedNameQualifier Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "generation_qualifier": { // Property: GenerationQualifier Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "given_name": { // Property: GivenName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "initials": { // Property: Initials Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "locality": { // Property: Locality Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "organization": { // Property: Organization Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "organizational_unit": { // Property: OrganizationalUnit Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "pseudonym": { // Property: Pseudonym Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "serial_number": { // Property: SerialNumber Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "state": { // Property: State Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "surname": { // Property: Surname Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dns_name": { // Property: DnsName Description: "String that contains X.509 DnsName information.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "edi_party_name": { // Property: EdiPartyName @@ -500,12 +572,20 @@ func certificateAuthorityResourceType(ctx context.Context) (provider.ResourceTyp }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ip_address": { // Property: IpAddress Description: "String that contains X.509 IpAddress information.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "other_name": { // Property: OtherName @@ -526,24 +606,40 @@ func certificateAuthorityResourceType(ctx context.Context) (provider.ResourceTyp }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "registered_id": { // Property: RegisteredId Description: "String that contains X.509 ObjectIdentifier information.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rfc_822_name": { // Property: Rfc822Name Description: "String that contains X.509 Rfc822Name information.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "uniform_resource_identifier": { // Property: UniformResourceIdentifier Description: "String that contains X.509 UniformResourceIdentifier information.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -559,12 +655,20 @@ func certificateAuthorityResourceType(ctx context.Context) (provider.ResourceTyp Description: "Pre-defined enum string for X.509 AccessMethod ObjectIdentifiers.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "custom_object_identifier": { // Property: CustomObjectIdentifier Description: "String that contains X.509 ObjectIdentifier information.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -573,6 +677,10 @@ func certificateAuthorityResourceType(ctx context.Context) (provider.ResourceTyp }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -670,30 +778,54 @@ func certificateAuthorityResourceType(ctx context.Context) (provider.ResourceTyp // Property: CustomCname Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "expiration_in_days": { // Property: ExpirationInDays Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_bucket_name": { // Property: S3BucketName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_object_acl": { // Property: S3ObjectAcl Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ocsp_configuration": { // Property: OcspConfiguration @@ -704,19 +836,35 @@ func certificateAuthorityResourceType(ctx context.Context) (provider.ResourceTyp // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ocsp_custom_cname": { // Property: OcspCustomCname Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "signing_algorithm": { // Property: SigningAlgorithm @@ -813,11 +961,19 @@ func certificateAuthorityResourceType(ctx context.Context) (provider.ResourceTyp // Property: CommonName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "country": { // Property: Country Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "custom_attributes": { // Property: CustomAttributes @@ -838,66 +994,118 @@ func certificateAuthorityResourceType(ctx context.Context) (provider.ResourceTyp }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "distinguished_name_qualifier": { // Property: DistinguishedNameQualifier Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "generation_qualifier": { // Property: GenerationQualifier Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "given_name": { // Property: GivenName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "initials": { // Property: Initials Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "locality": { // Property: Locality Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "organization": { // Property: Organization Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "organizational_unit": { // Property: OrganizationalUnit Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "pseudonym": { // Property: Pseudonym Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "serial_number": { // Property: SerialNumber Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "state": { // Property: State Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "surname": { // Property: Surname Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -931,15 +1139,27 @@ func certificateAuthorityResourceType(ctx context.Context) (provider.ResourceTyp // Property: Key Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type diff --git a/internal/aws/acmpca/certificate_resource_gen.go b/internal/aws/acmpca/certificate_resource_gen.go index f1e1e48057..82316cdd3f 100644 --- a/internal/aws/acmpca/certificate_resource_gen.go +++ b/internal/aws/acmpca/certificate_resource_gen.go @@ -422,10 +422,18 @@ func certificateResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "custom_extensions": { // Property: CustomExtensions @@ -436,6 +444,10 @@ func certificateResourceType(ctx context.Context) (provider.ResourceType, error) // Property: Critical Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "object_identifier": { // Property: ObjectIdentifier @@ -451,6 +463,10 @@ func certificateResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "extended_key_usage": { // Property: ExtendedKeyUsage @@ -461,15 +477,27 @@ func certificateResourceType(ctx context.Context) (provider.ResourceType, error) Description: "String that contains X.509 ObjectIdentifier information.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "extended_key_usage_type": { // Property: ExtendedKeyUsageType Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key_usage": { // Property: KeyUsage @@ -569,6 +597,10 @@ func certificateResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subject_alternative_names": { // Property: SubjectAlternativeNames @@ -583,11 +615,19 @@ func certificateResourceType(ctx context.Context) (provider.ResourceType, error) // Property: CommonName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "country": { // Property: Country Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "custom_attributes": { // Property: CustomAttributes @@ -608,76 +648,136 @@ func certificateResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "distinguished_name_qualifier": { // Property: DistinguishedNameQualifier Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "generation_qualifier": { // Property: GenerationQualifier Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "given_name": { // Property: GivenName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "initials": { // Property: Initials Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "locality": { // Property: Locality Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "organization": { // Property: Organization Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "organizational_unit": { // Property: OrganizationalUnit Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "pseudonym": { // Property: Pseudonym Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "serial_number": { // Property: SerialNumber Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "state": { // Property: State Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "surname": { // Property: Surname Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dns_name": { // Property: DnsName Description: "String that contains X.509 DnsName information.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "edi_party_name": { // Property: EdiPartyName @@ -697,12 +797,20 @@ func certificateResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ip_address": { // Property: IpAddress Description: "String that contains X.509 IpAddress information.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "other_name": { // Property: OtherName @@ -723,32 +831,56 @@ func certificateResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "registered_id": { // Property: RegisteredId Description: "String that contains X.509 ObjectIdentifier information.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rfc_822_name": { // Property: Rfc822Name Description: "String that contains X.509 Rfc822Name information.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "uniform_resource_identifier": { // Property: UniformResourceIdentifier Description: "String that contains X.509 UniformResourceIdentifier information.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subject": { // Property: Subject @@ -759,11 +891,19 @@ func certificateResourceType(ctx context.Context) (provider.ResourceType, error) // Property: CommonName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "country": { // Property: Country Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "custom_attributes": { // Property: CustomAttributes @@ -784,70 +924,126 @@ func certificateResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "distinguished_name_qualifier": { // Property: DistinguishedNameQualifier Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "generation_qualifier": { // Property: GenerationQualifier Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "given_name": { // Property: GivenName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "initials": { // Property: Initials Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "locality": { // Property: Locality Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "organization": { // Property: Organization Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "organizational_unit": { // Property: OrganizationalUnit Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "pseudonym": { // Property: Pseudonym Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "serial_number": { // Property: SerialNumber Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "state": { // Property: State Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "surname": { // Property: Surname Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/amplify/app_resource_gen.go b/internal/aws/amplify/app_resource_gen.go index b2fded7c18..43f99f02ef 100644 --- a/internal/aws/amplify/app_resource_gen.go +++ b/internal/aws/amplify/app_resource_gen.go @@ -33,9 +33,13 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // AccessToken is a write-only property. }, "app_id": { @@ -181,9 +185,13 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: AutoBranchCreationPatterns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(1, 2048)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "basic_auth_config": { // Property: BasicAuthConfig @@ -193,54 +201,90 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: EnableBasicAuth Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "password": { // Property: Password Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "username": { // Property: Username Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "build_spec": { // Property: BuildSpec Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 25000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_auto_branch_creation": { // Property: EnableAutoBranchCreation Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_auto_build": { // Property: EnableAutoBuild Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_performance_mode": { // Property: EnablePerformanceMode Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_pull_request_preview": { // Property: EnablePullRequestPreview Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "environment_variables": { // Property: EnvironmentVariables @@ -267,20 +311,29 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "pull_request_environment_name": { // Property: PullRequestEnvironmentName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(20), validate.StringMatch(regexp.MustCompile("(?s).*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stage": { // Property: Stage Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "EXPERIMENTAL", @@ -290,10 +343,17 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { "DEVELOPMENT", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // AutoBranchCreationConfig is a write-only property. }, "basic_auth_config": { @@ -324,26 +384,42 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: EnableBasicAuth Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "password": { // Property: Password Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "username": { // Property: Username Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // BasicAuthConfig is a write-only property. }, "build_spec": { @@ -357,10 +433,14 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 25000), validate.StringMatch(regexp.MustCompile("(?s).+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "custom_headers": { // Property: CustomHeaders @@ -373,10 +453,14 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 25000), validate.StringMatch(regexp.MustCompile("(?s).*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "custom_rules": { // Property: CustomRules @@ -425,10 +509,14 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Condition Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 2048), validate.StringMatch(regexp.MustCompile("(?s).*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source": { // Property: Source @@ -443,10 +531,14 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Status Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 7), validate.StringMatch(regexp.MustCompile(".{3,7}"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target": { // Property: Target @@ -460,6 +552,10 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "default_domain": { // Property: DefaultDomain @@ -485,10 +581,14 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1000), validate.StringMatch(regexp.MustCompile("(?s).*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_branch_auto_deletion": { // Property: EnableBranchAutoDeletion @@ -498,6 +598,10 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "environment_variables": { // Property: EnvironmentVariables @@ -549,6 +653,10 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "iam_service_role": { // Property: IAMServiceRole @@ -561,10 +669,14 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1000), validate.StringMatch(regexp.MustCompile("(?s).*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -592,10 +704,14 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1000), validate.StringMatch(regexp.MustCompile("(?s).*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // OauthToken is a write-only property. }, "repository": { @@ -607,9 +723,13 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("(?s).*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -661,6 +781,10 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/amplify/branch_resource_gen.go b/internal/aws/amplify/branch_resource_gen.go index 5473114dfb..9e900fcfed 100644 --- a/internal/aws/amplify/branch_resource_gen.go +++ b/internal/aws/amplify/branch_resource_gen.go @@ -88,6 +88,10 @@ func branchResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: EnableBasicAuth Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "password": { // Property: Password @@ -108,6 +112,10 @@ func branchResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // BasicAuthConfig is a write-only property. }, "branch_name": { @@ -140,10 +148,14 @@ func branchResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 25000), validate.StringMatch(regexp.MustCompile("(?s).+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -155,10 +167,14 @@ func branchResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1000), validate.StringMatch(regexp.MustCompile("(?s).*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_auto_build": { // Property: EnableAutoBuild @@ -168,6 +184,10 @@ func branchResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_performance_mode": { // Property: EnablePerformanceMode @@ -177,6 +197,10 @@ func branchResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_pull_request_preview": { // Property: EnablePullRequestPreview @@ -186,6 +210,10 @@ func branchResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "environment_variables": { // Property: EnvironmentVariables @@ -237,6 +265,10 @@ func branchResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "pull_request_environment_name": { // Property: PullRequestEnvironmentName @@ -248,10 +280,14 @@ func branchResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(20), validate.StringMatch(regexp.MustCompile("(?s).*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stage": { // Property: Stage @@ -268,6 +304,7 @@ func branchResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "EXPERIMENTAL", @@ -277,6 +314,9 @@ func branchResourceType(ctx context.Context) (provider.ResourceType, error) { "DEVELOPMENT", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -330,6 +370,10 @@ func branchResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/amplify/domain_resource_gen.go b/internal/aws/amplify/domain_resource_gen.go index 16de8e2eb0..b23853123c 100644 --- a/internal/aws/amplify/domain_resource_gen.go +++ b/internal/aws/amplify/domain_resource_gen.go @@ -71,10 +71,14 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(1, 2048)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("(?s).+"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "auto_sub_domain_iam_role": { // Property: AutoSubDomainIAMRole @@ -86,10 +90,14 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1000), validate.StringMatch(regexp.MustCompile("^$|^arn:.+:iam::\\d{12}:role.+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "certificate_record": { // Property: CertificateRecord @@ -141,6 +149,10 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status_reason": { // Property: StatusReason diff --git a/internal/aws/apigateway/account_resource_gen.go b/internal/aws/apigateway/account_resource_gen.go index c44e141c8c..925c4af6ac 100644 --- a/internal/aws/apigateway/account_resource_gen.go +++ b/internal/aws/apigateway/account_resource_gen.go @@ -31,6 +31,10 @@ func accountResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The Amazon Resource Name (ARN) of an IAM role that has write access to CloudWatch Logs in your account.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id diff --git a/internal/aws/apigateway/api_key_resource_gen.go b/internal/aws/apigateway/api_key_resource_gen.go index 8edac07b5c..ceff26c0cd 100644 --- a/internal/aws/apigateway/api_key_resource_gen.go +++ b/internal/aws/apigateway/api_key_resource_gen.go @@ -46,6 +46,10 @@ func apiKeyResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "An AWS Marketplace customer identifier to use when integrating with the AWS SaaS Marketplace.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -57,6 +61,10 @@ func apiKeyResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A description of the purpose of the API key.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enabled": { // Property: Enabled @@ -138,19 +146,31 @@ func apiKeyResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The ID of a RestApi resource that includes the stage with which you want to associate the API key.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stage_name": { // Property: StageName Description: "The name of the stage with which to associate the API key. The stage must be included in the RestApi resource that you specified in the RestApiId property. ", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -205,6 +225,10 @@ func apiKeyResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value diff --git a/internal/aws/apigateway/authorizer_resource_gen.go b/internal/aws/apigateway/authorizer_resource_gen.go index f8e10a54b1..a8857ca032 100644 --- a/internal/aws/apigateway/authorizer_resource_gen.go +++ b/internal/aws/apigateway/authorizer_resource_gen.go @@ -31,6 +31,10 @@ func authorizerResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Optional customer-defined field, used in OpenAPI imports and exports without functional impact.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "authorizer_credentials": { // Property: AuthorizerCredentials @@ -42,6 +46,10 @@ func authorizerResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "authorizer_id": { // Property: AuthorizerId @@ -65,6 +73,10 @@ func authorizerResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The TTL in seconds of cached authorizer results.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "authorizer_uri": { // Property: AuthorizerUri @@ -76,6 +88,10 @@ func authorizerResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Specifies the authorizer's Uniform Resource Identifier (URI).", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "identity_source": { // Property: IdentitySource @@ -87,6 +103,10 @@ func authorizerResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The identity source for which authorization is requested.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "identity_validation_expression": { // Property: IdentityValidationExpression @@ -98,6 +118,10 @@ func authorizerResourceType(ctx context.Context) (provider.ResourceType, error) Description: "A validation expression for the incoming identity token.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -125,6 +149,10 @@ func authorizerResourceType(ctx context.Context) (provider.ResourceType, error) Description: "A list of the Amazon Cognito user pool ARNs for the COGNITO_USER_POOLS authorizer.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rest_api_id": { // Property: RestApiId diff --git a/internal/aws/apigateway/client_certificate_resource_gen.go b/internal/aws/apigateway/client_certificate_resource_gen.go index f90b1293ea..403fc345dc 100644 --- a/internal/aws/apigateway/client_certificate_resource_gen.go +++ b/internal/aws/apigateway/client_certificate_resource_gen.go @@ -45,6 +45,10 @@ func clientCertificateResourceType(ctx context.Context) (provider.ResourceType, Description: "A description of the client certificate.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -86,6 +90,10 @@ func clientCertificateResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/apigateway/deployment_resource_gen.go b/internal/aws/apigateway/deployment_resource_gen.go index d393e41d6d..55a9e70bd9 100644 --- a/internal/aws/apigateway/deployment_resource_gen.go +++ b/internal/aws/apigateway/deployment_resource_gen.go @@ -57,6 +57,10 @@ func deploymentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The percentage (0-100) of traffic diverted to a canary deployment.", Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stage_variable_overrides": { // Property: StageVariableOverrides @@ -64,12 +68,20 @@ func deploymentResourceType(ctx context.Context) (provider.ResourceType, error) // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "use_stage_cache": { // Property: UseStageCache Description: "Whether the canary deployment uses the stage cache.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -105,6 +117,10 @@ func deploymentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "A description of the purpose of the API Gateway deployment.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rest_api_id": { // Property: RestApiId @@ -325,46 +341,78 @@ func deploymentResourceType(ctx context.Context) (provider.ResourceType, error) 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-. ", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "format": { // Property: Format 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. ", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cache_cluster_enabled": { // Property: CacheClusterEnabled Description: "Indicates whether cache clustering is enabled for the stage.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cache_cluster_size": { // Property: CacheClusterSize Description: "The size of the stage's cache cluster.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cache_data_encrypted": { // Property: CacheDataEncrypted Description: "The time-to-live (TTL) period, in seconds, that specifies how long API Gateway caches responses. ", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cache_ttl_in_seconds": { // Property: CacheTtlInSeconds Description: "The time-to-live (TTL) period, in seconds, that specifies how long API Gateway caches responses. ", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "caching_enabled": { // Property: CachingEnabled Description: "Indicates whether responses are cached and returned for requests. You must enable a cache cluster on the stage to cache responses.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "canary_setting": { // Property: CanarySetting @@ -376,6 +424,10 @@ func deploymentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The percent (0-100) of traffic diverted to a canary deployment.", Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stage_variable_overrides": { // Property: StageVariableOverrides @@ -383,46 +435,78 @@ func deploymentResourceType(ctx context.Context) (provider.ResourceType, error) // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "use_stage_cache": { // Property: UseStageCache Description: "Whether the canary deployment uses the stage cache or not.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "client_certificate_id": { // Property: ClientCertificateId Description: "The identifier of the client certificate that API Gateway uses to call your integration endpoints in the stage. ", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "data_trace_enabled": { // Property: DataTraceEnabled Description: "Indicates whether data trace logging is enabled for methods in the stage. API Gateway pushes these logs to Amazon CloudWatch Logs. ", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description Description: "A description of the purpose of the stage.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "documentation_version": { // Property: DocumentationVersion Description: "The version identifier of the API documentation snapshot.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "logging_level": { // Property: LoggingLevel Description: "The logging level for this method. For valid values, see the loggingLevel property of the Stage resource in the Amazon API Gateway API Reference. ", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "method_settings": { // Property: MethodSettings @@ -434,70 +518,118 @@ func deploymentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Indicates whether the cached responses are encrypted", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cache_ttl_in_seconds": { // Property: CacheTtlInSeconds Description: "The time-to-live (TTL) period, in seconds, that specifies how long API Gateway caches responses. ", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "caching_enabled": { // Property: CachingEnabled Description: "Indicates whether responses are cached and returned for requests. You must enable a cache cluster on the stage to cache responses.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "data_trace_enabled": { // Property: DataTraceEnabled Description: "Indicates whether data trace logging is enabled for methods in the stage. API Gateway pushes these logs to Amazon CloudWatch Logs. ", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "http_method": { // Property: HttpMethod Description: "The HTTP method.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "logging_level": { // Property: LoggingLevel Description: "The logging level for this method. For valid values, see the loggingLevel property of the Stage resource in the Amazon API Gateway API Reference. ", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "metrics_enabled": { // Property: MetricsEnabled Description: "Indicates whether Amazon CloudWatch metrics are enabled for methods in the stage.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_path": { // Property: ResourcePath Description: "The resource path for this method. Forward slashes (/) are encoded as ~1 and the initial slash must include a forward slash. ", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "throttling_burst_limit": { // Property: ThrottlingBurstLimit Description: "The number of burst requests per second that API Gateway permits across all APIs, stages, and methods in your AWS account.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "throttling_rate_limit": { // Property: ThrottlingRateLimit Description: "The number of steady-state requests per second that API Gateway permits across all APIs, stages, and methods in your AWS account.", Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "metrics_enabled": { // Property: MetricsEnabled Description: "Indicates whether Amazon CloudWatch metrics are enabled for methods in the stage.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -519,8 +651,10 @@ func deploymentResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "throttling_burst_limit": { @@ -528,18 +662,30 @@ func deploymentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The number of burst requests per second that API Gateway permits across all APIs, stages, and methods in your AWS account.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "throttling_rate_limit": { // Property: ThrottlingRateLimit Description: "The number of steady-state requests per second that API Gateway permits across all APIs, stages, and methods in your AWS account.", Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tracing_enabled": { // Property: TracingEnabled Description: "Specifies whether active tracing with X-ray is enabled for this stage.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "variables": { // Property: Variables @@ -547,10 +693,18 @@ func deploymentResourceType(ctx context.Context) (provider.ResourceType, error) // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // StageDescription is a write-only property. }, "stage_name": { @@ -563,6 +717,10 @@ func deploymentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "A name for the stage that API Gateway creates with this deployment. Use only alphanumeric characters.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // StageName is a write-only property. }, } diff --git a/internal/aws/apigateway/documentation_version_resource_gen.go b/internal/aws/apigateway/documentation_version_resource_gen.go index 37c763c200..0595b3aa7a 100644 --- a/internal/aws/apigateway/documentation_version_resource_gen.go +++ b/internal/aws/apigateway/documentation_version_resource_gen.go @@ -32,6 +32,10 @@ func documentationVersionResourceType(ctx context.Context) (provider.ResourceTyp Description: "The description of the API documentation snapshot.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "documentation_version": { // Property: DocumentationVersion diff --git a/internal/aws/apigateway/domain_name_resource_gen.go b/internal/aws/apigateway/domain_name_resource_gen.go index ea8aca1d4d..f93af58f70 100644 --- a/internal/aws/apigateway/domain_name_resource_gen.go +++ b/internal/aws/apigateway/domain_name_resource_gen.go @@ -29,6 +29,10 @@ func domainNameResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "distribution_domain_name": { // Property: DistributionDomainName @@ -89,10 +93,18 @@ func domainNameResourceType(ctx context.Context) (provider.ResourceType, error) // Property: Types Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "mutual_tls_authentication": { // Property: MutualTlsAuthentication @@ -115,15 +127,27 @@ func domainNameResourceType(ctx context.Context) (provider.ResourceType, error) // Property: TruststoreUri Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "truststore_version": { // Property: TruststoreVersion Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ownership_verification_certificate_arn": { // Property: OwnershipVerificationCertificateArn @@ -133,6 +157,10 @@ func domainNameResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "regional_certificate_arn": { // Property: RegionalCertificateArn @@ -142,6 +170,10 @@ func domainNameResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "regional_domain_name": { // Property: RegionalDomainName @@ -175,6 +207,10 @@ func domainNameResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -200,15 +236,27 @@ func domainNameResourceType(ctx context.Context) (provider.ResourceType, error) // Property: Key Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/apigateway/method_resource_gen.go b/internal/aws/apigateway/method_resource_gen.go index 38f9669a29..e3c4d528aa 100644 --- a/internal/aws/apigateway/method_resource_gen.go +++ b/internal/aws/apigateway/method_resource_gen.go @@ -32,6 +32,10 @@ func methodResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates whether the method requires clients to submit a valid API key.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "authorization_scopes": { // Property: AuthorizationScopes @@ -46,6 +50,10 @@ func methodResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A list of authorization scopes configured on the method.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "authorization_type": { // Property: AuthorizationType @@ -63,6 +71,7 @@ func methodResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The method's authorization type.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", @@ -71,6 +80,9 @@ func methodResourceType(ctx context.Context) (provider.ResourceType, error) { "COGNITO_USER_POOLS", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "authorizer_id": { // Property: AuthorizerId @@ -82,6 +94,10 @@ func methodResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The identifier of the authorizer to use on this method.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "http_method": { // Property: HttpMethod @@ -258,57 +274,85 @@ func methodResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A list of request parameters whose values API Gateway caches.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cache_namespace": { // Property: CacheNamespace Description: "An API-specific tag group of related cached parameters.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "connection_id": { // Property: ConnectionId Description: "The ID of the VpcLink used for the integration when connectionType=VPC_LINK, otherwise undefined.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "connection_type": { // Property: ConnectionType Description: "The type of the network connection to the integration endpoint.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "INTERNET", "VPC_LINK", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "content_handling": { // Property: ContentHandling Description: "Specifies how to handle request payload content type conversions.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CONVERT_TO_BINARY", "CONVERT_TO_TEXT", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "credentials": { // Property: Credentials Description: "The credentials that are required for the integration.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "integration_http_method": { // Property: IntegrationHttpMethod Description: "The integration's HTTP method type.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "integration_responses": { // Property: IntegrationResponses @@ -320,12 +364,16 @@ func methodResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies how to handle request payload content type conversions.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CONVERT_TO_BINARY", "CONVERT_TO_TEXT", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "response_parameters": { // Property: ResponseParameters @@ -333,6 +381,10 @@ func methodResourceType(ctx context.Context) (provider.ResourceType, error) { // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "response_templates": { // Property: ResponseTemplates @@ -340,12 +392,20 @@ func methodResourceType(ctx context.Context) (provider.ResourceType, error) { // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "selection_pattern": { // Property: SelectionPattern Description: "A regular expression that specifies which error strings or status codes from the backend map to the integration response.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status_code": { // Property: StatusCode @@ -356,15 +416,20 @@ func methodResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "passthrough_behavior": { // Property: PassthroughBehavior Description: "Indicates when API Gateway passes requests to the targeted backend.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "WHEN_NO_MATCH", @@ -372,6 +437,9 @@ func methodResourceType(ctx context.Context) (provider.ResourceType, error) { "NEVER", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "request_parameters": { // Property: RequestParameters @@ -379,6 +447,10 @@ func methodResourceType(ctx context.Context) (provider.ResourceType, error) { // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "request_templates": { // Property: RequestTemplates @@ -386,15 +458,23 @@ func methodResourceType(ctx context.Context) (provider.ResourceType, error) { // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "timeout_in_millis": { // Property: TimeoutInMillis Description: "Custom timeout between 50 and 29,000 milliseconds.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(50, 29000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type @@ -416,10 +496,18 @@ func methodResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The Uniform Resource Identifier (URI) for the integration.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "method_responses": { // Property: MethodResponses @@ -471,6 +559,10 @@ func methodResourceType(ctx context.Context) (provider.ResourceType, error) { // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "response_parameters": { // Property: ResponseParameters @@ -478,6 +570,10 @@ func methodResourceType(ctx context.Context) (provider.ResourceType, error) { // Pattern: "" Type: types.MapType{ElemType: types.BoolType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status_code": { // Property: StatusCode @@ -488,9 +584,13 @@ func methodResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "operation_name": { // Property: OperationName @@ -502,6 +602,10 @@ func methodResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A friendly operation name for the method.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "request_models": { // Property: RequestModels @@ -520,6 +624,10 @@ func methodResourceType(ctx context.Context) (provider.ResourceType, error) { // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "request_parameters": { // Property: RequestParameters @@ -538,6 +646,10 @@ func methodResourceType(ctx context.Context) (provider.ResourceType, error) { // Pattern: "" Type: types.MapType{ElemType: types.BoolType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "request_validator_id": { // Property: RequestValidatorId @@ -549,6 +661,10 @@ func methodResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The ID of the associated request validator.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_id": { // Property: ResourceId diff --git a/internal/aws/apigateway/model_resource_gen.go b/internal/aws/apigateway/model_resource_gen.go index db64fba876..fbb55bb4a1 100644 --- a/internal/aws/apigateway/model_resource_gen.go +++ b/internal/aws/apigateway/model_resource_gen.go @@ -47,6 +47,10 @@ func modelResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A description that identifies this model.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -88,6 +92,10 @@ func modelResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The schema to use to transform data to one or more output formats. Specify null ({}) if you don't want to specify a schema.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/apigateway/request_validator_resource_gen.go b/internal/aws/apigateway/request_validator_resource_gen.go index 6be6ef13ff..707064153e 100644 --- a/internal/aws/apigateway/request_validator_resource_gen.go +++ b/internal/aws/apigateway/request_validator_resource_gen.go @@ -75,6 +75,10 @@ func requestValidatorResourceType(ctx context.Context) (provider.ResourceType, e Description: "Indicates whether to validate the request body according to the configured schema for the targeted API and method. ", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "validate_request_parameters": { // Property: ValidateRequestParameters @@ -86,6 +90,10 @@ func requestValidatorResourceType(ctx context.Context) (provider.ResourceType, e Description: "Indicates whether to validate request parameters.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/apigateway/stage_resource_gen.go b/internal/aws/apigateway/stage_resource_gen.go index 0a1bca70b9..146d72af36 100644 --- a/internal/aws/apigateway/stage_resource_gen.go +++ b/internal/aws/apigateway/stage_resource_gen.go @@ -48,16 +48,28 @@ func stageResourceType(ctx context.Context) (provider.ResourceType, error) { 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-. This parameter is required to enable access logging.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "format": { // Property: Format Description: "A single line format of the access logs of data, as specified by selected $context variables (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html#context-variable-reference). The format must include at least $context.requestId. This parameter is required to enable access logging.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cache_cluster_enabled": { // Property: CacheClusterEnabled @@ -69,6 +81,10 @@ func stageResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates whether cache clustering is enabled for the stage.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cache_cluster_size": { // Property: CacheClusterSize @@ -80,6 +96,10 @@ func stageResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The stage's cache cluster size.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "canary_setting": { // Property: CanarySetting @@ -123,15 +143,23 @@ func stageResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The identifier of the deployment that the stage points to.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "percent_traffic": { // Property: PercentTraffic Description: "The percentage (0-100) of traffic diverted to a canary deployment.", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatBetween(0.000000, 100.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stage_variable_overrides": { // Property: StageVariableOverrides @@ -139,16 +167,28 @@ func stageResourceType(ctx context.Context) (provider.ResourceType, error) { // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "use_stage_cache": { // Property: UseStageCache Description: "Whether the canary deployment uses the stage cache or not.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "client_certificate_id": { // Property: ClientCertificateId @@ -160,6 +200,10 @@ func stageResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The ID of the client certificate that API Gateway uses to call your integration endpoints in the stage. ", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "deployment_id": { // Property: DeploymentId @@ -171,6 +215,10 @@ func stageResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The ID of the deployment that the stage is associated with. This parameter is required to create a stage. ", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -182,6 +230,10 @@ func stageResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A description of the stage.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "documentation_version": { // Property: DocumentationVersion @@ -193,6 +245,10 @@ func stageResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The version ID of the API documentation snapshot.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "method_settings": { // Property: MethodSettings @@ -260,70 +316,114 @@ func stageResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates whether the cached responses are encrypted.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cache_ttl_in_seconds": { // Property: CacheTtlInSeconds Description: "The time-to-live (TTL) period, in seconds, that specifies how long API Gateway caches responses.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "caching_enabled": { // Property: CachingEnabled Description: "Indicates whether responses are cached and returned for requests. You must enable a cache cluster on the stage to cache responses.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "data_trace_enabled": { // Property: DataTraceEnabled Description: "Indicates whether data trace logging is enabled for methods in the stage. API Gateway pushes these logs to Amazon CloudWatch Logs.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "http_method": { // Property: HttpMethod Description: "The HTTP method. You can use an asterisk (*) as a wildcard to apply method settings to multiple methods.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "logging_level": { // Property: LoggingLevel Description: "The logging level for this method. For valid values, see the loggingLevel property of the Stage (https://docs.aws.amazon.com/apigateway/api-reference/resource/stage/#loggingLevel) resource in the Amazon API Gateway API Reference.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "metrics_enabled": { // Property: MetricsEnabled Description: "Indicates whether Amazon CloudWatch metrics are enabled for methods in the stage.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_path": { // Property: ResourcePath 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 (/). You can use an asterisk (*) as a wildcard to apply method settings to multiple methods.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "throttling_burst_limit": { // Property: ThrottlingBurstLimit Description: "The number of burst requests per second that API Gateway permits across all APIs, stages, and methods in your AWS account.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "throttling_rate_limit": { // Property: ThrottlingRateLimit Description: "The number of steady-state requests per second that API Gateway permits across all APIs, stages, and methods in your AWS account.", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatAtLeast(0.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rest_api_id": { // Property: RestApiId @@ -411,8 +511,10 @@ func stageResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "tracing_enabled": { @@ -425,6 +527,10 @@ func stageResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies whether active X-Ray tracing is enabled for this stage.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "variables": { // Property: Variables @@ -443,6 +549,10 @@ func stageResourceType(ctx context.Context) (provider.ResourceType, error) { // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/apigateway/usage_plan_resource_gen.go b/internal/aws/apigateway/usage_plan_resource_gen.go index df1e4bef30..27da72a301 100644 --- a/internal/aws/apigateway/usage_plan_resource_gen.go +++ b/internal/aws/apigateway/usage_plan_resource_gen.go @@ -75,12 +75,20 @@ func usagePlanResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The ID of an API that is in the specified Stage property that you want to associate with the usage plan.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stage": { // Property: Stage Description: "The name of the stage to associate with the usage plan.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "throttle": { // Property: Throttle @@ -93,29 +101,45 @@ func usagePlanResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The maximum API request rate limit over a time ranging from one to a few seconds. The maximum API request rate limit depends on whether the underlying token bucket is at its full capacity.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rate_limit": { // Property: RateLimit Description: "The API request steady-state rate limit (average requests per second over an extended period of time).", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatAtLeast(0.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -127,6 +151,10 @@ func usagePlanResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A description of the usage plan.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id @@ -174,28 +202,44 @@ func usagePlanResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The maximum number of requests that users can make within the specified time period.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "offset": { // Property: Offset Description: "For the initial time period, the number of requests to subtract from the specified limit. When you first implement a usage plan, the plan might start in the middle of the week or month. With this property, you can decrease the limit for this initial time period.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "period": { // Property: Period Description: "The time period for which the maximum limit of requests applies, such as DAY or WEEK. For valid values, see the period property for the UsagePlan resource in the Amazon API Gateway REST API Reference.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -252,8 +296,10 @@ func usagePlanResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "throttle": { @@ -284,22 +330,34 @@ func usagePlanResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The maximum API request rate limit over a time ranging from one to a few seconds. The maximum API request rate limit depends on whether the underlying token bucket is at its full capacity.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rate_limit": { // Property: RateLimit Description: "The API request steady-state rate limit (average requests per second over an extended period of time).", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatAtLeast(0.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "usage_plan_name": { // Property: UsagePlanName @@ -311,6 +369,10 @@ func usagePlanResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A name for the usage plan.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/apigatewayv2/vpc_link_resource_gen.go b/internal/aws/apigatewayv2/vpc_link_resource_gen.go index 89234ec0a1..003e773400 100644 --- a/internal/aws/apigatewayv2/vpc_link_resource_gen.go +++ b/internal/aws/apigatewayv2/vpc_link_resource_gen.go @@ -81,6 +81,10 @@ func vpcLinkResourceType(ctx context.Context) (provider.ResourceType, error) { // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_link_id": { // Property: VpcLinkId diff --git a/internal/aws/appflow/connector_profile_resource_gen.go b/internal/aws/appflow/connector_profile_resource_gen.go index a07bf6acf1..714ba36a3f 100644 --- a/internal/aws/appflow/connector_profile_resource_gen.go +++ b/internal/aws/appflow/connector_profile_resource_gen.go @@ -56,10 +56,14 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e Description: "The label of the connector. The label is unique for each ConnectorRegistration in your AWS account. Only needed if calling for CUSTOMCONNECTOR connector type/.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("[\\w!@#.-]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "connector_profile_arn": { // Property: ConnectorProfileArn @@ -1056,6 +1060,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "custom_connector": { // Property: CustomConnector @@ -1078,14 +1086,22 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e // Property: ApiSecretKey Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "authentication_type": { // Property: AuthenticationType @@ -1125,6 +1141,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "custom": { // Property: Custom @@ -1136,6 +1156,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "custom_authentication_type": { // Property: CustomAuthenticationType @@ -1149,6 +1173,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "oauth_2": { // Property: Oauth2 @@ -1158,28 +1186,40 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e // Property: AccessToken Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "client_id": { // Property: ClientId Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "client_secret": { // Property: ClientSecret Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "o_auth_request": { // Property: OAuthRequest @@ -1190,33 +1230,57 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e Description: "The code provided by the connector when it has been authenticated via the connected app.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "redirect_uri": { // Property: RedirectUri Description: "The URL to which the authentication server redirects the browser after authorization has been\ngranted.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "refresh_token": { // Property: RefreshToken Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "datadog": { // Property: Datadog @@ -1245,6 +1309,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dynatrace": { // Property: Dynatrace @@ -1263,6 +1331,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "google_analytics": { // Property: GoogleAnalytics @@ -1273,10 +1345,14 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e Description: "The credentials used to access protected resources.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "client_id": { // Property: ClientId @@ -1308,30 +1384,50 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e Description: "The code provided by the connector when it has been authenticated via the connected app.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "redirect_uri": { // Property: RedirectUri Description: "The URL to which the authentication server redirects the browser after authorization has been\ngranted.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "refresh_token": { // Property: RefreshToken Description: "The credentials used to acquire new access tokens.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "infor_nexus": { // Property: InforNexus @@ -1380,6 +1476,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "marketo": { // Property: Marketo @@ -1390,10 +1490,14 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e Description: "The credentials used to access protected resources.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "client_id": { // Property: ClientId @@ -1425,20 +1529,36 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e Description: "The code provided by the connector when it has been authenticated via the connected app.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "redirect_uri": { // Property: RedirectUri Description: "The URL to which the authentication server redirects the browser after authorization has been\ngranted.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "redshift": { // Property: Redshift @@ -1467,6 +1587,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sapo_data": { // Property: SAPOData @@ -1497,6 +1621,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "o_auth_credentials": { // Property: OAuthCredentials @@ -1506,28 +1634,40 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e // Property: AccessToken Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "client_id": { // Property: ClientId Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "client_secret": { // Property: ClientSecret Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "connector_o_auth_request": { // Property: ConnectorOAuthRequest @@ -1538,33 +1678,57 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e Description: "The code provided by the connector when it has been authenticated via the connected app.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "redirect_uri": { // Property: RedirectUri Description: "The URL to which the authentication server redirects the browser after authorization has been\ngranted.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "refresh_token": { // Property: RefreshToken Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "salesforce": { // Property: Salesforce @@ -1575,20 +1739,28 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e Description: "The credentials used to access protected resources.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "client_credentials_arn": { // Property: ClientCredentialsArn Description: "The client credentials to fetch access token and refresh token.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2048), validate.StringMatch(regexp.MustCompile("arn:aws:secretsmanager:.*:[0-9]+:.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "connector_o_auth_request": { // Property: ConnectorOAuthRequest @@ -1600,30 +1772,50 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e Description: "The code provided by the connector when it has been authenticated via the connected app.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "redirect_uri": { // Property: RedirectUri Description: "The URL to which the authentication server redirects the browser after authorization has been\ngranted.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "refresh_token": { // Property: RefreshToken Description: "The credentials used to acquire new access tokens.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "service_now": { // Property: ServiceNow @@ -1652,6 +1844,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "singular": { // Property: Singular @@ -1670,6 +1866,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "slack": { // Property: Slack @@ -1680,10 +1880,14 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e Description: "The credentials used to access protected resources.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "client_id": { // Property: ClientId @@ -1715,20 +1919,36 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e Description: "The code provided by the connector when it has been authenticated via the connected app.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "redirect_uri": { // Property: RedirectUri Description: "The URL to which the authentication server redirects the browser after authorization has been\ngranted.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "snowflake": { // Property: Snowflake @@ -1757,6 +1977,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "trendmicro": { // Property: Trendmicro @@ -1775,6 +1999,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "veeva": { // Property: Veeva @@ -1803,6 +2031,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "zendesk": { // Property: Zendesk @@ -1813,10 +2045,14 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e Description: "The credentials used to access protected resources.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "client_id": { // Property: ClientId @@ -1848,20 +2084,36 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e Description: "The code provided by the connector when it has been authenticated via the connected app.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "redirect_uri": { // Property: RedirectUri Description: "The URL to which the authentication server redirects the browser after authorization has been\ngranted.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1884,21 +2136,29 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e // Property: OAuth2GrantType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CLIENT_CREDENTIALS", "AUTHORIZATION_CODE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "token_url": { // Property: TokenUrl Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), validate.StringMatch(regexp.MustCompile("^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "token_url_custom_properties": { // Property: TokenUrlCustomProperties @@ -1906,10 +2166,18 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "profile_properties": { // Property: ProfileProperties @@ -1917,10 +2185,18 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "datadog": { // Property: Datadog @@ -1939,6 +2215,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dynatrace": { // Property: Dynatrace @@ -1957,6 +2237,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "infor_nexus": { // Property: InforNexus @@ -1975,6 +2259,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "marketo": { // Property: Marketo @@ -1993,6 +2281,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "redshift": { // Property: Redshift @@ -2013,9 +2305,13 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e Description: "The object key for the destination bucket in which Amazon AppFlow will place the ?les.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "database_url": { // Property: DatabaseUrl @@ -2040,6 +2336,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sapo_data": { // Property: SAPOData @@ -2049,37 +2349,53 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e // Property: ApplicationHostUrl Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "application_service_path": { // Property: ApplicationServicePath Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "client_number": { // Property: ClientNumber Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 3), validate.StringMatch(regexp.MustCompile("^\\d{3}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "logon_language": { // Property: LogonLanguage Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9_]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "o_auth_properties": { // Property: OAuthProperties @@ -2089,54 +2405,82 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e // Property: AuthCodeUrl Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "o_auth_scopes": { // Property: OAuthScopes Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), validate.ArrayForEach(validate.StringLenAtMost(128)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("[/\\w]*"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "token_url": { // Property: TokenUrl Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "port_number": { // Property: PortNumber Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 65535), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "private_link_service_name": { // Property: PrivateLinkServiceName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "salesforce": { // Property: Salesforce @@ -2147,19 +2491,31 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e Description: "The location of the Salesforce resource", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "is_sandbox_environment": { // Property: isSandboxEnvironment Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "service_now": { // Property: ServiceNow @@ -2178,6 +2534,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "slack": { // Property: Slack @@ -2196,6 +2556,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "snowflake": { // Property: Snowflake @@ -2206,10 +2570,14 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e Description: "The name of the account.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bucket_name": { // Property: BucketName @@ -2226,29 +2594,41 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e Description: "The bucket prefix that refers to the Amazon S3 bucket associated with Snow?ake.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "private_link_service_name": { // Property: PrivateLinkServiceName Description: "The Snow?ake Private Link service name to be used for private data transfers.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "region": { // Property: Region Description: "The region of the Snow?ake account.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(64), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stage": { // Property: Stage @@ -2273,6 +2653,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "veeva": { // Property: Veeva @@ -2291,6 +2675,10 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "zendesk": { // Property: Zendesk @@ -2309,14 +2697,26 @@ func connectorProfileResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // ConnectorProfileConfig is a write-only property. }, "connector_profile_name": { diff --git a/internal/aws/appflow/flow_resource_gen.go b/internal/aws/appflow/flow_resource_gen.go index 7e23644c8a..e25a536052 100644 --- a/internal/aws/appflow/flow_resource_gen.go +++ b/internal/aws/appflow/flow_resource_gen.go @@ -35,10 +35,14 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Description of the flow.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2048), validate.StringMatch(regexp.MustCompile("[\\w!@#\\-.?,\\s]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_flow_config_list": { // Property: DestinationFlowConfigList @@ -647,20 +651,28 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The API version that the destination connector uses.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "connector_profile_name": { // Property: ConnectorProfileName Description: "Name of destination connector profile", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("[\\w/!@#+=.-]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "connector_type": { // Property: ConnectorType @@ -708,6 +720,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "entity_name": { // Property: EntityName @@ -726,38 +742,59 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: BucketName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 63), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bucket_prefix": { // Property: BucketPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "fail_on_first_error": { // Property: FailOnFirstError Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id_field_names": { // Property: IdFieldNames Description: "List of fields used as ID when performing a write operation.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "write_operation_type": { // Property: WriteOperationType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "INSERT", @@ -766,10 +803,17 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "DELETE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "event_bridge": { // Property: EventBridge @@ -783,27 +827,43 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: BucketName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 63), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bucket_prefix": { // Property: BucketPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "fail_on_first_error": { // Property: FailOnFirstError Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "object": { // Property: Object @@ -817,6 +877,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lookout_metrics": { // Property: LookoutMetrics @@ -826,14 +890,22 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Object Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "marketo": { // Property: Marketo @@ -847,27 +919,43 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: BucketName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 63), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bucket_prefix": { // Property: BucketPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "fail_on_first_error": { // Property: FailOnFirstError Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "object": { // Property: Object @@ -881,6 +969,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "redshift": { // Property: Redshift @@ -890,9 +982,13 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: BucketPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "error_handling_config": { // Property: ErrorHandlingConfig @@ -902,27 +998,43 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: BucketName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 63), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bucket_prefix": { // Property: BucketPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "fail_on_first_error": { // Property: FailOnFirstError Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "intermediate_bucket_name": { // Property: IntermediateBucketName @@ -945,6 +1057,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3": { // Property: S3 @@ -963,9 +1079,13 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: BucketPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_output_format_config": { // Property: S3OutputFormatConfig @@ -979,21 +1099,30 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: AggregationType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "None", "SingleFile", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "file_type": { // Property: FileType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CSV", @@ -1001,6 +1130,9 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "PARQUET", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix_config": { // Property: PrefixConfig @@ -1010,6 +1142,7 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: PrefixFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "YEAR", @@ -1019,11 +1152,15 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "MINUTE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix_type": { // Property: PrefixType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "FILENAME", @@ -1031,23 +1168,42 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "PATH_AND_FILENAME", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "preserve_source_data_typing": { // Property: PreserveSourceDataTyping Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sapo_data": { // Property: SAPOData @@ -1061,33 +1217,53 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: BucketName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 63), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bucket_prefix": { // Property: BucketPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "fail_on_first_error": { // Property: FailOnFirstError Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id_field_names": { // Property: IdFieldNames Description: "List of fields used as ID when performing a write operation.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "object_path": { // Property: ObjectPath @@ -1106,27 +1282,40 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: BucketName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 63), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bucket_prefix": { // Property: BucketPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "write_operation_type": { // Property: WriteOperationType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "INSERT", @@ -1135,10 +1324,17 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "DELETE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "salesforce": { // Property: Salesforce @@ -1152,33 +1348,53 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: BucketName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 63), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bucket_prefix": { // Property: BucketPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "fail_on_first_error": { // Property: FailOnFirstError Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id_field_names": { // Property: IdFieldNames Description: "List of fields used as ID when performing a write operation.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "object": { // Property: Object @@ -1193,6 +1409,7 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: WriteOperationType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "INSERT", @@ -1201,10 +1418,17 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "DELETE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "snowflake": { // Property: Snowflake @@ -1214,9 +1438,13 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: BucketPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "error_handling_config": { // Property: ErrorHandlingConfig @@ -1226,27 +1454,43 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: BucketName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 63), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bucket_prefix": { // Property: BucketPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "fail_on_first_error": { // Property: FailOnFirstError Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "intermediate_bucket_name": { // Property: IntermediateBucketName @@ -1269,6 +1513,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "upsolver": { // Property: Upsolver @@ -1287,9 +1535,13 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: BucketPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_output_format_config": { // Property: S3OutputFormatConfig @@ -1303,21 +1555,30 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: AggregationType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "None", "SingleFile", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "file_type": { // Property: FileType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CSV", @@ -1325,6 +1586,9 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "PARQUET", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix_config": { // Property: PrefixConfig @@ -1334,6 +1598,7 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: PrefixFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "YEAR", @@ -1343,11 +1608,15 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "MINUTE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix_type": { // Property: PrefixType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "FILENAME", @@ -1355,6 +1624,9 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "PATH_AND_FILENAME", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1367,6 +1639,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "zendesk": { // Property: Zendesk @@ -1380,33 +1656,53 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: BucketName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 63), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bucket_prefix": { // Property: BucketPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "fail_on_first_error": { // Property: FailOnFirstError Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id_field_names": { // Property: IdFieldNames Description: "List of fields used as ID when performing a write operation.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "object": { // Property: Object @@ -1421,6 +1717,7 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: WriteOperationType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "INSERT", @@ -1429,10 +1726,17 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "DELETE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1856,20 +2160,28 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The API version that the destination connector uses.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "connector_profile_name": { // Property: ConnectorProfileName Description: "Name of source connector profile", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("[\\w/!@#+=.-]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "connector_type": { // Property: ConnectorType @@ -1912,13 +2224,21 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Name of the datetime/timestamp data type field to be used for importing incremental records from the source", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_connector_properties": { // Property: SourceConnectorProperties @@ -1941,6 +2261,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "custom_connector": { // Property: CustomConnector @@ -1952,6 +2276,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "entity_name": { // Property: EntityName @@ -1965,6 +2293,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "datadog": { // Property: Datadog @@ -1982,6 +2314,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dynatrace": { // Property: Dynatrace @@ -1999,6 +2335,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "google_analytics": { // Property: GoogleAnalytics @@ -2016,6 +2356,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "infor_nexus": { // Property: InforNexus @@ -2033,6 +2377,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "marketo": { // Property: Marketo @@ -2050,6 +2398,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3": { // Property: S3 @@ -2080,20 +2432,32 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: S3InputFileType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CSV", "JSON", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sapo_data": { // Property: SAPOData @@ -2111,6 +2475,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "salesforce": { // Property: Salesforce @@ -2120,11 +2488,19 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: EnableDynamicFieldUpdate Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "include_deleted_records": { // Property: IncludeDeletedRecords Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "object": { // Property: Object @@ -2138,6 +2514,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "service_now": { // Property: ServiceNow @@ -2155,6 +2535,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "singular": { // Property: Singular @@ -2172,6 +2556,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "slack": { // Property: Slack @@ -2189,6 +2577,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "trendmicro": { // Property: Trendmicro @@ -2206,6 +2598,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "veeva": { // Property: Veeva @@ -2215,25 +2611,41 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: DocumentType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile("[\\s\\w_-]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "include_all_versions": { // Property: IncludeAllVersions Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "include_renditions": { // Property: IncludeRenditions Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "include_source_files": { // Property: IncludeSourceFiles Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "object": { // Property: Object @@ -2247,6 +2659,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "zendesk": { // Property: Zendesk @@ -2264,6 +2680,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -2327,6 +2747,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tasks": { // Property: Tasks @@ -2756,16 +3180,21 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Amplitude Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "BETWEEN", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "custom_connector": { // Property: CustomConnector Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PROJECTION", @@ -2791,11 +3220,15 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "NO_OP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "datadog": { // Property: Datadog Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PROJECTION", @@ -2815,11 +3248,15 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "NO_OP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dynatrace": { // Property: Dynatrace Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PROJECTION", @@ -2839,22 +3276,30 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "NO_OP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "google_analytics": { // Property: GoogleAnalytics Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PROJECTION", "BETWEEN", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "infor_nexus": { // Property: InforNexus Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PROJECTION", @@ -2874,11 +3319,15 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "NO_OP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "marketo": { // Property: Marketo Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PROJECTION", @@ -2899,11 +3348,15 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "NO_OP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3": { // Property: S3 Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PROJECTION", @@ -2928,11 +3381,15 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "NO_OP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sapo_data": { // Property: SAPOData Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PROJECTION", @@ -2958,11 +3415,15 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "NO_OP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "salesforce": { // Property: Salesforce Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PROJECTION", @@ -2988,11 +3449,15 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "NO_OP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "service_now": { // Property: ServiceNow Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PROJECTION", @@ -3018,11 +3483,15 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "NO_OP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "singular": { // Property: Singular Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PROJECTION", @@ -3041,11 +3510,15 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "NO_OP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "slack": { // Property: Slack Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PROJECTION", @@ -3065,11 +3538,15 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "NO_OP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "trendmicro": { // Property: Trendmicro Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PROJECTION", @@ -3088,11 +3565,15 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "NO_OP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "veeva": { // Property: Veeva Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PROJECTION", @@ -3117,11 +3598,15 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "NO_OP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "zendesk": { // Property: Zendesk Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PROJECTION", @@ -3140,19 +3625,30 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "NO_OP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_field": { // Property: DestinationField Description: "A field value on which source field should be validated", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_fields": { // Property: SourceFields @@ -3201,6 +3697,10 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "task_type": { // Property: TaskType @@ -3304,30 +3804,46 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: DataPullMode Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Incremental", "Complete", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "first_execution_from": { // Property: FirstExecutionFrom Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "flow_error_deactivation_threshold": { // Property: FlowErrorDeactivationThreshold Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "schedule_end_time": { // Property: ScheduleEndTime Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "schedule_expression": { // Property: ScheduleExpression @@ -3341,26 +3857,42 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: ScheduleOffset Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatBetween(0.000000, 36000.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "schedule_start_time": { // Property: ScheduleStartTime Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "time_zone": { // Property: TimeZone Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "trigger_type": { // Property: TriggerType diff --git a/internal/aws/appintegrations/data_integration_resource_gen.go b/internal/aws/appintegrations/data_integration_resource_gen.go index af5cbd2dd6..3cc8d06caa 100644 --- a/internal/aws/appintegrations/data_integration_resource_gen.go +++ b/internal/aws/appintegrations/data_integration_resource_gen.go @@ -52,9 +52,13 @@ func dataIntegrationResourceType(ctx context.Context) (provider.ResourceType, er Description: "The data integration description.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id @@ -266,9 +270,13 @@ func dataIntegrationResourceType(ctx context.Context) (provider.ResourceType, er }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/appintegrations/event_integration_resource_gen.go b/internal/aws/appintegrations/event_integration_resource_gen.go index ba6f658528..942615fb43 100644 --- a/internal/aws/appintegrations/event_integration_resource_gen.go +++ b/internal/aws/appintegrations/event_integration_resource_gen.go @@ -121,43 +121,63 @@ func eventIntegrationResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "client_id": { // Property: ClientId Description: "The identifier for the client that is associated with the event integration.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "event_bridge_rule_name": { // Property: EventBridgeRuleName Description: "The name of the Eventbridge rule.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9/\\._\\-]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "event_integration_association_arn": { // Property: EventIntegrationAssociationArn Description: "The Amazon Resource Name (ARN) for the event integration association.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "event_integration_association_id": { // Property: EventIntegrationAssociationId Description: "The identifier for the event integration association.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -178,9 +198,13 @@ func eventIntegrationResourceType(ctx context.Context) (provider.ResourceType, e Description: "The event integration description.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "event_bridge_bus": { // Property: EventBridgeBus @@ -337,9 +361,13 @@ func eventIntegrationResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/applicationinsights/application_resource_gen.go b/internal/aws/applicationinsights/application_resource_gen.go index 372115efa0..4bb6311f0d 100644 --- a/internal/aws/applicationinsights/application_resource_gen.go +++ b/internal/aws/applicationinsights/application_resource_gen.go @@ -47,6 +47,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "If set to true, application will be configured with recommended monitoring configuration.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cwe_monitor_enabled": { // Property: CWEMonitorEnabled @@ -58,6 +62,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Indicates whether Application Insights can listen to CloudWatch events for the application resources.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "component_monitoring_settings": { // Property: ComponentMonitoringSettings @@ -901,10 +909,14 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The ARN of the compnonent.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(20, 300), validate.StringMatch(regexp.MustCompile("^arn:aws(-[\\w]+)*:[\\w\\d-]+:([\\w\\d-]*)?:[\\w\\d_-]*([:/].+)*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "component_configuration_mode": { // Property: ComponentConfigurationMode @@ -924,10 +936,14 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The name of the component.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), validate.StringMatch(regexp.MustCompile("^[\\d\\w\\-_.+]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "custom_component_configuration": { // Property: CustomComponentConfiguration @@ -953,6 +969,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "alarms": { // Property: Alarms @@ -973,6 +993,7 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Indicates the degree of outage when the alarm goes off.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "HIGH", @@ -980,10 +1001,17 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) "LOW", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ha_cluster_prometheus_exporter": { // Property: HAClusterPrometheusExporter @@ -995,10 +1023,18 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Prometheus exporter port.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "hana_prometheus_exporter": { // Property: HANAPrometheusExporter @@ -1034,10 +1070,18 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Prometheus exporter port.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "jmx_prometheus_exporter": { // Property: JMXPrometheusExporter @@ -1049,22 +1093,38 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Java agent host port", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "jmxurl": { // Property: JMXURL Description: "JMX service URL.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prometheus_port": { // Property: PrometheusPort Description: "Prometheus exporter port.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "logs": { // Property: Logs @@ -1076,6 +1136,7 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The type of encoding of the logs to be monitored.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "utf-8", @@ -1083,26 +1144,37 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) "ascii", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_group_name": { // Property: LogGroupName Description: "The CloudWatch log group name to be associated to the monitored log.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("[\\.\\-_/#A-Za-z0-9]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_path": { // Property: LogPath Description: "The path of the logs to be monitored.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 260), validate.StringMatch(regexp.MustCompile("^([a-zA-Z]:\\\\[\\\\\\S|*\\S]?.*|/[^\"']*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_type": { // Property: LogType @@ -1118,14 +1190,22 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The name of the log pattern set.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 30), validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9.-_]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "windows_events": { // Property: WindowsEvents @@ -1173,18 +1253,30 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The name of the log pattern set.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 30), validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9.-_]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sub_component_type_configurations": { // Property: SubComponentTypeConfigurations @@ -1210,6 +1302,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "logs": { // Property: Logs @@ -1221,6 +1317,7 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The type of encoding of the logs to be monitored.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "utf-8", @@ -1228,26 +1325,37 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) "ascii", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_group_name": { // Property: LogGroupName Description: "The CloudWatch log group name to be associated to the monitored log.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("[\\.\\-_/#A-Za-z0-9]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_path": { // Property: LogPath Description: "The path of the logs to be monitored.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 260), validate.StringMatch(regexp.MustCompile("^([a-zA-Z]:\\\\[\\\\\\S|*\\S]?.*|/[^\"']*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_type": { // Property: LogType @@ -1263,14 +1371,22 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The name of the log pattern set.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 30), validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9.-_]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "windows_events": { // Property: WindowsEvents @@ -1318,14 +1434,22 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The name of the log pattern set.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 30), validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9.-_]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1346,13 +1470,21 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "default_overwrite_component_configuration": { // Property: DefaultOverwriteComponentConfiguration @@ -1378,6 +1510,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "alarms": { // Property: Alarms @@ -1398,6 +1534,7 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Indicates the degree of outage when the alarm goes off.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "HIGH", @@ -1405,10 +1542,17 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) "LOW", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ha_cluster_prometheus_exporter": { // Property: HAClusterPrometheusExporter @@ -1420,10 +1564,18 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Prometheus exporter port.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "hana_prometheus_exporter": { // Property: HANAPrometheusExporter @@ -1459,10 +1611,18 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Prometheus exporter port.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "jmx_prometheus_exporter": { // Property: JMXPrometheusExporter @@ -1474,22 +1634,38 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Java agent host port", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "jmxurl": { // Property: JMXURL Description: "JMX service URL.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prometheus_port": { // Property: PrometheusPort Description: "Prometheus exporter port.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "logs": { // Property: Logs @@ -1501,6 +1677,7 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The type of encoding of the logs to be monitored.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "utf-8", @@ -1508,26 +1685,37 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) "ascii", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_group_name": { // Property: LogGroupName Description: "The CloudWatch log group name to be associated to the monitored log.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("[\\.\\-_/#A-Za-z0-9]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_path": { // Property: LogPath Description: "The path of the logs to be monitored.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 260), validate.StringMatch(regexp.MustCompile("^([a-zA-Z]:\\\\[\\\\\\S|*\\S]?.*|/[^\"']*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_type": { // Property: LogType @@ -1543,14 +1731,22 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The name of the log pattern set.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 30), validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9.-_]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "windows_events": { // Property: WindowsEvents @@ -1598,18 +1794,30 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The name of the log pattern set.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 30), validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9.-_]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sub_component_type_configurations": { // Property: SubComponentTypeConfigurations @@ -1635,6 +1843,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "logs": { // Property: Logs @@ -1646,6 +1858,7 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The type of encoding of the logs to be monitored.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "utf-8", @@ -1653,26 +1866,37 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) "ascii", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_group_name": { // Property: LogGroupName Description: "The CloudWatch log group name to be associated to the monitored log.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("[\\.\\-_/#A-Za-z0-9]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_path": { // Property: LogPath Description: "The path of the logs to be monitored.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 260), validate.StringMatch(regexp.MustCompile("^([a-zA-Z]:\\\\[\\\\\\S|*\\S]?.*|/[^\"']*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_type": { // Property: LogType @@ -1688,14 +1912,22 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The name of the log pattern set.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 30), validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9.-_]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "windows_events": { // Property: WindowsEvents @@ -1743,14 +1975,22 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The name of the log pattern set.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 30), validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9.-_]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1771,13 +2011,21 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tier": { // Property: Tier @@ -1791,6 +2039,7 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), validate.RequiredAttributes( @@ -1804,6 +2053,9 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) ), ), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "custom_components": { // Property: CustomComponents @@ -1871,9 +2123,13 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "grouping_type": { // Property: GroupingType @@ -1888,11 +2144,15 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The grouping type of the application", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ACCOUNT_BASED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_pattern_sets": { // Property: LogPatternSets @@ -2009,9 +2269,13 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ops_center_enabled": { // Property: OpsCenterEnabled @@ -2023,6 +2287,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "When set to true, creates opsItems for any problems detected on an application.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ops_item_sns_topic_arn": { // Property: OpsItemSNSTopicArn @@ -2037,10 +2305,14 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The SNS topic provided to Application Insights that is associated to the created opsItem.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(20, 300), validate.StringMatch(regexp.MustCompile("^arn:aws(-[\\w]+)*:[\\w\\d-]+:([\\w\\d-]*)?:[\\w\\d_-]*([:/].+)*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_group_name": { // Property: ResourceGroupName @@ -2119,9 +2391,13 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/apprunner/observability_configuration_resource_gen.go b/internal/aws/apprunner/observability_configuration_resource_gen.go index d9f4a6d14d..f07be5a16a 100644 --- a/internal/aws/apprunner/observability_configuration_resource_gen.go +++ b/internal/aws/apprunner/observability_configuration_resource_gen.go @@ -117,11 +117,19 @@ func observabilityConfigurationResourceType(ctx context.Context) (provider.Resou // Property: Key Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/apprunner/service_resource_gen.go b/internal/aws/apprunner/service_resource_gen.go index e0ad4b5c91..d4092aa091 100644 --- a/internal/aws/apprunner/service_resource_gen.go +++ b/internal/aws/apprunner/service_resource_gen.go @@ -36,9 +36,13 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Autoscaling configuration ARN", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1011), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // AutoScalingConfigurationArn is a write-only property. }, "encryption_configuration": { @@ -135,55 +139,83 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Health check Healthy Threshold", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 20), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "interval": { // Property: Interval Description: "Health check Interval", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "path": { // Property: Path Description: "Health check Path", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocol": { // Property: Protocol Description: "Health Check Protocol", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "TCP", "HTTP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "timeout": { // Property: Timeout Description: "Health check Timeout", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 20), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "unhealthy_threshold": { // Property: UnhealthyThreshold Description: "Health check Unhealthy Threshold", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 20), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_configuration": { // Property: InstanceConfiguration @@ -224,34 +256,50 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "CPU", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(4, 6), validate.StringMatch(regexp.MustCompile("1024|2048|(1|2) vCPU"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_role_arn": { // Property: InstanceRoleArn Description: "Instance Role Arn", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(29, 102), validate.StringMatch(regexp.MustCompile("arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b):iam::[0-9]{12}:role/[\\w+=,.@-]{1,64}"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "memory": { // Property: Memory Description: "Memory", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(4, 4), validate.StringMatch(regexp.MustCompile("2048|3072|4096|(2|3|4) GB"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "network_configuration": { // Property: NetworkConfiguration @@ -316,9 +364,13 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The Amazon Resource Name (ARN) of the App Runner VpcConnector.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(44, 1011), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -327,6 +379,10 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "observability_configuration": { // Property: ObservabilityConfiguration @@ -360,9 +416,13 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The Amazon Resource Name (ARN) of the App Runner ObservabilityConfiguration.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1011), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "observability_enabled": { // Property: ObservabilityEnabled @@ -373,6 +433,10 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "service_arn": { // Property: ServiceArn @@ -651,29 +715,45 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Access Role Arn", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(29, 102), validate.StringMatch(regexp.MustCompile("arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b):iam::[0-9]{12}:role/[\\w+=,.@-]{1,64}"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "connection_arn": { // Property: ConnectionArn Description: "Connection Arn", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1011), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "auto_deployments_enabled": { // Property: AutoDeploymentsEnabled Description: "Auto Deployment enabled", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "code_repository": { // Property: CodeRepository @@ -695,12 +775,20 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Build Command", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "port": { // Property: Port Description: "Port", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "runtime": { // Property: Runtime @@ -725,25 +813,45 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Name Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "start_command": { // Property: StartCommand Description: "Start Command", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "configuration_source": { // Property: ConfigurationSource @@ -760,6 +868,10 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "repository_url": { // Property: RepositoryUrl @@ -796,6 +908,10 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_repository": { // Property: ImageRepository @@ -812,6 +928,10 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Port", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "runtime_environment_variables": { // Property: RuntimeEnvironmentVariables @@ -821,25 +941,45 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Name Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "start_command": { // Property: StartCommand Description: "Start Command", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_identifier": { // Property: ImageIdentifier @@ -866,6 +1006,10 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -909,11 +1053,19 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Key Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/apprunner/vpc_connector_resource_gen.go b/internal/aws/apprunner/vpc_connector_resource_gen.go index 982c2036fc..f1dd35297e 100644 --- a/internal/aws/apprunner/vpc_connector_resource_gen.go +++ b/internal/aws/apprunner/vpc_connector_resource_gen.go @@ -93,11 +93,19 @@ func vpcConnectorResourceType(ctx context.Context) (provider.ResourceType, error // Property: Key Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/appstream/app_block_resource_gen.go b/internal/aws/appstream/app_block_resource_gen.go index c478e4edf4..0a93e823e4 100644 --- a/internal/aws/appstream/app_block_resource_gen.go +++ b/internal/aws/appstream/app_block_resource_gen.go @@ -130,6 +130,10 @@ func appBlockResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: ExecutableParameters Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "executable_path": { // Property: ExecutablePath @@ -243,6 +247,10 @@ func appBlockResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // Tags is a write-only property. }, } diff --git a/internal/aws/appstream/application_resource_gen.go b/internal/aws/appstream/application_resource_gen.go index f64007661c..ef53cf5aaa 100644 --- a/internal/aws/appstream/application_resource_gen.go +++ b/internal/aws/appstream/application_resource_gen.go @@ -55,6 +55,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "created_time": { // Property: CreatedTime @@ -76,6 +80,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "display_name": { // Property: DisplayName @@ -85,6 +93,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "icon_s3_location": { // Property: IconS3Location @@ -146,6 +158,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "launch_path": { // Property: LaunchPath @@ -224,6 +240,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // Tags is a write-only property. }, "working_directory": { @@ -234,6 +254,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/appstream/entitlement_resource_gen.go b/internal/aws/appstream/entitlement_resource_gen.go index 8f00629a7e..1c7dab34be 100644 --- a/internal/aws/appstream/entitlement_resource_gen.go +++ b/internal/aws/appstream/entitlement_resource_gen.go @@ -90,6 +90,10 @@ func entitlementResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_modified_time": { // Property: LastModifiedTime diff --git a/internal/aws/appsync/domain_name_resource_gen.go b/internal/aws/appsync/domain_name_resource_gen.go index 4c46f5765f..f25dc45d41 100644 --- a/internal/aws/appsync/domain_name_resource_gen.go +++ b/internal/aws/appsync/domain_name_resource_gen.go @@ -64,9 +64,13 @@ func domainNameResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "domain_name": { // Property: DomainName diff --git a/internal/aws/aps/rule_groups_namespace_resource_gen.go b/internal/aws/aps/rule_groups_namespace_resource_gen.go index 76a035b771..e46f73e915 100644 --- a/internal/aws/aps/rule_groups_namespace_resource_gen.go +++ b/internal/aws/aps/rule_groups_namespace_resource_gen.go @@ -124,6 +124,10 @@ func ruleGroupsNamespaceResourceType(ctx context.Context) (provider.ResourceType }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "workspace": { // Property: Workspace diff --git a/internal/aws/aps/workspace_resource_gen.go b/internal/aws/aps/workspace_resource_gen.go index d6aa4c40cd..4db019977f 100644 --- a/internal/aws/aps/workspace_resource_gen.go +++ b/internal/aws/aps/workspace_resource_gen.go @@ -32,6 +32,10 @@ func workspaceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The AMP Workspace alert manager definition data", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "alias": { // Property: Alias @@ -45,9 +49,13 @@ func workspaceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "AMP Workspace alias.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "arn": { // Property: Arn @@ -90,13 +98,21 @@ func workspaceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "CloudWatch log group ARN", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prometheus_endpoint": { // Property: PrometheusEndpoint @@ -168,6 +184,10 @@ func workspaceResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "workspace_id": { // Property: WorkspaceId diff --git a/internal/aws/athena/data_catalog_resource_gen.go b/internal/aws/athena/data_catalog_resource_gen.go index 3eeee2593c..490ef063d1 100644 --- a/internal/aws/athena/data_catalog_resource_gen.go +++ b/internal/aws/athena/data_catalog_resource_gen.go @@ -34,9 +34,13 @@ func dataCatalogResourceType(ctx context.Context) (provider.ResourceType, error) Description: "A description of the data catalog to be created. ", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -75,6 +79,10 @@ func dataCatalogResourceType(ctx context.Context) (provider.ResourceType, error) // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -126,8 +134,10 @@ func dataCatalogResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "type": { diff --git a/internal/aws/athena/prepared_statement_resource_gen.go b/internal/aws/athena/prepared_statement_resource_gen.go index 000e7dd180..03110af6cf 100644 --- a/internal/aws/athena/prepared_statement_resource_gen.go +++ b/internal/aws/athena/prepared_statement_resource_gen.go @@ -34,9 +34,13 @@ func preparedStatementResourceType(ctx context.Context) (provider.ResourceType, Description: "The description of the prepared statement.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "query_statement": { // Property: QueryStatement diff --git a/internal/aws/athena/work_group_resource_gen.go b/internal/aws/athena/work_group_resource_gen.go index 7668f29b11..018a717138 100644 --- a/internal/aws/athena/work_group_resource_gen.go +++ b/internal/aws/athena/work_group_resource_gen.go @@ -49,9 +49,13 @@ func workGroupResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The workgroup description.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -81,6 +85,10 @@ func workGroupResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The option to delete the workgroup and its contents even if the workgroup contains any named queries.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "state": { // Property: State @@ -96,12 +104,16 @@ func workGroupResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The state of the workgroup: ENABLED or DISABLED.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ENABLED", "DISABLED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -153,8 +165,10 @@ func workGroupResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "work_group_configuration": { @@ -242,15 +256,23 @@ func workGroupResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(10000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enforce_work_group_configuration": { // Property: EnforceWorkGroupConfiguration Description: "If set to \"true\", the settings for the workgroup override client-side settings. If set to \"false\", client-side settings are used", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "engine_version": { // Property: EngineVersion @@ -271,22 +293,38 @@ func workGroupResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The engine version requested by the user. Possible values are determined by the output of ListEngineVersions, including Auto. The default is Auto.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "publish_cloudwatch_metrics_enabled": { // Property: PublishCloudWatchMetricsEnabled Description: "Indicates that the Amazon CloudWatch metrics are enabled for the workgroup.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "requester_pays_enabled": { // Property: RequesterPaysEnabled 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. ", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "result_configuration": { // Property: ResultConfiguration @@ -316,24 +354,44 @@ func workGroupResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "For SSE-KMS and CSE-KMS, this is the KMS key ARN or ID. ", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "output_location": { // Property: OutputLocation 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", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "work_group_configuration_updates": { // Property: WorkGroupConfigurationUpdates @@ -430,15 +488,23 @@ func workGroupResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(10000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enforce_work_group_configuration": { // Property: EnforceWorkGroupConfiguration Description: "If set to \"true\", the settings for the workgroup override client-side settings. If set to \"false\", client-side settings are used", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "engine_version": { // Property: EngineVersion @@ -459,28 +525,48 @@ func workGroupResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The engine version requested by the user. Possible values are determined by the output of ListEngineVersions, including Auto. The default is Auto.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "publish_cloudwatch_metrics_enabled": { // Property: PublishCloudWatchMetricsEnabled Description: "Indicates that the Amazon CloudWatch metrics are enabled for the workgroup.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "remove_bytes_scanned_cutoff_per_query": { // Property: RemoveBytesScannedCutoffPerQuery Description: "Indicates that the data usage control limit per query is removed.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "requester_pays_enabled": { // Property: RequesterPaysEnabled 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. ", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "result_configuration_updates": { // Property: ResultConfigurationUpdates @@ -510,34 +596,62 @@ func workGroupResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "For SSE-KMS and CSE-KMS, this is the KMS key ARN or ID. ", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "output_location": { // Property: OutputLocation 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", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "remove_encryption_configuration": { // Property: RemoveEncryptionConfiguration Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "remove_output_location": { // Property: RemoveOutputLocation Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // WorkGroupConfigurationUpdates is a write-only property. }, } diff --git a/internal/aws/auditmanager/assessment_resource_gen.go b/internal/aws/auditmanager/assessment_resource_gen.go index 80566ce137..09ea6925db 100644 --- a/internal/aws/auditmanager/assessment_resource_gen.go +++ b/internal/aws/auditmanager/assessment_resource_gen.go @@ -84,21 +84,33 @@ func assessmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The URL of the specified Amazon S3 bucket.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_type": { // Property: DestinationType Description: "The destination type, such as Amazon S3.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "S3", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "aws_account": { // Property: AwsAccount @@ -139,29 +151,41 @@ func assessmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The unique identifier for the email account.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 320), validate.StringMatch(regexp.MustCompile("^.*@.*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Description: "The identifier for the specified AWS account.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(12, 12), validate.StringMatch(regexp.MustCompile("^[0-9]{12}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Description: "The name of the specified AWS account.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -278,99 +302,140 @@ func assessmentResourceType(ctx context.Context) (provider.ResourceType, error) // Property: AssessmentId Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(36, 36), validate.StringMatch(regexp.MustCompile("^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "assessment_name": { // Property: AssessmentName Description: "The name of the related assessment.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 127), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9-_\\.]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "comment": { // Property: Comment Description: "The comment related to the delegation.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(350), validate.StringMatch(regexp.MustCompile("^[\\w\\W\\s\\S]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "control_set_id": { // Property: ControlSetId Description: "The identifier for the specified control set.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 300), validate.StringMatch(regexp.MustCompile("^[\\w\\W\\s\\S]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "created_by": { // Property: CreatedBy Description: "The IAM user or role that performed the action.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 100), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9-_()\\[\\]\\s]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "creation_time": { // Property: CreationTime Description: "The sequence of characters that identifies when the event occurred.", Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(36, 36), validate.StringMatch(regexp.MustCompile("^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_updated": { // Property: LastUpdated Description: "The sequence of characters that identifies when the event occurred.", Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleArn Description: "The Amazon Resource Name (ARN) of the IAM user or role.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(20, 2048), validate.StringMatch(regexp.MustCompile("^arn:.*:iam:.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_type": { // Property: RoleType Description: " The IAM role type.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PROCESS_OWNER", "RESOURCE_OWNER", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status Description: "The status of the delegation.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "IN_PROGRESS", @@ -378,6 +443,9 @@ func assessmentResourceType(ctx context.Context) (provider.ResourceType, error) "COMPLETE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -396,6 +464,10 @@ func assessmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The description of the specified assessment.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // Description is a write-only property. }, "framework_id": { @@ -434,10 +506,14 @@ func assessmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The name of the related assessment.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 127), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9-_\\.]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // Name is a write-only property. }, "roles": { @@ -477,26 +553,38 @@ func assessmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The Amazon Resource Name (ARN) of the IAM user or role.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(20, 2048), validate.StringMatch(regexp.MustCompile("^arn:.*:iam:.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_type": { // Property: RoleType Description: " The IAM role type.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PROCESS_OWNER", "RESOURCE_OWNER", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "scope": { // Property: Scope @@ -568,33 +656,49 @@ func assessmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The unique identifier for the email account.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 320), validate.StringMatch(regexp.MustCompile("^.*@.*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Description: "The identifier for the specified AWS account.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(12, 12), validate.StringMatch(regexp.MustCompile("^[0-9]{12}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Description: "The name of the specified AWS account.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "aws_services": { // Property: AwsServices @@ -606,14 +710,26 @@ func assessmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The name of the AWS service.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status @@ -629,12 +745,16 @@ func assessmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The status of the specified assessment. ", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ACTIVE", "INACTIVE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -690,6 +810,10 @@ func assessmentResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/autoscaling/launch_configuration_resource_gen.go b/internal/aws/autoscaling/launch_configuration_resource_gen.go index 03efcfbe1d..ead0f9c73e 100644 --- a/internal/aws/autoscaling/launch_configuration_resource_gen.go +++ b/internal/aws/autoscaling/launch_configuration_resource_gen.go @@ -123,58 +123,98 @@ func launchConfigurationResourceType(ctx context.Context) (provider.ResourceType Description: "Indicates whether the volume is deleted on instance termination. ", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encrypted": { // Property: Encrypted Description: "Specifies whether the volume should be encrypted. ", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "iops": { // Property: Iops Description: "The number of input/output (I/O) operations per second (IOPS) to provision for the volume. ", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "snapshot_id": { // Property: SnapshotId Description: "The snapshot ID of the volume to use.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "throughput": { // Property: Throughput Description: "The throughput (MiBps) to provision for a gp3 volume.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "volume_size": { // Property: VolumeSize Description: "The volume size, in GiBs.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "volume_type": { // Property: VolumeType Description: "The volume type.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "no_device": { // Property: NoDevice Description: "Setting this value to true suppresses the specified device included in the block device mapping of the AMI.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "virtual_name": { // Property: VirtualName Description: "The name of the virtual device.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -397,18 +437,30 @@ func launchConfigurationResourceType(ctx context.Context) (provider.ResourceType Description: "This parameter enables or disables the HTTP metadata endpoint on your instances.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "http_put_response_hop_limit": { // Property: HttpPutResponseHopLimit Description: "The desired HTTP PUT response hop limit for instance metadata requests.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "http_tokens": { // Property: HttpTokens Description: "The state of token usage for your instance metadata requests.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/autoscaling/lifecycle_hook_resource_gen.go b/internal/aws/autoscaling/lifecycle_hook_resource_gen.go index 9a969bba76..3f986bf5aa 100644 --- a/internal/aws/autoscaling/lifecycle_hook_resource_gen.go +++ b/internal/aws/autoscaling/lifecycle_hook_resource_gen.go @@ -46,6 +46,10 @@ func lifecycleHookResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs. The valid values are CONTINUE and ABANDON (default).", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "heartbeat_timeout": { // Property: HeartbeatTimeout @@ -57,6 +61,10 @@ func lifecycleHookResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The maximum time, in seconds, that can elapse before the lifecycle hook times out. The range is from 30 to 7200 seconds. The default value is 3600 seconds (1 hour). If the lifecycle hook times out, Amazon EC2 Auto Scaling performs the action that you specified in the DefaultResult property.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lifecycle_hook_name": { // Property: LifecycleHookName @@ -102,9 +110,13 @@ func lifecycleHookResourceType(ctx context.Context) (provider.ResourceType, erro Description: "Additional information that is included any time Amazon EC2 Auto Scaling sends a message to the notification target.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1023), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "notification_target_arn": { // Property: NotificationTargetARN @@ -116,6 +128,10 @@ func lifecycleHookResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling uses to notify you when an instance is in the transition state for the lifecycle hook. You can specify an Amazon SQS queue or an Amazon SNS topic. The notification message includes the following information: lifecycle action token, user account ID, Auto Scaling group name, lifecycle hook name, instance ID, lifecycle transition, and notification metadata.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleARN @@ -127,6 +143,10 @@ func lifecycleHookResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target, for example, an Amazon SNS topic or an Amazon SQS queue.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/autoscaling/warm_pool_resource_gen.go b/internal/aws/autoscaling/warm_pool_resource_gen.go index 6bd9fa124a..7a137f339b 100644 --- a/internal/aws/autoscaling/warm_pool_resource_gen.go +++ b/internal/aws/autoscaling/warm_pool_resource_gen.go @@ -51,10 +51,18 @@ func warmPoolResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: ReuseOnScaleIn Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_group_prepared_capacity": { // Property: MaxGroupPreparedCapacity @@ -64,6 +72,10 @@ func warmPoolResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_size": { // Property: MinSize @@ -73,6 +85,10 @@ func warmPoolResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "pool_state": { // Property: PoolState @@ -82,6 +98,10 @@ func warmPoolResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/backup/backup_plan_resource_gen.go b/internal/aws/backup/backup_plan_resource_gen.go index d9e9a28288..95111c0979 100644 --- a/internal/aws/backup/backup_plan_resource_gen.go +++ b/internal/aws/backup/backup_plan_resource_gen.go @@ -160,6 +160,10 @@ func backupPlanResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "backup_plan_name": { // Property: BackupPlanName @@ -174,6 +178,10 @@ func backupPlanResourceType(ctx context.Context) (provider.ResourceType, error) // Property: CompletionWindowMinutes Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "copy_actions": { // Property: CopyActions @@ -192,24 +200,44 @@ func backupPlanResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DeleteAfterDays Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "move_to_cold_storage_after_days": { // Property: MoveToColdStorageAfterDays Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_continuous_backup": { // Property: EnableContinuousBackup Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lifecycle": { // Property: Lifecycle @@ -219,21 +247,37 @@ func backupPlanResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DeleteAfterDays Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "move_to_cold_storage_after_days": { // Property: MoveToColdStorageAfterDays Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "recovery_point_tags": { // Property: RecoveryPointTags // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rule_name": { // Property: RuleName @@ -244,11 +288,19 @@ func backupPlanResourceType(ctx context.Context) (provider.ResourceType, error) // Property: ScheduleExpression Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "start_window_minutes": { // Property: StartWindowMinutes Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_backup_vault": { // Property: TargetBackupVault @@ -302,6 +354,10 @@ func backupPlanResourceType(ctx context.Context) (provider.ResourceType, error) // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "version_id": { // Property: VersionId diff --git a/internal/aws/backup/backup_selection_resource_gen.go b/internal/aws/backup/backup_selection_resource_gen.go index 46f18fbd89..2a3d485546 100644 --- a/internal/aws/backup/backup_selection_resource_gen.go +++ b/internal/aws/backup/backup_selection_resource_gen.go @@ -181,17 +181,27 @@ func backupSelectionResourceType(ctx context.Context) (provider.ResourceType, er // Property: ConditionKey Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "condition_value": { // Property: ConditionValue Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "string_like": { @@ -202,17 +212,27 @@ func backupSelectionResourceType(ctx context.Context) (provider.ResourceType, er // Property: ConditionKey Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "condition_value": { // Property: ConditionValue Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "string_not_equals": { @@ -223,17 +243,27 @@ func backupSelectionResourceType(ctx context.Context) (provider.ResourceType, er // Property: ConditionKey Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "condition_value": { // Property: ConditionValue Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "string_not_like": { @@ -244,22 +274,36 @@ func backupSelectionResourceType(ctx context.Context) (provider.ResourceType, er // Property: ConditionKey Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "condition_value": { // Property: ConditionValue Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "iam_role_arn": { // Property: IamRoleArn @@ -288,24 +332,30 @@ func backupSelectionResourceType(ctx context.Context) (provider.ResourceType, er }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "not_resources": { // Property: NotResources Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "resources": { // Property: Resources Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "selection_name": { diff --git a/internal/aws/backup/backup_vault_resource_gen.go b/internal/aws/backup/backup_vault_resource_gen.go index 50b5294c42..7dab1b9d4b 100644 --- a/internal/aws/backup/backup_vault_resource_gen.go +++ b/internal/aws/backup/backup_vault_resource_gen.go @@ -31,6 +31,10 @@ func backupVaultResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "backup_vault_arn": { // Property: BackupVaultArn @@ -75,6 +79,10 @@ func backupVaultResourceType(ctx context.Context) (provider.ResourceType, error) // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption_key_arn": { // Property: EncryptionKeyArn @@ -117,11 +125,19 @@ func backupVaultResourceType(ctx context.Context) (provider.ResourceType, error) // Property: ChangeableForDays Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_retention_days": { // Property: MaxRetentionDays Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_retention_days": { // Property: MinRetentionDays @@ -131,6 +147,10 @@ func backupVaultResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "notifications": { // Property: Notifications @@ -174,6 +194,10 @@ func backupVaultResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/backup/framework_resource_gen.go b/internal/aws/backup/framework_resource_gen.go index da692a6fea..68ae5325e0 100644 --- a/internal/aws/backup/framework_resource_gen.go +++ b/internal/aws/backup/framework_resource_gen.go @@ -177,6 +177,10 @@ func frameworkResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "control_name": { // Property: ControlName @@ -194,8 +198,10 @@ func frameworkResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The ID of the only AWS resource that you want your control scope to contain.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "compliance_resource_types": { @@ -203,8 +209,10 @@ func frameworkResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Describes whether the control scope includes one or more types of resources, such as `EFS` or `RDS`.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "tags": { @@ -217,29 +225,43 @@ func frameworkResourceType(ctx context.Context) (provider.ResourceType, error) { 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 -.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value 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 -.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -257,9 +279,13 @@ func frameworkResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "An optional description of the framework with a maximum 1,024 characters.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "framework_name": { // Property: FrameworkName @@ -333,24 +359,34 @@ func frameworkResourceType(ctx context.Context) (provider.ResourceType, error) { 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 -.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value 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 -.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/backup/report_plan_resource_gen.go b/internal/aws/backup/report_plan_resource_gen.go index bed1feb15e..571e0fdbc9 100644 --- a/internal/aws/backup/report_plan_resource_gen.go +++ b/internal/aws/backup/report_plan_resource_gen.go @@ -61,6 +61,10 @@ func reportPlanResourceType(ctx context.Context) (provider.ResourceType, error) Description: "A list of the format of your reports: CSV, JSON, or both. If not specified, the default format is CSV.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_bucket_name": { // Property: S3BucketName @@ -73,6 +77,10 @@ func reportPlanResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The prefix for where AWS Backup Audit Manager delivers your reports to Amazon S3. The prefix is this part of the following path: s3://your-bucket-name/prefix/Backup/us-west-2/year/month/day/report-name. If not specified, there is no prefix.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -105,10 +113,14 @@ func reportPlanResourceType(ctx context.Context) (provider.ResourceType, error) Description: "An optional description of the report plan with a maximum of 1,024 characters.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), validate.StringMatch(regexp.MustCompile(".*\\S.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "report_plan_name": { // Property: ReportPlanName @@ -168,24 +180,34 @@ func reportPlanResourceType(ctx context.Context) (provider.ResourceType, error) 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 -.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value 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 -.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "report_setting": { @@ -222,6 +244,10 @@ func reportPlanResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The Amazon Resource Names (ARNs) of the frameworks a report covers.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "report_template": { // Property: ReportTemplate diff --git a/internal/aws/batch/compute_environment_resource_gen.go b/internal/aws/batch/compute_environment_resource_gen.go index a26350e30c..32cceede80 100644 --- a/internal/aws/batch/compute_environment_resource_gen.go +++ b/internal/aws/batch/compute_environment_resource_gen.go @@ -173,16 +173,28 @@ func computeEnvironmentResourceType(ctx context.Context) (provider.ResourceType, // Property: AllocationStrategy Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bid_percentage": { // Property: BidPercentage Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "desiredv_cpus": { // Property: DesiredvCpus Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ec_2_configuration": { // Property: Ec2Configuration @@ -192,6 +204,10 @@ func computeEnvironmentResourceType(ctx context.Context) (provider.ResourceType, // Property: ImageIdOverride Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_type": { // Property: ImageType @@ -201,31 +217,47 @@ func computeEnvironmentResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "ec_2_key_pair": { // Property: Ec2KeyPair Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_id": { // Property: ImageId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_role": { // Property: InstanceRole Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_types": { // Property: InstanceTypes Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "launch_template": { @@ -236,20 +268,36 @@ func computeEnvironmentResourceType(ctx context.Context) (provider.ResourceType, // Property: LaunchTemplateId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "launch_template_name": { // Property: LaunchTemplateName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "version": { // Property: Version Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "maxv_cpus": { // Property: MaxvCpus @@ -260,18 +308,28 @@ func computeEnvironmentResourceType(ctx context.Context) (provider.ResourceType, // Property: MinvCpus Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "placement_group": { // Property: PlacementGroup Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "security_group_ids": { // Property: SecurityGroupIds Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "spot_iam_fleet_role": { @@ -298,6 +356,10 @@ func computeEnvironmentResourceType(ctx context.Context) (provider.ResourceType, // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type @@ -318,6 +380,10 @@ func computeEnvironmentResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "replace_compute_environment": { // Property: ReplaceComputeEnvironment @@ -343,6 +409,10 @@ func computeEnvironmentResourceType(ctx context.Context) (provider.ResourceType, // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "state": { // Property: State @@ -352,6 +422,10 @@ func computeEnvironmentResourceType(ctx context.Context) (provider.ResourceType, // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -396,6 +470,10 @@ func computeEnvironmentResourceType(ctx context.Context) (provider.ResourceType, // } Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "update_policy": { // Property: UpdatePolicy @@ -439,6 +517,10 @@ func computeEnvironmentResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/batch/job_queue_resource_gen.go b/internal/aws/batch/job_queue_resource_gen.go index 3ac40a4dcf..6c4f1d7484 100644 --- a/internal/aws/batch/job_queue_resource_gen.go +++ b/internal/aws/batch/job_queue_resource_gen.go @@ -117,6 +117,10 @@ func jobQueueResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "state": { // Property: State @@ -130,12 +134,16 @@ func jobQueueResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "DISABLED", "ENABLED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags diff --git a/internal/aws/batch/scheduling_policy_resource_gen.go b/internal/aws/batch/scheduling_policy_resource_gen.go index 5e3f31468f..8a830c3602 100644 --- a/internal/aws/batch/scheduling_policy_resource_gen.go +++ b/internal/aws/batch/scheduling_policy_resource_gen.go @@ -82,17 +82,25 @@ func schedulingPolicyResourceType(ctx context.Context) (provider.ResourceType, e // Property: ComputeReservation Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatBetween(0.000000, 99.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "share_decay_seconds": { // Property: ShareDecaySeconds Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatBetween(0.000000, 604800.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "share_distribution": { // Property: ShareDistribution @@ -103,25 +111,39 @@ func schedulingPolicyResourceType(ctx context.Context) (provider.ResourceType, e // Property: ShareIdentifier Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "weight_factor": { // Property: WeightFactor Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatBetween(0.000000, 1000.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name diff --git a/internal/aws/billingconductor/billing_group_resource_gen.go b/internal/aws/billingconductor/billing_group_resource_gen.go index c078ecf7f5..c5e618e647 100644 --- a/internal/aws/billingconductor/billing_group_resource_gen.go +++ b/internal/aws/billingconductor/billing_group_resource_gen.go @@ -130,9 +130,13 @@ func billingGroupResourceType(ctx context.Context) (provider.ResourceType, error // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_modified_time": { // Property: LastModifiedTime @@ -273,6 +277,10 @@ func billingGroupResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/billingconductor/custom_line_item_resource_gen.go b/internal/aws/billingconductor/custom_line_item_resource_gen.go index b9ad4f6a64..40a41ed03d 100644 --- a/internal/aws/billingconductor/custom_line_item_resource_gen.go +++ b/internal/aws/billingconductor/custom_line_item_resource_gen.go @@ -118,6 +118,10 @@ func customLineItemResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "creation_time": { // Property: CreationTime @@ -222,6 +226,10 @@ func customLineItemResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "percentage": { // Property: Percentage @@ -231,9 +239,13 @@ func customLineItemResourceType(ctx context.Context) (provider.ResourceType, err // Property: ChildAssociatedResources Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("(arn:aws(-cn)?:billingconductor::[0-9]{12}:(customlineitem|billinggroup)/)?[a-zA-Z0-9]{10,12}"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "percentage_value": { // Property: PercentageValue @@ -246,6 +258,10 @@ func customLineItemResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type @@ -264,6 +280,10 @@ func customLineItemResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -274,9 +294,13 @@ func customLineItemResourceType(ctx context.Context) (provider.ResourceType, err // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_modified_time": { // Property: LastModifiedTime @@ -371,6 +395,10 @@ func customLineItemResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/billingconductor/pricing_plan_resource_gen.go b/internal/aws/billingconductor/pricing_plan_resource_gen.go index f083a75ec7..21a2bbb15b 100644 --- a/internal/aws/billingconductor/pricing_plan_resource_gen.go +++ b/internal/aws/billingconductor/pricing_plan_resource_gen.go @@ -61,9 +61,13 @@ func pricingPlanResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_modified_time": { // Property: LastModifiedTime @@ -109,11 +113,13 @@ func pricingPlanResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("arn:aws(-cn)?:billingconductor::[0-9]{12}:pricingrule/[a-zA-Z0-9]{10}"), "")), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "size": { @@ -179,6 +185,10 @@ func pricingPlanResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/billingconductor/pricing_rule_resource_gen.go b/internal/aws/billingconductor/pricing_rule_resource_gen.go index b23f07577b..3132cf31a1 100644 --- a/internal/aws/billingconductor/pricing_rule_resource_gen.go +++ b/internal/aws/billingconductor/pricing_rule_resource_gen.go @@ -78,9 +78,13 @@ func pricingRuleResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Pricing rule description", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_modified_time": { // Property: LastModifiedTime @@ -225,6 +229,10 @@ func pricingRuleResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type diff --git a/internal/aws/budgets/budgets_action_resource_gen.go b/internal/aws/budgets/budgets_action_resource_gen.go index 5d4ec84703..b5ab325ef5 100644 --- a/internal/aws/budgets/budgets_action_resource_gen.go +++ b/internal/aws/budgets/budgets_action_resource_gen.go @@ -115,12 +115,16 @@ func budgetsActionResourceType(ctx context.Context) (provider.ResourceType, erro // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "AUTOMATIC", "MANUAL", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "budget_name": { // Property: BudgetName @@ -239,9 +243,13 @@ func budgetsActionResourceType(ctx context.Context) (provider.ResourceType, erro // Property: Groups Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "policy_arn": { // Property: PolicyArn @@ -252,21 +260,33 @@ func budgetsActionResourceType(ctx context.Context) (provider.ResourceType, erro // Property: Roles Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "users": { // Property: Users Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "scp_action_definition": { // Property: ScpActionDefinition @@ -288,6 +308,10 @@ func budgetsActionResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssm_action_definition": { // Property: SsmActionDefinition @@ -320,6 +344,10 @@ func budgetsActionResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/cassandra/keyspace_resource_gen.go b/internal/aws/cassandra/keyspace_resource_gen.go index be1d235613..3012b6452f 100644 --- a/internal/aws/cassandra/keyspace_resource_gen.go +++ b/internal/aws/cassandra/keyspace_resource_gen.go @@ -93,10 +93,14 @@ func keyspaceResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 50), validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/cassandra/table_resource_gen.go b/internal/aws/cassandra/table_resource_gen.go index 57a7ce08a9..1537b815b5 100644 --- a/internal/aws/cassandra/table_resource_gen.go +++ b/internal/aws/cassandra/table_resource_gen.go @@ -106,10 +106,18 @@ func tableResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "clustering_key_columns": { // Property: ClusteringKeyColumns @@ -217,9 +225,13 @@ func tableResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Default TTL (Time To Live) in seconds, where zero is disabled. If the value is greater than zero, TTL is enabled for the entire table and an expiration timestamp is added to each column.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption_specification": { // Property: EncryptionSpecification @@ -272,10 +284,18 @@ func tableResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The AWS KMS customer master key (CMK) that should be used for the AWS KMS encryption. To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. ", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "keyspace_name": { // Property: KeyspaceName @@ -359,6 +379,10 @@ func tableResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates whether point in time recovery is enabled (true) or disabled (false) on the table", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "regular_columns": { // Property: RegularColumns @@ -405,6 +429,10 @@ func tableResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "table_name": { // Property: TableName @@ -479,10 +507,14 @@ func tableResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 50), validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/ce/anomaly_subscription_resource_gen.go b/internal/aws/ce/anomaly_subscription_resource_gen.go index c96cb7fadf..1d7280f050 100644 --- a/internal/aws/ce/anomaly_subscription_resource_gen.go +++ b/internal/aws/ce/anomaly_subscription_resource_gen.go @@ -204,12 +204,16 @@ func anomalySubscriptionResourceType(ctx context.Context) (provider.ResourceType // Property: Status Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CONFIRMED", "DECLINED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type diff --git a/internal/aws/ce/cost_category_resource_gen.go b/internal/aws/ce/cost_category_resource_gen.go index 525703cb5c..682027e39d 100644 --- a/internal/aws/ce/cost_category_resource_gen.go +++ b/internal/aws/ce/cost_category_resource_gen.go @@ -49,9 +49,13 @@ func costCategoryResourceType(ctx context.Context) (provider.ResourceType, error Description: "The default value for the cost category", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "effective_start": { // Property: EffectiveStart @@ -125,6 +129,10 @@ func costCategoryResourceType(ctx context.Context) (provider.ResourceType, error Description: "Json array format of CostCategorySplitChargeRule in Billing and Cost Management API", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/certificatemanager/account_resource_gen.go b/internal/aws/certificatemanager/account_resource_gen.go index 56cfe2ee34..2dd3e86b39 100644 --- a/internal/aws/certificatemanager/account_resource_gen.go +++ b/internal/aws/certificatemanager/account_resource_gen.go @@ -54,9 +54,13 @@ func accountResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: DaysBeforeExpiry Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 45), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/chatbot/slack_channel_configuration_resource_gen.go b/internal/aws/chatbot/slack_channel_configuration_resource_gen.go index f7f9c8e6a4..d7af6fe386 100644 --- a/internal/aws/chatbot/slack_channel_configuration_resource_gen.go +++ b/internal/aws/chatbot/slack_channel_configuration_resource_gen.go @@ -74,8 +74,10 @@ func slackChannelConfigurationResourceType(ctx context.Context) (provider.Resour Description: "The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed 'AdministratorAccess' policy is applied as a default if this is not set.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "iam_role_arn": { @@ -165,8 +167,10 @@ func slackChannelConfigurationResourceType(ctx context.Context) (provider.Resour Description: "ARNs of SNS topics which delivers notifications to AWS Chatbot, for example CloudWatch alarm notifications.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "user_role_required": { diff --git a/internal/aws/cloudformation/hook_default_version_resource_gen.go b/internal/aws/cloudformation/hook_default_version_resource_gen.go index 7cb4e5404f..7aee390b36 100644 --- a/internal/aws/cloudformation/hook_default_version_resource_gen.go +++ b/internal/aws/cloudformation/hook_default_version_resource_gen.go @@ -49,9 +49,13 @@ func hookDefaultVersionResourceType(ctx context.Context) (provider.ResourceType, Description: "The name of the type being registered.\n\nWe recommend that type names adhere to the following pattern: company_or_organization::service::type.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type_version_arn": { // Property: TypeVersionArn @@ -64,9 +68,13 @@ func hookDefaultVersionResourceType(ctx context.Context) (provider.ResourceType, Description: "The Amazon Resource Name (ARN) of the type version.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^arn:aws[A-Za-z0-9-]{0,64}:cloudformation:[A-Za-z0-9-]{1,64}:([0-9]{12})?:type/hook/.+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "version_id": { // Property: VersionId @@ -79,9 +87,13 @@ func hookDefaultVersionResourceType(ctx context.Context) (provider.ResourceType, Description: "The ID of an existing version of the hook to set as the default.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[A-Za-z0-9-]{1,128}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/cloudformation/hook_type_config_resource_gen.go b/internal/aws/cloudformation/hook_type_config_resource_gen.go index 45d21cca28..3fa74620a1 100644 --- a/internal/aws/cloudformation/hook_type_config_resource_gen.go +++ b/internal/aws/cloudformation/hook_type_config_resource_gen.go @@ -34,9 +34,13 @@ func hookTypeConfigResourceType(ctx context.Context) (provider.ResourceType, err Description: "The configuration data for the extension, in this account and region.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("[\\s\\S]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "configuration_alias": { // Property: ConfigurationAlias @@ -92,9 +96,13 @@ func hookTypeConfigResourceType(ctx context.Context) (provider.ResourceType, err Description: "The Amazon Resource Name (ARN) of the type without version number.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^arn:aws[A-Za-z0-9-]{0,64}:cloudformation:[A-Za-z0-9-]{1,64}:([0-9]{12})?:type/hook/.+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type_name": { // Property: TypeName @@ -107,9 +115,13 @@ func hookTypeConfigResourceType(ctx context.Context) (provider.ResourceType, err Description: "The name of the type being registered.\n\nWe recommend that type names adhere to the following pattern: company_or_organization::service::type.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/cloudformation/hook_version_resource_gen.go b/internal/aws/cloudformation/hook_version_resource_gen.go index 6d4a8d4b61..703d4b94ef 100644 --- a/internal/aws/cloudformation/hook_version_resource_gen.go +++ b/internal/aws/cloudformation/hook_version_resource_gen.go @@ -105,19 +105,27 @@ func hookVersionResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The Amazon CloudWatch log group to which CloudFormation sends error logging information when invoking the type's handlers.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("^[\\.\\-_/#A-Za-z0-9]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_role_arn": { // Property: LogRoleArn Description: "The ARN of the role that CloudFormation should assume when sending log entries to CloudWatch logs.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/cloudformation/resource_default_version_resource_gen.go b/internal/aws/cloudformation/resource_default_version_resource_gen.go index b25d347f33..d8f403cc2d 100644 --- a/internal/aws/cloudformation/resource_default_version_resource_gen.go +++ b/internal/aws/cloudformation/resource_default_version_resource_gen.go @@ -49,9 +49,13 @@ func resourceDefaultVersionResourceType(ctx context.Context) (provider.ResourceT Description: "The name of the type being registered.\n\nWe recommend that type names adhere to the following pattern: company_or_organization::service::type.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type_version_arn": { // Property: TypeVersionArn @@ -64,9 +68,13 @@ func resourceDefaultVersionResourceType(ctx context.Context) (provider.ResourceT Description: "The Amazon Resource Name (ARN) of the type version.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^arn:aws[A-Za-z0-9-]{0,64}:cloudformation:[A-Za-z0-9-]{1,64}:([0-9]{12})?:type/resource/.+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "version_id": { // Property: VersionId @@ -79,9 +87,13 @@ func resourceDefaultVersionResourceType(ctx context.Context) (provider.ResourceT Description: "The ID of an existing version of the resource to set as the default.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[A-Za-z0-9-]{1,128}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/cloudformation/resource_version_resource_gen.go b/internal/aws/cloudformation/resource_version_resource_gen.go index bae8ba0f82..2da71555f9 100644 --- a/internal/aws/cloudformation/resource_version_resource_gen.go +++ b/internal/aws/cloudformation/resource_version_resource_gen.go @@ -99,19 +99,27 @@ func resourceVersionResourceType(ctx context.Context) (provider.ResourceType, er Description: "The Amazon CloudWatch log group to which CloudFormation sends error logging information when invoking the type's handlers.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("^[\\.\\-_/#A-Za-z0-9]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_role_arn": { // Property: LogRoleArn Description: "The ARN of the role that CloudFormation should assume when sending log entries to CloudWatch logs.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/cloudformation/stack_set_resource_gen.go b/internal/aws/cloudformation/stack_set_resource_gen.go index 02f7d8c96b..86b414543d 100644 --- a/internal/aws/cloudformation/stack_set_resource_gen.go +++ b/internal/aws/cloudformation/stack_set_resource_gen.go @@ -35,9 +35,13 @@ func stackSetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The Amazon Resource Number (ARN) of the IAM role to use to create this stack set. Specify an IAM role only if you are using customized administrator roles to control which users or groups can manage specific stack sets within the same administrator account.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(20, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "auto_deployment": { // Property: AutoDeployment @@ -65,16 +69,28 @@ func stackSetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "If set to true, StackSets automatically deploys additional stack instances to AWS Organizations accounts that are added to a target organization or organizational unit (OU) in the specified Regions. If an account is removed from a target organization or OU, StackSets deletes stack instances from the account in the specified Regions.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "retain_stacks_on_account_removal": { // Property: RetainStacksOnAccountRemoval Description: "If set to true, stack resources are retained when an account is removed from a target organization or OU. If set to false, stack resources are deleted. Specify only if Enabled is set to True.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "call_as": { // Property: CallAs @@ -90,12 +106,16 @@ func stackSetResourceType(ctx context.Context) (provider.ResourceType, error) { 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.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "SELF", "DELEGATED_ADMIN", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // CallAs is a write-only property. }, "capabilities": { @@ -118,6 +138,7 @@ func stackSetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "In some cases, you must explicitly acknowledge that your stack set template contains certain capabilities in order for AWS CloudFormation to create the stack set and related stack instances.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "CAPABILITY_IAM", @@ -125,6 +146,9 @@ func stackSetResourceType(ctx context.Context) (provider.ResourceType, error) { "CAPABILITY_AUTO_EXPAND", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -138,9 +162,13 @@ func stackSetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A description of the stack set. You can use the description to identify the stack set's purpose or other important information.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "execution_role_name": { // Property: ExecutionRoleName @@ -154,9 +182,13 @@ func stackSetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of the IAM execution role to use to create the stack set. If you do not specify an execution role, AWS CloudFormation uses the AWSCloudFormationStackSetExecutionRole role for the stack set operation.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "managed_execution": { // Property: ManagedExecution @@ -180,10 +212,18 @@ func stackSetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "When true, StackSets performs non-conflicting operations concurrently and queues conflicting operations. After conflicting operations finish, StackSets starts queued operations in request order.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "operation_preferences": { // Property: OperationPreferences @@ -235,57 +275,85 @@ func stackSetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: FailureToleranceCount Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "failure_tolerance_percentage": { // Property: FailureTolerancePercentage Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_concurrent_count": { // Property: MaxConcurrentCount Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_concurrent_percentage": { // Property: MaxConcurrentPercentage Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "region_concurrency_type": { // Property: RegionConcurrencyType Description: "The concurrency type of deploying StackSets operations in regions, could be in parallel or one region at a time", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "SEQUENTIAL", "PARALLEL", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "region_order": { // Property: RegionOrder Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9-]{1,128}$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // OperationPreferences is a write-only property. }, "parameters": { @@ -333,6 +401,10 @@ func stackSetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "permission_model": { // Property: PermissionModel @@ -466,6 +538,7 @@ func stackSetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The filter type you want to apply on organizational units and accounts.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", @@ -474,26 +547,37 @@ func stackSetResourceType(ctx context.Context) (provider.ResourceType, error) { "DIFFERENCE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "accounts": { // Property: Accounts Description: "AWS accounts that you want to create stack instances in the specified Region(s) for.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^[0-9]{12}$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "organizational_unit_ids": { // Property: OrganizationalUnitIds Description: "The organization root ID or organizational unit (OU) IDs to which StackSets deploys.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^(ou-[a-z0-9]{4,32}-[a-z0-9]{8,32}|r-[a-z0-9]{4,32})$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -519,6 +603,10 @@ func stackSetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "regions": { // Property: Regions @@ -533,6 +621,10 @@ func stackSetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stack_set_id": { // Property: StackSetId @@ -626,9 +718,13 @@ func stackSetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "template_body": { // Property: TemplateBody @@ -642,9 +738,13 @@ func stackSetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The structure that contains the template body, with a minimum length of 1 byte and a maximum length of 51,200 bytes.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 51200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "template_url": { // Property: TemplateURL @@ -658,9 +758,13 @@ func stackSetResourceType(ctx context.Context) (provider.ResourceType, error) { 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.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 5120), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // TemplateURL is a write-only property. }, } diff --git a/internal/aws/cloudformation/type_activation_resource_gen.go b/internal/aws/cloudformation/type_activation_resource_gen.go index 9edec4dc7b..0e9b14659c 100644 --- a/internal/aws/cloudformation/type_activation_resource_gen.go +++ b/internal/aws/cloudformation/type_activation_resource_gen.go @@ -48,6 +48,10 @@ func typeActivationResourceType(ctx context.Context) (provider.ResourceType, err 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.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "execution_role_arn": { // Property: ExecutionRoleArn @@ -96,19 +100,27 @@ func typeActivationResourceType(ctx context.Context) (provider.ResourceType, err Description: "The Amazon CloudWatch log group to which CloudFormation sends error logging information when invoking the type's handlers.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("^[\\.\\-_/#A-Za-z0-9]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_role_arn": { // Property: LogRoleArn Description: "The ARN of the role that CloudFormation should assume when sending log entries to CloudWatch logs.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -131,9 +143,13 @@ func typeActivationResourceType(ctx context.Context) (provider.ResourceType, err Description: "The Major Version of the type you want to enable", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 100000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "public_type_arn": { // Property: PublicTypeArn @@ -265,12 +281,16 @@ func typeActivationResourceType(ctx context.Context) (provider.ResourceType, err 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", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "MAJOR", "MINOR", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/cloudfront/cache_policy_resource_gen.go b/internal/aws/cloudfront/cache_policy_resource_gen.go index 6fd52e9307..b551681ed0 100644 --- a/internal/aws/cloudfront/cache_policy_resource_gen.go +++ b/internal/aws/cloudfront/cache_policy_resource_gen.go @@ -141,6 +141,10 @@ func cachePolicyResourceType(ctx context.Context) (provider.ResourceType, error) // Property: Comment Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "default_ttl": { // Property: DefaultTTL @@ -191,6 +195,10 @@ func cachePolicyResourceType(ctx context.Context) (provider.ResourceType, error) // Property: Cookies Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -200,6 +208,10 @@ func cachePolicyResourceType(ctx context.Context) (provider.ResourceType, error) // Property: EnableAcceptEncodingBrotli Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_accept_encoding_gzip": { // Property: EnableAcceptEncodingGzip @@ -222,6 +234,10 @@ func cachePolicyResourceType(ctx context.Context) (provider.ResourceType, error) // Property: Headers Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -243,6 +259,10 @@ func cachePolicyResourceType(ctx context.Context) (provider.ResourceType, error) // Property: QueryStrings Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/cloudfront/distribution_resource_gen.go b/internal/aws/cloudfront/distribution_resource_gen.go index b1559dc576..95931bb908 100644 --- a/internal/aws/cloudfront/distribution_resource_gen.go +++ b/internal/aws/cloudfront/distribution_resource_gen.go @@ -788,11 +788,19 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: Aliases Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cnames": { // Property: CNAMEs Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cache_behaviors": { // Property: CacheBehaviors @@ -815,6 +823,10 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: CachePolicyId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cached_methods": { // Property: CachedMethods @@ -876,6 +888,10 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: WhitelistedNames Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -898,6 +914,10 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: Headers Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "query_string": { // Property: QueryString @@ -908,10 +928,18 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: QueryStringCacheKeys Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "function_associations": { // Property: FunctionAssociations @@ -921,15 +949,27 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: EventType Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "function_arn": { // Property: FunctionARN Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lambda_function_associations": { // Property: LambdaFunctionAssociations @@ -939,20 +979,36 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: EventType Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "include_body": { // Property: IncludeBody Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lambda_function_arn": { // Property: LambdaFunctionARN Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_ttl": { // Property: MaxTTL @@ -978,6 +1034,10 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: OriginRequestPolicyId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "path_pattern": { // Property: PathPattern @@ -988,11 +1048,19 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: RealtimeLogConfigArn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "response_headers_policy_id": { // Property: ResponseHeadersPolicyId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "smooth_streaming": { // Property: SmoothStreaming @@ -1013,11 +1081,19 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: TrustedKeyGroups Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "trusted_signers": { // Property: TrustedSigners Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "viewer_protocol_policy": { // Property: ViewerProtocolPolicy @@ -1027,6 +1103,10 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "comment": { // Property: Comment @@ -1061,15 +1141,27 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: ResponseCode Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "response_page_path": { // Property: ResponsePagePath Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "custom_origin": { // Property: CustomOrigin @@ -1113,6 +1205,10 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "default_cache_behavior": { // Property: DefaultCacheBehavior @@ -1201,6 +1297,10 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: WhitelistedNames Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1223,6 +1323,10 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: Headers Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "query_string": { // Property: QueryString @@ -1233,10 +1337,18 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: QueryStringCacheKeys Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "function_associations": { // Property: FunctionAssociations @@ -1246,15 +1358,27 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: EventType Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "function_arn": { // Property: FunctionARN Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lambda_function_associations": { // Property: LambdaFunctionAssociations @@ -1264,20 +1388,36 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: EventType Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "include_body": { // Property: IncludeBody Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lambda_function_arn": { // Property: LambdaFunctionARN Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_ttl": { // Property: MaxTTL @@ -1348,11 +1488,19 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: TrustedKeyGroups Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "trusted_signers": { // Property: TrustedSigners Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "viewer_protocol_policy": { // Property: ViewerProtocolPolicy @@ -1392,6 +1540,10 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: IPV6Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "logging": { // Property: Logging @@ -1425,6 +1577,10 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "origin_groups": { // Property: OriginGroups @@ -1494,6 +1650,10 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "quantity": { // Property: Quantity @@ -1503,6 +1663,10 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "origins": { // Property: Origins @@ -1512,11 +1676,19 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: ConnectionAttempts Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "connection_timeout": { // Property: ConnectionTimeout Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "custom_origin_config": { // Property: CustomOriginConfig @@ -1583,6 +1755,10 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "domain_name": { // Property: DomainName @@ -1598,6 +1774,10 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: OriginAccessControlId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "origin_custom_headers": { // Property: OriginCustomHeaders @@ -1616,6 +1796,10 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "origin_path": { // Property: OriginPath @@ -1635,15 +1819,27 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "origin_shield_region": { // Property: OriginShieldRegion Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_origin_config": { // Property: S3OriginConfig @@ -1662,10 +1858,18 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "price_class": { // Property: PriceClass @@ -1689,6 +1893,10 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: Locations Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "restriction_type": { // Property: RestrictionType @@ -1749,6 +1957,10 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "viewer_certificate": { // Property: ViewerCertificate @@ -1758,26 +1970,46 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error // Property: AcmCertificateArn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cloudfront_default_certificate": { // Property: CloudFrontDefaultCertificate Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "iam_certificate_id": { // Property: IamCertificateId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "minimum_protocol_version": { // Property: MinimumProtocolVersion Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssl_support_method": { // Property: SslSupportMethod Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1872,6 +2104,10 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/cloudfront/function_resource_gen.go b/internal/aws/cloudfront/function_resource_gen.go index 0acf15d1ca..dfd1171139 100644 --- a/internal/aws/cloudfront/function_resource_gen.go +++ b/internal/aws/cloudfront/function_resource_gen.go @@ -29,6 +29,10 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // AutoPublish is a write-only property. }, "function_arn": { @@ -51,6 +55,10 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // FunctionCode is a write-only property. }, "function_config": { @@ -87,6 +95,10 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "function_metadata": { // Property: FunctionMetadata @@ -113,6 +125,10 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name diff --git a/internal/aws/cloudfront/key_group_resource_gen.go b/internal/aws/cloudfront/key_group_resource_gen.go index c8e5c2b188..f09141fc4b 100644 --- a/internal/aws/cloudfront/key_group_resource_gen.go +++ b/internal/aws/cloudfront/key_group_resource_gen.go @@ -65,6 +65,10 @@ func keyGroupResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Comment Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "items": { // Property: Items diff --git a/internal/aws/cloudfront/origin_access_control_resource_gen.go b/internal/aws/cloudfront/origin_access_control_resource_gen.go index d2943a7cf5..6c7f7f222d 100644 --- a/internal/aws/cloudfront/origin_access_control_resource_gen.go +++ b/internal/aws/cloudfront/origin_access_control_resource_gen.go @@ -74,6 +74,10 @@ func originAccessControlResourceType(ctx context.Context) (provider.ResourceType // Property: Description Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name diff --git a/internal/aws/cloudfront/origin_request_policy_resource_gen.go b/internal/aws/cloudfront/origin_request_policy_resource_gen.go index 25e290dde5..2b6e1fbebd 100644 --- a/internal/aws/cloudfront/origin_request_policy_resource_gen.go +++ b/internal/aws/cloudfront/origin_request_policy_resource_gen.go @@ -134,6 +134,10 @@ func originRequestPolicyResourceType(ctx context.Context) (provider.ResourceType // Property: Comment Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cookies_config": { // Property: CookiesConfig @@ -151,6 +155,10 @@ func originRequestPolicyResourceType(ctx context.Context) (provider.ResourceType // Property: Cookies Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -172,6 +180,10 @@ func originRequestPolicyResourceType(ctx context.Context) (provider.ResourceType // Property: Headers Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -198,6 +210,10 @@ func originRequestPolicyResourceType(ctx context.Context) (provider.ResourceType // Property: QueryStrings Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/cloudfront/public_key_resource_gen.go b/internal/aws/cloudfront/public_key_resource_gen.go index 4cd226203b..18798277dc 100644 --- a/internal/aws/cloudfront/public_key_resource_gen.go +++ b/internal/aws/cloudfront/public_key_resource_gen.go @@ -82,6 +82,10 @@ func publicKeyResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Comment Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encoded_key": { // Property: EncodedKey diff --git a/internal/aws/cloudfront/response_headers_policy_resource_gen.go b/internal/aws/cloudfront/response_headers_policy_resource_gen.go index ed7b057646..fd8e2af60f 100644 --- a/internal/aws/cloudfront/response_headers_policy_resource_gen.go +++ b/internal/aws/cloudfront/response_headers_policy_resource_gen.go @@ -320,6 +320,10 @@ func responseHeadersPolicyResourceType(ctx context.Context) (provider.ResourceTy // Property: Comment Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cors_config": { // Property: CorsConfig @@ -393,11 +397,19 @@ func responseHeadersPolicyResourceType(ctx context.Context) (provider.ResourceTy }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "access_control_max_age_sec": { // Property: AccessControlMaxAgeSec Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "origin_override": { // Property: OriginOverride @@ -407,6 +419,10 @@ func responseHeadersPolicyResourceType(ctx context.Context) (provider.ResourceTy }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "custom_headers_config": { // Property: CustomHeadersConfig @@ -441,6 +457,10 @@ func responseHeadersPolicyResourceType(ctx context.Context) (provider.ResourceTy }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -468,6 +488,10 @@ func responseHeadersPolicyResourceType(ctx context.Context) (provider.ResourceTy }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "content_type_options": { // Property: ContentTypeOptions @@ -481,6 +505,10 @@ func responseHeadersPolicyResourceType(ctx context.Context) (provider.ResourceTy }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "frame_options": { // Property: FrameOptions @@ -502,6 +530,10 @@ func responseHeadersPolicyResourceType(ctx context.Context) (provider.ResourceTy }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "referrer_policy": { // Property: ReferrerPolicy @@ -523,6 +555,10 @@ func responseHeadersPolicyResourceType(ctx context.Context) (provider.ResourceTy }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "strict_transport_security": { // Property: StrictTransportSecurity @@ -537,6 +573,10 @@ func responseHeadersPolicyResourceType(ctx context.Context) (provider.ResourceTy // Property: IncludeSubdomains Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "override": { // Property: Override @@ -547,10 +587,18 @@ func responseHeadersPolicyResourceType(ctx context.Context) (provider.ResourceTy // Property: Preload Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "xss_protection": { // Property: XSSProtection @@ -560,6 +608,10 @@ func responseHeadersPolicyResourceType(ctx context.Context) (provider.ResourceTy // Property: ModeBlock Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "override": { // Property: Override @@ -575,14 +627,26 @@ func responseHeadersPolicyResourceType(ctx context.Context) (provider.ResourceTy // Property: ReportUri Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "server_timing_headers_config": { // Property: ServerTimingHeadersConfig @@ -597,13 +661,21 @@ func responseHeadersPolicyResourceType(ctx context.Context) (provider.ResourceTy // Property: SamplingRate Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatBetween(0.000000, 100.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/cloudtrail/event_data_store_resource_gen.go b/internal/aws/cloudtrail/event_data_store_resource_gen.go index 1eb2af6043..3823431dab 100644 --- a/internal/aws/cloudtrail/event_data_store_resource_gen.go +++ b/internal/aws/cloudtrail/event_data_store_resource_gen.go @@ -163,22 +163,30 @@ func eventDataStoreResourceType(ctx context.Context) (provider.ResourceType, err Description: "An operator that includes events that match the last few characters of the event record field specified as the value of Field.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), validate.ArrayForEach(validate.StringLenBetween(1, 2048)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("(.+)"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "equals": { // Property: Equals Description: "An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), validate.ArrayForEach(validate.StringLenBetween(1, 2048)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("(.+)"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "field": { // Property: Field @@ -195,44 +203,60 @@ func eventDataStoreResourceType(ctx context.Context) (provider.ResourceType, err Description: "An operator that excludes events that match the last few characters of the event record field specified as the value of Field.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), validate.ArrayForEach(validate.StringLenBetween(1, 2048)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("(.+)"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "not_equals": { // Property: NotEquals Description: "An operator that excludes events that match the exact value of the event record field specified as the value of Field.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), validate.ArrayForEach(validate.StringLenBetween(1, 2048)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("(.+)"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "not_starts_with": { // Property: NotStartsWith Description: "An operator that excludes events that match the first few characters of the event record field specified as the value of Field.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), validate.ArrayForEach(validate.StringLenBetween(1, 2048)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("(.+)"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "starts_with": { // Property: StartsWith Description: "An operator that includes events that match the first few characters of the event record field specified as the value of Field.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), validate.ArrayForEach(validate.StringLenBetween(1, 2048)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("(.+)"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -246,13 +270,21 @@ func eventDataStoreResourceType(ctx context.Context) (provider.ResourceType, err Description: "An optional, descriptive name for an advanced event selector, such as \"Log data events for only two S3 buckets\".", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "created_timestamp": { // Property: CreatedTimestamp @@ -292,6 +324,10 @@ func eventDataStoreResourceType(ctx context.Context) (provider.ResourceType, err Description: "Indicates whether the event data store includes events from all regions, or only from the region in which it was created.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -303,6 +339,10 @@ func eventDataStoreResourceType(ctx context.Context) (provider.ResourceType, err Description: "The name of the event data store.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "organization_enabled": { // Property: OrganizationEnabled @@ -314,6 +354,10 @@ func eventDataStoreResourceType(ctx context.Context) (provider.ResourceType, err Description: "Indicates that an event data store is collecting logged events for an organization.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "retention_period": { // Property: RetentionPeriod @@ -325,6 +369,10 @@ func eventDataStoreResourceType(ctx context.Context) (provider.ResourceType, err Description: "The retention period, in days.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status @@ -384,8 +432,10 @@ func eventDataStoreResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "termination_protection_enabled": { @@ -398,6 +448,10 @@ func eventDataStoreResourceType(ctx context.Context) (provider.ResourceType, err Description: "Indicates whether the event data store is protected from termination.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "updated_timestamp": { // Property: UpdatedTimestamp diff --git a/internal/aws/cloudtrail/trail_resource_gen.go b/internal/aws/cloudtrail/trail_resource_gen.go index 4f7d1c34de..4ae3b0da57 100644 --- a/internal/aws/cloudtrail/trail_resource_gen.go +++ b/internal/aws/cloudtrail/trail_resource_gen.go @@ -45,6 +45,10 @@ func trailResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. Not required unless you specify CloudWatchLogsRoleArn.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cloudwatch_logs_role_arn": { // Property: CloudWatchLogsRoleArn @@ -56,6 +60,10 @@ func trailResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_log_file_validation": { // Property: EnableLogFileValidation @@ -67,6 +75,10 @@ func trailResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies whether log file validation is enabled. The default is false.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "event_selectors": { // Property: EventSelectors @@ -153,28 +165,45 @@ func trailResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "An array of Amazon Resource Name (ARN) strings or partial ARN strings for the specified objects.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "exclude_management_event_sources": { // Property: ExcludeManagementEventSources Description: "An optional list of service event sources from which you do not want management events to be logged on your trail. In this release, the list can be empty (disables the filter), or it can filter out AWS Key Management Service events by containing \"kms.amazonaws.com\". By default, ExcludeManagementEventSources is empty, and AWS KMS events are included in events that are logged to your trail.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "include_management_events": { // Property: IncludeManagementEvents Description: "Specify if you want your event selector to include management events for your trail.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "read_write_type": { // Property: ReadWriteType Description: "Specify if you want your trail to log read-only events, write-only events, or all. For example, the EC2 GetConsoleOutput is a read-only API operation and RunInstances is a write-only API operation.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "All", @@ -182,13 +211,20 @@ func trailResourceType(ctx context.Context) (provider.ResourceType, error) { "WriteOnly", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "include_global_service_events": { // Property: IncludeGlobalServiceEvents @@ -200,6 +236,10 @@ func trailResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies whether the trail is publishing events from global services such as IAM to the log files.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "insight_selectors": { // Property: InsightSelectors @@ -229,10 +269,18 @@ func trailResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The type of insight to log on a trail.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "is_logging": { // Property: IsLogging @@ -255,6 +303,10 @@ func trailResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies whether the trail applies only to the current region or to all regions. The default is false. If the trail exists only in the current region and this value is set to true, shadow trails (replications of the trail) will be created in the other regions. If the trail exists in all regions and this value is set to false, the trail will remain in the region where it was created, and its shadow trails in other regions will be deleted. As a best practice, consider using trails that log events in all regions.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "is_organization_trail": { // Property: IsOrganizationTrail @@ -266,6 +318,10 @@ func trailResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies whether the trail is created for all accounts in an organization in AWS Organizations, or only for the current AWS account. The default is false, and cannot be true unless the call is made on behalf of an AWS account that is the master account for an organization in AWS Organizations.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kms_key_id": { // Property: KMSKeyId @@ -277,6 +333,10 @@ func trailResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be an alias name prefixed by 'alias/', a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_bucket_name": { // Property: S3BucketName @@ -300,9 +360,13 @@ func trailResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files. The maximum length is 200 characters.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sns_topic_arn": { // Property: SnsTopicArn @@ -327,9 +391,13 @@ func trailResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -375,8 +443,10 @@ func trailResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "trail_name": { diff --git a/internal/aws/cloudwatch/composite_alarm_resource_gen.go b/internal/aws/cloudwatch/composite_alarm_resource_gen.go index c40c54be00..cb94db815d 100644 --- a/internal/aws/cloudwatch/composite_alarm_resource_gen.go +++ b/internal/aws/cloudwatch/composite_alarm_resource_gen.go @@ -32,6 +32,10 @@ func compositeAlarmResourceType(ctx context.Context) (provider.ResourceType, err Description: "Indicates whether actions should be executed during any changes to the alarm state. The default is TRUE.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "actions_suppressor": { // Property: ActionsSuppressor @@ -45,9 +49,13 @@ func compositeAlarmResourceType(ctx context.Context) (provider.ResourceType, err Description: "Actions will be suppressed if the suppressor alarm is in the ALARM state. ActionsSuppressor can be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm. ", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1600), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "actions_suppressor_extension_period": { // Property: ActionsSuppressorExtensionPeriod @@ -60,9 +68,13 @@ func compositeAlarmResourceType(ctx context.Context) (provider.ResourceType, err Description: "Actions will be suppressed if WaitPeriod is active. The length of time that actions are suppressed is in seconds.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "actions_suppressor_wait_period": { // Property: ActionsSuppressorWaitPeriod @@ -75,9 +87,13 @@ func compositeAlarmResourceType(ctx context.Context) (provider.ResourceType, err Description: "Actions will be suppressed if ExtensionPeriod is active. The length of time that actions are suppressed is in seconds.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "alarm_actions": { // Property: AlarmActions @@ -96,10 +112,14 @@ func compositeAlarmResourceType(ctx context.Context) (provider.ResourceType, err Description: "The list of actions to execute when this alarm transitions into an ALARM state from any other state. Specify each action as an Amazon Resource Name (ARN).", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), validate.ArrayForEach(validate.StringLenBetween(1, 1024)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "alarm_description": { // Property: AlarmDescription @@ -113,9 +133,13 @@ func compositeAlarmResourceType(ctx context.Context) (provider.ResourceType, err Description: "The description of the alarm", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "alarm_name": { // Property: AlarmName @@ -185,10 +209,14 @@ func compositeAlarmResourceType(ctx context.Context) (provider.ResourceType, err Description: "The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), validate.ArrayForEach(validate.StringLenBetween(1, 1024)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ok_actions": { // Property: OKActions @@ -207,10 +235,14 @@ func compositeAlarmResourceType(ctx context.Context) (provider.ResourceType, err Description: "The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), validate.ArrayForEach(validate.StringLenBetween(1, 1024)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/cloudwatch/metric_stream_resource_gen.go b/internal/aws/cloudwatch/metric_stream_resource_gen.go index d3f050e562..8149c5446f 100644 --- a/internal/aws/cloudwatch/metric_stream_resource_gen.go +++ b/internal/aws/cloudwatch/metric_stream_resource_gen.go @@ -93,10 +93,14 @@ func metricStreamResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(1000), validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "firehose_arn": { // Property: FirehoseArn @@ -154,10 +158,14 @@ func metricStreamResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(1000), validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_update_date": { // Property: LastUpdateDate @@ -348,10 +356,14 @@ func metricStreamResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -401,17 +413,25 @@ func metricStreamResourceType(ctx context.Context) (provider.ResourceType, error Description: "An optional string, which you can use to describe or define the tag.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // Tags is a write-only property. }, } diff --git a/internal/aws/codeartifact/domain_resource_gen.go b/internal/aws/codeartifact/domain_resource_gen.go index 95eea58ffd..018e92dee0 100644 --- a/internal/aws/codeartifact/domain_resource_gen.go +++ b/internal/aws/codeartifact/domain_resource_gen.go @@ -119,6 +119,10 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The access control resource policy on the provided domain.", Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -174,6 +178,10 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/codeartifact/repository_resource_gen.go b/internal/aws/codeartifact/repository_resource_gen.go index 28538fe352..6f27bf1a25 100644 --- a/internal/aws/codeartifact/repository_resource_gen.go +++ b/internal/aws/codeartifact/repository_resource_gen.go @@ -50,9 +50,13 @@ func repositoryResourceType(ctx context.Context) (provider.ResourceType, error) Description: "A text description of the repository.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "domain_name": { // Property: DomainName @@ -104,6 +108,10 @@ func repositoryResourceType(ctx context.Context) (provider.ResourceType, error) Description: "A list of external connections associated with the repository.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -134,6 +142,10 @@ func repositoryResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The access control resource policy on the provided repository.", Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "repository_name": { // Property: RepositoryName @@ -210,6 +222,10 @@ func repositoryResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "upstreams": { // Property: Upstreams @@ -224,6 +240,10 @@ func repositoryResourceType(ctx context.Context) (provider.ResourceType, error) Description: "A list of upstream repositories associated with the repository.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/codeguruprofiler/profiling_group_resource_gen.go b/internal/aws/codeguruprofiler/profiling_group_resource_gen.go index e0cc7ea4cb..401ef658c9 100644 --- a/internal/aws/codeguruprofiler/profiling_group_resource_gen.go +++ b/internal/aws/codeguruprofiler/profiling_group_resource_gen.go @@ -59,6 +59,10 @@ func profilingGroupResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "anomaly_detection_notification_configuration": { // Property: AnomalyDetectionNotificationConfiguration @@ -94,9 +98,13 @@ func profilingGroupResourceType(ctx context.Context) (provider.ResourceType, err Description: "Unique identifier for each Channel in the notification configuration of a Profiling Group", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "channel_uri": { // Property: channelUri @@ -110,6 +118,10 @@ func profilingGroupResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "arn": { // Property: Arn @@ -229,10 +241,14 @@ func profilingGroupResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/codestarconnections/connection_resource_gen.go b/internal/aws/codestarconnections/connection_resource_gen.go index 49aeb0ea55..bf495584ce 100644 --- a/internal/aws/codestarconnections/connection_resource_gen.go +++ b/internal/aws/codestarconnections/connection_resource_gen.go @@ -182,6 +182,10 @@ func connectionResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/codestarnotifications/notification_rule_resource_gen.go b/internal/aws/codestarnotifications/notification_rule_resource_gen.go index b981c52ab0..c3dbe4dfa1 100644 --- a/internal/aws/codestarnotifications/notification_rule_resource_gen.go +++ b/internal/aws/codestarnotifications/notification_rule_resource_gen.go @@ -46,9 +46,13 @@ func notificationRuleResourceType(ctx context.Context) (provider.ResourceType, e // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "detail_type": { // Property: DetailType @@ -79,9 +83,13 @@ func notificationRuleResourceType(ctx context.Context) (provider.ResourceType, e // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // EventTypeId is a write-only property. }, "event_type_ids": { @@ -146,12 +154,16 @@ func notificationRuleResourceType(ctx context.Context) (provider.ResourceType, e // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ENABLED", "DISABLED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -177,9 +189,13 @@ func notificationRuleResourceType(ctx context.Context) (provider.ResourceType, e // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // TargetAddress is a write-only property. }, "targets": { diff --git a/internal/aws/config/aggregation_authorization_resource_gen.go b/internal/aws/config/aggregation_authorization_resource_gen.go index 3f675c462a..39ef4bd1b1 100644 --- a/internal/aws/config/aggregation_authorization_resource_gen.go +++ b/internal/aws/config/aggregation_authorization_resource_gen.go @@ -130,10 +130,14 @@ func aggregationAuthorizationResourceType(ctx context.Context) (provider.Resourc }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/config/configuration_aggregator_resource_gen.go b/internal/aws/config/configuration_aggregator_resource_gen.go index ddb3b6285d..2f8edca368 100644 --- a/internal/aws/config/configuration_aggregator_resource_gen.go +++ b/internal/aws/config/configuration_aggregator_resource_gen.go @@ -67,15 +67,27 @@ func configurationAggregatorResourceType(ctx context.Context) (provider.Resource // Property: AllAwsRegions Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "aws_regions": { // Property: AwsRegions Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "configuration_aggregator_arn": { // Property: ConfigurationAggregatorArn @@ -145,11 +157,19 @@ func configurationAggregatorResourceType(ctx context.Context) (provider.Resource // Property: AllAwsRegions Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "aws_regions": { // Property: AwsRegions Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleArn @@ -159,6 +179,10 @@ func configurationAggregatorResourceType(ctx context.Context) (provider.Resource }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -216,10 +240,14 @@ func configurationAggregatorResourceType(ctx context.Context) (provider.Resource }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/config/conformance_pack_resource_gen.go b/internal/aws/config/conformance_pack_resource_gen.go index 194a892474..577544b6eb 100644 --- a/internal/aws/config/conformance_pack_resource_gen.go +++ b/internal/aws/config/conformance_pack_resource_gen.go @@ -79,9 +79,13 @@ func conformancePackResourceType(ctx context.Context) (provider.ResourceType, er }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 60), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "conformance_pack_name": { // Property: ConformancePackName @@ -116,9 +120,13 @@ func conformancePackResourceType(ctx context.Context) (provider.ResourceType, er Description: "AWS Config stores intermediate files while processing conformance pack template.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 63), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "delivery_s3_key_prefix": { // Property: DeliveryS3KeyPrefix @@ -132,9 +140,13 @@ func conformancePackResourceType(ctx context.Context) (provider.ResourceType, er Description: "The prefix for delivery S3 bucket.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "template_body": { // Property: TemplateBody @@ -148,9 +160,13 @@ func conformancePackResourceType(ctx context.Context) (provider.ResourceType, er Description: "A string containing full conformance pack template body. You can only specify one of the template body or template S3Uri fields.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 51200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // TemplateBody is a write-only property. }, "template_s3_uri": { @@ -166,10 +182,14 @@ func conformancePackResourceType(ctx context.Context) (provider.ResourceType, er 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.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), validate.StringMatch(regexp.MustCompile("s3://.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // TemplateS3Uri is a write-only property. }, "template_ssm_document_details": { @@ -199,21 +219,33 @@ func conformancePackResourceType(ctx context.Context) (provider.ResourceType, er // Property: DocumentName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "document_version": { // Property: DocumentVersion Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // TemplateSSMDocumentDetails is a write-only property. }, } diff --git a/internal/aws/config/organization_conformance_pack_resource_gen.go b/internal/aws/config/organization_conformance_pack_resource_gen.go index e011f31b97..9231f47cb3 100644 --- a/internal/aws/config/organization_conformance_pack_resource_gen.go +++ b/internal/aws/config/organization_conformance_pack_resource_gen.go @@ -74,9 +74,13 @@ func organizationConformancePackResourceType(ctx context.Context) (provider.Reso }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 60), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "delivery_s3_bucket": { // Property: DeliveryS3Bucket @@ -90,9 +94,13 @@ func organizationConformancePackResourceType(ctx context.Context) (provider.Reso Description: "AWS Config stores intermediate files while processing conformance pack template.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 63), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "delivery_s3_key_prefix": { // Property: DeliveryS3KeyPrefix @@ -106,9 +114,13 @@ func organizationConformancePackResourceType(ctx context.Context) (provider.Reso Description: "The prefix for the delivery S3 bucket.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "excluded_accounts": { // Property: ExcludedAccounts @@ -125,9 +137,13 @@ func organizationConformancePackResourceType(ctx context.Context) (provider.Reso Description: "A list of AWS accounts to be excluded from an organization conformance pack while deploying a conformance pack.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 1000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "organization_conformance_pack_name": { // Property: OrganizationConformancePackName @@ -162,9 +178,13 @@ func organizationConformancePackResourceType(ctx context.Context) (provider.Reso Description: "A string containing full conformance pack template body.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 51200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // TemplateBody is a write-only property. }, "template_s3_uri": { @@ -180,10 +200,14 @@ func organizationConformancePackResourceType(ctx context.Context) (provider.Reso Description: "Location of file containing the template body.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), validate.StringMatch(regexp.MustCompile("s3://.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // TemplateS3Uri is a write-only property. }, } diff --git a/internal/aws/config/stored_query_resource_gen.go b/internal/aws/config/stored_query_resource_gen.go index 93e168ab11..aa52ec9f28 100644 --- a/internal/aws/config/stored_query_resource_gen.go +++ b/internal/aws/config/stored_query_resource_gen.go @@ -48,10 +48,14 @@ func storedQueryResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), validate.StringMatch(regexp.MustCompile("[\\s\\S]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "query_expression": { // Property: QueryExpression @@ -159,10 +163,14 @@ func storedQueryResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/connect/contact_flow_module_resource_gen.go b/internal/aws/connect/contact_flow_module_resource_gen.go index 24fb9269a0..2845af634e 100644 --- a/internal/aws/connect/contact_flow_module_resource_gen.go +++ b/internal/aws/connect/contact_flow_module_resource_gen.go @@ -68,10 +68,14 @@ func contactFlowModuleResourceType(ctx context.Context) (provider.ResourceType, Description: "The description of the contact flow module.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(500), validate.StringMatch(regexp.MustCompile(".*\\S.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_arn": { // Property: InstanceArn @@ -123,12 +127,16 @@ func contactFlowModuleResourceType(ctx context.Context) (provider.ResourceType, Description: "The state of the contact flow module.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ACTIVE", "ARCHIVED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status @@ -205,9 +213,13 @@ func contactFlowModuleResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/connect/contact_flow_resource_gen.go b/internal/aws/connect/contact_flow_resource_gen.go index 28e6d92f07..5192d054a3 100644 --- a/internal/aws/connect/contact_flow_resource_gen.go +++ b/internal/aws/connect/contact_flow_resource_gen.go @@ -67,9 +67,13 @@ func contactFlowResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The description of the contact flow.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(500), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_arn": { // Property: InstanceArn @@ -119,12 +123,16 @@ func contactFlowResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The state of the contact flow.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ACTIVE", "ARCHIVED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -183,9 +191,13 @@ func contactFlowResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type diff --git a/internal/aws/connect/hours_of_operation_resource_gen.go b/internal/aws/connect/hours_of_operation_resource_gen.go index 617d09f4e9..cc7c0bc218 100644 --- a/internal/aws/connect/hours_of_operation_resource_gen.go +++ b/internal/aws/connect/hours_of_operation_resource_gen.go @@ -197,9 +197,13 @@ func hoursOfOperationResourceType(ctx context.Context) (provider.ResourceType, e Description: "The description of the hours of operation.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "hours_of_operation_arn": { // Property: HoursOfOperationArn @@ -304,9 +308,13 @@ func hoursOfOperationResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "time_zone": { // Property: TimeZone diff --git a/internal/aws/connect/instance_storage_config_resource_gen.go b/internal/aws/connect/instance_storage_config_resource_gen.go index 498bca76b0..9d1c9f63bd 100644 --- a/internal/aws/connect/instance_storage_config_resource_gen.go +++ b/internal/aws/connect/instance_storage_config_resource_gen.go @@ -89,6 +89,10 @@ func instanceStorageConfigResourceType(ctx context.Context) (provider.ResourceTy }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kinesis_stream_config": { // Property: KinesisStreamConfig @@ -121,6 +125,10 @@ func instanceStorageConfigResourceType(ctx context.Context) (provider.ResourceTy }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kinesis_video_stream_config": { // Property: KinesisVideoStreamConfig @@ -197,6 +205,10 @@ func instanceStorageConfigResourceType(ctx context.Context) (provider.ResourceTy }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix": { // Property: Prefix @@ -216,6 +228,10 @@ func instanceStorageConfigResourceType(ctx context.Context) (provider.ResourceTy }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_type": { // Property: ResourceType @@ -344,10 +360,18 @@ func instanceStorageConfigResourceType(ctx context.Context) (provider.ResourceTy }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "storage_type": { // Property: StorageType diff --git a/internal/aws/connect/phone_number_resource_gen.go b/internal/aws/connect/phone_number_resource_gen.go index ffbd8da19c..bb68ca6f96 100644 --- a/internal/aws/connect/phone_number_resource_gen.go +++ b/internal/aws/connect/phone_number_resource_gen.go @@ -170,9 +170,13 @@ func phoneNumberResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_arn": { // Property: TargetArn diff --git a/internal/aws/connect/quick_connect_resource_gen.go b/internal/aws/connect/quick_connect_resource_gen.go index e208cb0054..1934ad9ff8 100644 --- a/internal/aws/connect/quick_connect_resource_gen.go +++ b/internal/aws/connect/quick_connect_resource_gen.go @@ -35,9 +35,13 @@ func quickConnectResourceType(ctx context.Context) (provider.ResourceType, error Description: "The description of the quick connect.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_arn": { // Property: InstanceArn @@ -184,6 +188,10 @@ func quickConnectResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "queue_config": { // Property: QueueConfig @@ -211,6 +219,10 @@ func quickConnectResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "quick_connect_type": { // Property: QuickConnectType @@ -251,6 +263,10 @@ func quickConnectResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -313,9 +329,13 @@ func quickConnectResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/connect/task_template_resource_gen.go b/internal/aws/connect/task_template_resource_gen.go index ad84963572..baa7bbf3af 100644 --- a/internal/aws/connect/task_template_resource_gen.go +++ b/internal/aws/connect/task_template_resource_gen.go @@ -49,9 +49,13 @@ func taskTemplateResourceType(ctx context.Context) (provider.ResourceType, error Description: "the client token string in uuid format", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "constraints": { // Property: Constraints @@ -185,9 +189,13 @@ func taskTemplateResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "read_only_fields": { // Property: ReadOnlyFields @@ -215,9 +223,13 @@ func taskTemplateResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "required_fields": { // Property: RequiredFields @@ -245,13 +257,21 @@ func taskTemplateResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "contact_flow_arn": { // Property: ContactFlowArn @@ -264,9 +284,13 @@ func taskTemplateResourceType(ctx context.Context) (provider.ResourceType, error Description: "The identifier of the contact flow.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/contact-flow/[-a-zA-Z0-9]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "defaults": { // Property: Defaults @@ -342,9 +366,13 @@ func taskTemplateResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -358,9 +386,13 @@ func taskTemplateResourceType(ctx context.Context) (provider.ResourceType, error Description: "The description of the task template.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "fields": { // Property: Fields @@ -441,9 +473,13 @@ func taskTemplateResourceType(ctx context.Context) (provider.ResourceType, error Description: "The description of the task template's field", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id @@ -468,11 +504,15 @@ func taskTemplateResourceType(ctx context.Context) (provider.ResourceType, error Description: "list of field options to be used with single select", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), validate.ArrayForEach(validate.StringLenBetween(1, 100)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^[A-Za-z0-9](?:[A-Za-z0-9_.,\\s-]*[A-Za-z0-9_.,-])?$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type @@ -499,9 +539,13 @@ func taskTemplateResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_arn": { // Property: InstanceArn @@ -530,9 +574,13 @@ func taskTemplateResourceType(ctx context.Context) (provider.ResourceType, error Description: "The name of the task template.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status @@ -548,12 +596,16 @@ func taskTemplateResourceType(ctx context.Context) (provider.ResourceType, error Description: "The status of the task template", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ACTIVE", "INACTIVE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -612,9 +664,13 @@ func taskTemplateResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/connect/user_resource_gen.go b/internal/aws/connect/user_resource_gen.go index e37260d13e..7111b0b887 100644 --- a/internal/aws/connect/user_resource_gen.go +++ b/internal/aws/connect/user_resource_gen.go @@ -33,6 +33,10 @@ func userResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The identifier of the user account in the directory used for identity management.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "hierarchy_group_arn": { // Property: HierarchyGroupArn @@ -45,9 +49,13 @@ func userResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The identifier of the hierarchy group for the user.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/agent-group/[-a-zA-Z0-9]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "identity_info": { // Property: IdentityInfo @@ -79,22 +87,38 @@ func userResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The email address. If you are using SAML for identity management and include this parameter, an error is returned.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "first_name": { // Property: FirstName Description: "The first name. This is required if you are using Amazon Connect or SAML for identity management.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_name": { // Property: LastName Description: "The last name. This is required if you are using Amazon Connect or SAML for identity management.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_arn": { // Property: InstanceArn @@ -122,6 +146,10 @@ func userResourceType(ctx context.Context) (provider.ResourceType, error) { 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.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // Password is a write-only property. }, "phone_config": { @@ -166,21 +194,33 @@ func userResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The After Call Work (ACW) timeout setting, in seconds.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "auto_accept": { // Property: AutoAccept Description: "The Auto accept setting.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "desk_phone_number": { // Property: DeskPhoneNumber Description: "The phone number for the user's desk phone.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "phone_type": { // Property: PhoneType @@ -294,9 +334,13 @@ func userResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "user_arn": { // Property: UserArn diff --git a/internal/aws/connectcampaigns/campaign_resource_gen.go b/internal/aws/connectcampaigns/campaign_resource_gen.go index 8e80b13c22..d0700a7751 100644 --- a/internal/aws/connectcampaigns/campaign_resource_gen.go +++ b/internal/aws/connectcampaigns/campaign_resource_gen.go @@ -122,6 +122,10 @@ func campaignResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "progressive_dialer_config": { // Property: ProgressiveDialerConfig @@ -140,6 +144,10 @@ func campaignResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -220,9 +228,13 @@ func campaignResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The phone number associated with the Amazon Connect instance, in E.164 format. If you do not specify a source phone number, you must specify a queue.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -286,9 +298,13 @@ func campaignResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/customerprofiles/domain_resource_gen.go b/internal/aws/customerprofiles/domain_resource_gen.go index 1acc78873d..e4b73cc349 100644 --- a/internal/aws/customerprofiles/domain_resource_gen.go +++ b/internal/aws/customerprofiles/domain_resource_gen.go @@ -49,9 +49,13 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of the SQS dead letter queue", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "default_encryption_key": { // Property: DefaultEncryptionKey @@ -65,9 +69,13 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The default encryption key", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "default_expiration_days": { // Property: DefaultExpirationDays @@ -81,9 +89,13 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The default number of days until the data within the domain expires.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 1098), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "domain_name": { // Property: DomainName @@ -172,9 +184,13 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/customerprofiles/integration_resource_gen.go b/internal/aws/customerprofiles/integration_resource_gen.go index 4a37d63639..098bc54766 100644 --- a/internal/aws/customerprofiles/integration_resource_gen.go +++ b/internal/aws/customerprofiles/integration_resource_gen.go @@ -484,10 +484,14 @@ func integrationResourceType(ctx context.Context) (provider.ResourceType, error) // Property: Description Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2048), validate.StringMatch(regexp.MustCompile("[\\w!@#\\-.?,\\s]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "flow_name": { // Property: FlowName @@ -515,10 +519,14 @@ func integrationResourceType(ctx context.Context) (provider.ResourceType, error) // Property: ConnectorProfileName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("[\\w/!@#+=.-]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "connector_type": { // Property: ConnectorType @@ -542,13 +550,21 @@ func integrationResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DatetimeTypeFieldName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_connector_properties": { // Property: SourceConnectorProperties @@ -570,6 +586,10 @@ func integrationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3": { // Property: S3 @@ -588,14 +608,22 @@ func integrationResourceType(ctx context.Context) (provider.ResourceType, error) // Property: BucketPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "salesforce": { // Property: Salesforce @@ -605,11 +633,19 @@ func integrationResourceType(ctx context.Context) (provider.ResourceType, error) // Property: EnableDynamicFieldUpdate Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "include_deleted_records": { // Property: IncludeDeletedRecords Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "object": { // Property: Object @@ -623,6 +659,10 @@ func integrationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "service_now": { // Property: ServiceNow @@ -640,6 +680,10 @@ func integrationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "zendesk": { // Property: Zendesk @@ -657,6 +701,10 @@ func integrationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -678,6 +726,7 @@ func integrationResourceType(ctx context.Context) (provider.ResourceType, error) // Property: Marketo Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PROJECTION", @@ -698,11 +747,15 @@ func integrationResourceType(ctx context.Context) (provider.ResourceType, error) "NO_OP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3": { // Property: S3 Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PROJECTION", @@ -727,11 +780,15 @@ func integrationResourceType(ctx context.Context) (provider.ResourceType, error) "NO_OP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "salesforce": { // Property: Salesforce Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PROJECTION", @@ -757,11 +814,15 @@ func integrationResourceType(ctx context.Context) (provider.ResourceType, error) "NO_OP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "service_now": { // Property: ServiceNow Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PROJECTION", @@ -787,11 +848,15 @@ func integrationResourceType(ctx context.Context) (provider.ResourceType, error) "NO_OP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "zendesk": { // Property: Zendesk Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PROJECTION", @@ -810,19 +875,30 @@ func integrationResourceType(ctx context.Context) (provider.ResourceType, error) "NO_OP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_field": { // Property: DestinationField Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_fields": { // Property: SourceFields @@ -872,6 +948,10 @@ func integrationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "task_type": { // Property: TaskType @@ -909,22 +989,34 @@ func integrationResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DataPullMode Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Incremental", "Complete", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "first_execution_from": { // Property: FirstExecutionFrom Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "schedule_end_time": { // Property: ScheduleEndTime Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "schedule_expression": { // Property: ScheduleExpression @@ -939,31 +1031,51 @@ func integrationResourceType(ctx context.Context) (provider.ResourceType, error) // Property: ScheduleOffset Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 36000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "schedule_start_time": { // Property: ScheduleStartTime Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "timezone": { // Property: Timezone Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "trigger_type": { // Property: TriggerType @@ -984,6 +1096,10 @@ func integrationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // FlowDefinition is a write-only property. }, "last_updated_at": { @@ -1013,10 +1129,14 @@ func integrationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The name of the ObjectType defined for the 3rd party data in Profile Service", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), validate.StringMatch(regexp.MustCompile("^[a-zA-Z_][a-zA-Z_0-9-]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "object_type_names": { // Property: ObjectTypeNames @@ -1069,6 +1189,10 @@ func integrationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -1122,9 +1246,13 @@ func integrationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "uri": { // Property: Uri diff --git a/internal/aws/customerprofiles/object_type_resource_gen.go b/internal/aws/customerprofiles/object_type_resource_gen.go index 0282943363..31c9e83678 100644 --- a/internal/aws/customerprofiles/object_type_resource_gen.go +++ b/internal/aws/customerprofiles/object_type_resource_gen.go @@ -33,6 +33,10 @@ func objectTypeResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Indicates whether a profile should be created when data is received.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "created_at": { // Property: CreatedAt @@ -60,9 +64,13 @@ func objectTypeResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Description of the profile object type.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "domain_name": { // Property: DomainName @@ -97,9 +105,13 @@ func objectTypeResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The default encryption key", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "expiration_days": { // Property: ExpirationDays @@ -113,9 +125,13 @@ func objectTypeResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The default number of days until the data within the domain expires.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 1098), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "fields": { // Property: Fields @@ -174,10 +190,14 @@ func objectTypeResourceType(ctx context.Context) (provider.ResourceType, error) // Property: Name Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 64), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9_-]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "object_type_field": { // Property: ObjectTypeField @@ -189,6 +209,7 @@ func objectTypeResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The content type of the field. Used for determining equality when searching.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "STRING", @@ -198,34 +219,51 @@ func objectTypeResourceType(ctx context.Context) (provider.ResourceType, error) "NAME", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source": { // Property: Source Description: "A field of a ProfileObject. For example: _source.FirstName, where \"_source\" is a ProfileObjectType of a Zendesk user and \"FirstName\" is a field in that ObjectType.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target": { // Property: Target Description: "The location of the data in the standard ProfileObject model. For example: _profile.Address.PostalCode.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "keys": { @@ -290,10 +328,14 @@ func objectTypeResourceType(ctx context.Context) (provider.ResourceType, error) // Property: Name Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 64), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9_-]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "object_type_key_list": { // Property: ObjectTypeKeyList @@ -304,16 +346,21 @@ func objectTypeResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The reference for the key name of the fields map. ", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(1, 64)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9_-]+$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "standard_identifiers": { // Property: StandardIdentifiers Description: "The types of keys that a ProfileObject can have. Each ProfileObject can have only 1 UNIQUE key but multiple PROFILE keys. PROFILE means that this key can be used to tie an object to a PROFILE. UNIQUE means that it can be used to uniquely identify an object. If a key a is marked as SECONDARY, it will be used to search for profiles after all other PROFILE keys have been searched. A LOOKUP_ONLY key is only used to match a profile but is not persisted to be used for searching of the profile. A NEW_ONLY key is only used if the profile does not already exist before the object is ingested, otherwise it is only used for matching objects to profiles.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "PROFILE", @@ -323,19 +370,26 @@ func objectTypeResourceType(ctx context.Context) (provider.ResourceType, error) "NEW_ONLY", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "last_updated_at": { @@ -427,9 +481,13 @@ func objectTypeResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "template_id": { // Property: TemplateId @@ -444,10 +502,14 @@ func objectTypeResourceType(ctx context.Context) (provider.ResourceType, error) Description: "A unique identifier for the object template.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 64), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9_-]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/databrew/dataset_resource_gen.go b/internal/aws/databrew/dataset_resource_gen.go index 5aa53fcf38..c99686c916 100644 --- a/internal/aws/databrew/dataset_resource_gen.go +++ b/internal/aws/databrew/dataset_resource_gen.go @@ -40,6 +40,7 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Dataset format", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CSV", @@ -49,6 +50,9 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { "ORC", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "format_options": { // Property: FormatOptions @@ -136,18 +140,30 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Delimiter Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "header_row": { // Property: HeaderRow Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "excel": { // Property: Excel @@ -157,26 +173,39 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: HeaderRow Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sheet_indexes": { // Property: SheetIndexes Type: types.ListType{ElemType: types.Int64Type}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sheet_names": { // Property: SheetNames Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.RequiredAttributes( validate.OneOfRequired( @@ -189,6 +218,9 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { ), ), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "json": { // Property: Json @@ -199,14 +231,26 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: MultiLine Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "input": { // Property: Input @@ -327,18 +371,30 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Catalog id", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "database_name": { // Property: DatabaseName Description: "Database name", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "table_name": { // Property: TableName Description: "Table name", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "temp_directory": { // Property: TempDirectory @@ -354,14 +410,26 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Key Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "database_input_definition": { // Property: DatabaseInputDefinition @@ -372,6 +440,10 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Database table name", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "glue_connection_name": { // Property: GlueConnectionName @@ -384,6 +456,10 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Custom SQL to run against the provided AWS Glue connection. This SQL will be used as the input for DataBrew projects and jobs.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "temp_directory": { // Property: TempDirectory @@ -399,14 +475,26 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Key Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "metadata": { // Property: Metadata @@ -417,10 +505,18 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Arn of the source of the dataset. For e.g.: AppFlow Flow ARN.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_input_definition": { // Property: S3InputDefinition @@ -436,10 +532,18 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Key Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -687,27 +791,39 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Order", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ASCENDING", "DESCENDING", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ordered_by": { // Property: OrderedBy Description: "Ordered by", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "LAST_MODIFIED_DATE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_modified_date_condition": { // Property: LastModifiedDateCondition @@ -752,6 +868,10 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "parameters": { // Property: Parameters @@ -766,6 +886,10 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Add the value of this parameter as a column in a dataset.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "datetime_options": { // Property: DatetimeOptions @@ -785,24 +909,36 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Locale code for a date parameter", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(2, 100), validate.StringMatch(regexp.MustCompile("^[A-Za-z0-9_\\.#@\\-]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "timezone_offset": { // Property: TimezoneOffset Description: "Timezone offset", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 6), validate.StringMatch(regexp.MustCompile("^(Z|[-+](\\d|\\d{2}|\\d{2}:?\\d{2}))$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "filter": { // Property: Filter @@ -847,6 +983,10 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -886,10 +1026,18 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags diff --git a/internal/aws/databrew/job_resource_gen.go b/internal/aws/databrew/job_resource_gen.go index 5ca4713631..ab9762e254 100644 --- a/internal/aws/databrew/job_resource_gen.go +++ b/internal/aws/databrew/job_resource_gen.go @@ -129,9 +129,13 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: CatalogId Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "database_name": { // Property: DatabaseName @@ -167,27 +171,47 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: BucketOwner Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(12, 12), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key": { // Property: Key Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "overwrite": { // Property: Overwrite Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_options": { // Property: S3Options @@ -207,14 +231,22 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: BucketOwner Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(12, 12), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key": { // Property: Key Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -223,6 +255,10 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "table_name": { // Property: TableName @@ -235,6 +271,10 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "database_outputs": { // Property: DatabaseOutputs @@ -327,18 +367,30 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: BucketOwner Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(12, 12), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key": { // Property: Key Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -349,11 +401,15 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Database table name", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NEW_TABLE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "glue_connection_name": { // Property: GlueConnectionName @@ -364,6 +420,10 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dataset_name": { // Property: DatasetName @@ -377,9 +437,13 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Dataset name", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption_key_arn": { // Property: EncryptionKeyArn @@ -393,9 +457,13 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Encryption Key Arn", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(20, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption_mode": { // Property: EncryptionMode @@ -411,12 +479,16 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Encryption mode", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "SSE-KMS", "SSE-S3", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "job_sample": { // Property: JobSample @@ -449,22 +521,34 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Sample configuration mode for profile jobs.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "FULL_DATASET", "CUSTOM_ROWS", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "size": { // Property: Size Description: "Sample configuration size for profile jobs.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_subscription": { // Property: LogSubscription @@ -480,12 +564,16 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Log subscription", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ENABLE", "DISABLE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_capacity": { // Property: MaxCapacity @@ -497,6 +585,10 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Max capacity", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_retries": { // Property: MaxRetries @@ -508,6 +600,10 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Max retries", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -564,18 +660,30 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: BucketOwner Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(12, 12), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key": { // Property: Key Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "outputs": { // Property: Outputs @@ -682,6 +790,7 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: CompressionFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "GZIP", @@ -695,11 +804,15 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { "ZLIB", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "format": { // Property: Format Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CSV", @@ -712,6 +825,9 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { "TABLEAUHYPER", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "format_options": { // Property: FormatOptions @@ -727,17 +843,29 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Delimiter Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "location": { // Property: Location @@ -753,14 +881,22 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: BucketOwner Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(12, 12), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key": { // Property: Key Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -770,26 +906,42 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: MaxOutputFiles Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 999), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "overwrite": { // Property: Overwrite Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "partition_columns": { // Property: PartitionColumns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "profile_configuration": { // Property: ProfileConfiguration @@ -1006,24 +1158,36 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Name Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "regex": { // Property: Regex Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "statistics": { // Property: Statistics @@ -1033,11 +1197,15 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: IncludedStatistics Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), validate.ArrayForEach(validate.StringLenBetween(1, 128)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^[A-Z\\_]+$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "overrides": { // Property: Overrides @@ -1061,9 +1229,13 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1072,9 +1244,13 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dataset_statistics_configuration": { // Property: DatasetStatisticsConfiguration @@ -1084,11 +1260,15 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: IncludedStatistics Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), validate.ArrayForEach(validate.StringLenBetween(1, 128)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^[A-Z\\_]+$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "overrides": { // Property: Overrides @@ -1112,13 +1292,21 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "entity_detector_configuration": { // Property: EntityDetectorConfiguration @@ -1141,6 +1329,10 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "entity_types": { // Property: EntityTypes @@ -1155,6 +1347,10 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "profile_columns": { // Property: ProfileColumns @@ -1164,28 +1360,44 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Name Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "regex": { // Property: Regex Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "project_name": { // Property: ProjectName @@ -1199,9 +1411,13 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Project name", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "recipe": { // Property: Recipe @@ -1236,10 +1452,18 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Recipe version", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleArn @@ -1319,6 +1543,10 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Timeout", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type @@ -1391,18 +1619,26 @@ func jobResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: ValidationMode Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CHECK_ALL", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/databrew/project_resource_gen.go b/internal/aws/databrew/project_resource_gen.go index b8a601743b..398cc99867 100644 --- a/internal/aws/databrew/project_resource_gen.go +++ b/internal/aws/databrew/project_resource_gen.go @@ -119,9 +119,13 @@ func projectResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Sample size", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type @@ -139,6 +143,10 @@ func projectResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags diff --git a/internal/aws/databrew/ruleset_resource_gen.go b/internal/aws/databrew/ruleset_resource_gen.go index 49f73c6cfa..9148acff1b 100644 --- a/internal/aws/databrew/ruleset_resource_gen.go +++ b/internal/aws/databrew/ruleset_resource_gen.go @@ -34,9 +34,13 @@ func rulesetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Description of the Ruleset", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -199,31 +203,47 @@ func rulesetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of a column from a dataset", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "regex": { // Property: Regex Description: "A regular expression for selecting a column from a dataset", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "disabled": { // Property: Disabled Description: "Boolean value to disable/enable a rule", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -260,6 +280,10 @@ func rulesetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "threshold": { // Property: Threshold @@ -270,6 +294,7 @@ func rulesetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Threshold type for a rule", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "GREATER_THAN_OR_EQUAL", @@ -278,18 +303,25 @@ func rulesetResourceType(ctx context.Context) (provider.ResourceType, error) { "LESS_THAN", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "unit": { // Property: Unit Description: "Threshold unit for a rule", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "COUNT", "PERCENTAGE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value @@ -300,6 +332,10 @@ func rulesetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -358,8 +394,10 @@ func rulesetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "target_arn": { diff --git a/internal/aws/databrew/schedule_resource_gen.go b/internal/aws/databrew/schedule_resource_gen.go index d2030c0a2d..a6cff50f55 100644 --- a/internal/aws/databrew/schedule_resource_gen.go +++ b/internal/aws/databrew/schedule_resource_gen.go @@ -54,10 +54,14 @@ func scheduleResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), validate.ArrayForEach(validate.StringLenBetween(1, 255)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name diff --git a/internal/aws/datasync/agent_resource_gen.go b/internal/aws/datasync/agent_resource_gen.go index 936cb05201..35954caf29 100644 --- a/internal/aws/datasync/agent_resource_gen.go +++ b/internal/aws/datasync/agent_resource_gen.go @@ -73,10 +73,14 @@ func agentResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name configured for the agent. Text reference used to identify the agent in the console.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:@/-]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "endpoint_type": { // Property: EndpointType @@ -212,9 +216,13 @@ func agentResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_endpoint_id": { // Property: VpcEndpointId diff --git a/internal/aws/datasync/location_efs_resource_gen.go b/internal/aws/datasync/location_efs_resource_gen.go index ea3efa8fb6..c84465a88e 100644 --- a/internal/aws/datasync/location_efs_resource_gen.go +++ b/internal/aws/datasync/location_efs_resource_gen.go @@ -296,9 +296,13 @@ func locationEFSResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/datasync/location_fsx_lustre_resource_gen.go b/internal/aws/datasync/location_fsx_lustre_resource_gen.go index cb50f99042..0d4d42a99c 100644 --- a/internal/aws/datasync/location_fsx_lustre_resource_gen.go +++ b/internal/aws/datasync/location_fsx_lustre_resource_gen.go @@ -189,9 +189,13 @@ func locationFSxLustreResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/datasync/location_fsx_ontap_resource_gen.go b/internal/aws/datasync/location_fsx_ontap_resource_gen.go index a111149c0b..0d904c7bb9 100644 --- a/internal/aws/datasync/location_fsx_ontap_resource_gen.go +++ b/internal/aws/datasync/location_fsx_ontap_resource_gen.go @@ -172,6 +172,7 @@ func locationFSxONTAPResourceType(ctx context.Context) (provider.ResourceType, e Description: "The specific NFS version that you want DataSync to use to mount your NFS share.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "AUTOMATIC", @@ -180,6 +181,9 @@ func locationFSxONTAPResourceType(ctx context.Context) (provider.ResourceType, e "NFS4_1", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -188,6 +192,10 @@ func locationFSxONTAPResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "smb": { // Property: SMB @@ -199,10 +207,14 @@ func locationFSxONTAPResourceType(ctx context.Context) (provider.ResourceType, e Description: "The name of the Windows domain that the SMB server belongs to.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(253), validate.StringMatch(regexp.MustCompile("^([A-Za-z0-9]+[A-Za-z0-9-.]*)*[A-Za-z0-9-]*[A-Za-z0-9]$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "mount_options": { // Property: MountOptions @@ -214,6 +226,7 @@ func locationFSxONTAPResourceType(ctx context.Context) (provider.ResourceType, e Description: "The specific SMB version that you want DataSync to use to mount your SMB share.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "AUTOMATIC", @@ -221,6 +234,9 @@ func locationFSxONTAPResourceType(ctx context.Context) (provider.ResourceType, e "SMB3", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -249,6 +265,10 @@ func locationFSxONTAPResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -390,9 +410,13 @@ func locationFSxONTAPResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } 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 3bcb113c08..a8fde7888d 100644 --- a/internal/aws/datasync/location_fsx_open_zfs_resource_gen.go +++ b/internal/aws/datasync/location_fsx_open_zfs_resource_gen.go @@ -131,6 +131,7 @@ func locationFSxOpenZFSResourceType(ctx context.Context) (provider.ResourceType, Description: "The specific NFS version that you want DataSync to use to mount your NFS share.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "AUTOMATIC", @@ -139,6 +140,9 @@ func locationFSxOpenZFSResourceType(ctx context.Context) (provider.ResourceType, "NFS4_1", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -147,6 +151,10 @@ func locationFSxOpenZFSResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -268,9 +276,13 @@ func locationFSxOpenZFSResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/datasync/location_fsx_windows_resource_gen.go b/internal/aws/datasync/location_fsx_windows_resource_gen.go index 107baf70fd..d7f3323876 100644 --- a/internal/aws/datasync/location_fsx_windows_resource_gen.go +++ b/internal/aws/datasync/location_fsx_windows_resource_gen.go @@ -228,9 +228,13 @@ func locationFSxWindowsResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "user": { // Property: User diff --git a/internal/aws/datasync/location_hdfs_resource_gen.go b/internal/aws/datasync/location_hdfs_resource_gen.go index ef2e18e79f..246cacdf77 100644 --- a/internal/aws/datasync/location_hdfs_resource_gen.go +++ b/internal/aws/datasync/location_hdfs_resource_gen.go @@ -84,9 +84,13 @@ func locationHDFSResourceType(ctx context.Context) (provider.ResourceType, error Description: "Size of chunks (blocks) in bytes that the data is divided into when stored in the HDFS cluster.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1048576, 1073741824), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kerberos_keytab": { // Property: KerberosKeytab @@ -98,6 +102,10 @@ func locationHDFSResourceType(ctx context.Context) (provider.ResourceType, error Description: "The Base64 string representation of the Keytab file.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // KerberosKeytab is a write-only property. }, "kerberos_krb_5_conf": { @@ -110,6 +118,10 @@ func locationHDFSResourceType(ctx context.Context) (provider.ResourceType, error Description: "The string representation of the Krb5Conf file, or the presigned URL to access the Krb5.conf file within an S3 bucket.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // KerberosKrb5Conf is a write-only property. }, "kerberos_principal": { @@ -125,10 +137,14 @@ func locationHDFSResourceType(ctx context.Context) (provider.ResourceType, error Description: "The unique identity, or principal, to which Kerberos can assign tickets.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), validate.StringMatch(regexp.MustCompile("^.+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kms_key_provider_uri": { // Property: KmsKeyProviderUri @@ -143,10 +159,14 @@ func locationHDFSResourceType(ctx context.Context) (provider.ResourceType, error Description: "The identifier for the Key Management Server where the encryption keys that encrypt data inside HDFS clusters are stored.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), validate.StringMatch(regexp.MustCompile("^kms:\\/\\/http[s]?@(([a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9\\-]*[A-Za-z0-9])(;(([a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9\\-]*[A-Za-z0-9]))*:[0-9]{1,5}\\/kms$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "location_arn": { // Property: LocationArn @@ -320,6 +340,10 @@ func locationHDFSResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "replication_factor": { // Property: ReplicationFactor @@ -357,10 +381,14 @@ func locationHDFSResourceType(ctx context.Context) (provider.ResourceType, error Description: "The user name that has read and write permissions on the specified HDFS cluster.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), validate.StringMatch(regexp.MustCompile("^[_.A-Za-z0-9][-_.A-Za-z0-9]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subdirectory": { // Property: Subdirectory @@ -374,10 +402,14 @@ func locationHDFSResourceType(ctx context.Context) (provider.ResourceType, error Description: "The subdirectory in HDFS that is used to read data from the HDFS source location or write data to the HDFS destination.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(4096), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9_\\-\\+\\./\\(\\)\\$\\p{Zs}]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // Subdirectory is a write-only property. }, "tags": { @@ -437,9 +469,13 @@ func locationHDFSResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/datasync/location_nfs_resource_gen.go b/internal/aws/datasync/location_nfs_resource_gen.go index f7754f2e2f..bed2fe52fc 100644 --- a/internal/aws/datasync/location_nfs_resource_gen.go +++ b/internal/aws/datasync/location_nfs_resource_gen.go @@ -87,6 +87,7 @@ func locationNFSResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The specific NFS version that you want DataSync to use to mount your NFS share.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "AUTOMATIC", @@ -95,6 +96,9 @@ func locationNFSResourceType(ctx context.Context) (provider.ResourceType, error) "NFS4_1", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -259,9 +263,13 @@ func locationNFSResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/datasync/location_object_storage_resource_gen.go b/internal/aws/datasync/location_object_storage_resource_gen.go index a6a1b179ec..10b0749532 100644 --- a/internal/aws/datasync/location_object_storage_resource_gen.go +++ b/internal/aws/datasync/location_object_storage_resource_gen.go @@ -36,10 +36,14 @@ func locationObjectStorageResourceType(ctx context.Context) (provider.ResourceTy Description: "Optional. The access key is used if credentials are required to access the self-managed object storage server.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(8, 200), validate.StringMatch(regexp.MustCompile("^.+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "agent_arns": { // Property: AgentArns @@ -135,10 +139,14 @@ func locationObjectStorageResourceType(ctx context.Context) (provider.ResourceTy Description: "Optional. The secret key is used if credentials are required to access the self-managed object storage server.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(8, 200), validate.StringMatch(regexp.MustCompile("^.+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // SecretKey is a write-only property. }, "server_hostname": { @@ -174,9 +182,13 @@ func locationObjectStorageResourceType(ctx context.Context) (provider.ResourceTy Description: "The port that your self-managed server accepts inbound network traffic on.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 65536), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "server_protocol": { // Property: ServerProtocol @@ -192,12 +204,16 @@ func locationObjectStorageResourceType(ctx context.Context) (provider.ResourceTy Description: "The protocol that the object storage server uses to communicate.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "HTTPS", "HTTP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subdirectory": { // Property: Subdirectory @@ -211,10 +227,14 @@ func locationObjectStorageResourceType(ctx context.Context) (provider.ResourceTy Description: "The subdirectory in the self-managed object storage server that is used to read data from.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(4096), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9_\\-\\+\\./\\(\\)\\p{Zs}]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // Subdirectory is a write-only property. }, "tags": { @@ -278,9 +298,13 @@ func locationObjectStorageResourceType(ctx context.Context) (provider.ResourceTy }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/datasync/location_s3_resource_gen.go b/internal/aws/datasync/location_s3_resource_gen.go index 33e65ae6c5..244422d20d 100644 --- a/internal/aws/datasync/location_s3_resource_gen.go +++ b/internal/aws/datasync/location_s3_resource_gen.go @@ -235,9 +235,13 @@ func locationS3ResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/datasync/location_smb_resource_gen.go b/internal/aws/datasync/location_smb_resource_gen.go index ab07ae3c04..4eaa9179ba 100644 --- a/internal/aws/datasync/location_smb_resource_gen.go +++ b/internal/aws/datasync/location_smb_resource_gen.go @@ -63,10 +63,14 @@ func locationSMBResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The name of the Windows domain that the SMB server belongs to.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(253), validate.StringMatch(regexp.MustCompile("^([A-Za-z0-9]+[A-Za-z0-9-.]*)*[A-Za-z0-9-]*[A-Za-z0-9]$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "location_arn": { // Property: LocationArn @@ -130,6 +134,7 @@ func locationSMBResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The specific SMB version that you want DataSync to use to mount your SMB share.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "AUTOMATIC", @@ -137,6 +142,9 @@ func locationSMBResourceType(ctx context.Context) (provider.ResourceType, error) "SMB3", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -273,9 +281,13 @@ func locationSMBResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "user": { // Property: User diff --git a/internal/aws/datasync/task_resource_gen.go b/internal/aws/datasync/task_resource_gen.go index ce46abc874..046bd90670 100644 --- a/internal/aws/datasync/task_resource_gen.go +++ b/internal/aws/datasync/task_resource_gen.go @@ -35,10 +35,14 @@ func taskResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The ARN of the Amazon CloudWatch log group that is used to monitor and log events in the task.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(562), validate.StringMatch(regexp.MustCompile("^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):logs:[a-z\\-0-9]*:[0-9]{12}:log-group:([^:\\*]*)(:\\*)?$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_location_arn": { // Property: DestinationLocationArn @@ -147,6 +151,7 @@ func taskResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The type of filter rule to apply. AWS DataSync only supports the SIMPLE_PATTERN rule type.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(128), validate.StringMatch(regexp.MustCompile("^[A-Z0-9_]+$"), ""), @@ -154,25 +159,34 @@ func taskResourceType(ctx context.Context) (provider.ResourceType, error) { "SIMPLE_PATTERN", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Description: "A single filter string that consists of the patterns to include or exclude. The patterns are delimited by \"|\".", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(409600), validate.StringMatch(regexp.MustCompile("^[^\\x00]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 1), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "includes": { @@ -213,6 +227,7 @@ func taskResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The type of filter rule to apply. AWS DataSync only supports the SIMPLE_PATTERN rule type.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(128), validate.StringMatch(regexp.MustCompile("^[A-Z0-9_]+$"), ""), @@ -220,25 +235,34 @@ func taskResourceType(ctx context.Context) (provider.ResourceType, error) { "SIMPLE_PATTERN", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Description: "A single filter string that consists of the patterns to include or exclude. The patterns are delimited by \"|\".", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(409600), validate.StringMatch(regexp.MustCompile("^[^\\x00]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 1), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "name": { @@ -254,10 +278,14 @@ func taskResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of a task. This value is a text reference that is used to identify the task in the console.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9\\s+=._:@/-]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "options": { // Property: Options @@ -402,27 +430,36 @@ func taskResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A file metadata value that shows the last time a file was accessed (that is, when the file was read or written to).", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", "BEST_EFFORT", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bytes_per_second": { // Property: BytesPerSecond Description: "A value that limits the bandwidth used by AWS DataSync.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(-1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "gid": { // Property: Gid Description: "The group ID (GID) of the file's owners.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", @@ -431,12 +468,16 @@ func taskResourceType(ctx context.Context) (provider.ResourceType, error) { "BOTH", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_level": { // Property: LogLevel Description: "A value that determines the types of logs that DataSync publishes to a log stream in the Amazon CloudWatch log group that you provide.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "OFF", @@ -444,84 +485,112 @@ func taskResourceType(ctx context.Context) (provider.ResourceType, error) { "TRANSFER", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "mtime": { // Property: Mtime Description: "A value that indicates the last time that a file was modified (that is, a file was written to) before the PREPARING phase.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", "PRESERVE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "object_tags": { // Property: ObjectTags Description: "A value that determines whether object tags should be read from the source object store and written to the destination object store.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PRESERVE", "NONE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "overwrite_mode": { // Property: OverwriteMode Description: "A value that determines whether files at the destination should be overwritten or preserved when copying files.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ALWAYS", "NEVER", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "posix_permissions": { // Property: PosixPermissions Description: "A value that determines which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", "PRESERVE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "preserve_deleted_files": { // Property: PreserveDeletedFiles Description: "A value that specifies whether files in the destination that don't exist in the source file system should be preserved.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PRESERVE", "REMOVE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "preserve_devices": { // Property: PreserveDevices Description: "A value that determines whether AWS DataSync should preserve the metadata of block and character devices in the source file system, and recreate the files with that device name and metadata on the destination.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", "PRESERVE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "security_descriptor_copy_flags": { // Property: SecurityDescriptorCopyFlags Description: "A value that determines which components of the SMB security descriptor are copied during transfer.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", @@ -529,36 +598,48 @@ func taskResourceType(ctx context.Context) (provider.ResourceType, error) { "OWNER_DACL_SACL", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "task_queueing": { // Property: TaskQueueing Description: "A value that determines whether tasks should be queued before executing the tasks.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ENABLED", "DISABLED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "transfer_mode": { // Property: TransferMode Description: "A value that determines whether DataSync transfers only the data and metadata that differ between the source and the destination location, or whether DataSync transfers all the content from the source, without comparing to the destination location.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CHANGED", "ALL", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "uid": { // Property: Uid Description: "The user ID (UID) of the file's owner.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", @@ -567,12 +648,16 @@ func taskResourceType(ctx context.Context) (provider.ResourceType, error) { "BOTH", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "verify_mode": { // Property: VerifyMode Description: "A value that determines whether a data integrity verification should be performed at the end of a task execution after all data and metadata have been transferred.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "POINT_IN_TIME_CONSISTENT", @@ -580,10 +665,17 @@ func taskResourceType(ctx context.Context) (provider.ResourceType, error) { "NONE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "schedule": { // Property: Schedule @@ -620,6 +712,10 @@ func taskResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_location_arn": { // Property: SourceLocationArn @@ -744,9 +840,13 @@ func taskResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "task_arn": { // Property: TaskArn diff --git a/internal/aws/detective/graph_resource_gen.go b/internal/aws/detective/graph_resource_gen.go index 76e05c0b64..961de11c95 100644 --- a/internal/aws/detective/graph_resource_gen.go +++ b/internal/aws/detective/graph_resource_gen.go @@ -68,22 +68,34 @@ func graphResourceType(ctx context.Context) (provider.ResourceType, error) { 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:. Valid characters are Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @ ", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value 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:. Valid characters are Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @ ", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/detective/member_invitation_resource_gen.go b/internal/aws/detective/member_invitation_resource_gen.go index bcbcdc55cc..e42fcae844 100644 --- a/internal/aws/detective/member_invitation_resource_gen.go +++ b/internal/aws/detective/member_invitation_resource_gen.go @@ -103,9 +103,13 @@ func memberInvitationResourceType(ctx context.Context) (provider.ResourceType, e Description: "A message to be included in the email invitation sent to the invited account. Updating this field has no effect.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/devopsguru/notification_channel_resource_gen.go b/internal/aws/devopsguru/notification_channel_resource_gen.go index 2a48bae337..b4bcee4a47 100644 --- a/internal/aws/devopsguru/notification_channel_resource_gen.go +++ b/internal/aws/devopsguru/notification_channel_resource_gen.go @@ -58,14 +58,22 @@ func notificationChannelResourceType(ctx context.Context) (provider.ResourceType // Property: TopicArn Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(36, 1024), validate.StringMatch(regexp.MustCompile("^arn:aws[a-z0-9-]*:sns:[a-z0-9-]+:\\d{12}:[^:]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/devopsguru/resource_collection_resource_gen.go b/internal/aws/devopsguru/resource_collection_resource_gen.go index 1edefe5b59..15e2084bf4 100644 --- a/internal/aws/devopsguru/resource_collection_resource_gen.go +++ b/internal/aws/devopsguru/resource_collection_resource_gen.go @@ -93,15 +93,23 @@ func resourceCollectionResourceType(ctx context.Context) (provider.ResourceType, Description: "An array of CloudFormation stack names.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 1000), validate.ArrayForEach(validate.StringLenBetween(1, 128)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^[a-zA-Z*]+[a-zA-Z0-9-]*$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -113,23 +121,35 @@ func resourceCollectionResourceType(ctx context.Context) (provider.ResourceType, Description: "A Tag key for DevOps Guru app boundary.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tag_values": { // Property: TagValues Description: "Tag values of DevOps Guru app boundary.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 1000), validate.ArrayForEach(validate.StringLenBetween(1, 256)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/dynamodb/global_table_resource_gen.go b/internal/aws/dynamodb/global_table_resource_gen.go index 0592960dc7..e767a00810 100644 --- a/internal/aws/dynamodb/global_table_resource_gen.go +++ b/internal/aws/dynamodb/global_table_resource_gen.go @@ -91,6 +91,10 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "global_secondary_indexes": { // Property: GlobalSecondaryIndexes @@ -254,14 +258,22 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) // Property: NonKeyAttributes Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(20), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "projection_type": { // Property: ProjectionType Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -295,9 +307,13 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) // Property: SeedCapacity Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_tracking_scaling_policy_configuration": { // Property: TargetTrackingScalingPolicyConfiguration @@ -307,22 +323,34 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DisableScaleIn Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "scale_in_cooldown": { // Property: ScaleInCooldown Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "scale_out_cooldown": { // Property: ScaleOutCooldown Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_value": { // Property: TargetValue @@ -336,14 +364,26 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key_schema": { // Property: KeySchema @@ -506,14 +546,22 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) // Property: NonKeyAttributes Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(20), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "projection_type": { // Property: ProjectionType Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -765,6 +813,10 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "global_secondary_indexes": { // Property: GlobalSecondaryIndexes @@ -782,6 +834,10 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "index_name": { // Property: IndexName @@ -819,9 +875,13 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) // Property: SeedCapacity Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_tracking_scaling_policy_configuration": { // Property: TargetTrackingScalingPolicyConfiguration @@ -831,22 +891,34 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DisableScaleIn Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "scale_in_cooldown": { // Property: ScaleInCooldown Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "scale_out_cooldown": { // Property: ScaleOutCooldown Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_value": { // Property: TargetValue @@ -860,22 +932,38 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "read_capacity_units": { // Property: ReadCapacityUnits Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "point_in_time_recovery_specification": { // Property: PointInTimeRecoverySpecification @@ -885,10 +973,18 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) // Property: PointInTimeRecoveryEnabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "read_provisioned_throughput_settings": { // Property: ReadProvisionedThroughputSettings @@ -918,9 +1014,13 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) // Property: SeedCapacity Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_tracking_scaling_policy_configuration": { // Property: TargetTrackingScalingPolicyConfiguration @@ -930,22 +1030,34 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DisableScaleIn Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "scale_in_cooldown": { // Property: ScaleInCooldown Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "scale_out_cooldown": { // Property: ScaleOutCooldown Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_value": { // Property: TargetValue @@ -959,18 +1071,30 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "read_capacity_units": { // Property: ReadCapacityUnits Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "region": { // Property: Region @@ -989,11 +1113,19 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "table_class": { // Property: TableClass Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -1012,6 +1144,10 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1049,10 +1185,18 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) // Property: SSEType Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stream_arn": { // Property: StreamArn @@ -1091,6 +1235,10 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "table_id": { // Property: TableId @@ -1142,6 +1290,10 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) // Property: AttributeName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enabled": { // Property: Enabled @@ -1151,6 +1303,10 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "write_provisioned_throughput_settings": { // Property: WriteProvisionedThroughputSettings @@ -1234,9 +1390,13 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) // Property: SeedCapacity Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_tracking_scaling_policy_configuration": { // Property: TargetTrackingScalingPolicyConfiguration @@ -1246,22 +1406,34 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DisableScaleIn Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "scale_in_cooldown": { // Property: ScaleInCooldown Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "scale_out_cooldown": { // Property: ScaleOutCooldown Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_value": { // Property: TargetValue @@ -1275,10 +1447,18 @@ func globalTableResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/ec2/capacity_reservation_fleet_resource_gen.go b/internal/aws/ec2/capacity_reservation_fleet_resource_gen.go index a706eb506a..e264e41b73 100644 --- a/internal/aws/ec2/capacity_reservation_fleet_resource_gen.go +++ b/internal/aws/ec2/capacity_reservation_fleet_resource_gen.go @@ -128,39 +128,67 @@ func capacityReservationFleetResourceType(ctx context.Context) (provider.Resourc // Property: AvailabilityZone Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "availability_zone_id": { // Property: AvailabilityZoneId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ebs_optimized": { // Property: EbsOptimized Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_platform": { // Property: InstancePlatform Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_type": { // Property: InstanceType Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "priority": { // Property: Priority Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 999), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "weight": { // Property: Weight Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -182,6 +210,10 @@ func capacityReservationFleetResourceType(ctx context.Context) (provider.Resourc // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "remove_end_date": { // Property: RemoveEndDate @@ -191,6 +223,10 @@ func capacityReservationFleetResourceType(ctx context.Context) (provider.Resourc // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tag_specifications": { // Property: TagSpecifications @@ -236,6 +272,10 @@ func capacityReservationFleetResourceType(ctx context.Context) (provider.Resourc // Property: ResourceType Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -254,8 +294,10 @@ func capacityReservationFleetResourceType(ctx context.Context) (provider.Resourc }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -300,9 +342,13 @@ func capacityReservationFleetResourceType(ctx context.Context) (provider.Resourc // } Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 25000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/ec2/capacity_reservation_resource_gen.go b/internal/aws/ec2/capacity_reservation_resource_gen.go index 6a53c675f7..4dfd2f1977 100644 --- a/internal/aws/ec2/capacity_reservation_resource_gen.go +++ b/internal/aws/ec2/capacity_reservation_resource_gen.go @@ -67,6 +67,10 @@ func capacityReservationResourceType(ctx context.Context) (provider.ResourceType // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "end_date_type": { // Property: EndDateType @@ -76,6 +80,10 @@ func capacityReservationResourceType(ctx context.Context) (provider.ResourceType // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ephemeral_storage": { // Property: EphemeralStorage @@ -222,6 +230,10 @@ func capacityReservationResourceType(ctx context.Context) (provider.ResourceType // Property: ResourceType Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -240,8 +252,10 @@ func capacityReservationResourceType(ctx context.Context) (provider.ResourceType }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, diff --git a/internal/aws/ec2/carrier_gateway_resource_gen.go b/internal/aws/ec2/carrier_gateway_resource_gen.go index 2c81939861..1d99bd3e53 100644 --- a/internal/aws/ec2/carrier_gateway_resource_gen.go +++ b/internal/aws/ec2/carrier_gateway_resource_gen.go @@ -98,21 +98,33 @@ func carrierGatewayResourceType(ctx context.Context) (provider.ResourceType, err // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 127), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_id": { // Property: VpcId diff --git a/internal/aws/ec2/customer_gateway_resource_gen.go b/internal/aws/ec2/customer_gateway_resource_gen.go index 3ee65f6430..201360bb22 100644 --- a/internal/aws/ec2/customer_gateway_resource_gen.go +++ b/internal/aws/ec2/customer_gateway_resource_gen.go @@ -108,8 +108,10 @@ func customerGatewayResourceType(ctx context.Context) (provider.ResourceType, er }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "type": { diff --git a/internal/aws/ec2/dhcp_options_resource_gen.go b/internal/aws/ec2/dhcp_options_resource_gen.go index f86e192a79..cf0a95499e 100644 --- a/internal/aws/ec2/dhcp_options_resource_gen.go +++ b/internal/aws/ec2/dhcp_options_resource_gen.go @@ -183,8 +183,10 @@ func dHCPOptionsResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/ec2/ec2_fleet_resource_gen.go b/internal/aws/ec2/ec2_fleet_resource_gen.go index f61fedac12..963d439053 100644 --- a/internal/aws/ec2/ec2_fleet_resource_gen.go +++ b/internal/aws/ec2/ec2_fleet_resource_gen.go @@ -31,6 +31,10 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "excess_capacity_termination_policy": { // Property: ExcessCapacityTerminationPolicy @@ -44,12 +48,16 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "termination", "no-termination", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "fleet_id": { // Property: FleetId @@ -385,24 +393,40 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: LaunchTemplateId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "launch_template_name": { // Property: LaunchTemplateName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 128), validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9\\(\\)\\.\\-/_]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "version": { // Property: Version Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "overrides": { // Property: Overrides @@ -412,6 +436,10 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: AvailabilityZone Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_requirements": { // Property: InstanceRequirements @@ -425,20 +453,33 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "accelerator_manufacturers": { // Property: AcceleratorManufacturers Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "nvidia", @@ -447,11 +488,15 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { "xilinx", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "accelerator_names": { // Property: AcceleratorNames Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "a100", @@ -465,6 +510,9 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { "k520", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "accelerator_total_memory_mi_b": { // Property: AcceleratorTotalMemoryMiB @@ -474,20 +522,33 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "accelerator_types": { // Property: AcceleratorTypes Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "gpu", @@ -495,11 +556,15 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { "inference", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bare_metal": { // Property: BareMetal Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "included", @@ -507,6 +572,9 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { "excluded", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "baseline_ebs_bandwidth_mbps": { // Property: BaselineEbsBandwidthMbps @@ -516,20 +584,33 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "burstable_performance": { // Property: BurstablePerformance Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "included", @@ -537,11 +618,15 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { "excluded", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cpu_manufacturers": { // Property: CpuManufacturers Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "intel", @@ -549,31 +634,43 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { "amazon-web-services", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "excluded_instance_types": { // Property: ExcludedInstanceTypes Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(1, 30)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9\\.\\*]+"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_generations": { // Property: InstanceGenerations Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "current", "previous", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "local_storage": { // Property: LocalStorage Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "included", @@ -581,17 +678,24 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { "excluded", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "local_storage_types": { // Property: LocalStorageTypes Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "hdd", "ssd", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "memory_gi_b_per_v_cpu": { // Property: MemoryGiBPerVCpu @@ -601,15 +705,27 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "memory_mi_b": { // Property: MemoryMiB @@ -619,15 +735,27 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "network_interface_count": { // Property: NetworkInterfaceCount @@ -637,30 +765,54 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "on_demand_max_price_percentage_over_lowest_price": { // Property: OnDemandMaxPricePercentageOverLowestPrice Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "require_hibernate_support": { // Property: RequireHibernateSupport Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "spot_max_price_percentage_over_lowest_price": { // Property: SpotMaxPricePercentageOverLowestPrice Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "total_local_storage_gb": { // Property: TotalLocalStorageGB @@ -670,15 +822,27 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "v_cpu_count": { // Property: VCpuCount @@ -688,29 +852,53 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_type": { // Property: InstanceType Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_price": { // Property: MaxPrice Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "placement": { // Property: Placement @@ -720,64 +908,116 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Affinity Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "availability_zone": { // Property: AvailabilityZone Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "group_name": { // Property: GroupName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "host_id": { // Property: HostId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "host_resource_group_arn": { // Property: HostResourceGroupArn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "partition_number": { // Property: PartitionNumber Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "spread_domain": { // Property: SpreadDomain Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tenancy": { // Property: Tenancy Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "priority": { // Property: Priority Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnet_id": { // Property: SubnetId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "weighted_capacity": { // Property: WeightedCapacity Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -831,6 +1071,10 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: AllocationStrategy Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "capacity_reservation_options": { // Property: CapacityReservationOptions @@ -840,35 +1084,59 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: UsageStrategy Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "use-capacity-reservations-first", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_total_price": { // Property: MaxTotalPrice Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_target_capacity": { // Property: MinTargetCapacity Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "single_availability_zone": { // Property: SingleAvailabilityZone Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "single_instance_type": { // Property: SingleInstanceType Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -962,6 +1230,7 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: AllocationStrategy Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "lowestPrice", @@ -970,11 +1239,15 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { "capacityOptimizedPrioritized", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_interruption_behavior": { // Property: InstanceInterruptionBehavior Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "hibernate", @@ -982,11 +1255,18 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { "terminate", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_pools_to_use_count": { // Property: InstancePoolsToUseCount Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "maintenance_strategies": { // Property: MaintenanceStrategies @@ -1000,45 +1280,77 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: ReplacementStrategy Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "launch", "launch-before-terminate", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "termination_delay": { // Property: TerminationDelay Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_total_price": { // Property: MaxTotalPrice Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_target_capacity": { // Property: MinTargetCapacity Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "single_availability_zone": { // Property: SingleAvailabilityZone Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "single_instance_type": { // Property: SingleInstanceType Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1140,6 +1452,7 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: ResourceType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "client-vpn-endpoint", @@ -1191,6 +1504,9 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { "vpn-gateway", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -1209,6 +1525,10 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1261,27 +1581,40 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: DefaultTargetCapacityType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "on-demand", "spot", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "on_demand_target_capacity": { // Property: OnDemandTargetCapacity Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "spot_target_capacity": { // Property: SpotTargetCapacity Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_capacity_unit_type": { // Property: TargetCapacityUnitType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "vcpu", @@ -1289,6 +1622,9 @@ func eC2FleetResourceType(ctx context.Context) (provider.ResourceType, error) { "units", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "total_target_capacity": { // Property: TotalTargetCapacity diff --git a/internal/aws/ec2/flow_log_resource_gen.go b/internal/aws/ec2/flow_log_resource_gen.go index 3f294cda15..ddc142d094 100644 --- a/internal/aws/ec2/flow_log_resource_gen.go +++ b/internal/aws/ec2/flow_log_resource_gen.go @@ -287,6 +287,10 @@ func flowLogResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "traffic_type": { // Property: TrafficType diff --git a/internal/aws/ec2/host_resource_gen.go b/internal/aws/ec2/host_resource_gen.go index 3bd44d3c81..82d95066f1 100644 --- a/internal/aws/ec2/host_resource_gen.go +++ b/internal/aws/ec2/host_resource_gen.go @@ -31,6 +31,10 @@ func hostResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "availability_zone": { // Property: AvailabilityZone @@ -70,6 +74,10 @@ func hostResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by default.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_family": { // Property: InstanceFamily diff --git a/internal/aws/ec2/internet_gateway_resource_gen.go b/internal/aws/ec2/internet_gateway_resource_gen.go index bb55f10d05..ecb7df463d 100644 --- a/internal/aws/ec2/internet_gateway_resource_gen.go +++ b/internal/aws/ec2/internet_gateway_resource_gen.go @@ -86,8 +86,10 @@ func internetGatewayResourceType(ctx context.Context) (provider.ResourceType, er }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/ec2/ipam_pool_resource_gen.go b/internal/aws/ec2/ipam_pool_resource_gen.go index 5b138bd829..73d2391bbd 100644 --- a/internal/aws/ec2/ipam_pool_resource_gen.go +++ b/internal/aws/ec2/ipam_pool_resource_gen.go @@ -46,6 +46,10 @@ func iPAMPoolResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The default netmask length for allocations made from this pool. This value is used when the netmask length of an allocation isn't specified.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "allocation_max_netmask_length": { // Property: AllocationMaxNetmaskLength @@ -57,6 +61,10 @@ func iPAMPoolResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The maximum allowed netmask length for allocations made from this pool.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "allocation_min_netmask_length": { // Property: AllocationMinNetmaskLength @@ -68,6 +76,10 @@ func iPAMPoolResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The minimum allowed netmask length for allocations made from this pool.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "allocation_resource_tags": { // Property: AllocationResourceTags @@ -125,6 +137,10 @@ func iPAMPoolResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "arn": { // Property: Arn @@ -150,6 +166,10 @@ func iPAMPoolResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Determines what to do if IPAM discovers resources that haven't been assigned an allocation. If set to true, an allocation will be made automatically.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "aws_service": { // Property: AwsService @@ -183,6 +203,10 @@ func iPAMPoolResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ipam_arn": { // Property: IpamArn @@ -324,6 +348,10 @@ func iPAMPoolResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "publicly_advertisable": { // Property: PubliclyAdvertisable @@ -449,6 +477,10 @@ func iPAMPoolResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/ec2/ipam_resource_gen.go b/internal/aws/ec2/ipam_resource_gen.go index 2290b4639f..8860ee6ff6 100644 --- a/internal/aws/ec2/ipam_resource_gen.go +++ b/internal/aws/ec2/ipam_resource_gen.go @@ -44,6 +44,10 @@ func iPAMResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ipam_id": { // Property: IpamId @@ -94,6 +98,10 @@ func iPAMResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "private_default_scope_id": { // Property: PrivateDefaultScopeId @@ -194,6 +202,10 @@ func iPAMResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/ec2/ipam_scope_resource_gen.go b/internal/aws/ec2/ipam_scope_resource_gen.go index dd71cc2491..ca2c84d16e 100644 --- a/internal/aws/ec2/ipam_scope_resource_gen.go +++ b/internal/aws/ec2/ipam_scope_resource_gen.go @@ -44,6 +44,10 @@ func iPAMScopeResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ipam_arn": { // Property: IpamArn @@ -190,6 +194,10 @@ func iPAMScopeResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/ec2/local_gateway_route_table_vpc_association_resource_gen.go b/internal/aws/ec2/local_gateway_route_table_vpc_association_resource_gen.go index f36f3f8a6e..b47e8c6a2f 100644 --- a/internal/aws/ec2/local_gateway_route_table_vpc_association_resource_gen.go +++ b/internal/aws/ec2/local_gateway_route_table_vpc_association_resource_gen.go @@ -112,21 +112,33 @@ func localGatewayRouteTableVPCAssociationResourceType(ctx context.Context) (prov // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 127), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_id": { // Property: VpcId diff --git a/internal/aws/ec2/nat_gateway_resource_gen.go b/internal/aws/ec2/nat_gateway_resource_gen.go index b4fac1e597..4aa9abf77c 100644 --- a/internal/aws/ec2/nat_gateway_resource_gen.go +++ b/internal/aws/ec2/nat_gateway_resource_gen.go @@ -112,8 +112,10 @@ func natGatewayResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/ec2/network_acl_resource_gen.go b/internal/aws/ec2/network_acl_resource_gen.go index 6245333c3d..0eb8c2d35e 100644 --- a/internal/aws/ec2/network_acl_resource_gen.go +++ b/internal/aws/ec2/network_acl_resource_gen.go @@ -74,8 +74,10 @@ func networkAclResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "vpc_id": { diff --git a/internal/aws/ec2/network_insights_access_scope_analysis_resource_gen.go b/internal/aws/ec2/network_insights_access_scope_analysis_resource_gen.go index 2f4eb2eddc..c66bcef4c1 100644 --- a/internal/aws/ec2/network_insights_access_scope_analysis_resource_gen.go +++ b/internal/aws/ec2/network_insights_access_scope_analysis_resource_gen.go @@ -172,12 +172,18 @@ func networkInsightsAccessScopeAnalysisResourceType(ctx context.Context) (provid // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } 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 a83c4165c4..9754a6b7b8 100644 --- a/internal/aws/ec2/network_insights_access_scope_resource_gen.go +++ b/internal/aws/ec2/network_insights_access_scope_resource_gen.go @@ -261,46 +261,78 @@ func networkInsightsAccessScopeResourceType(ctx context.Context) (provider.Resou // Property: DestinationAddresses Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_ports": { // Property: DestinationPorts Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_prefix_lists": { // Property: DestinationPrefixLists Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocols": { // Property: Protocols Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "tcp", "udp", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_addresses": { // Property: SourceAddresses Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_ports": { // Property: SourcePorts Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_prefix_lists": { // Property: SourcePrefixLists Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_statement": { // Property: ResourceStatement @@ -310,19 +342,35 @@ func networkInsightsAccessScopeResourceType(ctx context.Context) (provider.Resou // Property: ResourceTypes Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resources": { // Property: Resources Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source": { // Property: Source @@ -336,46 +384,78 @@ func networkInsightsAccessScopeResourceType(ctx context.Context) (provider.Resou // Property: DestinationAddresses Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_ports": { // Property: DestinationPorts Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_prefix_lists": { // Property: DestinationPrefixLists Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocols": { // Property: Protocols Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "tcp", "udp", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_addresses": { // Property: SourceAddresses Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_ports": { // Property: SourcePorts Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_prefix_lists": { // Property: SourcePrefixLists Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_statement": { // Property: ResourceStatement @@ -385,19 +465,35 @@ func networkInsightsAccessScopeResourceType(ctx context.Context) (provider.Resou // Property: ResourceTypes Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resources": { // Property: Resources Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "through_resources": { // Property: ThroughResources @@ -411,19 +507,35 @@ func networkInsightsAccessScopeResourceType(ctx context.Context) (provider.Resou // Property: ResourceTypes Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resources": { // Property: Resources Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -662,46 +774,78 @@ func networkInsightsAccessScopeResourceType(ctx context.Context) (provider.Resou // Property: DestinationAddresses Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_ports": { // Property: DestinationPorts Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_prefix_lists": { // Property: DestinationPrefixLists Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocols": { // Property: Protocols Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "tcp", "udp", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_addresses": { // Property: SourceAddresses Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_ports": { // Property: SourcePorts Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_prefix_lists": { // Property: SourcePrefixLists Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_statement": { // Property: ResourceStatement @@ -711,19 +855,35 @@ func networkInsightsAccessScopeResourceType(ctx context.Context) (provider.Resou // Property: ResourceTypes Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resources": { // Property: Resources Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source": { // Property: Source @@ -737,46 +897,78 @@ func networkInsightsAccessScopeResourceType(ctx context.Context) (provider.Resou // Property: DestinationAddresses Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_ports": { // Property: DestinationPorts Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_prefix_lists": { // Property: DestinationPrefixLists Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocols": { // Property: Protocols Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "tcp", "udp", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_addresses": { // Property: SourceAddresses Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_ports": { // Property: SourcePorts Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_prefix_lists": { // Property: SourcePrefixLists Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_statement": { // Property: ResourceStatement @@ -786,19 +978,35 @@ func networkInsightsAccessScopeResourceType(ctx context.Context) (provider.Resou // Property: ResourceTypes Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resources": { // Property: Resources Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "through_resources": { // Property: ThroughResources @@ -812,19 +1020,35 @@ func networkInsightsAccessScopeResourceType(ctx context.Context) (provider.Resou // Property: ResourceTypes Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resources": { // Property: Resources Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -893,12 +1117,18 @@ func networkInsightsAccessScopeResourceType(ctx context.Context) (provider.Resou // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "updated_date": { diff --git a/internal/aws/ec2/network_insights_analysis_resource_gen.go b/internal/aws/ec2/network_insights_analysis_resource_gen.go index e730e00d75..b64c7a8edc 100644 --- a/internal/aws/ec2/network_insights_analysis_resource_gen.go +++ b/internal/aws/ec2/network_insights_analysis_resource_gen.go @@ -45,11 +45,19 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: ComponentArn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "component_id": { // Property: ComponentId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -596,15 +604,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "acl_rule": { // Property: AclRule @@ -614,11 +634,19 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Cidr Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "egress": { // Property: Egress Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "port_range": { // Property: PortRange @@ -628,44 +656,80 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: From Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "to": { // Property: To Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocol": { // Property: Protocol Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rule_action": { // Property: RuleAction Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rule_number": { // Property: RuleNumber Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "address": { // Property: Address Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "addresses": { // Property: Addresses Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "attached_to": { // Property: AttachedTo @@ -675,25 +739,45 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "availability_zones": { // Property: AvailabilityZones Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cidrs": { // Property: Cidrs Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "classic_load_balancer_listener": { // Property: ClassicLoadBalancerListener @@ -703,15 +787,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: InstancePort Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "load_balancer_port": { // Property: LoadBalancerPort Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "component": { // Property: Component @@ -721,15 +817,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "customer_gateway": { // Property: CustomerGateway @@ -739,15 +847,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination": { // Property: Destination @@ -757,15 +877,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_vpc": { // Property: DestinationVpc @@ -775,20 +907,36 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "direction": { // Property: Direction Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "elastic_load_balancer_listener": { // Property: ElasticLoadBalancerListener @@ -798,20 +946,36 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "explanation_code": { // Property: ExplanationCode Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ingress_route_table": { // Property: IngressRouteTable @@ -821,15 +985,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "internet_gateway": { // Property: InternetGateway @@ -839,25 +1015,45 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "load_balancer_arn": { // Property: LoadBalancerArn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "load_balancer_listener_port": { // Property: LoadBalancerListenerPort Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "load_balancer_target": { // Property: LoadBalancerTarget @@ -867,11 +1063,19 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Address Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "availability_zone": { // Property: AvailabilityZone Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance": { // Property: Instance @@ -881,24 +1085,44 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "port": { // Property: Port Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "load_balancer_target_group": { // Property: LoadBalancerTargetGroup @@ -908,15 +1132,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "load_balancer_target_groups": { // Property: LoadBalancerTargetGroups @@ -926,25 +1162,45 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "load_balancer_target_port": { // Property: LoadBalancerTargetPort Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "missing_component": { // Property: MissingComponent Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "nat_gateway": { // Property: NatGateway @@ -954,15 +1210,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "network_interface": { // Property: NetworkInterface @@ -972,25 +1240,45 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "packet_field": { // Property: PacketField Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "port": { // Property: Port Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "port_ranges": { // Property: PortRanges @@ -1000,15 +1288,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: From Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "to": { // Property: To Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix_list": { // Property: PrefixList @@ -1018,20 +1318,36 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocols": { // Property: Protocols Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "route_table": { // Property: RouteTable @@ -1041,15 +1357,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "route_table_route": { // Property: RouteTableRoute @@ -1059,55 +1387,99 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: NatGatewayId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "network_interface_id": { // Property: NetworkInterfaceId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "origin": { // Property: Origin Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "transit_gateway_id": { // Property: TransitGatewayId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_peering_connection_id": { // Property: VpcPeeringConnectionId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_cidr": { // Property: destinationCidr Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_prefix_list_id": { // Property: destinationPrefixListId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "egress_only_internet_gateway_id": { // Property: egressOnlyInternetGatewayId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "gateway_id": { // Property: gatewayId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_id": { // Property: instanceId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "security_group": { // Property: SecurityGroup @@ -1117,15 +1489,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "security_group_rule": { // Property: SecurityGroupRule @@ -1135,11 +1519,19 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Cidr Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "direction": { // Property: Direction Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "port_range": { // Property: PortRange @@ -1149,34 +1541,62 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: From Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "to": { // Property: To Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix_list_id": { // Property: PrefixListId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocol": { // Property: Protocol Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "security_group_id": { // Property: SecurityGroupId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "security_groups": { // Property: SecurityGroups @@ -1186,15 +1606,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_vpc": { // Property: SourceVpc @@ -1204,20 +1636,36 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "state": { // Property: State Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnet": { // Property: Subnet @@ -1227,15 +1675,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnet_route_table": { // Property: SubnetRouteTable @@ -1245,15 +1705,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc": { // Property: Vpc @@ -1263,15 +1735,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_peering_connection": { // Property: VpcPeeringConnection @@ -1281,15 +1765,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpn_connection": { // Property: VpnConnection @@ -1299,15 +1795,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpn_gateway": { // Property: VpnGateway @@ -1317,15 +1825,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_endpoint": { // Property: vpcEndpoint @@ -1335,15 +1855,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1658,11 +2190,19 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Cidr Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "egress": { // Property: Egress Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "port_range": { // Property: PortRange @@ -1672,34 +2212,62 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: From Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "to": { // Property: To Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocol": { // Property: Protocol Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rule_action": { // Property: RuleAction Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rule_number": { // Property: RuleNumber Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "component": { // Property: Component @@ -1709,15 +2277,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_vpc": { // Property: DestinationVpc @@ -1727,15 +2307,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inbound_header": { // Property: InboundHeader @@ -1745,6 +2337,10 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: DestinationAddresses Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_port_ranges": { // Property: DestinationPortRanges @@ -1754,25 +2350,45 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: From Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "to": { // Property: To Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocol": { // Property: Protocol Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_addresses": { // Property: SourceAddresses Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_port_ranges": { // Property: SourcePortRanges @@ -1782,19 +2398,35 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: From Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "to": { // Property: To Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "outbound_header": { // Property: OutboundHeader @@ -1804,6 +2436,10 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: DestinationAddresses Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_port_ranges": { // Property: DestinationPortRanges @@ -1813,25 +2449,45 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: From Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "to": { // Property: To Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocol": { // Property: Protocol Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_addresses": { // Property: SourceAddresses Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_port_ranges": { // Property: SourcePortRanges @@ -1841,19 +2497,35 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: From Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "to": { // Property: To Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "route_table_route": { // Property: RouteTableRoute @@ -1863,55 +2535,99 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: NatGatewayId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "network_interface_id": { // Property: NetworkInterfaceId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "origin": { // Property: Origin Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "transit_gateway_id": { // Property: TransitGatewayId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_peering_connection_id": { // Property: VpcPeeringConnectionId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_cidr": { // Property: destinationCidr Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_prefix_list_id": { // Property: destinationPrefixListId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "egress_only_internet_gateway_id": { // Property: egressOnlyInternetGatewayId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "gateway_id": { // Property: gatewayId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_id": { // Property: instanceId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "security_group_rule": { // Property: SecurityGroupRule @@ -1921,11 +2637,19 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Cidr Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "direction": { // Property: Direction Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "port_range": { // Property: PortRange @@ -1935,39 +2659,71 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: From Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "to": { // Property: To Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix_list_id": { // Property: PrefixListId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocol": { // Property: Protocol Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "security_group_id": { // Property: SecurityGroupId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sequence_number": { // Property: SequenceNumber Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_vpc": { // Property: SourceVpc @@ -1977,15 +2733,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnet": { // Property: Subnet @@ -1995,15 +2763,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc": { // Property: Vpc @@ -2013,15 +2793,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -2367,11 +3159,19 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Cidr Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "egress": { // Property: Egress Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "port_range": { // Property: PortRange @@ -2381,34 +3181,62 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: From Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "to": { // Property: To Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocol": { // Property: Protocol Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rule_action": { // Property: RuleAction Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rule_number": { // Property: RuleNumber Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "component": { // Property: Component @@ -2418,15 +3246,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_vpc": { // Property: DestinationVpc @@ -2436,15 +3276,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inbound_header": { // Property: InboundHeader @@ -2454,6 +3306,10 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: DestinationAddresses Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_port_ranges": { // Property: DestinationPortRanges @@ -2463,25 +3319,45 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: From Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "to": { // Property: To Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocol": { // Property: Protocol Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_addresses": { // Property: SourceAddresses Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_port_ranges": { // Property: SourcePortRanges @@ -2491,19 +3367,35 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: From Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "to": { // Property: To Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "outbound_header": { // Property: OutboundHeader @@ -2513,6 +3405,10 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: DestinationAddresses Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_port_ranges": { // Property: DestinationPortRanges @@ -2522,25 +3418,45 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: From Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "to": { // Property: To Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocol": { // Property: Protocol Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_addresses": { // Property: SourceAddresses Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_port_ranges": { // Property: SourcePortRanges @@ -2550,19 +3466,35 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: From Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "to": { // Property: To Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "route_table_route": { // Property: RouteTableRoute @@ -2572,55 +3504,99 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: NatGatewayId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "network_interface_id": { // Property: NetworkInterfaceId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "origin": { // Property: Origin Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "transit_gateway_id": { // Property: TransitGatewayId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_peering_connection_id": { // Property: VpcPeeringConnectionId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_cidr": { // Property: destinationCidr Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_prefix_list_id": { // Property: destinationPrefixListId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "egress_only_internet_gateway_id": { // Property: egressOnlyInternetGatewayId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "gateway_id": { // Property: gatewayId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_id": { // Property: instanceId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "security_group_rule": { // Property: SecurityGroupRule @@ -2630,11 +3606,19 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Cidr Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "direction": { // Property: Direction Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "port_range": { // Property: PortRange @@ -2644,39 +3628,71 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: From Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "to": { // Property: To Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix_list_id": { // Property: PrefixListId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocol": { // Property: Protocol Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "security_group_id": { // Property: SecurityGroupId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sequence_number": { // Property: SequenceNumber Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_vpc": { // Property: SourceVpc @@ -2686,15 +3702,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnet": { // Property: Subnet @@ -2704,15 +3732,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc": { // Property: Vpc @@ -2722,15 +3762,27 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -2812,10 +3864,18 @@ func networkInsightsAnalysisResourceType(ctx context.Context) (provider.Resource // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/ec2/network_insights_path_resource_gen.go b/internal/aws/ec2/network_insights_path_resource_gen.go index 7d77f45ce4..c3ed743e4e 100644 --- a/internal/aws/ec2/network_insights_path_resource_gen.go +++ b/internal/aws/ec2/network_insights_path_resource_gen.go @@ -179,12 +179,18 @@ func networkInsightsPathResourceType(ctx context.Context) (provider.ResourceType // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/ec2/network_interface_resource_gen.go b/internal/aws/ec2/network_interface_resource_gen.go index 7dd431050a..5be5b6adde 100644 --- a/internal/aws/ec2/network_interface_resource_gen.go +++ b/internal/aws/ec2/network_interface_resource_gen.go @@ -31,6 +31,10 @@ func networkInterfaceResourceType(ctx context.Context) (provider.ResourceType, e Description: "A description for the network interface.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "group_set": { // Property: GroupSet @@ -47,8 +51,10 @@ func networkInterfaceResourceType(ctx context.Context) (provider.ResourceType, e Description: "A list of security group IDs associated with this network interface.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "id": { @@ -91,6 +97,10 @@ func networkInterfaceResourceType(ctx context.Context) (provider.ResourceType, e Description: "The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. To specify specific IPv6 addresses, use the Ipv6Addresses property and don't specify this property.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ipv_6_addresses": { // Property: Ipv6Addresses @@ -124,6 +134,10 @@ func networkInterfaceResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "primary_private_ip_address": { // Property: PrimaryPrivateIpAddress @@ -196,8 +210,10 @@ func networkInterfaceResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "secondary_private_ip_address_count": { @@ -210,6 +226,10 @@ func networkInterfaceResourceType(ctx context.Context) (provider.ResourceType, e Description: "The number of secondary private IPv4 addresses to assign to a network interface. When you specify a number of secondary IPv4 addresses, Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR range. You can't specify this option and specify more than one private IP address using privateIpAddresses", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "secondary_private_ip_addresses": { // Property: SecondaryPrivateIpAddresses @@ -241,6 +261,10 @@ func networkInterfaceResourceType(ctx context.Context) (provider.ResourceType, e Description: "Indicates whether traffic to or from the instance is validated.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnet_id": { // Property: SubnetId @@ -297,8 +321,10 @@ func networkInterfaceResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/ec2/prefix_list_resource_gen.go b/internal/aws/ec2/prefix_list_resource_gen.go index d970ef2975..d924fbcaa7 100644 --- a/internal/aws/ec2/prefix_list_resource_gen.go +++ b/internal/aws/ec2/prefix_list_resource_gen.go @@ -98,13 +98,21 @@ func prefixListResourceType(ctx context.Context) (provider.ResourceType, error) // Property: Description Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_entries": { // Property: MaxEntries @@ -205,13 +213,21 @@ func prefixListResourceType(ctx context.Context) (provider.ResourceType, error) // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "version": { // Property: Version diff --git a/internal/aws/ec2/route_table_resource_gen.go b/internal/aws/ec2/route_table_resource_gen.go index 4a6d1322ef..041540ca32 100644 --- a/internal/aws/ec2/route_table_resource_gen.go +++ b/internal/aws/ec2/route_table_resource_gen.go @@ -76,8 +76,10 @@ func routeTableResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "vpc_id": { diff --git a/internal/aws/ec2/spot_fleet_resource_gen.go b/internal/aws/ec2/spot_fleet_resource_gen.go index ffb1e0cc63..a376461ffc 100644 --- a/internal/aws/ec2/spot_fleet_resource_gen.go +++ b/internal/aws/ec2/spot_fleet_resource_gen.go @@ -1045,11 +1045,16 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Context Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "excess_capacity_termination_policy": { // Property: ExcessCapacityTerminationPolicy Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Default", @@ -1058,6 +1063,9 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { "noTermination", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "iam_fleet_role": { // Property: IamFleetRole @@ -1115,31 +1123,52 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: DeleteOnTermination Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encrypted": { // Property: Encrypted Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "iops": { // Property: Iops Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "snapshot_id": { // Property: SnapshotId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "volume_size": { // Property: VolumeSize Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "volume_type": { // Property: VolumeType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "gp2", @@ -1151,27 +1180,46 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { "standard", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "no_device": { // Property: NoDevice Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "virtual_name": { // Property: VirtualName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ebs_optimized": { // Property: EbsOptimized @@ -1191,10 +1239,18 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_id": { // Property: ImageId @@ -1213,20 +1269,33 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "accelerator_manufacturers": { // Property: AcceleratorManufacturers Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "nvidia", @@ -1235,11 +1304,15 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { "xilinx", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "accelerator_names": { // Property: AcceleratorNames Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "a100", @@ -1253,6 +1326,9 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { "k520", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "accelerator_total_memory_mi_b": { // Property: AcceleratorTotalMemoryMiB @@ -1262,20 +1338,33 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "accelerator_types": { // Property: AcceleratorTypes Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "gpu", @@ -1283,11 +1372,15 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { "inference", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bare_metal": { // Property: BareMetal Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "included", @@ -1295,6 +1388,9 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { "excluded", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "baseline_ebs_bandwidth_mbps": { // Property: BaselineEbsBandwidthMbps @@ -1304,20 +1400,33 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "burstable_performance": { // Property: BurstablePerformance Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "included", @@ -1325,11 +1434,15 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { "excluded", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cpu_manufacturers": { // Property: CpuManufacturers Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "intel", @@ -1337,31 +1450,43 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { "amazon-web-services", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "excluded_instance_types": { // Property: ExcludedInstanceTypes Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(1, 30)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9\\.\\*]+"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_generations": { // Property: InstanceGenerations Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "current", "previous", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "local_storage": { // Property: LocalStorage Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "included", @@ -1369,17 +1494,24 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { "excluded", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "local_storage_types": { // Property: LocalStorageTypes Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "hdd", "ssd", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "memory_gi_b_per_v_cpu": { // Property: MemoryGiBPerVCpu @@ -1389,15 +1521,27 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "memory_mi_b": { // Property: MemoryMiB @@ -1407,15 +1551,27 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "network_interface_count": { // Property: NetworkInterfaceCount @@ -1425,30 +1581,54 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "on_demand_max_price_percentage_over_lowest_price": { // Property: OnDemandMaxPricePercentageOverLowestPrice Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "require_hibernate_support": { // Property: RequireHibernateSupport Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "spot_max_price_percentage_over_lowest_price": { // Property: SpotMaxPricePercentageOverLowestPrice Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "total_local_storage_gb": { // Property: TotalLocalStorageGB @@ -1458,15 +1638,27 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "v_cpu_count": { // Property: VCpuCount @@ -1476,34 +1668,62 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_type": { // Property: InstanceType Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kernel_id": { // Property: KernelId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key_name": { // Property: KeyName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "monitoring": { // Property: Monitoring @@ -1522,6 +1742,10 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "network_interfaces": { // Property: NetworkInterfaces @@ -1531,34 +1755,58 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: AssociatePublicIpAddress Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "delete_on_termination": { // Property: DeleteOnTermination Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "device_index": { // Property: DeviceIndex Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "groups": { // Property: Groups Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ipv_6_address_count": { // Property: Ipv6AddressCount Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ipv_6_addresses": { // Property: Ipv6Addresses @@ -1572,14 +1820,22 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "network_interface_id": { // Property: NetworkInterfaceId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "private_ip_addresses": { // Property: PrivateIpAddresses @@ -1589,6 +1845,10 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Primary Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "private_ip_address": { // Property: PrivateIpAddress @@ -1598,26 +1858,42 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "secondary_private_ip_address_count": { // Property: SecondaryPrivateIpAddressCount Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnet_id": { // Property: SubnetId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "placement": { // Property: Placement @@ -1627,16 +1903,25 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: AvailabilityZone Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "group_name": { // Property: GroupName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tenancy": { // Property: Tenancy Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "dedicated", @@ -1644,15 +1929,26 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { "host", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ramdisk_id": { // Property: RamdiskId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "security_groups": { // Property: SecurityGroups @@ -1666,19 +1962,31 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "spot_price": { // Property: SpotPrice Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnet_id": { // Property: SubnetId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tag_specifications": { // Property: TagSpecifications @@ -1688,6 +1996,7 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: ResourceType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "client-vpn-endpoint", @@ -1739,6 +2048,9 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { "vpn-gateway", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -1757,23 +2069,39 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "user_data": { // Property: UserData Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "weighted_capacity": { // Property: WeightedCapacity Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1799,15 +2127,23 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: LaunchTemplateId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "launch_template_name": { // Property: LaunchTemplateName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 128), validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9\\(\\)\\.\\-/_]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "version": { // Property: Version @@ -1817,6 +2153,10 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "overrides": { // Property: Overrides @@ -1826,6 +2166,10 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: AvailabilityZone Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_requirements": { // Property: InstanceRequirements @@ -1839,20 +2183,33 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "accelerator_manufacturers": { // Property: AcceleratorManufacturers Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "nvidia", @@ -1861,11 +2218,15 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { "xilinx", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "accelerator_names": { // Property: AcceleratorNames Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "a100", @@ -1879,6 +2240,9 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { "k520", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "accelerator_total_memory_mi_b": { // Property: AcceleratorTotalMemoryMiB @@ -1888,20 +2252,33 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "accelerator_types": { // Property: AcceleratorTypes Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "gpu", @@ -1909,11 +2286,15 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { "inference", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bare_metal": { // Property: BareMetal Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "included", @@ -1921,6 +2302,9 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { "excluded", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "baseline_ebs_bandwidth_mbps": { // Property: BaselineEbsBandwidthMbps @@ -1930,20 +2314,33 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "burstable_performance": { // Property: BurstablePerformance Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "included", @@ -1951,11 +2348,15 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { "excluded", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cpu_manufacturers": { // Property: CpuManufacturers Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "intel", @@ -1963,31 +2364,43 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { "amazon-web-services", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "excluded_instance_types": { // Property: ExcludedInstanceTypes Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(1, 30)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9\\.\\*]+"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_generations": { // Property: InstanceGenerations Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "current", "previous", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "local_storage": { // Property: LocalStorage Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "included", @@ -1995,17 +2408,24 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { "excluded", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "local_storage_types": { // Property: LocalStorageTypes Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "hdd", "ssd", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "memory_gi_b_per_v_cpu": { // Property: MemoryGiBPerVCpu @@ -2015,15 +2435,27 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "memory_mi_b": { // Property: MemoryMiB @@ -2033,15 +2465,27 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "network_interface_count": { // Property: NetworkInterfaceCount @@ -2051,30 +2495,54 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "on_demand_max_price_percentage_over_lowest_price": { // Property: OnDemandMaxPricePercentageOverLowestPrice Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "require_hibernate_support": { // Property: RequireHibernateSupport Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "spot_max_price_percentage_over_lowest_price": { // Property: SpotMaxPricePercentageOverLowestPrice Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "total_local_storage_gb": { // Property: TotalLocalStorageGB @@ -2084,15 +2552,27 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "v_cpu_count": { // Property: VCpuCount @@ -2102,51 +2582,91 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Max Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min": { // Property: Min Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_type": { // Property: InstanceType Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "priority": { // Property: Priority Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "spot_price": { // Property: SpotPrice Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnet_id": { // Property: SubnetId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "weighted_capacity": { // Property: WeightedCapacity Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -2187,6 +2707,10 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_groups_config": { // Property: TargetGroupsConfig @@ -2211,6 +2735,10 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -2273,21 +2801,33 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: ReplacementStrategy Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "launch", "launch-before-terminate", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "termination_delay": { // Property: TerminationDelay Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -2327,6 +2867,7 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: TargetCapacityUnitType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "vcpu", @@ -2334,6 +2875,9 @@ func spotFleetResourceType(ctx context.Context) (provider.ResourceType, error) { "units", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "terminate_instances_with_expiration": { // Property: TerminateInstancesWithExpiration diff --git a/internal/aws/ec2/subnet_resource_gen.go b/internal/aws/ec2/subnet_resource_gen.go index 53d1de0ce2..eb276d1706 100644 --- a/internal/aws/ec2/subnet_resource_gen.go +++ b/internal/aws/ec2/subnet_resource_gen.go @@ -29,6 +29,10 @@ func subnetResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "availability_zone": { // Property: AvailabilityZone @@ -80,6 +84,10 @@ func subnetResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ipv_6_cidr_block": { // Property: Ipv6CidrBlock @@ -89,6 +97,10 @@ func subnetResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ipv_6_cidr_blocks": { // Property: Ipv6CidrBlocks @@ -128,6 +140,10 @@ func subnetResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "network_acl_association_id": { // Property: NetworkAclAssociationId @@ -179,20 +195,36 @@ func subnetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: EnableResourceNameDnsAAAARecord Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_resource_name_dns_a_record": { // Property: EnableResourceNameDnsARecord Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "hostname_type": { // Property: HostnameType Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnet_id": { // Property: SubnetId @@ -244,6 +276,10 @@ func subnetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_id": { // Property: VpcId diff --git a/internal/aws/ec2/transit_gateway_attachment_resource_gen.go b/internal/aws/ec2/transit_gateway_attachment_resource_gen.go index 78e71f514d..6513e3491d 100644 --- a/internal/aws/ec2/transit_gateway_attachment_resource_gen.go +++ b/internal/aws/ec2/transit_gateway_attachment_resource_gen.go @@ -63,22 +63,38 @@ func transitGatewayAttachmentResourceType(ctx context.Context) (provider.Resourc Description: "Indicates whether to enable Ipv6 Support for Vpc Attachment. Valid Values: enable | disable", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dns_support": { // Property: DnsSupport Description: "Indicates whether to enable DNS Support for Vpc Attachment. Valid Values: enable | disable", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ipv_6_support": { // Property: Ipv6Support Description: "Indicates whether to enable Ipv6 Support for Vpc Attachment. Valid Values: enable | disable", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnet_ids": { // Property: SubnetIds @@ -136,8 +152,10 @@ func transitGatewayAttachmentResourceType(ctx context.Context) (provider.Resourc }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "transit_gateway_id": { diff --git a/internal/aws/ec2/transit_gateway_connect_resource_gen.go b/internal/aws/ec2/transit_gateway_connect_resource_gen.go index 7fe50c5261..322dafc596 100644 --- a/internal/aws/ec2/transit_gateway_connect_resource_gen.go +++ b/internal/aws/ec2/transit_gateway_connect_resource_gen.go @@ -57,6 +57,10 @@ func transitGatewayConnectResourceType(ctx context.Context) (provider.ResourceTy Description: "The tunnel protocol.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -108,16 +112,28 @@ func transitGatewayConnectResourceType(ctx context.Context) (provider.ResourceTy Description: "The key of the tag. Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Description: "The value of the tag. Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "transit_gateway_attachment_id": { // Property: TransitGatewayAttachmentId diff --git a/internal/aws/ec2/transit_gateway_multicast_domain_resource_gen.go b/internal/aws/ec2/transit_gateway_multicast_domain_resource_gen.go index eee0448f6b..702877f704 100644 --- a/internal/aws/ec2/transit_gateway_multicast_domain_resource_gen.go +++ b/internal/aws/ec2/transit_gateway_multicast_domain_resource_gen.go @@ -66,22 +66,38 @@ func transitGatewayMulticastDomainResourceType(ctx context.Context) (provider.Re Description: "Indicates whether to automatically cross-account subnet associations that are associated with the transit gateway multicast domain. Valid Values: enable | disable", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "igmpv_2_support": { // Property: Igmpv2Support Description: "Indicates whether Internet Group Management Protocol (IGMP) version 2 is turned on for the transit gateway multicast domain. Valid Values: enable | disable", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "static_sources_support": { // Property: StaticSourcesSupport Description: "Indicates whether support for statically configuring transit gateway multicast group sources is turned on. Valid Values: enable | disable", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "state": { // Property: State @@ -126,16 +142,28 @@ func transitGatewayMulticastDomainResourceType(ctx context.Context) (provider.Re Description: "The key of the tag. Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Description: "The value of the tag. Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "transit_gateway_id": { // Property: TransitGatewayId diff --git a/internal/aws/ec2/transit_gateway_peering_attachment_resource_gen.go b/internal/aws/ec2/transit_gateway_peering_attachment_resource_gen.go index 15d90beebb..462970ff52 100644 --- a/internal/aws/ec2/transit_gateway_peering_attachment_resource_gen.go +++ b/internal/aws/ec2/transit_gateway_peering_attachment_resource_gen.go @@ -118,12 +118,20 @@ func transitGatewayPeeringAttachmentResourceType(ctx context.Context) (provider. Description: "The status code.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "message": { // Property: Message Description: "The status message, if applicable.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -161,16 +169,28 @@ func transitGatewayPeeringAttachmentResourceType(ctx context.Context) (provider. Description: "The key of the tag. Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Description: "The value of the tag. Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "transit_gateway_attachment_id": { // Property: TransitGatewayAttachmentId diff --git a/internal/aws/ec2/transit_gateway_resource_gen.go b/internal/aws/ec2/transit_gateway_resource_gen.go index 4a35b127d6..73ff265001 100644 --- a/internal/aws/ec2/transit_gateway_resource_gen.go +++ b/internal/aws/ec2/transit_gateway_resource_gen.go @@ -44,6 +44,10 @@ func transitGatewayResourceType(ctx context.Context) (provider.ResourceType, err // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "auto_accept_shared_attachments": { // Property: AutoAcceptSharedAttachments @@ -53,6 +57,10 @@ func transitGatewayResourceType(ctx context.Context) (provider.ResourceType, err // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "default_route_table_association": { // Property: DefaultRouteTableAssociation @@ -62,6 +70,10 @@ func transitGatewayResourceType(ctx context.Context) (provider.ResourceType, err // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "default_route_table_propagation": { // Property: DefaultRouteTablePropagation @@ -71,6 +83,10 @@ func transitGatewayResourceType(ctx context.Context) (provider.ResourceType, err // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -80,6 +96,10 @@ func transitGatewayResourceType(ctx context.Context) (provider.ResourceType, err // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dns_support": { // Property: DnsSupport @@ -89,6 +109,10 @@ func transitGatewayResourceType(ctx context.Context) (provider.ResourceType, err // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id @@ -124,6 +148,10 @@ func transitGatewayResourceType(ctx context.Context) (provider.ResourceType, err // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -163,6 +191,10 @@ func transitGatewayResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "transit_gateway_cidr_blocks": { // Property: TransitGatewayCidrBlocks @@ -175,6 +207,10 @@ func transitGatewayResourceType(ctx context.Context) (provider.ResourceType, err // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpn_ecmp_support": { // Property: VpnEcmpSupport @@ -184,6 +220,10 @@ func transitGatewayResourceType(ctx context.Context) (provider.ResourceType, err // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } 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 e8c634bfed..f9c3726b5a 100644 --- a/internal/aws/ec2/transit_gateway_vpc_attachment_resource_gen.go +++ b/internal/aws/ec2/transit_gateway_vpc_attachment_resource_gen.go @@ -34,8 +34,10 @@ func transitGatewayVpcAttachmentResourceType(ctx context.Context) (provider.Reso // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "id": { @@ -80,22 +82,38 @@ func transitGatewayVpcAttachmentResourceType(ctx context.Context) (provider.Reso Description: "Indicates whether to enable Ipv6 Support for Vpc Attachment. Valid Values: enable | disable", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dns_support": { // Property: DnsSupport Description: "Indicates whether to enable DNS Support for Vpc Attachment. Valid Values: enable | disable", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ipv_6_support": { // Property: Ipv6Support Description: "Indicates whether to enable Ipv6 Support for Vpc Attachment. Valid Values: enable | disable", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "remove_subnet_ids": { // Property: RemoveSubnetIds @@ -110,8 +128,10 @@ func transitGatewayVpcAttachmentResourceType(ctx context.Context) (provider.Reso // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "subnet_ids": { @@ -171,8 +191,10 @@ func transitGatewayVpcAttachmentResourceType(ctx context.Context) (provider.Reso }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "transit_gateway_id": { diff --git a/internal/aws/ec2/vpc_endpoint_resource_gen.go b/internal/aws/ec2/vpc_endpoint_resource_gen.go index c2ec2cee17..b7268cb673 100644 --- a/internal/aws/ec2/vpc_endpoint_resource_gen.go +++ b/internal/aws/ec2/vpc_endpoint_resource_gen.go @@ -86,6 +86,10 @@ func vPCEndpointResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "private_dns_enabled": { // Property: PrivateDnsEnabled @@ -95,6 +99,10 @@ func vPCEndpointResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "route_table_ids": { // Property: RouteTableIds @@ -108,9 +116,13 @@ func vPCEndpointResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "security_group_ids": { // Property: SecurityGroupIds @@ -124,9 +136,13 @@ func vPCEndpointResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "service_name": { // Property: ServiceName @@ -152,9 +168,13 @@ func vPCEndpointResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_endpoint_type": { // Property: VpcEndpointType diff --git a/internal/aws/ec2/vpc_peering_connection_resource_gen.go b/internal/aws/ec2/vpc_peering_connection_resource_gen.go index cb4580fad8..9f47017427 100644 --- a/internal/aws/ec2/vpc_peering_connection_resource_gen.go +++ b/internal/aws/ec2/vpc_peering_connection_resource_gen.go @@ -139,8 +139,10 @@ func vPCPeeringConnectionResourceType(ctx context.Context) (provider.ResourceTyp }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "vpc_id": { diff --git a/internal/aws/ec2/vpc_resource_gen.go b/internal/aws/ec2/vpc_resource_gen.go index bdac723454..90cdcd8583 100644 --- a/internal/aws/ec2/vpc_resource_gen.go +++ b/internal/aws/ec2/vpc_resource_gen.go @@ -97,6 +97,10 @@ func vPCResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not. Disabled by default for nondefault VPCs.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_dns_support": { // Property: EnableDnsSupport @@ -108,6 +112,10 @@ func vPCResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates whether the DNS resolution is supported for the VPC. If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range \"plus two\" succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled. Enabled by default.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_tenancy": { // Property: InstanceTenancy @@ -119,6 +127,10 @@ func vPCResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The allowed tenancy of instances launched into the VPC.\n\n\"default\": An instance launched into the VPC runs on shared hardware by default, unless you explicitly specify a different tenancy during instance launch.\n\n\"dedicated\": An instance launched into the VPC is a Dedicated Instance by default, unless you explicitly specify a tenancy of host during instance launch. You cannot specify a tenancy of default during instance launch.\n\nUpdating InstanceTenancy requires no replacement only if you are updating its value from \"dedicated\" to \"default\". Updating InstanceTenancy from \"default\" to \"dedicated\" requires replacement.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ipv_4_ipam_pool_id": { // Property: Ipv4IpamPoolId @@ -215,8 +227,10 @@ func vPCResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "vpc_id": { diff --git a/internal/aws/ec2/vpc_resource_test.go b/internal/aws/ec2/vpc_resource_test.go index be5e67cc1d..2016dc0cb7 100644 --- a/internal/aws/ec2/vpc_resource_test.go +++ b/internal/aws/ec2/vpc_resource_test.go @@ -36,10 +36,7 @@ func TestAccAWSEC2VPC_CidrBlock(t *testing.T) { func testAccAWSEC2VPCCidrBlockConfig(td *acctest.TestData, rName, cidrBlock string) string { return fmt.Sprintf(` resource %[1]q %[2]q { - cidr_block = %[4]q - enable_dns_hostnames = false - enable_dns_support = true - instance_tenancy = "default" + cidr_block = %[4]q tags = [ { diff --git a/internal/aws/ec2/vpn_gateway_resource_gen.go b/internal/aws/ec2/vpn_gateway_resource_gen.go index e8ecba6469..067ccfddb9 100644 --- a/internal/aws/ec2/vpn_gateway_resource_gen.go +++ b/internal/aws/ec2/vpn_gateway_resource_gen.go @@ -79,8 +79,10 @@ func vPNGatewayResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "type": { diff --git a/internal/aws/ecr/public_repository_resource_gen.go b/internal/aws/ecr/public_repository_resource_gen.go index e2e4e3dc79..440d418e62 100644 --- a/internal/aws/ecr/public_repository_resource_gen.go +++ b/internal/aws/ecr/public_repository_resource_gen.go @@ -93,51 +93,75 @@ func publicRepositoryResourceType(ctx context.Context) (provider.ResourceType, e Description: "Provide a detailed description of the repository. Identify what is included in the repository, any licensing details, or other relevant information.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(10240), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "architectures": { // Property: Architectures Description: "Select the system architectures that the images in your repository are compatible with.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "operating_systems": { // Property: OperatingSystems Description: "Select the operating systems that the images in your repository are compatible with.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "repository_description": { // Property: RepositoryDescription Description: "The description of the public repository.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "usage_text": { // Property: UsageText Description: "Provide detailed information about how to use the images in the repository. This provides context, support information, and additional usage details for users of the repository.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(10240), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "repository_name": { // Property: RepositoryName @@ -171,6 +195,10 @@ func publicRepositoryResourceType(ctx context.Context) (provider.ResourceType, e Description: "The JSON repository policy text to apply to the repository. For more information, see https://docs.aws.amazon.com/AmazonECR/latest/userguide/RepositoryPolicyExamples.html in the Amazon Elastic Container Registry User Guide. ", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -229,9 +257,13 @@ func publicRepositoryResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/ecr/replication_configuration_resource_gen.go b/internal/aws/ecr/replication_configuration_resource_gen.go index 80da7d0b61..2d9b2d92b9 100644 --- a/internal/aws/ecr/replication_configuration_resource_gen.go +++ b/internal/aws/ecr/replication_configuration_resource_gen.go @@ -188,9 +188,13 @@ func replicationConfigurationResourceType(ctx context.Context) (provider.Resourc }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/ecr/repository_resource_gen.go b/internal/aws/ecr/repository_resource_gen.go index dc0b6f7f99..7181680fed 100644 --- a/internal/aws/ecr/repository_resource_gen.go +++ b/internal/aws/ecr/repository_resource_gen.go @@ -125,10 +125,18 @@ func repositoryResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The setting that determines whether images are scanned after being pushed to a repository.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_tag_mutability": { // Property: ImageTagMutability @@ -144,12 +152,16 @@ func repositoryResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The image tag mutability setting for the repository.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "MUTABLE", "IMMUTABLE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lifecycle_policy": { // Property: LifecyclePolicy @@ -182,23 +194,35 @@ func repositoryResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The JSON repository policy text to apply to the repository.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(100, 30720), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "registry_id": { // Property: RegistryId Description: "The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed. ", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(12, 12), validate.StringMatch(regexp.MustCompile("^[0-9]{12}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "repository_name": { // Property: RepositoryName @@ -232,6 +256,10 @@ func repositoryResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The JSON repository policy text to apply to the repository. For more information, see https://docs.aws.amazon.com/AmazonECR/latest/userguide/RepositoryPolicyExamples.html in the Amazon Elastic Container Registry User Guide. ", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "repository_uri": { // Property: RepositoryUri @@ -302,9 +330,13 @@ func repositoryResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/ecs/capacity_provider_resource_gen.go b/internal/aws/ecs/capacity_provider_resource_gen.go index dd1013eb51..a21a3f45bb 100644 --- a/internal/aws/ecs/capacity_provider_resource_gen.go +++ b/internal/aws/ecs/capacity_provider_resource_gen.go @@ -89,47 +89,75 @@ func capacityProviderResourceType(ctx context.Context) (provider.ResourceType, e // Property: InstanceWarmupPeriod Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "maximum_scaling_step_size": { // Property: MaximumScalingStepSize Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "minimum_scaling_step_size": { // Property: MinimumScalingStepSize Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "DISABLED", "ENABLED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_capacity": { // Property: TargetCapacity Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "managed_termination_protection": { // Property: ManagedTerminationProtection Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "DISABLED", "ENABLED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -175,21 +203,33 @@ func capacityProviderResourceType(ctx context.Context) (provider.ResourceType, e // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/ecs/cluster_capacity_provider_associations_resource_gen.go b/internal/aws/ecs/cluster_capacity_provider_associations_resource_gen.go index e4ed844345..0aea25f6ce 100644 --- a/internal/aws/ecs/cluster_capacity_provider_associations_resource_gen.go +++ b/internal/aws/ecs/cluster_capacity_provider_associations_resource_gen.go @@ -105,9 +105,13 @@ func clusterCapacityProviderAssociationsResourceType(ctx context.Context) (provi // Property: Base Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 100000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "capacity_provider": { // Property: CapacityProvider @@ -119,9 +123,13 @@ func clusterCapacityProviderAssociationsResourceType(ctx context.Context) (provi // Property: Weight Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 1000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/ecs/cluster_resource_gen.go b/internal/aws/ecs/cluster_resource_gen.go index aeb5a2426d..3ec6d11c04 100644 --- a/internal/aws/ecs/cluster_resource_gen.go +++ b/internal/aws/ecs/cluster_resource_gen.go @@ -46,6 +46,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cluster_name": { // Property: ClusterName @@ -88,15 +92,27 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Name Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "configuration": { // Property: Configuration @@ -155,6 +171,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: KmsKeyId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_configuration": { // Property: LogConfiguration @@ -165,43 +185,79 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: CloudWatchEncryptionEnabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cloudwatch_log_group_name": { // Property: CloudWatchLogGroupName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_bucket_name": { // Property: S3BucketName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_encryption_enabled": { // Property: S3EncryptionEnabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_key_prefix": { // Property: S3KeyPrefix Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "logging": { // Property: Logging Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "default_capacity_provider_strategy": { // Property: DefaultCapacityProviderStrategy @@ -231,20 +287,36 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Base Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "capacity_provider": { // Property: CapacityProvider Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "weight": { // Property: Weight Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -271,15 +343,27 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Key Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/ecs/service_resource_gen.go b/internal/aws/ecs/service_resource_gen.go index 22f7b35666..53bfe87a6e 100644 --- a/internal/aws/ecs/service_resource_gen.go +++ b/internal/aws/ecs/service_resource_gen.go @@ -49,20 +49,36 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Base Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "capacity_provider": { // Property: CapacityProvider Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "weight": { // Property: Weight Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cluster": { // Property: Cluster @@ -128,20 +144,36 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "maximum_percent": { // Property: MaximumPercent Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "minimum_healthy_percent": { // Property: MinimumHealthyPercent Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "deployment_controller": { // Property: DeploymentController @@ -166,6 +198,7 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Type Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CODE_DEPLOY", @@ -173,6 +206,9 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { "EXTERNAL", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -191,6 +227,10 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_ecs_managed_tags": { // Property: EnableECSManagedTags @@ -200,6 +240,10 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_execute_command": { // Property: EnableExecuteCommand @@ -209,6 +253,10 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "health_check_grace_period_seconds": { // Property: HealthCheckGracePeriodSeconds @@ -218,6 +266,10 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "launch_type": { // Property: LaunchType @@ -275,25 +327,45 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: ContainerName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "container_port": { // Property: ContainerPort Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "load_balancer_name": { // Property: LoadBalancerName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_group_arn": { // Property: TargetGroupArn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -351,30 +423,50 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: AssignPublicIp Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "DISABLED", "ENABLED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "security_groups": { // Property: SecurityGroups Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnets": { // Property: Subnets Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "placement_constraints": { // Property: PlacementConstraints @@ -407,6 +499,10 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Expression Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type @@ -422,6 +518,10 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "placement_strategies": { // Property: PlacementStrategies @@ -455,6 +555,10 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Field Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type @@ -471,6 +575,10 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "platform_version": { // Property: PlatformVersion @@ -499,12 +607,16 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "SERVICE", "TASK_DEFINITION", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role": { // Property: Role @@ -600,25 +712,45 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: ContainerName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "container_port": { // Property: ContainerPort Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "port": { // Property: Port Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "registry_arn": { // Property: RegistryArn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -644,15 +776,27 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Key Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "task_definition": { // Property: TaskDefinition @@ -662,6 +806,10 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/ecs/task_definition_resource_gen.go b/internal/aws/ecs/task_definition_resource_gen.go index 37963347a6..76cbdcc8b9 100644 --- a/internal/aws/ecs/task_definition_resource_gen.go +++ b/internal/aws/ecs/task_definition_resource_gen.go @@ -538,11 +538,19 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: Command Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cpu": { // Property: Cpu Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "depends_on": { // Property: DependsOn @@ -552,38 +560,56 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: Condition Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "container_name": { // Property: ContainerName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "disable_networking": { // Property: DisableNetworking Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dns_search_domains": { // Property: DnsSearchDomains Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "dns_servers": { // Property: DnsServers Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "docker_labels": { @@ -591,19 +617,29 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "docker_security_options": { // Property: DockerSecurityOptions Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "entry_point": { // Property: EntryPoint Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "environment": { // Property: Environment @@ -614,18 +650,30 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: Name Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "environment_files": { // Property: EnvironmentFiles @@ -636,20 +684,36 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: Type Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "essential": { // Property: Essential Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "extra_hosts": { // Property: ExtraHosts @@ -659,17 +723,27 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: Hostname Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ip_address": { // Property: IpAddress Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "firelens_configuration": { @@ -681,15 +755,27 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "health_check": { // Property: HealthCheck @@ -701,55 +787,95 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err Description: "A string array representing the command that the container runs to determine if it is healthy.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "interval": { // Property: Interval Description: "The time period in seconds between each health check execution. You may specify between 5 and 300 seconds. The default value is 30 seconds.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "retries": { // Property: Retries Description: "The number of times to retry a failed health check before the container is considered unhealthy. You may specify between 1 and 10 retries. The default value is three retries.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "start_period": { // Property: StartPeriod Description: "The optional grace period within which to provide containers time to bootstrap before failed health checks count towards the maximum number of retries. You may specify between 0 and 300 seconds. The startPeriod is disabled by default.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "timeout": { // Property: Timeout Description: "The time period in seconds to wait for a health check to succeed before it is considered a failure. You may specify between 2 and 60 seconds. The default value is 5 seconds.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "hostname": { // Property: Hostname Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image": { // Property: Image Description: "The image used to start a container. This string is passed directly to the Docker daemon.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "interactive": { // Property: Interactive Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "links": { // Property: Links Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "linux_parameters": { // Property: LinuxParameters @@ -763,21 +889,29 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: Add Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "drop": { // Property: Drop Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "devices": { // Property: Devices @@ -787,43 +921,73 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: ContainerPath Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "host_path": { // Property: HostPath Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "permissions": { // Property: Permissions Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "init_process_enabled": { // Property: InitProcessEnabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_swap": { // Property: MaxSwap Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "shared_memory_size": { // Property: SharedMemorySize Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "swappiness": { // Property: Swappiness Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tmpfs": { // Property: Tmpfs @@ -833,13 +997,19 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: ContainerPath Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "mount_options": { // Property: MountOptions Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "size": { @@ -850,13 +1020,19 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_configuration": { // Property: LogConfiguration @@ -872,6 +1048,10 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "secret_options": { // Property: SecretOptions @@ -890,24 +1070,38 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "memory": { // Property: Memory Description: "The amount (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "memory_reservation": { // Property: MemoryReservation Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "mount_points": { // Property: MountPoints @@ -917,29 +1111,49 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: ContainerPath Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "read_only": { // Property: ReadOnly Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_volume": { // Property: SourceVolume Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Description: "The name of a container. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "port_mappings": { // Property: PortMappings @@ -950,35 +1164,63 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: ContainerPort Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "host_port": { // Property: HostPort Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocol": { // Property: Protocol Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "privileged": { // Property: Privileged Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "pseudo_terminal": { // Property: PseudoTerminal Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "readonly_root_filesystem": { // Property: ReadonlyRootFilesystem Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "repository_credentials": { // Property: RepositoryCredentials @@ -988,10 +1230,18 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: CredentialsParameter Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_requirements": { // Property: ResourceRequirements @@ -1010,8 +1260,10 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "secrets": { @@ -1031,19 +1283,29 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "start_timeout": { // Property: StartTimeout Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stop_timeout": { // Property: StopTimeout Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "system_controls": { // Property: SystemControls @@ -1053,17 +1315,27 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: Namespace Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "ulimits": { @@ -1088,14 +1360,20 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "user": { // Property: User Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "volumes_from": { // Property: VolumesFrom @@ -1105,20 +1383,36 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: ReadOnly Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_container": { // Property: SourceContainer Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "working_directory": { // Property: WorkingDirectory Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1161,6 +1455,10 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: SizeInGiB Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1225,11 +1523,19 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: DeviceName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "device_type": { // Property: DeviceType Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1325,6 +1631,10 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: Expression Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type @@ -1390,20 +1700,36 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: Name Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1454,11 +1780,19 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: CpuArchitecture Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "operating_system_family": { // Property: OperatingSystemFamily Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1494,17 +1828,27 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: Key Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "task_definition_arn": { @@ -1645,32 +1989,56 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: Autoprovision Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "driver": { // Property: Driver Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "driver_opts": { // Property: DriverOpts // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "labels": { // Property: Labels // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "scope": { // Property: Scope Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "efs_volume_configuration": { // Property: EFSVolumeConfiguration @@ -1684,21 +2052,33 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: AccessPointId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "iam": { // Property: IAM Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ENABLED", "DISABLED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "filesystem_id": { // Property: FilesystemId @@ -1709,26 +2089,42 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: RootDirectory Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "transit_encryption": { // Property: TransitEncryption Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ENABLED", "DISABLED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "transit_encryption_port": { // Property: TransitEncryptionPort Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "host": { // Property: Host @@ -1738,15 +2134,27 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: SourcePath Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/ecs/task_set_resource_gen.go b/internal/aws/ecs/task_set_resource_gen.go index c68029a79e..d6cebff9d3 100644 --- a/internal/aws/ecs/task_set_resource_gen.go +++ b/internal/aws/ecs/task_set_resource_gen.go @@ -128,24 +128,40 @@ func taskSetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of the container (as it appears in a container definition) to associate with the load balancer.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "container_port": { // Property: ContainerPort Description: "The port on the container to associate with the load balancer. This port must correspond to a containerPort in the task definition the tasks in the service are using. For tasks that use the EC2 launch type, the container instance they are launched on must allow ingress traffic on the hostPort of the port mapping.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "load_balancer_name": { // Property: LoadBalancerName Description: "The name of the load balancer to associate with the Amazon ECS service or task set. A load balancer name is only specified when using a Classic Load Balancer. If you are using an Application Load Balancer or a Network Load Balancer this should be omitted.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_group_arn": { // Property: TargetGroupArn Description: "The full Amazon Resource Name (ARN) of the Elastic Load Balancing target group or groups associated with a service or task set. A target group ARN is only specified when using an Application Load Balancer or Network Load Balancer. If you are using a Classic Load Balancer this should be omitted. For services using the ECS deployment controller, you can specify one or multiple target groups. For more information, see https://docs.aws.amazon.com/AmazonECS/latest/developerguide/register-multiple-targetgroups.html in the Amazon Elastic Container Service Developer Guide. For services using the CODE_DEPLOY deployment controller, you are required to define two target groups for the load balancer. For more information, see https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-bluegreen.html in the Amazon Elastic Container Service Developer Guide. If your service's task definition uses the awsvpc network mode (which is required for the Fargate launch type), you must choose ip as the target type, not instance, when creating your target groups because tasks that use the awsvpc network mode are associated with an elastic network interface, not an Amazon EC2 instance.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -213,21 +229,29 @@ func taskSetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Whether the task's elastic network interface receives a public IP address. The default value is DISABLED.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "DISABLED", "ENABLED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "security_groups": { // Property: SecurityGroups Description: "The security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used. There is a limit of 5 security groups that can be specified per AwsVpcConfiguration.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnets": { // Property: Subnets @@ -241,6 +265,10 @@ func taskSetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -298,24 +326,36 @@ func taskSetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The unit of measure for the scale value.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PERCENT", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Description: "The value, specified as a percent total of a service's desiredCount, to scale the task set. Accepted values are numbers between 0 and 100.", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatBetween(0.000000, 100.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "service": { // Property: Service @@ -368,24 +408,40 @@ func taskSetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The container name value, already specified in the task definition, to be used for your service discovery service. If the task definition that your service task specifies uses the bridge or host network mode, you must specify a containerName and containerPort combination from the task definition. If the task definition that your service task specifies uses the awsvpc network mode and a type SRV DNS record is used, you must specify either a containerName and containerPort combination or a port value, but not both.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "container_port": { // Property: ContainerPort Description: "The port value, already specified in the task definition, to be used for your service discovery service. If the task definition your service task specifies uses the bridge or host network mode, you must specify a containerName and containerPort combination from the task definition. If the task definition your service task specifies uses the awsvpc network mode and a type SRV DNS record is used, you must specify either a containerName and containerPort combination or a port value, but not both.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "port": { // Property: Port Description: "The port value used if your service discovery service specified an SRV record. This field may be used if both the awsvpc network mode and SRV records are used.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "registry_arn": { // Property: RegistryArn Description: "The Amazon Resource Name (ARN) of the service registry. The currently supported service registry is AWS Cloud Map. For more information, see https://docs.aws.amazon.com/cloud-map/latest/api/API_CreateService.html", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/efs/access_point_resource_gen.go b/internal/aws/efs/access_point_resource_gen.go index 5eb3ef5552..17824761dc 100644 --- a/internal/aws/efs/access_point_resource_gen.go +++ b/internal/aws/efs/access_point_resource_gen.go @@ -65,21 +65,33 @@ func accessPointResourceType(ctx context.Context) (provider.ResourceType, error) // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "arn": { // Property: Arn diff --git a/internal/aws/efs/file_system_resource_gen.go b/internal/aws/efs/file_system_resource_gen.go index a9351eaf09..fb6a53b647 100644 --- a/internal/aws/efs/file_system_resource_gen.go +++ b/internal/aws/efs/file_system_resource_gen.go @@ -73,6 +73,10 @@ func fileSystemResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bypass_policy_lockout_safety_check": { // Property: BypassPolicyLockoutSafetyCheck @@ -84,6 +88,10 @@ func fileSystemResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Whether to bypass the FileSystemPolicy lockout safety check. The policy lockout safety check determines whether the policy in the request will prevent the principal making the request to be locked out from making future PutFileSystemPolicy requests on the file system. Set BypassPolicyLockoutSafetyCheck to True only when you intend to prevent the principal that is making the request from making a subsequent PutFileSystemPolicy request on the file system. Defaults to false", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // BypassPolicyLockoutSafetyCheck is a write-only property. }, "encrypted": { @@ -120,6 +128,10 @@ func fileSystemResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "file_system_tags": { // Property: FileSystemTags @@ -159,9 +171,13 @@ func fileSystemResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kms_key_id": { // Property: KmsKeyId @@ -202,18 +218,30 @@ func fileSystemResourceType(ctx context.Context) (provider.ResourceType, error) // Property: TransitionToIA Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "transition_to_primary_storage_class": { // Property: TransitionToPrimaryStorageClass Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "performance_mode": { // Property: PerformanceMode @@ -237,6 +265,10 @@ func fileSystemResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "throughput_mode": { // Property: ThroughputMode @@ -246,6 +278,10 @@ func fileSystemResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/eks/addon_resource_gen.go b/internal/aws/eks/addon_resource_gen.go index 56db76b02e..2bdaa6958e 100644 --- a/internal/aws/eks/addon_resource_gen.go +++ b/internal/aws/eks/addon_resource_gen.go @@ -51,9 +51,13 @@ func addonResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Version of Addon", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "arn": { // Property: Arn @@ -102,6 +106,7 @@ func addonResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Resolve parameter value conflicts", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtLeast(1), validate.StringInSlice([]string{ @@ -109,6 +114,9 @@ func addonResourceType(ctx context.Context) (provider.ResourceType, error) { "OVERWRITE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // ResolveConflicts is a write-only property. }, "service_account_role_arn": { @@ -122,9 +130,13 @@ func addonResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "IAM role to bind to the add-on's service account", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -182,6 +194,10 @@ func addonResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/eks/cluster_resource_gen.go b/internal/aws/eks/cluster_resource_gen.go index ca7a74a735..fdd9268b16 100644 --- a/internal/aws/eks/cluster_resource_gen.go +++ b/internal/aws/eks/cluster_resource_gen.go @@ -110,18 +110,28 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Amazon Resource Name (ARN) or alias of the KMS key. The KMS key must be symmetric, created in the same region as the cluster, and if the KMS key was created in a different account, the user must have access to the KMS key.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resources": { // Property: Resources Description: "Specifies the resources to be encrypted. The only supported value is \"secrets\".", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -196,18 +206,26 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Ipv4 or Ipv6. You can only specify ipv6 for 1.21 and later clusters that use version 1.10.1 or later of the Amazon VPC CNI add-on", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ipv4", "ipv6", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "service_ipv_4_cidr": { // Property: ServiceIpv4Cidr Description: "The CIDR block to assign Kubernetes service IP addresses from. If you don't specify a block, Kubernetes assigns addresses from either the 10.100.0.0/16 or 172.20.0.0/16 CIDR blocks. We recommend that you specify a block that does not overlap with resources in other networks that are peered or connected to your VPC. ", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "service_ipv_6_cidr": { // Property: ServiceIpv6Cidr @@ -285,6 +303,7 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "name of the log type", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "api", @@ -294,21 +313,34 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { "scheduler", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -403,20 +435,30 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Set this value to true to enable private access for your cluster's Kubernetes API server endpoint. If you enable private access, Kubernetes API requests from within your cluster's VPC use the private VPC endpoint. The default value for this parameter is false, which disables private access for your Kubernetes API server. If you disable private access and you have nodes or AWS Fargate pods in the cluster, then ensure that publicAccessCidrs includes the necessary CIDR blocks for communication with the nodes or Fargate pods.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "endpoint_public_access": { // Property: EndpointPublicAccess Description: "Set this value to false to disable public access to your cluster's Kubernetes API server endpoint. If you disable public access, your cluster's Kubernetes API server can only receive requests from within the cluster VPC. The default value for this parameter is true, which enables public access for your Kubernetes API server.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "public_access_cidrs": { // Property: PublicAccessCidrs Description: "The CIDR blocks that are allowed access to your cluster's public Kubernetes API server endpoint. Communication to the endpoint from addresses outside of the CIDR blocks that you specify is denied. The default value is 0.0.0.0/0. If you've disabled private endpoint access and you have nodes or AWS Fargate pods in the cluster, then ensure that you specify the necessary CIDR blocks.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "security_group_ids": { @@ -515,6 +557,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "version": { // Property: Version @@ -527,9 +573,13 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The desired Kubernetes version for your cluster. If you don't specify a value here, the latest version available in Amazon EKS is used.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("1\\.\\d\\d"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/eks/fargate_profile_resource_gen.go b/internal/aws/eks/fargate_profile_resource_gen.go index 9f00f4f245..51bc60787c 100644 --- a/internal/aws/eks/fargate_profile_resource_gen.go +++ b/internal/aws/eks/fargate_profile_resource_gen.go @@ -163,6 +163,10 @@ func fargateProfileResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "namespace": { // Property: Namespace @@ -254,9 +258,13 @@ func fargateProfileResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/eks/identity_provider_config_resource_gen.go b/internal/aws/eks/identity_provider_config_resource_gen.go index 099adad247..cfd0e7997e 100644 --- a/internal/aws/eks/identity_provider_config_resource_gen.go +++ b/internal/aws/eks/identity_provider_config_resource_gen.go @@ -146,12 +146,20 @@ func identityProviderConfigResourceType(ctx context.Context) (provider.ResourceT Description: "The JWT claim that the provider uses to return your groups.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "groups_prefix": { // Property: GroupsPrefix Description: "The prefix that is prepended to group claims to prevent clashes with existing names (such as system: groups).", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "issuer_url": { // Property: IssuerUrl @@ -184,18 +192,30 @@ func identityProviderConfigResourceType(ctx context.Context) (provider.ResourceT }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "username_claim": { // Property: UsernameClaim Description: "The JSON Web Token (JWT) claim to use as the username. The default is sub, which is expected to be a unique identifier of the end user. You can choose other claims, such as email or name, depending on the OpenID identity provider. Claims other than email are prefixed with the issuer URL to prevent naming clashes with other plug-ins.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "username_prefix": { // Property: UsernamePrefix Description: "The prefix that is prepended to username claims to prevent clashes with existing names. If you do not provide this field, and username is a value other than email, the prefix defaults to issuerurl#. You can use the value - to disable all prefixing.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -262,6 +282,10 @@ func identityProviderConfigResourceType(ctx context.Context) (provider.ResourceT }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type diff --git a/internal/aws/eks/nodegroup_resource_gen.go b/internal/aws/eks/nodegroup_resource_gen.go index 5f7213b720..205588f612 100644 --- a/internal/aws/eks/nodegroup_resource_gen.go +++ b/internal/aws/eks/nodegroup_resource_gen.go @@ -162,6 +162,10 @@ func nodegroupResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The Kubernetes labels to be applied to the nodes in the node group when they are created.", Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "launch_template": { // Property: LaunchTemplate @@ -192,29 +196,45 @@ func nodegroupResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Id Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "version": { // Property: Version Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "node_role": { // Property: NodeRole @@ -260,6 +280,10 @@ func nodegroupResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The AMI version of the Amazon EKS-optimized AMI to use with your node group.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "remote_access": { // Property: RemoteAccess @@ -297,8 +321,10 @@ func nodegroupResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: SourceSecurityGroups Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -339,29 +365,45 @@ func nodegroupResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: DesiredSize Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_size": { // Property: MaxSize Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_size": { // Property: MinSize Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnets": { // Property: Subnets @@ -393,6 +435,10 @@ func nodegroupResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The metadata, as key-value pairs, to apply to the node group to assist with categorization and organization. Follows same schema as Labels for consistency.", Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "taints": { // Property: Taints @@ -428,31 +474,45 @@ func nodegroupResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Effect Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key": { // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "update_config": { @@ -484,22 +544,34 @@ func nodegroupResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The maximum number of nodes unavailable at once during a version update. Nodes will be updated in parallel. This value or maxUnavailablePercentage is required to have a value.The maximum number is 100. ", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatAtLeast(1.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_unavailable_percentage": { // Property: MaxUnavailablePercentage Description: "The maximum percentage of nodes unavailable during a version update. This percentage of nodes will be updated in parallel, up to 100 nodes at once. This value or maxUnavailable is required to have a value.", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatBetween(1.000000, 100.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "version": { // Property: Version @@ -511,6 +583,10 @@ func nodegroupResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The Kubernetes version to use for your managed nodes.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/elasticache/global_replication_group_resource_gen.go b/internal/aws/elasticache/global_replication_group_resource_gen.go index 2aa05973a9..e7018f3a41 100644 --- a/internal/aws/elasticache/global_replication_group_resource_gen.go +++ b/internal/aws/elasticache/global_replication_group_resource_gen.go @@ -32,6 +32,10 @@ func globalReplicationGroupResourceType(ctx context.Context) (provider.ResourceT Description: "AutomaticFailoverEnabled", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // AutomaticFailoverEnabled is a write-only property. }, "cache_node_type": { @@ -44,6 +48,10 @@ func globalReplicationGroupResourceType(ctx context.Context) (provider.ResourceT Description: "The cache node type of the Global Datastore", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // CacheNodeType is a write-only property. }, "cache_parameter_group_name": { @@ -56,6 +64,10 @@ func globalReplicationGroupResourceType(ctx context.Context) (provider.ResourceT Description: "Cache parameter group name to use for the new engine version. This parameter cannot be modified independently.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "engine_version": { // Property: EngineVersion @@ -67,6 +79,10 @@ func globalReplicationGroupResourceType(ctx context.Context) (provider.ResourceT Description: "The engine version of the Global Datastore.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // EngineVersion is a write-only property. }, "global_node_group_count": { @@ -79,6 +95,10 @@ func globalReplicationGroupResourceType(ctx context.Context) (provider.ResourceT Description: "Indicates the number of node groups in the Global Datastore.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // GlobalNodeGroupCount is a write-only property. }, "global_replication_group_description": { @@ -91,6 +111,10 @@ func globalReplicationGroupResourceType(ctx context.Context) (provider.ResourceT Description: "The optional description of the Global Datastore", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // GlobalReplicationGroupDescription is a write-only property. }, "global_replication_group_id": { @@ -117,6 +141,10 @@ func globalReplicationGroupResourceType(ctx context.Context) (provider.ResourceT 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. ", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // GlobalReplicationGroupIdSuffix is a write-only property. }, "members": { @@ -158,24 +186,36 @@ func globalReplicationGroupResourceType(ctx context.Context) (provider.ResourceT Description: "Regionally unique identifier for the member i.e. ReplicationGroupId.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "replication_group_region": { // Property: ReplicationGroupRegion Description: "The AWS region of the Global Datastore member.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role": { // Property: Role Description: "Indicates the role of the member, primary or secondary.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PRIMARY", "SECONDARY", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -238,12 +278,20 @@ func globalReplicationGroupResourceType(ctx context.Context) (provider.ResourceT Description: "The replication group id of the Global Datastore member.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "replication_group_region": { // Property: ReplicationGroupRegion Description: "The AWS region of the Global Datastore member.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resharding_configurations": { // Property: ReshardingConfigurations @@ -255,26 +303,42 @@ func globalReplicationGroupResourceType(ctx context.Context) (provider.ResourceT Description: "Unique identifier for the Node Group. This is either auto-generated by ElastiCache (4-digit id) or a user supplied id.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "preferred_availability_zones": { // Property: PreferredAvailabilityZones Description: "A list of preferred availability zones for the nodes of new node groups.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // RegionalConfigurations is a write-only property. }, "status": { diff --git a/internal/aws/elasticache/user_group_resource_gen.go b/internal/aws/elasticache/user_group_resource_gen.go index 5793c59179..0b33328ee8 100644 --- a/internal/aws/elasticache/user_group_resource_gen.go +++ b/internal/aws/elasticache/user_group_resource_gen.go @@ -107,9 +107,13 @@ func userGroupResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "List of users associated to this user group.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/elasticache/user_resource_gen.go b/internal/aws/elasticache/user_resource_gen.go index d1bd6438a8..130f1d0ea9 100644 --- a/internal/aws/elasticache/user_resource_gen.go +++ b/internal/aws/elasticache/user_resource_gen.go @@ -33,6 +33,10 @@ func userResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Access permissions string used for this user account.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // AccessString is a write-only property. }, "arn": { @@ -81,6 +85,10 @@ func userResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates a password is not required for this user account.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // NoPasswordRequired is a write-only property. }, "passwords": { @@ -99,9 +107,13 @@ func userResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Passwords used for this user account. You can create up to two passwords for each user.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // Passwords is a write-only property. }, "status": { diff --git a/internal/aws/emr/studio_resource_gen.go b/internal/aws/emr/studio_resource_gen.go index ad62bc4208..1617ab57d8 100644 --- a/internal/aws/emr/studio_resource_gen.go +++ b/internal/aws/emr/studio_resource_gen.go @@ -92,9 +92,13 @@ func studioResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A detailed description of the Studio.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "engine_security_group_id": { // Property: EngineSecurityGroupId @@ -129,10 +133,14 @@ func studioResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Your identity provider's authentication endpoint. Amazon EMR Studio redirects federated users to this endpoint for authentication when logging in to a Studio with the Studio URL.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(4096), validate.StringMatch(regexp.MustCompile("^https://[0-9a-zA-Z]([-.\\w]*[0-9a-zA-Z])(:[0-9]*)*([?/#].*)?$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "idp_relay_state_parameter_name": { // Property: IdpRelayStateParameterName @@ -146,9 +154,13 @@ func studioResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of relay state parameter for external Identity Provider.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -282,6 +294,10 @@ func studioResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "url": { // Property: Url diff --git a/internal/aws/emrcontainers/virtual_cluster_resource_gen.go b/internal/aws/emrcontainers/virtual_cluster_resource_gen.go index 20c34939f4..db6ebcf482 100644 --- a/internal/aws/emrcontainers/virtual_cluster_resource_gen.go +++ b/internal/aws/emrcontainers/virtual_cluster_resource_gen.go @@ -219,6 +219,10 @@ func virtualClusterResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/emrserverless/application_resource_gen.go b/internal/aws/emrserverless/application_resource_gen.go index f551778abc..03b4590c94 100644 --- a/internal/aws/emrserverless/application_resource_gen.go +++ b/internal/aws/emrserverless/application_resource_gen.go @@ -85,6 +85,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "auto_stop_configuration": { // Property: AutoStopConfiguration @@ -124,10 +128,18 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The amount of time [in minutes] to wait before auto stopping the Application when idle. Defaults to 15 minutes.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "initial_capacity": { // Property: InitialCapacity @@ -239,10 +251,14 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Per worker Disk resource. GB is the only supported unit and specifying GB is optional", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 15), validate.StringMatch(regexp.MustCompile("^[1-9][0-9]*(\\s)?(GB|gb|gB|Gb)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "memory": { // Property: Memory @@ -274,6 +290,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "maximum_capacity": { // Property: MaximumCapacity @@ -328,10 +348,14 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Per worker Disk resource. GB is the only supported unit and specifying GB is optional", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 15), validate.StringMatch(regexp.MustCompile("^[1-9][0-9]*(\\s)?(GB|gb|gB|Gb)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "memory": { // Property: Memory @@ -346,6 +370,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -418,26 +446,38 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The ID of the security groups in the VPC to which you want to connect your job or application.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 5), validate.ArrayForEach(validate.StringLenBetween(1, 32)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^[-0-9a-zA-Z]+"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnet_ids": { // Property: SubnetIds Description: "The ID of the subnets in the VPC to which you want to connect your job or application.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 16), validate.ArrayForEach(validate.StringLenBetween(1, 32)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^[-0-9a-zA-Z]+"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "release_label": { // Property: ReleaseLabel @@ -520,6 +560,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type diff --git a/internal/aws/events/api_destination_resource_gen.go b/internal/aws/events/api_destination_resource_gen.go index b24dbb885a..73ec824fa5 100644 --- a/internal/aws/events/api_destination_resource_gen.go +++ b/internal/aws/events/api_destination_resource_gen.go @@ -56,9 +56,13 @@ func apiDestinationResourceType(ctx context.Context) (provider.ResourceType, err // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "http_method": { // Property: HttpMethod @@ -109,9 +113,13 @@ func apiDestinationResourceType(ctx context.Context) (provider.ResourceType, err // } Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name diff --git a/internal/aws/events/archive_resource_gen.go b/internal/aws/events/archive_resource_gen.go index e6026c2615..0cb9093e99 100644 --- a/internal/aws/events/archive_resource_gen.go +++ b/internal/aws/events/archive_resource_gen.go @@ -56,6 +56,10 @@ func archiveResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "event_pattern": { // Property: EventPattern @@ -65,6 +69,10 @@ func archiveResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "retention_days": { // Property: RetentionDays @@ -74,6 +82,10 @@ func archiveResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_arn": { // Property: SourceArn diff --git a/internal/aws/events/endpoint_resource_gen.go b/internal/aws/events/endpoint_resource_gen.go index 921d5a1050..07a1582213 100644 --- a/internal/aws/events/endpoint_resource_gen.go +++ b/internal/aws/events/endpoint_resource_gen.go @@ -48,10 +48,14 @@ func endpointResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "endpoint_id": { // Property: EndpointId @@ -182,6 +186,10 @@ func endpointResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleArn @@ -194,10 +202,14 @@ func endpointResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), validate.StringMatch(regexp.MustCompile("^arn:aws[a-z-]*:iam::\\d{12}:role\\/[\\w+=,.@/-]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "routing_config": { // Property: RoutingConfig diff --git a/internal/aws/eventschemas/registry_policy_resource_gen.go b/internal/aws/eventschemas/registry_policy_resource_gen.go index 0929c61f3d..2fc5ab3100 100644 --- a/internal/aws/eventschemas/registry_policy_resource_gen.go +++ b/internal/aws/eventschemas/registry_policy_resource_gen.go @@ -59,6 +59,10 @@ func registryPolicyResourceType(ctx context.Context) (provider.ResourceType, err // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/evidently/experiment_resource_gen.go b/internal/aws/evidently/experiment_resource_gen.go index 2c7df2b5f7..ad56febda4 100644 --- a/internal/aws/evidently/experiment_resource_gen.go +++ b/internal/aws/evidently/experiment_resource_gen.go @@ -46,9 +46,13 @@ func experimentResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 160), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "metric_goals": { // Property: MetricGoals @@ -142,10 +146,14 @@ func experimentResourceType(ctx context.Context) (provider.ResourceType, error) // Property: UnitLabel Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value_key": { // Property: ValueKey @@ -227,10 +235,14 @@ func experimentResourceType(ctx context.Context) (provider.ResourceType, error) // Property: ControlTreatmentName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 127), validate.StringMatch(regexp.MustCompile("[-a-zA-Z0-9._]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "treatment_weights": { // Property: TreatmentWeights @@ -256,6 +268,10 @@ func experimentResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -291,10 +307,14 @@ func experimentResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 127), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "remove_segment": { // Property: RemoveSegment @@ -304,6 +324,10 @@ func experimentResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "running_status": { // Property: RunningStatus @@ -355,31 +379,48 @@ func experimentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Provide the analysis Completion time for an experiment", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "desired_state": { // Property: DesiredState Description: "Provide CANCELLED or COMPLETED desired state when stopping an experiment", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^(CANCELLED|COMPLETED)"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "reason": { // Property: Reason Description: "Reason is a required input for stopping the experiment", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status Description: "Provide START or STOP action to apply on an experiment", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.RequiredAttributes( validate.OneOfRequired( @@ -395,6 +436,9 @@ func experimentResourceType(ctx context.Context) (provider.ResourceType, error) ), ), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sampling_rate": { // Property: SamplingRate @@ -406,9 +450,13 @@ func experimentResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 100000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "segment": { // Property: Segment @@ -421,10 +469,14 @@ func experimentResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 2048), validate.StringMatch(regexp.MustCompile("([-a-zA-Z0-9._]*)|(arn:[^:]*:[^:]*:[^:]*:[^:]*:segment/[-a-zA-Z0-9._]*)"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -483,6 +535,10 @@ func experimentResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "treatments": { // Property: Treatments @@ -530,6 +586,10 @@ func experimentResourceType(ctx context.Context) (provider.ResourceType, error) // Property: Description Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "feature": { // Property: Feature diff --git a/internal/aws/evidently/feature_resource_gen.go b/internal/aws/evidently/feature_resource_gen.go index 04279aa9ae..c06c3be48a 100644 --- a/internal/aws/evidently/feature_resource_gen.go +++ b/internal/aws/evidently/feature_resource_gen.go @@ -49,10 +49,14 @@ func featureResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 127), validate.StringMatch(regexp.MustCompile("[-a-zA-Z0-9._]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -64,9 +68,13 @@ func featureResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 160), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "entity_overrides": { // Property: EntityOverrides @@ -99,22 +107,34 @@ func featureResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: EntityId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "variation": { // Property: Variation Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 127), validate.StringMatch(regexp.MustCompile("[-a-zA-Z0-9._]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 20), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "evaluation_strategy": { // Property: EvaluationStrategy @@ -128,12 +148,16 @@ func featureResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ALL_RULES", "DEFAULT_VARIATION", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -230,6 +254,10 @@ func featureResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "variations": { // Property: Variations @@ -299,33 +327,53 @@ func featureResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: BooleanValue Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "double_value": { // Property: DoubleValue Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "long_value": { // Property: LongValue Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "string_value": { // Property: StringValue Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "variation_name": { // Property: VariationName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 127), validate.StringMatch(regexp.MustCompile("[-a-zA-Z0-9._]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/evidently/launch_resource_gen.go b/internal/aws/evidently/launch_resource_gen.go index 5ad6d33b6a..bc96de61c7 100644 --- a/internal/aws/evidently/launch_resource_gen.go +++ b/internal/aws/evidently/launch_resource_gen.go @@ -46,9 +46,13 @@ func launchResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 160), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "execution_status": { // Property: ExecutionStatus @@ -83,12 +87,20 @@ func launchResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Provide CANCELLED or COMPLETED as the launch desired state. Defaults to Completed if not provided.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "reason": { // Property: Reason Description: "Provide a reason for stopping the launch. Defaults to empty if not provided.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status @@ -99,6 +111,10 @@ func launchResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "groups": { // Property: Groups @@ -144,9 +160,13 @@ func launchResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Description Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 160), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "feature": { // Property: Feature @@ -248,10 +268,14 @@ func launchResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: UnitLabel Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value_key": { // Property: ValueKey @@ -262,10 +286,14 @@ func launchResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 3), validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -316,10 +344,14 @@ func launchResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 127), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "scheduled_splits_config": { // Property: ScheduledSplitsConfig @@ -484,6 +516,10 @@ func launchResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "start_time": { // Property: StartTime @@ -555,6 +591,10 @@ func launchResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/evidently/project_resource_gen.go b/internal/aws/evidently/project_resource_gen.go index bb9d95924b..0aa82d13cd 100644 --- a/internal/aws/evidently/project_resource_gen.go +++ b/internal/aws/evidently/project_resource_gen.go @@ -94,10 +94,14 @@ func projectResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: LogGroup Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("^[-a-zA-Z0-9._/]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3": { // Property: S3 @@ -116,18 +120,27 @@ func projectResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Prefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), validate.StringMatch(regexp.MustCompile("^[-a-zA-Z0-9!_.*'()/]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.RequiredAttributes( validate.OneOfRequired( @@ -140,6 +153,9 @@ func projectResourceType(ctx context.Context) (provider.ResourceType, error) { ), ), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -151,9 +167,13 @@ func projectResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 160), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -231,6 +251,10 @@ func projectResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/evidently/segment_resource_gen.go b/internal/aws/evidently/segment_resource_gen.go index 189311483c..32422d9c75 100644 --- a/internal/aws/evidently/segment_resource_gen.go +++ b/internal/aws/evidently/segment_resource_gen.go @@ -48,9 +48,13 @@ func segmentResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 160), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -78,9 +82,13 @@ func segmentResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -139,6 +147,10 @@ func segmentResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/finspace/environment_resource_gen.go b/internal/aws/finspace/environment_resource_gen.go index fdea24f092..b033e0d25e 100644 --- a/internal/aws/finspace/environment_resource_gen.go +++ b/internal/aws/finspace/environment_resource_gen.go @@ -88,9 +88,13 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Description of the Environment", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9. ]{1,1000}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "environment_arn": { // Property: EnvironmentArn @@ -151,12 +155,16 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Federation mode used with the Environment", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "LOCAL", "FEDERATED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "federation_parameters": { // Property: FederationParameters @@ -208,54 +216,82 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "SAML metadata URL to link with the Environment", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^https?://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]{1,1000}"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "attribute_map": { // Property: AttributeMap Description: "Attribute map for SAML configuration", Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "federation_provider_name": { // Property: FederationProviderName Description: "Federation provider name to link with the Environment", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 32), validate.StringMatch(regexp.MustCompile("[^_\\p{Z}][\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}][^_\\p{Z}]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "federation_urn": { // Property: FederationURN Description: "SAML metadata URL to link with the Environment", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "saml_metadata_document": { // Property: SamlMetadataDocument Description: "SAML metadata document to link the federation provider to the Environment", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1000, 10000000), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "saml_metadata_url": { // Property: SamlMetadataURL Description: "SAML metadata URL to link with the Environment", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^https?://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]{1,1000}"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kms_key_id": { // Property: KmsKeyId @@ -368,30 +404,42 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Email address", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), validate.StringMatch(regexp.MustCompile("[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+[.]+[A-Za-z]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "first_name": { // Property: FirstName Description: "First name", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 50), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9]{1,50}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_name": { // Property: LastName Description: "Last name", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 50), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9]{1,50}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/fis/experiment_template_resource_gen.go b/internal/aws/fis/experiment_template_resource_gen.go index e0497ef49b..307e3b3f0a 100644 --- a/internal/aws/fis/experiment_template_resource_gen.go +++ b/internal/aws/fis/experiment_template_resource_gen.go @@ -91,18 +91,26 @@ func experimentTemplateResourceType(ctx context.Context) (provider.ResourceType, Description: "The ID of the action.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description Description: "A description for the action.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "parameters": { // Property: Parameters @@ -110,15 +118,23 @@ func experimentTemplateResourceType(ctx context.Context) (provider.ResourceType, // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "start_after": { // Property: StartAfter Description: "The names of the actions that must be completed before the current action starts.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenAtMost(64)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "targets": { // Property: Targets @@ -126,10 +142,18 @@ func experimentTemplateResourceType(ctx context.Context) (provider.ResourceType, // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -224,6 +248,10 @@ func experimentTemplateResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_schema_version": { // Property: LogSchemaVersion @@ -249,17 +277,29 @@ func experimentTemplateResourceType(ctx context.Context) (provider.ResourceType, // Property: Prefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleArn @@ -316,9 +356,13 @@ func experimentTemplateResourceType(ctx context.Context) (provider.ResourceType, // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(20, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -460,45 +504,69 @@ func experimentTemplateResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "parameters": { // Property: Parameters // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_arns": { // Property: ResourceArns Description: "The Amazon Resource Names (ARNs) of the target resources.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(20, 2048)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_tags": { // Property: ResourceTags // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_type": { // Property: ResourceType Description: "The AWS resource type. The resource type must be supported for the specified action.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "selection_mode": { // Property: SelectionMode Description: "Scopes the identified resources to a specific number of the resources at random, or a percentage of the resources.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/fms/policy_resource_gen.go b/internal/aws/fms/policy_resource_gen.go index 4da447290a..d3d911ccba 100644 --- a/internal/aws/fms/policy_resource_gen.go +++ b/internal/aws/fms/policy_resource_gen.go @@ -48,6 +48,10 @@ func policyResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // DeleteAllPolicyResources is a write-only property. }, "exclude_map": { @@ -89,23 +93,35 @@ func policyResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: ACCOUNT Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(12, 12)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^([0-9]*)$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "orgunit": { // Property: ORGUNIT Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(16, 68)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^(ou-[0-9a-z]{4,32}-[a-z0-9]{8,32})$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "exclude_resource_tags": { // Property: ExcludeResourceTags @@ -170,23 +186,35 @@ func policyResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: ACCOUNT Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(12, 12)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^([0-9]*)$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "orgunit": { // Property: ORGUNIT Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(16, 68)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^(ou-[0-9a-z]{4,32}-[a-z0-9]{8,32})$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "policy_name": { // Property: PolicyName @@ -254,16 +282,24 @@ func policyResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(8), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_type": { // Property: ResourceType @@ -299,10 +335,14 @@ func policyResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(1, 128)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^([^\\s]*)$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resources_clean_up": { // Property: ResourcesCleanUp @@ -312,6 +352,10 @@ func policyResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "security_service_policy_data": { // Property: SecurityServicePolicyData @@ -410,9 +454,13 @@ func policyResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Firewall managed service data.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 8192), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "policy_option": { // Property: PolicyOption @@ -439,6 +487,10 @@ func policyResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "third_party_firewall_policy": { // Property: ThirdPartyFirewallPolicy @@ -460,10 +512,15 @@ func policyResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.RequiredAttributes( validate.OneOfRequired( @@ -476,6 +533,9 @@ func policyResourceType(ctx context.Context) (provider.ResourceType, error) { ), ), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type @@ -552,6 +612,10 @@ func policyResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/forecast/dataset_group_resource_gen.go b/internal/aws/forecast/dataset_group_resource_gen.go index be7cb6299d..09bc198ff3 100644 --- a/internal/aws/forecast/dataset_group_resource_gen.go +++ b/internal/aws/forecast/dataset_group_resource_gen.go @@ -39,10 +39,14 @@ func datasetGroupResourceType(ctx context.Context) (provider.ResourceType, error Description: "An array of Amazon Resource Names (ARNs) of the datasets that you want to include in the dataset group.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenAtMost(256)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9\\-\\_\\.\\/\\:]+$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dataset_group_arn": { // Property: DatasetGroupArn @@ -169,9 +173,13 @@ func datasetGroupResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/forecast/dataset_resource_gen.go b/internal/aws/forecast/dataset_resource_gen.go index 94ce636445..4f8f1eaecd 100644 --- a/internal/aws/forecast/dataset_resource_gen.go +++ b/internal/aws/forecast/dataset_resource_gen.go @@ -48,9 +48,13 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Frequency of data collection. This parameter is required for RELATED_TIME_SERIES", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^Y|M|W|D|H|30min|15min|10min|5min|1min$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dataset_name": { // Property: DatasetName @@ -155,24 +159,36 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "KMS key used to encrypt the Dataset data", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("arn:aws[-a-z]*:kms:.*:key/.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleArn Description: "The ARN of the IAM role that Amazon Forecast can assume to access the AWS KMS key.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9\\-\\_\\.\\/\\:]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "schema": { // Property: Schema @@ -222,15 +238,20 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Name of the dataset field", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[a-zA-Z][a-zA-Z0-9_]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "attribute_type": { // Property: AttributeType Description: "Data type of the field", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "string", @@ -240,13 +261,20 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { "geolocation", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -307,9 +335,13 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/frauddetector/detector_resource_gen.go b/internal/aws/frauddetector/detector_resource_gen.go index e586a55909..e870083686 100644 --- a/internal/aws/frauddetector/detector_resource_gen.go +++ b/internal/aws/frauddetector/detector_resource_gen.go @@ -64,15 +64,21 @@ func detectorResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(10), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "created_time": { @@ -101,9 +107,13 @@ func detectorResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The description of the detector.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "detector_id": { // Property: DetectorId @@ -154,12 +164,16 @@ func detectorResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The desired detector version status for the detector", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "DRAFT", "ACTIVE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "event_type": { // Property: EventType @@ -494,9 +508,13 @@ func detectorResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The description of the event type.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "entity_types": { // Property: EntityTypes @@ -506,37 +524,61 @@ func detectorResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "created_time": { // Property: CreatedTime Description: "The time when the entity type was created.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description Description: "The description.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inline": { // Property: Inline Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_updated_time": { // Property: LastUpdatedTime Description: "The time when the entity type was last updated.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -562,21 +604,25 @@ func detectorResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "event_variables": { @@ -587,27 +633,40 @@ func detectorResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "created_time": { // Property: CreatedTime Description: "The time when the event variable was created.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "data_source": { // Property: DataSource Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "EVENT", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "data_type": { // Property: DataType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "STRING", @@ -616,36 +675,59 @@ func detectorResourceType(ctx context.Context) (provider.ResourceType, error) { "BOOLEAN", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "default_value": { // Property: DefaultValue Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description Description: "The description.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inline": { // Property: Inline Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_updated_time": { // Property: LastUpdatedTime Description: "The time when the event variable was last updated.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -671,17 +753,20 @@ func detectorResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "variable_type": { // Property: VariableType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "AUTH_CODE", @@ -719,21 +804,30 @@ func detectorResourceType(ctx context.Context) (provider.ResourceType, error) { "USERAGENT", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "inline": { // Property: Inline Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "labels": { // Property: Labels @@ -743,37 +837,61 @@ func detectorResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "created_time": { // Property: CreatedTime Description: "The time when the label was created.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description Description: "The description.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inline": { // Property: Inline Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_updated_time": { // Property: LastUpdatedTime Description: "The time when the label was last updated.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -799,21 +917,25 @@ func detectorResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(2), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "last_updated_time": { @@ -830,10 +952,14 @@ func detectorResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name for the event type", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 64), validate.StringMatch(regexp.MustCompile("^[0-9a-z_-]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -859,11 +985,13 @@ func detectorResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -896,12 +1024,16 @@ func detectorResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "FIRST_MATCHED", "ALL_MATCHED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rules": { // Property: Rules @@ -1048,47 +1180,75 @@ func detectorResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "created_time": { // Property: CreatedTime Description: "The time when the event type was created.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description Description: "The description.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "detector_id": { // Property: DetectorId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "expression": { // Property: Expression Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "language": { // Property: Language Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "DETECTORPL", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_updated_time": { // Property: LastUpdatedTime Description: "The time when the event type was last updated.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "outcomes": { // Property: Outcomes @@ -1098,37 +1258,61 @@ func detectorResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "created_time": { // Property: CreatedTime Description: "The time when the outcome was created.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description Description: "The description.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inline": { // Property: Inline Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_updated_time": { // Property: LastUpdatedTime Description: "The time when the outcome was last updated.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -1154,32 +1338,44 @@ func detectorResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "rule_id": { // Property: RuleId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rule_version": { // Property: RuleVersion Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -1205,11 +1401,13 @@ func detectorResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -1274,11 +1472,13 @@ func detectorResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/frauddetector/entity_type_resource_gen.go b/internal/aws/frauddetector/entity_type_resource_gen.go index 102af170c3..4883b7df9c 100644 --- a/internal/aws/frauddetector/entity_type_resource_gen.go +++ b/internal/aws/frauddetector/entity_type_resource_gen.go @@ -63,9 +63,13 @@ func entityTypeResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The entity type description.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_updated_time": { // Property: LastUpdatedTime @@ -154,11 +158,13 @@ func entityTypeResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/frauddetector/event_type_resource_gen.go b/internal/aws/frauddetector/event_type_resource_gen.go index 03a3b3f99e..83f5c01936 100644 --- a/internal/aws/frauddetector/event_type_resource_gen.go +++ b/internal/aws/frauddetector/event_type_resource_gen.go @@ -63,9 +63,13 @@ func eventTypeResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The description of the event type.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "entity_types": { // Property: EntityTypes @@ -138,37 +142,61 @@ func eventTypeResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "created_time": { // Property: CreatedTime Description: "The time when the event type was created.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description Description: "The description.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inline": { // Property: Inline Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_updated_time": { // Property: LastUpdatedTime Description: "The time when the event type was last updated.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -194,11 +222,13 @@ func eventTypeResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -338,27 +368,40 @@ func eventTypeResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "created_time": { // Property: CreatedTime Description: "The time when the event type was created.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "data_source": { // Property: DataSource Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "EVENT", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "data_type": { // Property: DataType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "STRING", @@ -367,36 +410,59 @@ func eventTypeResourceType(ctx context.Context) (provider.ResourceType, error) { "BOOLEAN", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "default_value": { // Property: DefaultValue Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description Description: "The description.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inline": { // Property: Inline Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_updated_time": { // Property: LastUpdatedTime Description: "The time when the event type was last updated.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -422,17 +488,20 @@ func eventTypeResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "variable_type": { // Property: VariableType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "AUTH_CODE", @@ -470,6 +539,9 @@ func eventTypeResourceType(ctx context.Context) (provider.ResourceType, error) { "USERAGENT", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -552,37 +624,61 @@ func eventTypeResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "created_time": { // Property: CreatedTime Description: "The time when the event type was created.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description Description: "The description.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inline": { // Property: Inline Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_updated_time": { // Property: LastUpdatedTime Description: "The time when the event type was last updated.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -608,11 +704,13 @@ func eventTypeResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -712,11 +810,13 @@ func eventTypeResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/frauddetector/label_resource_gen.go b/internal/aws/frauddetector/label_resource_gen.go index 1af8c9be0b..f14d2445e5 100644 --- a/internal/aws/frauddetector/label_resource_gen.go +++ b/internal/aws/frauddetector/label_resource_gen.go @@ -63,9 +63,13 @@ func labelResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The label description.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_updated_time": { // Property: LastUpdatedTime @@ -154,11 +158,13 @@ func labelResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/frauddetector/outcome_resource_gen.go b/internal/aws/frauddetector/outcome_resource_gen.go index 72f707a91c..8a49ef930d 100644 --- a/internal/aws/frauddetector/outcome_resource_gen.go +++ b/internal/aws/frauddetector/outcome_resource_gen.go @@ -63,9 +63,13 @@ func outcomeResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The outcome description.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_updated_time": { // Property: LastUpdatedTime @@ -154,11 +158,13 @@ func outcomeResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/frauddetector/variable_resource_gen.go b/internal/aws/frauddetector/variable_resource_gen.go index e12701b955..c5b96565d5 100644 --- a/internal/aws/frauddetector/variable_resource_gen.go +++ b/internal/aws/frauddetector/variable_resource_gen.go @@ -120,9 +120,13 @@ func variableResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The description.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_updated_time": { // Property: LastUpdatedTime @@ -208,11 +212,13 @@ func variableResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "variable_type": { @@ -260,6 +266,7 @@ func variableResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The variable type. For more information see https://docs.aws.amazon.com/frauddetector/latest/ug/create-a-variable.html#variable-types", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "AUTH_CODE", @@ -297,6 +304,9 @@ func variableResourceType(ctx context.Context) (provider.ResourceType, error) { "USERAGENT", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/gamelift/alias_resource_gen.go b/internal/aws/gamelift/alias_resource_gen.go index d528b4bad6..25f784b10b 100644 --- a/internal/aws/gamelift/alias_resource_gen.go +++ b/internal/aws/gamelift/alias_resource_gen.go @@ -49,9 +49,13 @@ func aliasResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A human-readable description of the alias.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -121,15 +125,23 @@ func aliasResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A unique identifier for a fleet that the alias points to. If you specify SIMPLE for the Type property, you must specify this property.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^fleet-\\S+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "message": { // Property: Message Description: "The message text to be used with a terminal routing strategy. If you specify TERMINAL for the Type property, you must specify this property.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type diff --git a/internal/aws/gamelift/fleet_resource_gen.go b/internal/aws/gamelift/fleet_resource_gen.go index 2882587c64..8720ea9167 100644 --- a/internal/aws/gamelift/fleet_resource_gen.go +++ b/internal/aws/gamelift/fleet_resource_gen.go @@ -98,9 +98,13 @@ func fleetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A human-readable description of a fleet.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "desired_ec2_instances": { // Property: DesiredEC2Instances @@ -113,9 +117,13 @@ func fleetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "[DEPRECATED] The number of EC2 instances that you want this fleet to host. When creating a new fleet, GameLift automatically sets this value to \"1\" and initiates a single instance. Once the fleet is active, update this value to trigger GameLift to add or remove instances from the fleet.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ec2_inbound_permissions": { // Property: EC2InboundPermissions @@ -209,11 +217,13 @@ func fleetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "ec2_instance_type": { @@ -397,15 +407,21 @@ func fleetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 100), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "log_paths": { @@ -440,9 +456,13 @@ func fleetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "[DEPRECATED] The maximum value that is allowed for the fleet's instance count. When creating a new fleet, GameLift automatically sets this value to \"1\". Once the fleet is active, you can change this value.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "metric_groups": { // Property: MetricGroups @@ -459,11 +479,13 @@ func fleetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of an Amazon CloudWatch metric group. A metric group aggregates the metrics for all fleets in the group. Specify a string containing the metric group name. You can use an existing name or use a new name to create a new metric group. Currently, this parameter can have only one string.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(1), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "min_size": { @@ -477,9 +499,13 @@ func fleetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "[DEPRECATED] The minimum value allowed for the fleet's instance count. When creating a new fleet, GameLift automatically sets this value to \"0\". After the fleet is active, you can change this value.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -493,9 +519,13 @@ func fleetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A descriptive label that is associated with a fleet. Fleet names do not need to be unique.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "new_game_session_protection_policy": { // Property: NewGameSessionProtectionPolicy @@ -511,12 +541,16 @@ func fleetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A game session protection policy to apply to all game sessions hosted on instances in this fleet. When protected, active game sessions cannot be terminated during a scale-down event. If this parameter is not set, instances in this fleet default to no protection. You can change a fleet's protection policy to affect future game sessions on the fleet. You can also set protection for individual game sessions.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "FullProtection", "NoProtection", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "peer_vpc_aws_account_id": { // Property: PeerVpcAwsAccountId @@ -592,22 +626,34 @@ func fleetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The maximum number of game sessions that an individual can create during the policy period.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "policy_period_in_minutes": { // Property: PolicyPeriodInMinutes Description: "The time span used in evaluating the resource creation limit policy.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "runtime_configuration": { // Property: RuntimeConfiguration @@ -674,18 +720,26 @@ func fleetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The maximum amount of time (in seconds) that a game session can remain in status ACTIVATING. If the game session is not active before the timeout, activation is terminated and the game session status is changed to TERMINATED.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 600), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_concurrent_game_session_activations": { // Property: MaxConcurrentGameSessionActivations Description: "The maximum number of game sessions with status ACTIVATING to allow on an instance simultaneously. This setting limits the amount of instance resources that can be used for new game activations at any one time.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 2147483647), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "server_processes": { // Property: ServerProcesses @@ -716,23 +770,33 @@ func fleetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "An optional list of parameters to pass to the server executable or Realtime script on launch.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "script_id": { // Property: ScriptId diff --git a/internal/aws/gamelift/game_server_group_resource_gen.go b/internal/aws/gamelift/game_server_group_resource_gen.go index f6611da6d4..6d9892af14 100644 --- a/internal/aws/gamelift/game_server_group_resource_gen.go +++ b/internal/aws/gamelift/game_server_group_resource_gen.go @@ -79,6 +79,10 @@ func gameServerGroupResourceType(ctx context.Context) (provider.ResourceType, er Description: "Length of time, in seconds, it takes for a new instance to start new game server processes and register with GameLift FleetIQ.", Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_tracking_configuration": { // Property: TargetTrackingConfiguration @@ -98,6 +102,10 @@ func gameServerGroupResourceType(ctx context.Context) (provider.ResourceType, er }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "balancing_strategy": { // Property: BalancingStrategy @@ -114,6 +122,7 @@ func gameServerGroupResourceType(ctx context.Context) (provider.ResourceType, er Description: "The fallback balancing method to use for the game server group when Spot Instances in a Region become unavailable or are not viable for game hosting.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "SPOT_ONLY", @@ -121,6 +130,9 @@ func gameServerGroupResourceType(ctx context.Context) (provider.ResourceType, er "ON_DEMAND_ONLY", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "delete_option": { // Property: DeleteOption @@ -137,6 +149,7 @@ func gameServerGroupResourceType(ctx context.Context) (provider.ResourceType, er Description: "The type of delete to perform.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "SAFE_DELETE", @@ -144,6 +157,9 @@ func gameServerGroupResourceType(ctx context.Context) (provider.ResourceType, er "RETAIN", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // DeleteOption is a write-only property. }, "game_server_group_arn": { @@ -195,12 +211,16 @@ func gameServerGroupResourceType(ctx context.Context) (provider.ResourceType, er Description: "A flag that indicates whether instances in the game server group are protected from early termination.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NO_PROTECTION", "FULL_PROTECTION", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_definitions": { // Property: InstanceDefinitions @@ -245,6 +265,10 @@ func gameServerGroupResourceType(ctx context.Context) (provider.ResourceType, er Description: "Instance weighting that indicates how much this instance type contributes to the total capacity of a game server group.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -286,18 +310,30 @@ func gameServerGroupResourceType(ctx context.Context) (provider.ResourceType, er Description: "A unique identifier for an existing EC2 launch template.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "launch_template_name": { // Property: LaunchTemplateName Description: "A readable identifier for an existing EC2 launch template.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "version": { // Property: Version Description: "The version of the EC2 launch template to use.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -314,9 +350,13 @@ func gameServerGroupResourceType(ctx context.Context) (provider.ResourceType, er Description: "The maximum number of instances allowed in the EC2 Auto Scaling group.", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatAtLeast(1.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_size": { // Property: MinSize @@ -329,9 +369,13 @@ func gameServerGroupResourceType(ctx context.Context) (provider.ResourceType, er Description: "The minimum number of instances allowed in the EC2 Auto Scaling group.", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatAtLeast(0.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleArn @@ -383,21 +427,31 @@ func gameServerGroupResourceType(ctx context.Context) (provider.ResourceType, er Description: "The key for a developer-defined key:value pair for tagging an AWS resource.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Description: "The value for a developer-defined key:value pair for tagging an AWS resource.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 200), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "vpc_subnets": { @@ -419,6 +473,7 @@ func gameServerGroupResourceType(ctx context.Context) (provider.ResourceType, er Description: "A list of virtual private cloud (VPC) subnets to use with instances in the game server group.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 20), validate.ArrayForEach(validate.StringLenBetween(15, 24)), @@ -426,6 +481,7 @@ func gameServerGroupResourceType(ctx context.Context) (provider.ResourceType, er }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/globalaccelerator/accelerator_resource_gen.go b/internal/aws/globalaccelerator/accelerator_resource_gen.go index 3b9459f15e..8dd7b5d738 100644 --- a/internal/aws/globalaccelerator/accelerator_resource_gen.go +++ b/internal/aws/globalaccelerator/accelerator_resource_gen.go @@ -124,9 +124,13 @@ func acceleratorResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The IP addresses from BYOIP Prefix pool.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ipv_4_addresses": { // Property: Ipv4Addresses @@ -232,6 +236,10 @@ func acceleratorResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/globalaccelerator/endpoint_group_resource_gen.go b/internal/aws/globalaccelerator/endpoint_group_resource_gen.go index 5385135c21..990ff7081c 100644 --- a/internal/aws/globalaccelerator/endpoint_group_resource_gen.go +++ b/internal/aws/globalaccelerator/endpoint_group_resource_gen.go @@ -92,6 +92,10 @@ func endpointGroupResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "endpoint_group_arn": { // Property: EndpointGroupArn @@ -272,6 +276,10 @@ func endpointGroupResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "threshold_count": { // Property: ThresholdCount diff --git a/internal/aws/glue/registry_resource_gen.go b/internal/aws/glue/registry_resource_gen.go index de1fe09d6a..781b281817 100644 --- a/internal/aws/glue/registry_resource_gen.go +++ b/internal/aws/glue/registry_resource_gen.go @@ -49,9 +49,13 @@ func registryResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A description of the registry. If description is not provided, there will not be any default value for this.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -127,9 +131,13 @@ func registryResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 10), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/glue/schema_resource_gen.go b/internal/aws/glue/schema_resource_gen.go index 94a69d67b5..e56461819f 100644 --- a/internal/aws/glue/schema_resource_gen.go +++ b/internal/aws/glue/schema_resource_gen.go @@ -66,19 +66,31 @@ func schemaResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates if the latest version needs to be updated.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "version_number": { // Property: VersionNumber Description: "Indicates the version number in the schema to update.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 100000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "compatibility": { // Property: Compatibility @@ -151,9 +163,13 @@ func schemaResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A description of the schema. If description is not provided, there will not be any default value for this.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "initial_schema_version_id": { // Property: InitialSchemaVersionId @@ -218,18 +234,26 @@ func schemaResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Amazon Resource Name for the Registry.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("arn:(aws|aws-us-gov|aws-cn):glue:.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Description: "Name of the registry in which the schema will be created.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -315,9 +339,13 @@ func schemaResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 10), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/glue/schema_version_resource_gen.go b/internal/aws/glue/schema_version_resource_gen.go index 02dc6cc948..4964c2b554 100644 --- a/internal/aws/glue/schema_version_resource_gen.go +++ b/internal/aws/glue/schema_version_resource_gen.go @@ -58,27 +58,39 @@ func schemaVersionResourceType(ctx context.Context) (provider.ResourceType, erro Description: "Name of the registry to identify where the Schema is located.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "schema_arn": { // Property: SchemaArn Description: "Amazon Resource Name for the Schema. This attribute can be used to uniquely represent the Schema.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("arn:(aws|aws-us-gov|aws-cn):glue:.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "schema_name": { // Property: SchemaName Description: "Name of the schema. This parameter requires RegistryName to be provided.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/greengrassv2/component_version_resource_gen.go b/internal/aws/greengrassv2/component_version_resource_gen.go index 7e51053294..3162c7d3df 100644 --- a/internal/aws/greengrassv2/component_version_resource_gen.go +++ b/internal/aws/greengrassv2/component_version_resource_gen.go @@ -289,21 +289,33 @@ func componentVersionResourceType(ctx context.Context) (provider.ResourceType, e // Property: DependencyType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "SOFT", "HARD", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "version_requirement": { // Property: VersionRequirement Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "component_lambda_parameters": { // Property: ComponentLambdaParameters @@ -314,6 +326,10 @@ func componentVersionResourceType(ctx context.Context) (provider.ResourceType, e // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "event_sources": { // Property: EventSources @@ -323,40 +339,58 @@ func componentVersionResourceType(ctx context.Context) (provider.ResourceType, e // Property: Topic Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PUB_SUB", "IOT_CORE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "exec_args": { // Property: ExecArgs Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "input_payload_encoding_type": { // Property: InputPayloadEncodingType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "json", "binary", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "linux_process_params": { // Property: LinuxProcessParams @@ -374,39 +408,61 @@ func componentVersionResourceType(ctx context.Context) (provider.ResourceType, e // Property: AddGroupOwner Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "path": { // Property: Path Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "permission": { // Property: Permission Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ro", "rw", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "memory_size_in_kb": { // Property: MemorySizeInKB Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "mount_ro_sysfs": { // Property: MountROSysfs Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "volumes": { // Property: Volumes @@ -416,92 +472,154 @@ func componentVersionResourceType(ctx context.Context) (provider.ResourceType, e // Property: AddGroupOwner Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_path": { // Property: DestinationPath Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "permission": { // Property: Permission Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ro", "rw", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_path": { // Property: SourcePath Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "isolation_mode": { // Property: IsolationMode Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "GreengrassContainer", "NoContainer", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_idle_time_in_seconds": { // Property: MaxIdleTimeInSeconds Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_instances_count": { // Property: MaxInstancesCount Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_queue_size": { // Property: MaxQueueSize Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "pinned": { // Property: Pinned Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status_timeout_in_seconds": { // Property: StatusTimeoutInSeconds Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "timeout_in_seconds": { // Property: TimeoutInSeconds Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "component_name": { // Property: ComponentName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "component_platforms": { // Property: ComponentPlatforms @@ -512,31 +630,49 @@ func componentVersionResourceType(ctx context.Context) (provider.ResourceType, e // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "component_version": { // Property: ComponentVersion Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lambda_arn": { // Property: LambdaArn Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^arn:aws(-(cn|us-gov))?:lambda:(([a-z]+-)+[0-9])?:([0-9]{12})?:[^.]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -564,6 +700,10 @@ func componentVersionResourceType(ctx context.Context) (provider.ResourceType, e // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/groundstation/dataflow_endpoint_group_resource_gen.go b/internal/aws/groundstation/dataflow_endpoint_group_resource_gen.go index 0a4e051c8e..452b1c153b 100644 --- a/internal/aws/groundstation/dataflow_endpoint_group_resource_gen.go +++ b/internal/aws/groundstation/dataflow_endpoint_group_resource_gen.go @@ -108,32 +108,56 @@ func dataflowEndpointGroupResourceType(ctx context.Context) (provider.ResourceTy // Property: Name Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "port": { // Property: Port Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "mtu": { // Property: Mtu Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[ a-zA-Z0-9_:-]{1,256}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "security_details": { // Property: SecurityDetails @@ -143,20 +167,36 @@ func dataflowEndpointGroupResourceType(ctx context.Context) (provider.ResourceTy // Property: RoleArn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "security_group_ids": { // Property: SecurityGroupIds Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnet_ids": { // Property: SubnetIds Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -203,21 +243,33 @@ func dataflowEndpointGroupResourceType(ctx context.Context) (provider.ResourceTy // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[ a-zA-Z0-9\\+\\-=._:/@]{1,128}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[ a-zA-Z0-9\\+\\-=._:/@]{1,256}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/groundstation/mission_profile_resource_gen.go b/internal/aws/groundstation/mission_profile_resource_gen.go index aea12adf03..39c3bf7a9c 100644 --- a/internal/aws/groundstation/mission_profile_resource_gen.go +++ b/internal/aws/groundstation/mission_profile_resource_gen.go @@ -45,6 +45,10 @@ func missionProfileResourceType(ctx context.Context) (provider.ResourceType, err Description: "Post-pass time needed after the contact.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "contact_pre_pass_duration_seconds": { // Property: ContactPrePassDurationSeconds @@ -56,6 +60,10 @@ func missionProfileResourceType(ctx context.Context) (provider.ResourceType, err Description: "Pre-pass time needed before the contact.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dataflow_edges": { // Property: DataflowEdges @@ -84,11 +92,19 @@ func missionProfileResourceType(ctx context.Context) (provider.ResourceType, err // Property: Destination Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source": { // Property: Source Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -173,21 +189,33 @@ func missionProfileResourceType(ctx context.Context) (provider.ResourceType, err // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[ a-zA-Z0-9\\+\\-=._:/@]{1,128}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[ a-zA-Z0-9\\+\\-=._:/@]{1,256}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tracking_config_arn": { // Property: TrackingConfigArn diff --git a/internal/aws/healthlake/fhir_datastore_resource_gen.go b/internal/aws/healthlake/fhir_datastore_resource_gen.go index 2e56238fc7..7aee73c062 100644 --- a/internal/aws/healthlake/fhir_datastore_resource_gen.go +++ b/internal/aws/healthlake/fhir_datastore_resource_gen.go @@ -282,10 +282,14 @@ func fHIRDatastoreResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The KMS encryption key id/alias used to encrypt the Data Store contents at rest.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 400), validate.StringMatch(regexp.MustCompile("(arn:aws((-us-gov)|(-iso)|(-iso-b)|(-cn))?:kms:)?([a-z]{2}-[a-z]+(-[a-z]+)?-\\d:)?(\\d{12}:)?(((key/)?[a-zA-Z0-9-_]+)|(alias/[a-zA-Z0-9:/_-]+))"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -353,8 +357,10 @@ func fHIRDatastoreResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/iam/oidc_provider_resource_gen.go b/internal/aws/iam/oidc_provider_resource_gen.go index 32c411e794..03ad1c777b 100644 --- a/internal/aws/iam/oidc_provider_resource_gen.go +++ b/internal/aws/iam/oidc_provider_resource_gen.go @@ -53,11 +53,13 @@ func oIDCProviderResourceType(ctx context.Context) (provider.ResourceType, error // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(1, 255)), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "tags": { @@ -114,8 +116,10 @@ func oIDCProviderResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "thumbprint_list": { diff --git a/internal/aws/iam/role_resource_gen.go b/internal/aws/iam/role_resource_gen.go index 8a9bddd0b9..c8f0ee7dc7 100644 --- a/internal/aws/iam/role_resource_gen.go +++ b/internal/aws/iam/role_resource_gen.go @@ -58,9 +58,13 @@ func roleResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A description of the role that you provide.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "managed_policy_arns": { // Property: ManagedPolicyArns @@ -77,6 +81,10 @@ func roleResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A list of Amazon Resource Names (ARNs) of the IAM managed policies that you want to attach to the role. ", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_session_duration": { // Property: MaxSessionDuration @@ -90,9 +98,13 @@ func roleResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours. ", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(3600, 43200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "path": { // Property: Path @@ -120,6 +132,10 @@ func roleResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The ARN of the policy used to set the permissions boundary for the role.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "policies": { // Property: Policies @@ -172,8 +188,10 @@ func roleResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "role_id": { @@ -266,8 +284,10 @@ func roleResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/iam/role_resource_test.go b/internal/aws/iam/role_resource_test.go new file mode 100644 index 0000000000..021b9cb5c6 --- /dev/null +++ b/internal/aws/iam/role_resource_test.go @@ -0,0 +1,54 @@ +package iam_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-provider-awscc/internal/acctest" +) + +func TestAccAWSIAMRole_AssumeRolePolicyDocument(t *testing.T) { + td := acctest.NewTestData(t, "AWS::IAM::Role", "awscc_iam_role", "test") + resourceName := td.ResourceName + rName := td.RandomName() + + td.ResourceTest(t, []resource.TestStep{ + { + Config: testAccAWSIAMRoleAssumeRolePolicyDocumentConfig(&td, rName), + Check: resource.ComposeTestCheckFunc( + td.CheckExistsInAWS(), + resource.TestCheckResourceAttr(resourceName, "role_name", rName), + ), + }, + { + ResourceName: td.ResourceName, + ImportState: true, + ImportStateVerify: true, + }, + }) +} + +func testAccAWSIAMRoleAssumeRolePolicyDocumentConfig(td *acctest.TestData, rName string) string { + return fmt.Sprintf(` +locals { + assume_role_policy_document = <`), and input values (`$input..`) as the duration. The range of the duration is `1-31622400` seconds. To ensure accuracy, the minimum duration is `60` seconds. The evaluated result of the duration is rounded down to the nearest whole number.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "seconds": { // Property: Seconds Description: "The number of seconds until the timer expires. The minimum value is `60` seconds to ensure accuracy. The maximum value is `31622400` seconds.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(60, 31622400), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "timer_name": { // Property: TimerName @@ -2700,6 +2840,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "set_variable": { // Property: SetVariable @@ -2728,6 +2872,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sns": { // Property: Sns @@ -2757,6 +2905,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_arn": { // Property: TargetArn @@ -2770,6 +2922,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sqs": { // Property: Sqs @@ -2798,6 +2954,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "queue_url": { // Property: QueueUrl @@ -2810,16 +2970,26 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "Set this to `TRUE` if you want the data to be base-64 encoded before it is written to the queue. Otherwise, set this to `FALSE`.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "condition": { @@ -2827,9 +2997,13 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The Boolean expression that, when `TRUE`, causes the `actions` to be performed. If not present, the `actions` are performed (=`TRUE`). If the expression result is not a `Boolean` value, the `actions` are not performed (=`FALSE`).", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "event_name": { // Property: EventName @@ -2843,13 +3017,19 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "on_exit": { // Property: OnExit @@ -2882,6 +3062,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dynamo_db": { // Property: DynamoDB @@ -2899,6 +3083,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The data type for the hash key (also called the partition key). You can specify the following values:\n\n* `STRING` - The hash key is a string.\n\n* `NUMBER` - The hash key is a number.\n\nIf you don't specify `hashKeyType`, the default value is `STRING`.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "hash_key_value": { // Property: HashKeyValue @@ -2911,6 +3099,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The type of operation to perform. You can specify the following values:\n\n* `INSERT` - Insert data as a new item into the DynamoDB table. This item uses the specified hash key as a partition key. If you specified a range key, the item uses the range key as a sort key.\n\n* `UPDATE` - Update an existing item of the DynamoDB table with new data. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key.\n\n* `DELETE` - Delete an existing item of the DynamoDB table. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key.\n\nIf you don't specify this parameter, AWS IoT Events triggers the `INSERT` operation.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "payload": { // Property: Payload @@ -2935,30 +3127,50 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "payload_field": { // Property: PayloadField Description: "The name of the DynamoDB column that receives the action payload.\n\nIf you don't specify this parameter, the name of the DynamoDB column is `payload`.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "range_key_field": { // Property: RangeKeyField Description: "The name of the range key (also called the sort key).", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "range_key_type": { // Property: RangeKeyType Description: "The data type for the range key (also called the sort key), You can specify the following values:\n\n* `STRING` - The range key is a string.\n\n* `NUMBER` - The range key is number.\n\nIf you don't specify `rangeKeyField`, the default value is `STRING`.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "range_key_value": { // Property: RangeKeyValue Description: "The value of the range key (also called the sort key).", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "table_name": { // Property: TableName @@ -2969,6 +3181,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dynamo_d_bv_2": { // Property: DynamoDBv2 @@ -2998,6 +3214,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "table_name": { // Property: TableName @@ -3008,6 +3228,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "firehose": { // Property: Firehose @@ -3043,19 +3267,31 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "separator": { // Property: Separator Description: "A character separator that is used to separate records written to the Kinesis Data Firehose delivery stream. Valid values are: '\\n' (newline), '\\t' (tab), '\\r\\n' (Windows newline), ',' (comma).", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("([\\n\\t])|(\\r\\n)|(,)"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "iot_events": { // Property: IotEvents @@ -3095,10 +3331,18 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "iot_site_wise": { // Property: IotSiteWise @@ -3110,24 +3354,40 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The ID of the asset that has the specified property. You can specify an expression.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "entry_id": { // Property: EntryId Description: "A unique identifier for this entry. You can use the entry ID to track which data entry causes an error in case of failure. The default is a new unique identifier. You can also specify an expression.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "property_alias": { // Property: PropertyAlias Description: "The alias of the asset property. You can also specify an expression.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "property_id": { // Property: PropertyId Description: "The ID of the asset property. You can specify an expression.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "property_value": { // Property: PropertyValue @@ -3139,6 +3399,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The quality of the asset property value. The value must be `GOOD`, `BAD`, or `UNCERTAIN`. You can also specify an expression.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "timestamp": { // Property: Timestamp @@ -3150,6 +3414,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The timestamp, in seconds, in the Unix epoch format. The valid range is between `1-31556889864403199`. You can also specify an expression.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "time_in_seconds": { // Property: TimeInSeconds @@ -3160,6 +3428,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value @@ -3171,24 +3443,40 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The asset property value is a Boolean value that must be `TRUE` or `FALSE`. You can also specify an expression. If you use an expression, the evaluated result should be a Boolean value.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "double_value": { // Property: DoubleValue Description: "The asset property value is a double. You can also specify an expression. If you use an expression, the evaluated result should be a double.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "integer_value": { // Property: IntegerValue Description: "The asset property value is an integer. You can also specify an expression. If you use an expression, the evaluated result should be an integer.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "string_value": { // Property: StringValue Description: "The asset property value is a string. You can also specify an expression. If you use an expression, the evaluated result should be a string.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -3201,6 +3489,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "iot_topic_publish": { // Property: IotTopicPublish @@ -3239,10 +3531,18 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lambda": { // Property: Lambda @@ -3280,10 +3580,18 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "reset_timer": { // Property: ResetTimer @@ -3302,6 +3610,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "set_timer": { // Property: SetTimer @@ -3313,18 +3625,26 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The duration of the timer, in seconds. You can use a string expression that includes numbers, variables (`$variable.`), and input values (`$input..`) as the duration. The range of the duration is `1-31622400` seconds. To ensure accuracy, the minimum duration is `60` seconds. The evaluated result of the duration is rounded down to the nearest whole number.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "seconds": { // Property: Seconds Description: "The number of seconds until the timer expires. The minimum value is `60` seconds to ensure accuracy. The maximum value is `31622400` seconds.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(60, 31622400), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "timer_name": { // Property: TimerName @@ -3338,6 +3658,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "set_variable": { // Property: SetVariable @@ -3366,6 +3690,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sns": { // Property: Sns @@ -3395,6 +3723,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_arn": { // Property: TargetArn @@ -3408,6 +3740,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sqs": { // Property: Sqs @@ -3436,6 +3772,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "queue_url": { // Property: QueueUrl @@ -3448,16 +3788,26 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "Set this to `TRUE` if you want the data to be base-64 encoded before it is written to the queue. Otherwise, set this to `FALSE`.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "condition": { @@ -3465,9 +3815,13 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The Boolean expression that, when `TRUE`, causes the `actions` to be performed. If not present, the `actions` are performed (=`TRUE`). If the expression result is not a `Boolean` value, the `actions` are not performed (=`FALSE`).", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "event_name": { // Property: EventName @@ -3481,13 +3835,19 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "on_input": { // Property: OnInput @@ -3520,6 +3880,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dynamo_db": { // Property: DynamoDB @@ -3537,6 +3901,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The data type for the hash key (also called the partition key). You can specify the following values:\n\n* `STRING` - The hash key is a string.\n\n* `NUMBER` - The hash key is a number.\n\nIf you don't specify `hashKeyType`, the default value is `STRING`.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "hash_key_value": { // Property: HashKeyValue @@ -3549,6 +3917,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The type of operation to perform. You can specify the following values:\n\n* `INSERT` - Insert data as a new item into the DynamoDB table. This item uses the specified hash key as a partition key. If you specified a range key, the item uses the range key as a sort key.\n\n* `UPDATE` - Update an existing item of the DynamoDB table with new data. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key.\n\n* `DELETE` - Delete an existing item of the DynamoDB table. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key.\n\nIf you don't specify this parameter, AWS IoT Events triggers the `INSERT` operation.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "payload": { // Property: Payload @@ -3573,30 +3945,50 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "payload_field": { // Property: PayloadField Description: "The name of the DynamoDB column that receives the action payload.\n\nIf you don't specify this parameter, the name of the DynamoDB column is `payload`.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "range_key_field": { // Property: RangeKeyField Description: "The name of the range key (also called the sort key).", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "range_key_type": { // Property: RangeKeyType Description: "The data type for the range key (also called the sort key), You can specify the following values:\n\n* `STRING` - The range key is a string.\n\n* `NUMBER` - The range key is number.\n\nIf you don't specify `rangeKeyField`, the default value is `STRING`.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "range_key_value": { // Property: RangeKeyValue Description: "The value of the range key (also called the sort key).", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "table_name": { // Property: TableName @@ -3607,6 +3999,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dynamo_d_bv_2": { // Property: DynamoDBv2 @@ -3636,6 +4032,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "table_name": { // Property: TableName @@ -3646,6 +4046,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "firehose": { // Property: Firehose @@ -3681,19 +4085,31 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "separator": { // Property: Separator Description: "A character separator that is used to separate records written to the Kinesis Data Firehose delivery stream. Valid values are: '\\n' (newline), '\\t' (tab), '\\r\\n' (Windows newline), ',' (comma).", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("([\\n\\t])|(\\r\\n)|(,)"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "iot_events": { // Property: IotEvents @@ -3733,10 +4149,18 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "iot_site_wise": { // Property: IotSiteWise @@ -3748,24 +4172,40 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The ID of the asset that has the specified property. You can specify an expression.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "entry_id": { // Property: EntryId Description: "A unique identifier for this entry. You can use the entry ID to track which data entry causes an error in case of failure. The default is a new unique identifier. You can also specify an expression.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "property_alias": { // Property: PropertyAlias Description: "The alias of the asset property. You can also specify an expression.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "property_id": { // Property: PropertyId Description: "The ID of the asset property. You can specify an expression.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "property_value": { // Property: PropertyValue @@ -3777,6 +4217,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The quality of the asset property value. The value must be `GOOD`, `BAD`, or `UNCERTAIN`. You can also specify an expression.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "timestamp": { // Property: Timestamp @@ -3788,6 +4232,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The timestamp, in seconds, in the Unix epoch format. The valid range is between `1-31556889864403199`. You can also specify an expression.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "time_in_seconds": { // Property: TimeInSeconds @@ -3798,6 +4246,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value @@ -3809,24 +4261,40 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The asset property value is a Boolean value that must be `TRUE` or `FALSE`. You can also specify an expression. If you use an expression, the evaluated result should be a Boolean value.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "double_value": { // Property: DoubleValue Description: "The asset property value is a double. You can also specify an expression. If you use an expression, the evaluated result should be a double.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "integer_value": { // Property: IntegerValue Description: "The asset property value is an integer. You can also specify an expression. If you use an expression, the evaluated result should be an integer.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "string_value": { // Property: StringValue Description: "The asset property value is a string. You can also specify an expression. If you use an expression, the evaluated result should be a string.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -3839,6 +4307,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "iot_topic_publish": { // Property: IotTopicPublish @@ -3877,10 +4349,18 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lambda": { // Property: Lambda @@ -3918,10 +4398,18 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "reset_timer": { // Property: ResetTimer @@ -3940,6 +4428,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "set_timer": { // Property: SetTimer @@ -3951,18 +4443,26 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The duration of the timer, in seconds. You can use a string expression that includes numbers, variables (`$variable.`), and input values (`$input..`) as the duration. The range of the duration is `1-31622400` seconds. To ensure accuracy, the minimum duration is `60` seconds. The evaluated result of the duration is rounded down to the nearest whole number.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "seconds": { // Property: Seconds Description: "The number of seconds until the timer expires. The minimum value is `60` seconds to ensure accuracy. The maximum value is `31622400` seconds.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(60, 31622400), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "timer_name": { // Property: TimerName @@ -3976,6 +4476,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "set_variable": { // Property: SetVariable @@ -4004,6 +4508,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sns": { // Property: Sns @@ -4033,6 +4541,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_arn": { // Property: TargetArn @@ -4046,6 +4558,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sqs": { // Property: Sqs @@ -4074,6 +4590,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "queue_url": { // Property: QueueUrl @@ -4086,16 +4606,26 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "Set this to `TRUE` if you want the data to be base-64 encoded before it is written to the queue. Otherwise, set this to `FALSE`.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "condition": { @@ -4103,9 +4633,13 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The Boolean expression that, when `TRUE`, causes the `actions` to be performed. If not present, the `actions` are performed (=`TRUE`). If the expression result is not a `Boolean` value, the `actions` are not performed (=`FALSE`).", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "event_name": { // Property: EventName @@ -4119,8 +4653,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "transition_events": { @@ -4149,6 +4685,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dynamo_db": { // Property: DynamoDB @@ -4166,6 +4706,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The data type for the hash key (also called the partition key). You can specify the following values:\n\n* `STRING` - The hash key is a string.\n\n* `NUMBER` - The hash key is a number.\n\nIf you don't specify `hashKeyType`, the default value is `STRING`.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "hash_key_value": { // Property: HashKeyValue @@ -4178,6 +4722,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The type of operation to perform. You can specify the following values:\n\n* `INSERT` - Insert data as a new item into the DynamoDB table. This item uses the specified hash key as a partition key. If you specified a range key, the item uses the range key as a sort key.\n\n* `UPDATE` - Update an existing item of the DynamoDB table with new data. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key.\n\n* `DELETE` - Delete an existing item of the DynamoDB table. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key.\n\nIf you don't specify this parameter, AWS IoT Events triggers the `INSERT` operation.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "payload": { // Property: Payload @@ -4202,30 +4750,50 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "payload_field": { // Property: PayloadField Description: "The name of the DynamoDB column that receives the action payload.\n\nIf you don't specify this parameter, the name of the DynamoDB column is `payload`.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "range_key_field": { // Property: RangeKeyField Description: "The name of the range key (also called the sort key).", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "range_key_type": { // Property: RangeKeyType Description: "The data type for the range key (also called the sort key), You can specify the following values:\n\n* `STRING` - The range key is a string.\n\n* `NUMBER` - The range key is number.\n\nIf you don't specify `rangeKeyField`, the default value is `STRING`.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "range_key_value": { // Property: RangeKeyValue Description: "The value of the range key (also called the sort key).", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "table_name": { // Property: TableName @@ -4236,6 +4804,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dynamo_d_bv_2": { // Property: DynamoDBv2 @@ -4265,6 +4837,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "table_name": { // Property: TableName @@ -4275,6 +4851,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "firehose": { // Property: Firehose @@ -4310,19 +4890,31 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "separator": { // Property: Separator Description: "A character separator that is used to separate records written to the Kinesis Data Firehose delivery stream. Valid values are: '\\n' (newline), '\\t' (tab), '\\r\\n' (Windows newline), ',' (comma).", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("([\\n\\t])|(\\r\\n)|(,)"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "iot_events": { // Property: IotEvents @@ -4362,10 +4954,18 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "iot_site_wise": { // Property: IotSiteWise @@ -4377,24 +4977,40 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The ID of the asset that has the specified property. You can specify an expression.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "entry_id": { // Property: EntryId Description: "A unique identifier for this entry. You can use the entry ID to track which data entry causes an error in case of failure. The default is a new unique identifier. You can also specify an expression.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "property_alias": { // Property: PropertyAlias Description: "The alias of the asset property. You can also specify an expression.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "property_id": { // Property: PropertyId Description: "The ID of the asset property. You can specify an expression.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "property_value": { // Property: PropertyValue @@ -4406,6 +5022,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The quality of the asset property value. The value must be `GOOD`, `BAD`, or `UNCERTAIN`. You can also specify an expression.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "timestamp": { // Property: Timestamp @@ -4417,6 +5037,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The timestamp, in seconds, in the Unix epoch format. The valid range is between `1-31556889864403199`. You can also specify an expression.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "time_in_seconds": { // Property: TimeInSeconds @@ -4427,6 +5051,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value @@ -4438,24 +5066,40 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The asset property value is a Boolean value that must be `TRUE` or `FALSE`. You can also specify an expression. If you use an expression, the evaluated result should be a Boolean value.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "double_value": { // Property: DoubleValue Description: "The asset property value is a double. You can also specify an expression. If you use an expression, the evaluated result should be a double.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "integer_value": { // Property: IntegerValue Description: "The asset property value is an integer. You can also specify an expression. If you use an expression, the evaluated result should be an integer.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "string_value": { // Property: StringValue Description: "The asset property value is a string. You can also specify an expression. If you use an expression, the evaluated result should be a string.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -4468,6 +5112,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "iot_topic_publish": { // Property: IotTopicPublish @@ -4506,10 +5154,18 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lambda": { // Property: Lambda @@ -4547,10 +5203,18 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "reset_timer": { // Property: ResetTimer @@ -4569,6 +5233,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "set_timer": { // Property: SetTimer @@ -4580,18 +5248,26 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The duration of the timer, in seconds. You can use a string expression that includes numbers, variables (`$variable.`), and input values (`$input..`) as the duration. The range of the duration is `1-31622400` seconds. To ensure accuracy, the minimum duration is `60` seconds. The evaluated result of the duration is rounded down to the nearest whole number.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "seconds": { // Property: Seconds Description: "The number of seconds until the timer expires. The minimum value is `60` seconds to ensure accuracy. The maximum value is `31622400` seconds.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(60, 31622400), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "timer_name": { // Property: TimerName @@ -4605,6 +5281,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "set_variable": { // Property: SetVariable @@ -4633,6 +5313,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sns": { // Property: Sns @@ -4662,6 +5346,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_arn": { // Property: TargetArn @@ -4675,6 +5363,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sqs": { // Property: Sqs @@ -4703,6 +5395,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "queue_url": { // Property: QueueUrl @@ -4715,16 +5411,26 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "Set this to `TRUE` if you want the data to be base-64 encoded before it is written to the queue. Otherwise, set this to `FALSE`.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "condition": { @@ -4757,10 +5463,18 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "state_name": { // Property: StateName @@ -4796,9 +5510,13 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "A brief description of the detector model.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "detector_model_name": { // Property: DetectorModelName @@ -4837,12 +5555,16 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro Description: "Information about the order in which events are evaluated and how actions are executed.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "BATCH", "SERIAL", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key": { // Property: Key @@ -4929,8 +5651,10 @@ func detectorModelResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/iotevents/input_resource_gen.go b/internal/aws/iotevents/input_resource_gen.go index bb2a5e2383..bd02baf8c4 100644 --- a/internal/aws/iotevents/input_resource_gen.go +++ b/internal/aws/iotevents/input_resource_gen.go @@ -102,9 +102,13 @@ func inputResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A brief description of the input.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "input_name": { // Property: InputName @@ -175,8 +179,10 @@ func inputResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/iotfleethub/application_resource_gen.go b/internal/aws/iotfleethub/application_resource_gen.go index b5888e51c1..ae8647499e 100644 --- a/internal/aws/iotfleethub/application_resource_gen.go +++ b/internal/aws/iotfleethub/application_resource_gen.go @@ -67,10 +67,14 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Application Description, should be between 1 and 2048 characters.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), validate.StringMatch(regexp.MustCompile("^[ -~]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "application_id": { // Property: ApplicationId @@ -253,9 +257,13 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/iotsitewise/access_policy_resource_gen.go b/internal/aws/iotsitewise/access_policy_resource_gen.go index e7b1956bf4..ab0148a733 100644 --- a/internal/aws/iotsitewise/access_policy_resource_gen.go +++ b/internal/aws/iotsitewise/access_policy_resource_gen.go @@ -105,10 +105,18 @@ func accessPolicyResourceType(ctx context.Context) (provider.ResourceType, error Description: "The ARN of the IAM role.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "iam_user": { // Property: IamUser @@ -120,10 +128,18 @@ func accessPolicyResourceType(ctx context.Context) (provider.ResourceType, error Description: "The ARN of the IAM user.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "user": { // Property: User @@ -135,10 +151,18 @@ func accessPolicyResourceType(ctx context.Context) (provider.ResourceType, error Description: "The AWS SSO ID of the user.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -200,10 +224,18 @@ func accessPolicyResourceType(ctx context.Context) (provider.ResourceType, error Description: "The ID of the portal.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "project": { // Property: Project @@ -215,10 +247,18 @@ func accessPolicyResourceType(ctx context.Context) (provider.ResourceType, error Description: "The ID of the project.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/iotsitewise/asset_model_resource_gen.go b/internal/aws/iotsitewise/asset_model_resource_gen.go index 3e63bf67b3..4efe4d51ab 100644 --- a/internal/aws/iotsitewise/asset_model_resource_gen.go +++ b/internal/aws/iotsitewise/asset_model_resource_gen.go @@ -310,11 +310,15 @@ func assetModelResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The data type of the structure for this property.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "AWS/ALARM_STATE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "logical_id": { // Property: LogicalId @@ -344,10 +348,18 @@ func assetModelResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DefaultValue Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "metric": { // Property: Metric @@ -379,9 +391,13 @@ func assetModelResourceType(ctx context.Context) (provider.ResourceType, error) // Property: HierarchyLogicalId Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "property_logical_id": { // Property: PropertyLogicalId @@ -423,10 +439,18 @@ func assetModelResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The shift or reference point on timeline for the contiguous time intervals.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -435,6 +459,10 @@ func assetModelResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "transform": { // Property: Transform @@ -466,9 +494,13 @@ func assetModelResourceType(ctx context.Context) (provider.ResourceType, error) // Property: HierarchyLogicalId Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "property_logical_id": { // Property: PropertyLogicalId @@ -492,6 +524,10 @@ func assetModelResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type_name": { // Property: TypeName @@ -515,12 +551,18 @@ func assetModelResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The unit of the asset model property, such as Newtons or RPM.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "description": { @@ -528,6 +570,10 @@ func assetModelResourceType(ctx context.Context) (provider.ResourceType, error) Description: "A description for the asset composite model.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -544,8 +590,10 @@ func assetModelResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "asset_model_description": { @@ -558,6 +606,10 @@ func assetModelResourceType(ctx context.Context) (provider.ResourceType, error) Description: "A description for the asset model.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "asset_model_hierarchies": { // Property: AssetModelHierarchies @@ -621,8 +673,10 @@ func assetModelResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "asset_model_id": { @@ -891,11 +945,15 @@ func assetModelResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The data type of the structure for this property.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "AWS/ALARM_STATE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "logical_id": { // Property: LogicalId @@ -925,10 +983,18 @@ func assetModelResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DefaultValue Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "metric": { // Property: Metric @@ -960,9 +1026,13 @@ func assetModelResourceType(ctx context.Context) (provider.ResourceType, error) // Property: HierarchyLogicalId Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "property_logical_id": { // Property: PropertyLogicalId @@ -1004,10 +1074,18 @@ func assetModelResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The shift or reference point on timeline for the contiguous time intervals.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1016,6 +1094,10 @@ func assetModelResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "transform": { // Property: Transform @@ -1047,9 +1129,13 @@ func assetModelResourceType(ctx context.Context) (provider.ResourceType, error) // Property: HierarchyLogicalId Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "property_logical_id": { // Property: PropertyLogicalId @@ -1073,6 +1159,10 @@ func assetModelResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type_name": { // Property: TypeName @@ -1096,12 +1186,18 @@ func assetModelResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The unit of the asset model property, such as Newtons or RPM.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "tags": { @@ -1144,8 +1240,10 @@ func assetModelResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/iotsitewise/asset_resource_gen.go b/internal/aws/iotsitewise/asset_resource_gen.go index 8e75a5d07f..56c7e39a27 100644 --- a/internal/aws/iotsitewise/asset_resource_gen.go +++ b/internal/aws/iotsitewise/asset_resource_gen.go @@ -46,6 +46,10 @@ func assetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A description for the asset", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "asset_hierarchies": { // Property: AssetHierarchies @@ -96,8 +100,10 @@ func assetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "asset_id": { @@ -179,6 +185,10 @@ func assetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The property alias that identifies the property.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "logical_id": { // Property: LogicalId @@ -194,18 +204,24 @@ func assetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The MQTT notification state (ENABLED or DISABLED) for this asset property.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ENABLED", "DISABLED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "tags": { @@ -249,8 +265,10 @@ func assetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/iotsitewise/dashboard_resource_gen.go b/internal/aws/iotsitewise/dashboard_resource_gen.go index 89ccf8c8cb..186b58fff6 100644 --- a/internal/aws/iotsitewise/dashboard_resource_gen.go +++ b/internal/aws/iotsitewise/dashboard_resource_gen.go @@ -140,8 +140,10 @@ func dashboardResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/iotsitewise/gateway_resource_gen.go b/internal/aws/iotsitewise/gateway_resource_gen.go index b996ddd1ad..588038dc59 100644 --- a/internal/aws/iotsitewise/gateway_resource_gen.go +++ b/internal/aws/iotsitewise/gateway_resource_gen.go @@ -57,6 +57,10 @@ func gatewayResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The JSON document that defines the gateway capability's configuration.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "capability_namespace": { // Property: CapabilityNamespace @@ -67,9 +71,13 @@ func gatewayResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "gateway_id": { // Property: GatewayId @@ -163,6 +171,10 @@ func gatewayResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "greengrass_v2": { // Property: GreengrassV2 @@ -178,6 +190,10 @@ func gatewayResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -240,8 +256,10 @@ func gatewayResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/iotsitewise/portal_resource_gen.go b/internal/aws/iotsitewise/portal_resource_gen.go index e94dfbd29e..a6dbe89493 100644 --- a/internal/aws/iotsitewise/portal_resource_gen.go +++ b/internal/aws/iotsitewise/portal_resource_gen.go @@ -47,16 +47,28 @@ func portalResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The ARN of the IAM role that allows the alarm to perform actions and access AWS resources and services, such as AWS IoT Events.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "notification_lambda_arn": { // Property: NotificationLambdaArn Description: "The ARN of the AWS Lambda function that manages alarm notifications. For more information, see Managing alarm notifications in the AWS IoT Events Developer Guide.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "notification_sender_email": { // Property: NotificationSenderEmail @@ -68,6 +80,10 @@ func portalResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The email address that sends alarm notifications.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "portal_arn": { // Property: PortalArn @@ -134,6 +150,10 @@ func portalResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A description for the portal.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "portal_id": { // Property: PortalId @@ -227,8 +247,10 @@ func portalResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, // Tags is a write-only property. }, diff --git a/internal/aws/iotsitewise/project_resource_gen.go b/internal/aws/iotsitewise/project_resource_gen.go index a32d8023ce..7e806e48e7 100644 --- a/internal/aws/iotsitewise/project_resource_gen.go +++ b/internal/aws/iotsitewise/project_resource_gen.go @@ -37,9 +37,13 @@ func projectResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The IDs of the assets to be associated to the project.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "portal_id": { // Property: PortalId @@ -79,6 +83,10 @@ func projectResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A description for the project.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "project_id": { // Property: ProjectId @@ -147,8 +155,10 @@ func projectResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/iottwinmaker/scene_resource_gen.go b/internal/aws/iottwinmaker/scene_resource_gen.go index 4f5353f053..9b33a9dd84 100644 --- a/internal/aws/iottwinmaker/scene_resource_gen.go +++ b/internal/aws/iottwinmaker/scene_resource_gen.go @@ -60,11 +60,15 @@ func sceneResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A list of capabilities that the scene uses to render.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 50), validate.ArrayForEach(validate.StringLenBetween(0, 256)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile(".*"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "content_location": { // Property: ContentLocation @@ -111,9 +115,13 @@ func sceneResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The description of the scene.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "scene_id": { // Property: SceneId @@ -155,6 +163,10 @@ func sceneResourceType(ctx context.Context) (provider.ResourceType, error) { // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "update_date_time": { // Property: UpdateDateTime diff --git a/internal/aws/iottwinmaker/workspace_resource_gen.go b/internal/aws/iottwinmaker/workspace_resource_gen.go index 81530a0358..44ffdfd0b0 100644 --- a/internal/aws/iottwinmaker/workspace_resource_gen.go +++ b/internal/aws/iottwinmaker/workspace_resource_gen.go @@ -67,9 +67,13 @@ func workspaceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The description of the workspace.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role": { // Property: Role @@ -119,6 +123,10 @@ func workspaceResourceType(ctx context.Context) (provider.ResourceType, error) { // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "update_date_time": { // Property: UpdateDateTime diff --git a/internal/aws/iotwireless/destination_resource_gen.go b/internal/aws/iotwireless/destination_resource_gen.go index 107d9d634a..1f45f21a9a 100644 --- a/internal/aws/iotwireless/destination_resource_gen.go +++ b/internal/aws/iotwireless/destination_resource_gen.go @@ -48,9 +48,13 @@ func destinationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Destination description", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "expression": { // Property: Expression @@ -153,24 +157,36 @@ func destinationResourceType(ctx context.Context) (provider.ResourceType, error) // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 127), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/iotwireless/device_profile_resource_gen.go b/internal/aws/iotwireless/device_profile_resource_gen.go index aa7686054b..d00c46a59d 100644 --- a/internal/aws/iotwireless/device_profile_resource_gen.go +++ b/internal/aws/iotwireless/device_profile_resource_gen.go @@ -127,105 +127,165 @@ func deviceProfileResourceType(ctx context.Context) (provider.ResourceType, erro // Property: ClassBTimeout Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 1000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "class_c_timeout": { // Property: ClassCTimeout Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 1000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "mac_version": { // Property: MacVersion Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_duty_cycle": { // Property: MaxDutyCycle Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_eirp": { // Property: MaxEirp Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 15), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ping_slot_dr": { // Property: PingSlotDr Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 15), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ping_slot_freq": { // Property: PingSlotFreq Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1000000, 16700000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ping_slot_period": { // Property: PingSlotPeriod Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(128, 4096), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "reg_params_revision": { // Property: RegParamsRevision Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rf_region": { // Property: RfRegion Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "supports_32_bit_f_cnt": { // Property: Supports32BitFCnt Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "supports_class_b": { // Property: SupportsClassB Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "supports_class_c": { // Property: SupportsClassC Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "supports_join": { // Property: SupportsJoin Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -238,9 +298,13 @@ func deviceProfileResourceType(ctx context.Context) (provider.ResourceType, erro Description: "Name of service profile", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -275,24 +339,36 @@ func deviceProfileResourceType(ctx context.Context) (provider.ResourceType, erro // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/iotwireless/fuota_task_resource_gen.go b/internal/aws/iotwireless/fuota_task_resource_gen.go index 5f162f583f..3f299eedc2 100644 --- a/internal/aws/iotwireless/fuota_task_resource_gen.go +++ b/internal/aws/iotwireless/fuota_task_resource_gen.go @@ -47,9 +47,13 @@ func fuotaTaskResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Multicast group to associate. Only for update request.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "associate_wireless_device": { // Property: AssociateWirelessDevice @@ -62,9 +66,13 @@ func fuotaTaskResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Wireless device to associate. Only for update request.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -77,9 +85,13 @@ func fuotaTaskResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "FUOTA task description", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "disassociate_multicast_group": { // Property: DisassociateMulticastGroup @@ -92,9 +104,13 @@ func fuotaTaskResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Multicast group to disassociate. Only for update request.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "disassociate_wireless_device": { // Property: DisassociateWirelessDevice @@ -107,9 +123,13 @@ func fuotaTaskResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Wireless device to disassociate. Only for update request.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "firmware_update_image": { // Property: FirmwareUpdateImage @@ -232,9 +252,13 @@ func fuotaTaskResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Name of FUOTA task", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -269,24 +293,36 @@ func fuotaTaskResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/iotwireless/multicast_group_resource_gen.go b/internal/aws/iotwireless/multicast_group_resource_gen.go index 6e0baf849e..441f6712bd 100644 --- a/internal/aws/iotwireless/multicast_group_resource_gen.go +++ b/internal/aws/iotwireless/multicast_group_resource_gen.go @@ -47,9 +47,13 @@ func multicastGroupResourceType(ctx context.Context) (provider.ResourceType, err Description: "Wireless device to associate. Only for update request.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -62,9 +66,13 @@ func multicastGroupResourceType(ctx context.Context) (provider.ResourceType, err Description: "Multicast group description", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "disassociate_wireless_device": { // Property: DisassociateWirelessDevice @@ -77,9 +85,13 @@ func multicastGroupResourceType(ctx context.Context) (provider.ResourceType, err Description: "Wireless device to disassociate. Only for update request.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id @@ -184,9 +196,13 @@ func multicastGroupResourceType(ctx context.Context) (provider.ResourceType, err Description: "Name of Multicast group", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status @@ -235,24 +251,36 @@ func multicastGroupResourceType(ctx context.Context) (provider.ResourceType, err // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/iotwireless/network_analyzer_configuration_resource_gen.go b/internal/aws/iotwireless/network_analyzer_configuration_resource_gen.go index cc7a1bd663..61977b8642 100644 --- a/internal/aws/iotwireless/network_analyzer_configuration_resource_gen.go +++ b/internal/aws/iotwireless/network_analyzer_configuration_resource_gen.go @@ -48,9 +48,13 @@ func networkAnalyzerConfigurationResourceType(ctx context.Context) (provider.Res Description: "The description of the new resource", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -170,6 +174,7 @@ func networkAnalyzerConfigurationResourceType(ctx context.Context) (provider.Res // Property: LogLevel Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "INFO", @@ -177,21 +182,32 @@ func networkAnalyzerConfigurationResourceType(ctx context.Context) (provider.Res "DISABLED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "wireless_device_frame_info": { // Property: WirelessDeviceFrameInfo Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ENABLED", "DISABLED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "wireless_devices": { // Property: WirelessDevices @@ -208,11 +224,13 @@ func networkAnalyzerConfigurationResourceType(ctx context.Context) (provider.Res Description: "List of wireless gateway resources that have been added to the network analyzer configuration", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(250), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "wireless_gateways": { @@ -230,11 +248,13 @@ func networkAnalyzerConfigurationResourceType(ctx context.Context) (provider.Res Description: "List of wireless gateway resources that have been added to the network analyzer configuration", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(250), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/iotwireless/partner_account_resource_gen.go b/internal/aws/iotwireless/partner_account_resource_gen.go index 6a730c6f76..a1bb3f1681 100644 --- a/internal/aws/iotwireless/partner_account_resource_gen.go +++ b/internal/aws/iotwireless/partner_account_resource_gen.go @@ -33,6 +33,10 @@ func partnerAccountResourceType(ctx context.Context) (provider.ResourceType, err Description: "Whether the partner account is linked to the AWS account.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "arn": { // Property: Arn @@ -59,9 +63,13 @@ func partnerAccountResourceType(ctx context.Context) (provider.ResourceType, err Description: "The fingerprint of the Sidewalk application server private key.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("[a-fA-F0-9]{64}"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "partner_account_id": { // Property: PartnerAccountId @@ -96,11 +104,15 @@ func partnerAccountResourceType(ctx context.Context) (provider.ResourceType, err Description: "The partner type", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Sidewalk", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sidewalk": { // Property: Sidewalk @@ -136,6 +148,10 @@ func partnerAccountResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sidewalk_response": { // Property: SidewalkResponse @@ -167,23 +183,35 @@ func partnerAccountResourceType(ctx context.Context) (provider.ResourceType, err // Property: AmazonId Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "arn": { // Property: Arn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "fingerprint": { // Property: Fingerprint Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(64, 64), validate.StringMatch(regexp.MustCompile("[a-fA-F0-9]{64}"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -215,14 +243,22 @@ func partnerAccountResourceType(ctx context.Context) (provider.ResourceType, err // Property: AppServerPrivateKey Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 4096), validate.StringMatch(regexp.MustCompile("[a-fA-F0-9]{64}"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -257,24 +293,36 @@ func partnerAccountResourceType(ctx context.Context) (provider.ResourceType, err // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 127), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/iotwireless/service_profile_resource_gen.go b/internal/aws/iotwireless/service_profile_resource_gen.go index c6b68b0e5a..46a9705323 100644 --- a/internal/aws/iotwireless/service_profile_resource_gen.go +++ b/internal/aws/iotwireless/service_profile_resource_gen.go @@ -125,6 +125,10 @@ func serviceProfileResourceType(ctx context.Context) (provider.ResourceType, err // Property: AddGwMetadata Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "channel_mask": { // Property: ChannelMask @@ -273,6 +277,10 @@ func serviceProfileResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -285,9 +293,13 @@ func serviceProfileResourceType(ctx context.Context) (provider.ResourceType, err Description: "Name of service profile", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -322,24 +334,36 @@ func serviceProfileResourceType(ctx context.Context) (provider.ResourceType, err // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/iotwireless/task_definition_resource_gen.go b/internal/aws/iotwireless/task_definition_resource_gen.go index e166c3bbc6..9f6f66d609 100644 --- a/internal/aws/iotwireless/task_definition_resource_gen.go +++ b/internal/aws/iotwireless/task_definition_resource_gen.go @@ -125,29 +125,45 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: Model Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 4096), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "package_version": { // Property: PackageVersion Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 32), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "station": { // Property: Station Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 4096), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "update_version": { // Property: UpdateVersion @@ -157,33 +173,53 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: Model Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 4096), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "package_version": { // Property: PackageVersion Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 32), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "station": { // Property: Station Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 4096), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -197,9 +233,13 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err Description: "The name of the new resource.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -234,24 +274,36 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 127), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "task_definition_type": { // Property: TaskDefinitionType @@ -266,11 +318,15 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err Description: "A filter to list only the wireless gateway task definitions that use this task definition type", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "UPDATE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "update": { // Property: Update @@ -364,42 +420,66 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: Model Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 4096), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "package_version": { // Property: PackageVersion Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 32), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "station": { // Property: Station Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 4096), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sig_key_crc": { // Property: SigKeyCrc Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "update_signature": { // Property: UpdateSignature Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 4096), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "update_version": { // Property: UpdateVersion @@ -409,53 +489,85 @@ func taskDefinitionResourceType(ctx context.Context) (provider.ResourceType, err // Property: Model Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 4096), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "package_version": { // Property: PackageVersion Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 32), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "station": { // Property: Station Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 4096), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "update_data_role": { // Property: UpdateDataRole Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "update_data_source": { // Property: UpdateDataSource Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 4096), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/iotwireless/wireless_device_resource_gen.go b/internal/aws/iotwireless/wireless_device_resource_gen.go index e410f6cedb..93c0cd873a 100644 --- a/internal/aws/iotwireless/wireless_device_resource_gen.go +++ b/internal/aws/iotwireless/wireless_device_resource_gen.go @@ -48,9 +48,13 @@ func wirelessDeviceResourceType(ctx context.Context) (provider.ResourceType, err Description: "Wireless device description", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_name": { // Property: DestinationName @@ -93,6 +97,10 @@ func wirelessDeviceResourceType(ctx context.Context) (provider.ResourceType, err Description: "The date and time when the most recent uplink was received.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lo_ra_wan": { // Property: LoRaWAN @@ -295,6 +303,10 @@ func wirelessDeviceResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "abp_v11": { // Property: AbpV11 @@ -351,22 +363,34 @@ func wirelessDeviceResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dev_eui": { // Property: DevEui Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("[a-f0-9]{16}"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "device_profile_id": { // Property: DeviceProfileId Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "otaa_v10_x": { // Property: OtaaV10x @@ -391,6 +415,10 @@ func wirelessDeviceResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "otaa_v11": { // Property: OtaaV11 @@ -423,18 +451,27 @@ func wirelessDeviceResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "service_profile_id": { // Property: ServiceProfileId Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.RequiredAttributes( validate.OneOfRequired( @@ -453,6 +490,9 @@ func wirelessDeviceResourceType(ctx context.Context) (provider.ResourceType, err ), ), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -465,9 +505,13 @@ func wirelessDeviceResourceType(ctx context.Context) (provider.ResourceType, err Description: "Wireless device name", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -502,24 +546,36 @@ func wirelessDeviceResourceType(ctx context.Context) (provider.ResourceType, err // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "thing_arn": { // Property: ThingArn @@ -531,6 +587,10 @@ func wirelessDeviceResourceType(ctx context.Context) (provider.ResourceType, err Description: "Thing arn. Passed into update to associate Thing with Wireless device.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "thing_name": { // Property: ThingName diff --git a/internal/aws/iotwireless/wireless_gateway_resource_gen.go b/internal/aws/iotwireless/wireless_gateway_resource_gen.go index 2b66bf414a..d7b036df4b 100644 --- a/internal/aws/iotwireless/wireless_gateway_resource_gen.go +++ b/internal/aws/iotwireless/wireless_gateway_resource_gen.go @@ -48,9 +48,13 @@ func wirelessGatewayResourceType(ctx context.Context) (provider.ResourceType, er Description: "Description of Wireless Gateway.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id @@ -77,6 +81,10 @@ func wirelessGatewayResourceType(ctx context.Context) (provider.ResourceType, er Description: "The date and time when the most recent uplink was received.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lo_ra_wan": { // Property: LoRaWAN @@ -134,9 +142,13 @@ func wirelessGatewayResourceType(ctx context.Context) (provider.ResourceType, er Description: "Name of Wireless Gateway.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -171,24 +183,36 @@ func wirelessGatewayResourceType(ctx context.Context) (provider.ResourceType, er // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "thing_arn": { // Property: ThingArn @@ -200,6 +224,10 @@ func wirelessGatewayResourceType(ctx context.Context) (provider.ResourceType, er Description: "Thing Arn. Passed into Update to associate a Thing with the Wireless Gateway.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "thing_name": { // Property: ThingName @@ -211,6 +239,10 @@ func wirelessGatewayResourceType(ctx context.Context) (provider.ResourceType, er Description: "Thing Name. If there is a Thing created, this can be returned with a Get call.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/ivs/channel_resource_gen.go b/internal/aws/ivs/channel_resource_gen.go index d6b5b09fba..171054ecec 100644 --- a/internal/aws/ivs/channel_resource_gen.go +++ b/internal/aws/ivs/channel_resource_gen.go @@ -50,6 +50,10 @@ func channelResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Whether the channel is authorized.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ingest_endpoint": { // Property: IngestEndpoint @@ -79,12 +83,16 @@ func channelResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Channel latency mode.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NORMAL", "LOW", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -99,10 +107,14 @@ func channelResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Channel", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 128), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9-_]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "playback_url": { // Property: PlaybackUrl @@ -194,9 +206,13 @@ func channelResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type @@ -212,12 +228,16 @@ func channelResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable resolution or bitrate, the stream probably will disconnect immediately.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "STANDARD", "BASIC", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/ivs/playback_key_pair_resource_gen.go b/internal/aws/ivs/playback_key_pair_resource_gen.go index e412cfd5f3..67410911d8 100644 --- a/internal/aws/ivs/playback_key_pair_resource_gen.go +++ b/internal/aws/ivs/playback_key_pair_resource_gen.go @@ -143,9 +143,13 @@ func playbackKeyPairResourceType(ctx context.Context) (provider.ResourceType, er }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/ivs/recording_configuration_resource_gen.go b/internal/aws/ivs/recording_configuration_resource_gen.go index 80ceb07999..e91c22f05d 100644 --- a/internal/aws/ivs/recording_configuration_resource_gen.go +++ b/internal/aws/ivs/recording_configuration_resource_gen.go @@ -197,9 +197,13 @@ func recordingConfigurationResourceType(ctx context.Context) (provider.ResourceT }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "thumbnail_configuration": { // Property: ThumbnailConfiguration diff --git a/internal/aws/ivs/stream_key_resource_gen.go b/internal/aws/ivs/stream_key_resource_gen.go index bd42ad15ca..ae285490f5 100644 --- a/internal/aws/ivs/stream_key_resource_gen.go +++ b/internal/aws/ivs/stream_key_resource_gen.go @@ -110,9 +110,13 @@ func streamKeyResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value diff --git a/internal/aws/kafkaconnect/connector_resource_gen.go b/internal/aws/kafkaconnect/connector_resource_gen.go index e4f2f15afd..06d1faa3f9 100644 --- a/internal/aws/kafkaconnect/connector_resource_gen.go +++ b/internal/aws/kafkaconnect/connector_resource_gen.go @@ -206,6 +206,10 @@ func connectorResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "provisioned_capacity": { // Property: ProvisionedCapacity @@ -217,6 +221,7 @@ func connectorResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies how many MSK Connect Units (MCU) are allocated to the connector.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntInSlice([]int{ 1, @@ -225,6 +230,9 @@ func connectorResourceType(ctx context.Context) (provider.ResourceType, error) { 8, }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "worker_count": { // Property: WorkerCount @@ -235,6 +243,10 @@ func connectorResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -636,10 +648,18 @@ func connectorResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The CloudWatch log group that is the destination for log delivery.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "firehose": { // Property: Firehose @@ -651,6 +671,10 @@ func connectorResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The Kinesis Data Firehose delivery stream that is the destination for log delivery.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enabled": { // Property: Enabled @@ -661,6 +685,10 @@ func connectorResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3": { // Property: S3 @@ -672,6 +700,10 @@ func connectorResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of the S3 bucket that is the destination for log delivery.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enabled": { // Property: Enabled @@ -684,10 +716,18 @@ func connectorResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The S3 prefix that is the destination for log delivery.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/kendra/data_source_resource_gen.go b/internal/aws/kendra/data_source_resource_gen.go index 5e29c449ce..8e9f0ec4b5 100644 --- a/internal/aws/kendra/data_source_resource_gen.go +++ b/internal/aws/kendra/data_source_resource_gen.go @@ -346,28 +346,48 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DateValue Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "long_value": { // Property: LongValue Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "string_list_value": { // Property: StringListValue Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "string_value": { // Property: StringValue Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "operator": { // Property: Operator @@ -392,11 +412,19 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "document_content_deletion": { // Property: DocumentContentDeletion Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target": { // Property: Target @@ -419,44 +447,76 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DateValue Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "long_value": { // Property: LongValue Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "string_list_value": { // Property: StringListValue Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "string_value": { // Property: StringValue Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_document_attribute_value_deletion": { // Property: TargetDocumentAttributeValueDeletion Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "post_extraction_hook_configuration": { // Property: PostExtractionHookConfiguration @@ -483,28 +543,48 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DateValue Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "long_value": { // Property: LongValue Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "string_list_value": { // Property: StringListValue Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "string_value": { // Property: StringValue Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "operator": { // Property: Operator @@ -529,6 +609,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lambda_arn": { // Property: LambdaArn @@ -550,6 +634,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "pre_extraction_hook_configuration": { // Property: PreExtractionHookConfiguration @@ -576,28 +664,48 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DateValue Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "long_value": { // Property: LongValue Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "string_list_value": { // Property: StringListValue Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "string_value": { // Property: StringValue Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "operator": { // Property: Operator @@ -622,6 +730,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lambda_arn": { // Property: LambdaArn @@ -643,19 +755,31 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleArn Description: "Role ARN", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1284), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "data_source_configuration": { // Property: DataSourceConfiguration @@ -2412,9 +2536,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DateFieldFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(4, 40), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "index_field_name": { // Property: IndexFieldName @@ -2427,18 +2555,30 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 11), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "crawl_attachments": { // Property: CrawlAttachments Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "blog_configuration": { // Property: BlogConfiguration @@ -2470,9 +2610,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DateFieldFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(4, 40), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "index_field_name": { // Property: IndexFieldName @@ -2485,31 +2629,47 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 9), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "exclusion_patterns": { // Property: ExclusionPatterns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inclusion_patterns": { // Property: InclusionPatterns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "page_configuration": { // Property: PageConfiguration @@ -2544,9 +2704,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DateFieldFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(4, 40), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "index_field_name": { // Property: IndexFieldName @@ -2559,13 +2723,21 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 12), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "secret_arn": { // Property: SecretArn @@ -2592,29 +2764,45 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: CrawlArchivedSpaces Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "crawl_personal_spaces": { // Property: CrawlPersonalSpaces Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "exclude_spaces": { // Property: ExcludeSpaces Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), validate.ArrayForEach(validate.StringLenBetween(1, 255)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "include_spaces": { // Property: IncludeSpaces Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), validate.ArrayForEach(validate.StringLenBetween(1, 255)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "space_field_mappings": { // Property: SpaceFieldMappings @@ -2637,9 +2825,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DateFieldFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(4, 40), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "index_field_name": { // Property: IndexFieldName @@ -2652,13 +2844,21 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 4), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "version": { // Property: Version @@ -2698,10 +2898,18 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "database_configuration": { // Property: DatabaseConfiguration @@ -2722,6 +2930,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "column_configuration": { // Property: ColumnConfiguration @@ -2756,9 +2968,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DocumentTitleColumnName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "field_mappings": { // Property: FieldMappings @@ -2776,9 +2992,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DateFieldFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(4, 40), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "index_field_name": { // Property: IndexFieldName @@ -2791,9 +3011,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -2868,16 +3092,24 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: QueryIdentifiersEnclosingOption Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "DOUBLE_QUOTES", "NONE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_configuration": { // Property: VpcConfiguration @@ -2906,10 +3138,18 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "google_drive_configuration": { // Property: GoogleDriveConfiguration @@ -2919,37 +3159,53 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: ExcludeMimeTypes Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 30), validate.ArrayForEach(validate.StringLenBetween(1, 256)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "exclude_shared_drives": { // Property: ExcludeSharedDrives Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 100), validate.ArrayForEach(validate.StringLenBetween(1, 256)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "exclude_user_accounts": { // Property: ExcludeUserAccounts Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 100), validate.ArrayForEach(validate.StringLenBetween(1, 256)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "exclusion_patterns": { // Property: ExclusionPatterns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "field_mappings": { // Property: FieldMappings @@ -2967,9 +3223,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DateFieldFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(4, 40), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "index_field_name": { // Property: IndexFieldName @@ -2982,18 +3242,26 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inclusion_patterns": { // Property: InclusionPatterns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "secret_arn": { // Property: SecretArn @@ -3006,6 +3274,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "one_drive_configuration": { // Property: OneDriveConfiguration @@ -3015,15 +3287,23 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DisableLocalGroups Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "exclusion_patterns": { // Property: ExclusionPatterns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "field_mappings": { // Property: FieldMappings @@ -3041,9 +3321,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DateFieldFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(4, 40), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "index_field_name": { // Property: IndexFieldName @@ -3056,18 +3340,26 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inclusion_patterns": { // Property: InclusionPatterns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "one_drive_users": { // Property: OneDriveUsers @@ -3077,10 +3369,14 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: OneDriveUserList Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 100), validate.ArrayForEach(validate.StringLenBetween(1, 256)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "one_drive_user_s3_path": { // Property: OneDriveUserS3Path @@ -3106,6 +3402,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -3143,6 +3443,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_configuration": { // Property: S3Configuration @@ -3157,13 +3461,21 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: KeyPath Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bucket_name": { // Property: BucketName @@ -3182,44 +3494,68 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: S3Prefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "exclusion_patterns": { // Property: ExclusionPatterns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inclusion_patterns": { // Property: InclusionPatterns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inclusion_prefixes": { // Property: InclusionPrefixes Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "salesforce_configuration": { // Property: SalesforceConfiguration @@ -3241,9 +3577,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DocumentTitleFieldName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "field_mappings": { // Property: FieldMappings @@ -3261,9 +3601,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DateFieldFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(4, 40), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "index_field_name": { // Property: IndexFieldName @@ -3276,14 +3620,19 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "include_filter_types": { // Property: IncludeFilterTypes Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 2), validate.ArrayForEach(validate.StringInSlice([]string{ @@ -3291,33 +3640,52 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) "STANDARD_USER", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "crawl_attachments": { // Property: CrawlAttachments Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "exclude_attachment_file_patterns": { // Property: ExcludeAttachmentFilePatterns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "include_attachment_file_patterns": { // Property: IncludeAttachmentFilePatterns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "knowledge_article_configuration": { // Property: KnowledgeArticleConfiguration @@ -3339,9 +3707,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DocumentTitleFieldName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "field_mappings": { // Property: FieldMappings @@ -3359,9 +3731,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DateFieldFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(4, 40), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "index_field_name": { // Property: IndexFieldName @@ -3374,9 +3750,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -3389,9 +3769,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 10), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "included_states": { // Property: IncludedStates @@ -3422,9 +3806,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DocumentTitleFieldName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "field_mappings": { // Property: FieldMappings @@ -3442,9 +3830,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DateFieldFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(4, 40), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "index_field_name": { // Property: IndexFieldName @@ -3457,17 +3849,29 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "secret_arn": { // Property: SecretArn @@ -3494,9 +3898,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DocumentTitleFieldName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "field_mappings": { // Property: FieldMappings @@ -3514,9 +3922,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DateFieldFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(4, 40), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "index_field_name": { // Property: IndexFieldName @@ -3529,13 +3941,21 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "standard_object_configurations": { // Property: StandardObjectConfigurations @@ -3553,9 +3973,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DocumentTitleFieldName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "field_mappings": { // Property: FieldMappings @@ -3573,9 +3997,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DateFieldFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(4, 40), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "index_field_name": { // Property: IndexFieldName @@ -3588,9 +4016,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -3621,13 +4053,21 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 17), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "service_now_configuration": { // Property: ServiceNowConfiguration @@ -3637,12 +4077,16 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: AuthenticationType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "HTTP_BASIC", "OAUTH2", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "host_url": { // Property: HostUrl @@ -3660,6 +4104,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: CrawlAttachments Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "document_data_field_name": { // Property: DocumentDataFieldName @@ -3673,18 +4121,26 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DocumentTitleFieldName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "exclude_attachment_file_patterns": { // Property: ExcludeAttachmentFilePatterns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "field_mappings": { // Property: FieldMappings @@ -3702,9 +4158,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DateFieldFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(4, 40), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "index_field_name": { // Property: IndexFieldName @@ -3717,30 +4177,46 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "filter_query": { // Property: FilterQuery Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "include_attachment_file_patterns": { // Property: IncludeAttachmentFilePatterns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "secret_arn": { // Property: SecretArn @@ -3758,6 +4234,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: CrawlAttachments Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "document_data_field_name": { // Property: DocumentDataFieldName @@ -3771,18 +4251,26 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DocumentTitleFieldName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "exclude_attachment_file_patterns": { // Property: ExcludeAttachmentFilePatterns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "field_mappings": { // Property: FieldMappings @@ -3800,9 +4288,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DateFieldFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(4, 40), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "index_field_name": { // Property: IndexFieldName @@ -3815,22 +4307,34 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "include_attachment_file_patterns": { // Property: IncludeAttachmentFilePatterns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "service_now_build_version": { // Property: ServiceNowBuildVersion @@ -3846,6 +4350,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "share_point_configuration": { // Property: SharePointConfiguration @@ -3856,28 +4364,44 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: CrawlAttachments Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "disable_local_groups": { // Property: DisableLocalGroups Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "document_title_field_name": { // Property: DocumentTitleFieldName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "exclusion_patterns": { // Property: ExclusionPatterns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "field_mappings": { // Property: FieldMappings @@ -3895,9 +4419,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DateFieldFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(4, 40), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "index_field_name": { // Property: IndexFieldName @@ -3910,18 +4438,26 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inclusion_patterns": { // Property: InclusionPatterns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "secret_arn": { // Property: SecretArn @@ -3967,6 +4503,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "urls": { // Property: Urls @@ -3982,6 +4522,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: UseChangeLog Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_configuration": { // Property: VpcConfiguration @@ -4010,10 +4554,18 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "web_crawler_configuration": { // Property: WebCrawlerConfiguration @@ -4055,45 +4607,69 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(10), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "crawl_depth": { // Property: CrawlDepth Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 10), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_content_size_per_page_in_mega_bytes": { // Property: MaxContentSizePerPageInMegaBytes Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatBetween(0.000000, 50.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_links_per_page": { // Property: MaxLinksPerPage Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 1000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_urls_per_minute_crawl_rate": { // Property: MaxUrlsPerMinuteCrawlRate Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 300), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "proxy_configuration": { // Property: ProxyConfiguration @@ -4103,9 +4679,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: Credentials Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1284), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "host": { // Property: Host @@ -4127,24 +4707,36 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "url_exclusion_patterns": { // Property: UrlExclusionPatterns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "url_inclusion_patterns": { // Property: UrlInclusionPatterns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "urls": { // Property: Urls @@ -4168,6 +4760,7 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: WebCrawlerMode Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "HOST_ONLY", @@ -4175,10 +4768,17 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) "EVERYTHING", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "site_maps_configuration": { // Property: SiteMapsConfiguration @@ -4197,6 +4797,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -4205,6 +4809,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "work_docs_configuration": { // Property: WorkDocsConfiguration @@ -4214,15 +4822,23 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: CrawlComments Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "exclusion_patterns": { // Property: ExclusionPatterns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "field_mappings": { // Property: FieldMappings @@ -4240,9 +4856,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: DateFieldFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(4, 40), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "index_field_name": { // Property: IndexFieldName @@ -4255,18 +4875,26 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inclusion_patterns": { // Property: InclusionPatterns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 50)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "organization_id": { // Property: OrganizationId @@ -4281,14 +4909,23 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) // Property: UseChangeLog Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.RequiredAttributes( validate.OneOfRequired( @@ -4325,6 +4962,9 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) ), ), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -4338,9 +4978,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Description of data source", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id @@ -4403,9 +5047,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Role ARN", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1284), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "schedule": { // Property: Schedule @@ -4418,9 +5066,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Schedule", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -4477,9 +5129,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type diff --git a/internal/aws/kendra/faq_resource_gen.go b/internal/aws/kendra/faq_resource_gen.go index cd82abfc1c..d5c7f46c6d 100644 --- a/internal/aws/kendra/faq_resource_gen.go +++ b/internal/aws/kendra/faq_resource_gen.go @@ -266,9 +266,13 @@ func faqResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/kendra/index_resource_gen.go b/internal/aws/kendra/index_resource_gen.go index 43b666386c..26e19dd1bf 100644 --- a/internal/aws/kendra/index_resource_gen.go +++ b/internal/aws/kendra/index_resource_gen.go @@ -80,6 +80,10 @@ func indexResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -92,9 +96,13 @@ func indexResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A description for the index", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "document_metadata_configurations": { // Property: DocumentMetadataConfigurations @@ -211,34 +219,50 @@ func indexResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Duration Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 10), validate.StringMatch(regexp.MustCompile("[0-9]+[s]"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "freshness": { // Property: Freshness Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "importance": { // Property: Importance Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 10), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rank_order": { // Property: RankOrder Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ASCENDING", "DESCENDING", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value_importance_items": { // Property: ValueImportanceItems @@ -248,25 +272,41 @@ func indexResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 10), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "search": { // Property: Search @@ -276,25 +316,45 @@ func indexResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Displayable Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "facetable": { // Property: Facetable Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "searchable": { // Property: Searchable Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sortable": { // Property: Sortable Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type @@ -312,9 +372,13 @@ func indexResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(500), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "edition": { // Property: Edition @@ -411,9 +475,13 @@ func indexResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: KmsKeyId Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -479,9 +547,13 @@ func indexResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "user_context_policy": { // Property: UserContextPolicy @@ -495,12 +567,16 @@ func indexResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ATTRIBUTE_FILTER", "USER_TOKEN", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "user_token_configurations": { // Property: UserTokenConfigurations @@ -609,6 +685,10 @@ func indexResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "jwt_token_type_configuration": { // Property: JwtTokenTypeConfiguration @@ -618,25 +698,37 @@ func indexResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: ClaimRegex Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "group_attribute_field": { // Property: GroupAttributeField Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "issuer": { // Property: Issuer Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 65), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key_location": { // Property: KeyLocation @@ -654,37 +746,57 @@ func indexResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Role Arn", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1284), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "url": { // Property: URL Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), validate.StringMatch(regexp.MustCompile("^(https?|ftp|file):\\/\\/([^\\s]*)"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "user_name_attribute_field": { // Property: UserNameAttributeField Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/kinesis/stream_resource_gen.go b/internal/aws/kinesis/stream_resource_gen.go index 3f6d13ced7..82cbf9547c 100644 --- a/internal/aws/kinesis/stream_resource_gen.go +++ b/internal/aws/kinesis/stream_resource_gen.go @@ -72,9 +72,13 @@ func streamResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The number of hours for the data records that are stored in shards to remain accessible.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(24), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "shard_count": { // Property: ShardCount @@ -87,9 +91,13 @@ func streamResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The number of shards that the stream uses. Required when StreamMode = PROVISIONED is passed.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stream_encryption": { // Property: StreamEncryption @@ -144,6 +152,10 @@ func streamResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stream_mode_details": { // Property: StreamModeDetails @@ -257,8 +269,10 @@ func streamResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/kinesisanalyticsv2/application_resource_gen.go b/internal/aws/kinesisanalyticsv2/application_resource_gen.go index 21bdb2fa4c..52ec1e2f2d 100644 --- a/internal/aws/kinesisanalyticsv2/application_resource_gen.go +++ b/internal/aws/kinesisanalyticsv2/application_resource_gen.go @@ -738,28 +738,44 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The version of the object containing the application code.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "text_content": { // Property: TextContent Description: "The text-format code for a Flink-based Kinesis Data Analytics application.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 102400), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "zip_file_content": { // Property: ZipFileContent Description: "The zip-format code for a Flink-based Kinesis Data Analytics application.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // ZipFileContent is a write-only property. }, }, @@ -781,6 +797,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "application_snapshot_configuration": { // Property: ApplicationSnapshotConfiguration @@ -796,6 +816,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "environment_properties": { // Property: EnvironmentProperties @@ -812,10 +836,14 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Describes the key of an application execution property key-value pair.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 50), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9_.-]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "property_map": { // Property: PropertyMap @@ -823,20 +851,30 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // EnvironmentProperties is a write-only property. }, "flink_application_configuration": { @@ -854,15 +892,23 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Describes the interval in milliseconds between checkpoint operations.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 9223372036854775807), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "checkpointing_enabled": { // Property: CheckpointingEnabled Description: "Describes whether checkpointing is enabled for a Flink-based Kinesis Data Analytics application.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "configuration_type": { // Property: ConfigurationType @@ -881,13 +927,21 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Describes the minimum time in milliseconds after a checkpoint operation completes that a new checkpoint operation can start. If a checkpoint operation takes longer than the CheckpointInterval, the application otherwise performs continual checkpoint operations. For more information, see Tuning Checkpointing in the Apache Flink Documentation.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 9223372036854775807), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "monitoring_configuration": { // Property: MonitoringConfiguration @@ -911,6 +965,7 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Describes the verbosity of the CloudWatch Logs for an application.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "DEBUG", @@ -919,12 +974,16 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) "ERROR", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "metrics_level": { // Property: MetricsLevel Description: "Describes the granularity of the CloudWatch Logs for an application. The Parallelism level is not recommended for applications with a Parallelism over 64 due to excessive costs.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "APPLICATION", @@ -933,10 +992,17 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) "TASK", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "parallelism_configuration": { // Property: ParallelismConfiguration @@ -948,6 +1014,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Describes whether the Kinesis Data Analytics service can increase the parallelism of the application in response to increased throughput.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "configuration_type": { // Property: ConfigurationType @@ -966,26 +1036,42 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Describes the initial number of parallel tasks that a Java-based Kinesis Data Analytics application can perform. The Kinesis Data Analytics service can increase this number automatically if ParallelismConfiguration:AutoScalingEnabled is set to true.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "parallelism_per_kpu": { // Property: ParallelismPerKPU Description: "Describes the number of parallel tasks that a Java-based Kinesis Data Analytics application can perform per Kinesis Processing Unit (KPU) used by the application. For more information about KPUs, see Amazon Kinesis Data Analytics Pricing.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sql_application_configuration": { // Property: SqlApplicationConfiguration @@ -1007,13 +1093,21 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The number of in-application streams to create.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "input_processing_configuration": { // Property: InputProcessingConfiguration @@ -1038,10 +1132,18 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "input_schema": { // Property: InputSchema @@ -1058,9 +1160,13 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "A reference to the data element in the streaming input or the reference data source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 65535), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -1096,11 +1202,15 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Specifies the encoding of the records in the streaming source. For example, UTF-8.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "UTF-8", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "record_format": { // Property: RecordFormat @@ -1138,6 +1248,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "json_mapping_parameters": { // Property: JSONMappingParameters @@ -1156,10 +1270,18 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "record_format_type": { // Property: RecordFormatType @@ -1199,6 +1321,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kinesis_streams_input": { // Property: KinesisStreamsInput @@ -1218,6 +1344,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name_prefix": { // Property: NamePrefix @@ -1232,16 +1362,22 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(1), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_configurations": { // Property: VpcConfigurations @@ -1275,11 +1411,13 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(1), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "zeppelin_application_configuration": { @@ -1302,18 +1440,30 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The Amazon Resource Name (ARN) of the database.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), validate.StringMatch(regexp.MustCompile("^arn:.*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "custom_artifacts_configuration": { // Property: CustomArtifactsConfiguration @@ -1370,6 +1520,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_content_location": { // Property: S3ContentLocation @@ -1400,22 +1554,32 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The version of the object containing the application code.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "deploy_as_application_configuration": { @@ -1433,10 +1597,14 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The base path for the S3 bucket.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9/!-_.*'()]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bucket_arn": { // Property: BucketARN @@ -1455,6 +1623,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "monitoring_configuration": { // Property: MonitoringConfiguration @@ -1466,6 +1638,7 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The verbosity of the CloudWatch Logs for an application. You can set it to `INFO`, `WARN`, `ERROR`, or `DEBUG`.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "DEBUG", @@ -1474,18 +1647,33 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) "ERROR", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "application_description": { // Property: ApplicationDescription @@ -1542,6 +1730,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "application_mode": { // Property: ApplicationMode @@ -1665,14 +1857,22 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) 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.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9_.-]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "flink_run_configuration": { // Property: FlinkRunConfiguration @@ -1684,14 +1884,26 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) 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.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // RunConfiguration is a write-only property. }, "runtime_environment": { @@ -1784,11 +1996,13 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 50), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/kinesisfirehose/delivery_stream_resource_gen.go b/internal/aws/kinesisfirehose/delivery_stream_resource_gen.go index e0eb44fba0..b228605cb1 100644 --- a/internal/aws/kinesisfirehose/delivery_stream_resource_gen.go +++ b/internal/aws/kinesisfirehose/delivery_stream_resource_gen.go @@ -311,15 +311,27 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions @@ -329,38 +341,62 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cluster_endpoint": { // Property: ClusterEndpoint Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("https:.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "domain_arn": { // Property: DomainARN Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "index_name": { // Property: IndexName @@ -374,6 +410,7 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: IndexRotationPeriod Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NoRotation", @@ -383,6 +420,9 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err "OneMonth", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "processing_configuration": { // Property: ProcessingConfiguration @@ -392,6 +432,10 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "processors": { // Property: Processors @@ -414,9 +458,13 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type @@ -434,13 +482,21 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "retry_options": { // Property: RetryOptions @@ -450,10 +506,18 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: DurationInSeconds Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleARN @@ -468,12 +532,16 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: S3BackupMode Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "FailedDocumentsOnly", "AllDocuments", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_configuration": { // Property: S3Configuration @@ -496,15 +564,27 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions @@ -514,25 +594,42 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "compression_format": { // Property: CompressionFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "UNCOMPRESSED", @@ -542,6 +639,9 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err "HADOOP_SNAPPY", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption_configuration": { // Property: EncryptionConfiguration @@ -559,36 +659,56 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "no_encryption_config": { // Property: NoEncryptionConfig Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NoEncryption", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "error_output_prefix": { // Property: ErrorOutputPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix": { // Property: Prefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleARN @@ -607,9 +727,13 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: TypeName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_configuration": { // Property: VpcConfiguration @@ -656,6 +780,10 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "arn": { // Property: Arn @@ -700,10 +828,14 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: KeyARN Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key_type": { // Property: KeyType @@ -719,6 +851,10 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "delivery_stream_name": { // Property: DeliveryStreamName @@ -1053,15 +1189,27 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions @@ -1071,38 +1219,62 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cluster_endpoint": { // Property: ClusterEndpoint Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("https:.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "domain_arn": { // Property: DomainARN Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "index_name": { // Property: IndexName @@ -1116,6 +1288,7 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: IndexRotationPeriod Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NoRotation", @@ -1125,6 +1298,9 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err "OneMonth", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "processing_configuration": { // Property: ProcessingConfiguration @@ -1134,6 +1310,10 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "processors": { // Property: Processors @@ -1156,9 +1336,13 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type @@ -1176,13 +1360,21 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "retry_options": { // Property: RetryOptions @@ -1192,10 +1384,18 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: DurationInSeconds Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleARN @@ -1210,12 +1410,16 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: S3BackupMode Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "FailedDocumentsOnly", "AllDocuments", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_configuration": { // Property: S3Configuration @@ -1238,15 +1442,27 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions @@ -1256,25 +1472,42 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "compression_format": { // Property: CompressionFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "UNCOMPRESSED", @@ -1284,6 +1517,9 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err "HADOOP_SNAPPY", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption_configuration": { // Property: EncryptionConfiguration @@ -1301,36 +1537,56 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "no_encryption_config": { // Property: NoEncryptionConfig Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NoEncryption", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "error_output_prefix": { // Property: ErrorOutputPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix": { // Property: Prefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleARN @@ -1349,9 +1605,13 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: TypeName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_configuration": { // Property: VpcConfiguration @@ -1398,6 +1658,10 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "extended_s3_destination_configuration": { // Property: ExtendedS3DestinationConfiguration @@ -1840,15 +2104,27 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions @@ -1858,25 +2134,42 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "compression_format": { // Property: CompressionFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "UNCOMPRESSED", @@ -1886,6 +2179,9 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err "HADOOP_SNAPPY", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "data_format_conversion_configuration": { // Property: DataFormatConversionConfiguration @@ -1895,6 +2191,10 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "input_format_configuration": { // Property: InputFormatConfiguration @@ -1912,13 +2212,21 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: TimestampFormats Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "open_x_json_ser_de": { // Property: OpenXJsonSerDe @@ -1928,29 +2236,53 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: CaseInsensitive Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "column_to_json_key_mappings": { // Property: ColumnToJsonKeyMappings // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "convert_dots_in_json_keys_to_underscores": { // Property: ConvertDotsInJsonKeysToUnderscores Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "output_format_configuration": { // Property: OutputFormatConfiguration @@ -1968,58 +2300,102 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: BlockSizeBytes Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bloom_filter_columns": { // Property: BloomFilterColumns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bloom_filter_false_positive_probability": { // Property: BloomFilterFalsePositiveProbability Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "compression": { // Property: Compression Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dictionary_key_threshold": { // Property: DictionaryKeyThreshold Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_padding": { // Property: EnablePadding Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "format_version": { // Property: FormatVersion Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "padding_tolerance": { // Property: PaddingTolerance Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "row_index_stride": { // Property: RowIndexStride Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stripe_size_bytes": { // Property: StripeSizeBytes Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "parquet_ser_de": { // Property: ParquetSerDe @@ -2029,43 +2405,79 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: BlockSizeBytes Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "compression": { // Property: Compression Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_dictionary_compression": { // Property: EnableDictionaryCompression Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_padding_bytes": { // Property: MaxPaddingBytes Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "page_size_bytes": { // Property: PageSizeBytes Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "writer_version": { // Property: WriterVersion Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "schema_configuration": { // Property: SchemaConfiguration @@ -2075,43 +2487,75 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: CatalogId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "database_name": { // Property: DatabaseName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "region": { // Property: Region Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleARN Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "table_name": { // Property: TableName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "version_id": { // Property: VersionId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dynamic_partitioning_configuration": { // Property: DynamicPartitioningConfiguration @@ -2121,6 +2565,10 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "retry_options": { // Property: RetryOptions @@ -2130,14 +2578,26 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: DurationInSeconds Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption_configuration": { // Property: EncryptionConfiguration @@ -2155,36 +2615,56 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "no_encryption_config": { // Property: NoEncryptionConfig Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NoEncryption", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "error_output_prefix": { // Property: ErrorOutputPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix": { // Property: Prefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "processing_configuration": { // Property: ProcessingConfiguration @@ -2194,6 +2674,10 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "processors": { // Property: Processors @@ -2216,9 +2700,13 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type @@ -2236,13 +2724,21 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleARN @@ -2274,15 +2770,27 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions @@ -2292,25 +2800,42 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "compression_format": { // Property: CompressionFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "UNCOMPRESSED", @@ -2320,6 +2845,9 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err "HADOOP_SNAPPY", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption_configuration": { // Property: EncryptionConfiguration @@ -2337,36 +2865,56 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "no_encryption_config": { // Property: NoEncryptionConfig Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NoEncryption", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "error_output_prefix": { // Property: ErrorOutputPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix": { // Property: Prefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleARN @@ -2380,21 +2928,33 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_backup_mode": { // Property: S3BackupMode Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Disabled", "Enabled", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "http_endpoint_destination_configuration": { // Property: HttpEndpointDestinationConfiguration @@ -2671,15 +3231,27 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions @@ -2689,20 +3261,36 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "endpoint_configuration": { // Property: EndpointConfiguration @@ -2712,17 +3300,25 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: AccessKey Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 4096), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "url": { // Property: Url @@ -2744,6 +3340,10 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "processors": { // Property: Processors @@ -2766,9 +3366,13 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type @@ -2786,13 +3390,21 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "request_configuration": { // Property: RequestConfiguration @@ -2821,25 +3433,37 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 50), validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "content_encoding": { // Property: ContentEncoding Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", "GZIP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "retry_options": { // Property: RetryOptions @@ -2849,24 +3473,40 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: DurationInSeconds Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleARN Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_backup_mode": { // Property: S3BackupMode Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_configuration": { // Property: S3Configuration @@ -2889,15 +3529,27 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions @@ -2907,25 +3559,42 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "compression_format": { // Property: CompressionFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "UNCOMPRESSED", @@ -2935,6 +3604,9 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err "HADOOP_SNAPPY", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption_configuration": { // Property: EncryptionConfiguration @@ -2952,36 +3624,56 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "no_encryption_config": { // Property: NoEncryptionConfig Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NoEncryption", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "error_output_prefix": { // Property: ErrorOutputPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix": { // Property: Prefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleARN @@ -2999,6 +3691,10 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kinesis_stream_source_configuration": { // Property: KinesisStreamSourceConfiguration @@ -3394,20 +4090,36 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cluster_jdbcurl": { // Property: ClusterJDBCURL @@ -3425,17 +4137,25 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: CopyOptions Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 204800), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "data_table_columns": { // Property: DataTableColumns Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 204800), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "data_table_name": { // Property: DataTableName @@ -3465,6 +4185,10 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "processors": { // Property: Processors @@ -3487,9 +4211,13 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type @@ -3507,13 +4235,21 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "retry_options": { // Property: RetryOptions @@ -3523,10 +4259,18 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: DurationInSeconds Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleARN @@ -3558,15 +4302,27 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions @@ -3576,25 +4332,42 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "compression_format": { // Property: CompressionFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "UNCOMPRESSED", @@ -3604,6 +4377,9 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err "HADOOP_SNAPPY", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption_configuration": { // Property: EncryptionConfiguration @@ -3621,36 +4397,56 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "no_encryption_config": { // Property: NoEncryptionConfig Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NoEncryption", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "error_output_prefix": { // Property: ErrorOutputPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix": { // Property: Prefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleARN @@ -3664,17 +4460,25 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_backup_mode": { // Property: S3BackupMode Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Disabled", "Enabled", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_configuration": { // Property: S3Configuration @@ -3697,15 +4501,27 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions @@ -3715,25 +4531,42 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "compression_format": { // Property: CompressionFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "UNCOMPRESSED", @@ -3743,6 +4576,9 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err "HADOOP_SNAPPY", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption_configuration": { // Property: EncryptionConfiguration @@ -3760,36 +4596,56 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "no_encryption_config": { // Property: NoEncryptionConfig Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NoEncryption", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "error_output_prefix": { // Property: ErrorOutputPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix": { // Property: Prefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleARN @@ -3815,6 +4671,10 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_destination_configuration": { // Property: S3DestinationConfiguration @@ -3931,15 +4791,27 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions @@ -3949,25 +4821,42 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "compression_format": { // Property: CompressionFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "UNCOMPRESSED", @@ -3977,6 +4866,9 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err "HADOOP_SNAPPY", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption_configuration": { // Property: EncryptionConfiguration @@ -3994,36 +4886,56 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "no_encryption_config": { // Property: NoEncryptionConfig Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NoEncryption", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "error_output_prefix": { // Property: ErrorOutputPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix": { // Property: Prefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleARN @@ -4037,6 +4949,10 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "splunk_destination_configuration": { // Property: SplunkDestinationConfiguration @@ -4256,28 +5172,48 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "hec_acknowledgment_timeout_in_seconds": { // Property: HECAcknowledgmentTimeoutInSeconds Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(180, 600), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "hec_endpoint": { // Property: HECEndpoint @@ -4314,6 +5250,10 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "processors": { // Property: Processors @@ -4336,9 +5276,13 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type @@ -4356,13 +5300,21 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "retry_options": { // Property: RetryOptions @@ -4372,15 +5324,27 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: DurationInSeconds Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_backup_mode": { // Property: S3BackupMode Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_configuration": { // Property: S3Configuration @@ -4403,15 +5367,27 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions @@ -4421,25 +5397,42 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "compression_format": { // Property: CompressionFormat Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "UNCOMPRESSED", @@ -4449,6 +5442,9 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err "HADOOP_SNAPPY", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption_configuration": { // Property: EncryptionConfiguration @@ -4466,36 +5462,56 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "no_encryption_config": { // Property: NoEncryptionConfig Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NoEncryption", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "error_output_prefix": { // Property: ErrorOutputPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix": { // Property: Prefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleARN @@ -4513,6 +5529,10 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -4556,17 +5576,25 @@ func deliveryStreamResourceType(ctx context.Context) (provider.ResourceType, err // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), validate.StringMatch(regexp.MustCompile("^[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@%]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/kinesisvideo/signaling_channel_resource_gen.go b/internal/aws/kinesisvideo/signaling_channel_resource_gen.go index 0a5585a3f3..6bcf4e2e12 100644 --- a/internal/aws/kinesisvideo/signaling_channel_resource_gen.go +++ b/internal/aws/kinesisvideo/signaling_channel_resource_gen.go @@ -49,9 +49,13 @@ func signalingChannelResourceType(ctx context.Context) (provider.ResourceType, e Description: "The period of time a signaling channel retains undelivered messages before they are discarded.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(5, 120), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -134,11 +138,13 @@ func signalingChannelResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 50), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "type": { @@ -154,11 +160,15 @@ func signalingChannelResourceType(ctx context.Context) (provider.ResourceType, e Description: "The type of the Kinesis Video Signaling Channel to create. Currently, SINGLE_MASTER is the only supported channel type.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "SINGLE_MASTER", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/kinesisvideo/stream_resource_gen.go b/internal/aws/kinesisvideo/stream_resource_gen.go index 5daa543981..60b77fe9cb 100644 --- a/internal/aws/kinesisvideo/stream_resource_gen.go +++ b/internal/aws/kinesisvideo/stream_resource_gen.go @@ -49,9 +49,13 @@ func streamResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The number of hours till which Kinesis Video will retain the data in the stream", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 87600), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "device_name": { // Property: DeviceName @@ -66,10 +70,14 @@ func streamResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of the device that is writing to the stream.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9_.-]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kms_key_id": { // Property: KmsKeyId @@ -84,10 +92,14 @@ func streamResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "AWS KMS key ID that Kinesis Video Streams uses to encrypt stream data.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), validate.StringMatch(regexp.MustCompile(".+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "media_type": { // Property: MediaType @@ -102,10 +114,14 @@ func streamResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The media type of the stream. Consumers of the stream can use this information when processing the stream.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), validate.StringMatch(regexp.MustCompile("[\\w\\-\\.\\+]+/[\\w\\-\\.\\+]+(,[\\w\\-\\.\\+]+/[\\w\\-\\.\\+]+)*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -188,11 +204,13 @@ func streamResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 50), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/kms/key_resource_gen.go b/internal/aws/kms/key_resource_gen.go index e4ad949ba8..a2cb438dc8 100644 --- a/internal/aws/kms/key_resource_gen.go +++ b/internal/aws/kms/key_resource_gen.go @@ -46,9 +46,13 @@ func keyResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A description of the AWS KMS key. Use a description that helps you to distinguish this AWS KMS key from others in the account, such as its intended use.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 8192), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_key_rotation": { // Property: EnableKeyRotation @@ -60,6 +64,10 @@ func keyResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Enables automatic rotation of the key material for the specified AWS KMS key. By default, automation key rotation is not enabled.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enabled": { // Property: Enabled @@ -71,6 +79,10 @@ func keyResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies whether the AWS KMS key is enabled. Disabled AWS KMS keys cannot be used in cryptographic operations.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key_id": { // Property: KeyId @@ -202,9 +214,13 @@ func keyResourceType(ctx context.Context) (provider.ResourceType, error) { 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.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(7, 30), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // PendingWindowInDays is a write-only property. }, "tags": { @@ -263,6 +279,10 @@ func keyResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/kms/replica_key_resource_gen.go b/internal/aws/kms/replica_key_resource_gen.go index 42f497a95e..79d544b00b 100644 --- a/internal/aws/kms/replica_key_resource_gen.go +++ b/internal/aws/kms/replica_key_resource_gen.go @@ -46,9 +46,13 @@ func replicaKeyResourceType(ctx context.Context) (provider.ResourceType, error) Description: "A description of the AWS KMS key. Use a description that helps you to distinguish this AWS KMS key from others in the account, such as its intended use.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 8192), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enabled": { // Property: Enabled @@ -60,6 +64,10 @@ func replicaKeyResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Specifies whether the AWS KMS key is enabled. Disabled AWS KMS keys cannot be used in cryptographic operations.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key_id": { // Property: KeyId @@ -96,9 +104,13 @@ func replicaKeyResourceType(ctx context.Context) (provider.ResourceType, error) 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.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(7, 30), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // PendingWindowInDays is a write-only property. }, "primary_key_arn": { @@ -176,6 +188,10 @@ func replicaKeyResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/lakeformation/data_cells_filter_resource_gen.go b/internal/aws/lakeformation/data_cells_filter_resource_gen.go index 9687a173a0..7ea45eb221 100644 --- a/internal/aws/lakeformation/data_cells_filter_resource_gen.go +++ b/internal/aws/lakeformation/data_cells_filter_resource_gen.go @@ -78,11 +78,13 @@ func dataCellsFilterResourceType(ctx context.Context) (provider.ResourceType, er Description: "A list of column names to be excluded from the Data Cells Filter.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(1, 255)), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -159,12 +161,20 @@ func dataCellsFilterResourceType(ctx context.Context) (provider.ResourceType, er Description: "An empty object representing a row wildcard.", Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "filter_expression": { // Property: FilterExpression Description: "A PartiQL predicate.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/lakeformation/principal_permissions_resource_gen.go b/internal/aws/lakeformation/principal_permissions_resource_gen.go index f4b1651ebe..aca1a86857 100644 --- a/internal/aws/lakeformation/principal_permissions_resource_gen.go +++ b/internal/aws/lakeformation/principal_permissions_resource_gen.go @@ -155,9 +155,13 @@ func principalPermissionsResourceType(ctx context.Context) (provider.ResourceTyp // Property: DataLakePrincipalIdentifier Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -429,6 +433,10 @@ func principalPermissionsResourceType(ctx context.Context) (provider.ResourceTyp // Property: Catalog Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "data_cells_filter": { // Property: DataCellsFilter @@ -469,6 +477,10 @@ func principalPermissionsResourceType(ctx context.Context) (provider.ResourceTyp }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "data_location": { // Property: DataLocation @@ -490,6 +502,10 @@ func principalPermissionsResourceType(ctx context.Context) (provider.ResourceTyp }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "database": { // Property: Database @@ -514,6 +530,10 @@ func principalPermissionsResourceType(ctx context.Context) (provider.ResourceTyp }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lf_tag": { // Property: LFTag @@ -550,6 +570,10 @@ func principalPermissionsResourceType(ctx context.Context) (provider.ResourceTyp }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lf_tag_policy": { // Property: LFTagPolicy @@ -571,20 +595,26 @@ func principalPermissionsResourceType(ctx context.Context) (provider.ResourceTyp // Property: TagKey Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tag_values": { // Property: TagValues Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 50), validate.ArrayForEach(validate.StringLenBetween(0, 256)), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -611,6 +641,10 @@ func principalPermissionsResourceType(ctx context.Context) (provider.ResourceTyp }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "table": { // Property: Table @@ -636,18 +670,30 @@ func principalPermissionsResourceType(ctx context.Context) (provider.ResourceTyp // Property: Name Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "table_wildcard": { // Property: TableWildcard Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "table_with_columns": { // Property: TableWithColumns @@ -665,11 +711,13 @@ func principalPermissionsResourceType(ctx context.Context) (provider.ResourceTyp // Property: ColumnNames Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(1, 255)), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "column_wildcard": { @@ -680,16 +728,22 @@ func principalPermissionsResourceType(ctx context.Context) (provider.ResourceTyp // Property: ExcludedColumnNames Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(1, 255)), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "database_name": { // Property: DatabaseName @@ -710,6 +764,10 @@ func principalPermissionsResourceType(ctx context.Context) (provider.ResourceTyp }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/lakeformation/tag_association_resource_gen.go b/internal/aws/lakeformation/tag_association_resource_gen.go index bf070c3380..368542ce36 100644 --- a/internal/aws/lakeformation/tag_association_resource_gen.go +++ b/internal/aws/lakeformation/tag_association_resource_gen.go @@ -207,6 +207,10 @@ func tagAssociationResourceType(ctx context.Context) (provider.ResourceType, err // Property: Catalog Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "database": { // Property: Database @@ -231,6 +235,10 @@ func tagAssociationResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "table": { // Property: Table @@ -256,18 +264,30 @@ func tagAssociationResourceType(ctx context.Context) (provider.ResourceType, err // Property: Name Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "table_wildcard": { // Property: TableWildcard Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "table_with_columns": { // Property: TableWithColumns @@ -311,6 +331,10 @@ func tagAssociationResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/lambda/code_signing_config_resource_gen.go b/internal/aws/lambda/code_signing_config_resource_gen.go index e66327c651..1cef975777 100644 --- a/internal/aws/lambda/code_signing_config_resource_gen.go +++ b/internal/aws/lambda/code_signing_config_resource_gen.go @@ -141,6 +141,10 @@ func codeSigningConfigResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -154,9 +158,13 @@ func codeSigningConfigResourceType(ctx context.Context) (provider.ResourceType, Description: "A description of the CodeSigningConfig", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/lambda/event_source_mapping_resource_gen.go b/internal/aws/lambda/event_source_mapping_resource_gen.go index 84d49ceacf..69b1e8dff9 100644 --- a/internal/aws/lambda/event_source_mapping_resource_gen.go +++ b/internal/aws/lambda/event_source_mapping_resource_gen.go @@ -48,10 +48,14 @@ func eventSourceMappingResourceType(ctx context.Context) (provider.ResourceType, Description: "The identifier for the Kafka Consumer Group to join.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 200), validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9-\\/*:_+=.@-]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -74,9 +78,13 @@ func eventSourceMappingResourceType(ctx context.Context) (provider.ResourceType, Description: "The maximum number of items to retrieve in a single batch.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 10000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bisect_batch_on_function_error": { // Property: BisectBatchOnFunctionError @@ -88,6 +96,10 @@ func eventSourceMappingResourceType(ctx context.Context) (provider.ResourceType, Description: "(Streams) If the function returns an error, split the batch in two and retry.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination_config": { // Property: DestinationConfig @@ -126,18 +138,30 @@ func eventSourceMappingResourceType(ctx context.Context) (provider.ResourceType, Description: "The Amazon Resource Name (ARN) of the destination resource.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(12, 1024), validate.StringMatch(regexp.MustCompile("arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:([a-z]{2}(-gov)?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enabled": { // Property: Enabled @@ -149,6 +173,10 @@ func eventSourceMappingResourceType(ctx context.Context) (provider.ResourceType, Description: "Disables the event source mapping to pause polling and invocation.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "event_source_arn": { // Property: EventSourceArn @@ -217,22 +245,34 @@ func eventSourceMappingResourceType(ctx context.Context) (provider.ResourceType, Description: "The filter pattern that defines which events should be passed for invocations.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 4096), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 20), validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "function_name": { // Property: FunctionName @@ -271,12 +311,16 @@ func eventSourceMappingResourceType(ctx context.Context) (provider.ResourceType, Description: "(Streams) A list of response types supported by the function.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), validate.ArrayForEach(validate.StringInSlice([]string{ "ReportBatchItemFailures", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id @@ -307,9 +351,13 @@ func eventSourceMappingResourceType(ctx context.Context) (provider.ResourceType, Description: "(Streams) The maximum amount of time to gather records before invoking the function, in seconds.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 300), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "maximum_record_age_in_seconds": { // Property: MaximumRecordAgeInSeconds @@ -323,9 +371,13 @@ func eventSourceMappingResourceType(ctx context.Context) (provider.ResourceType, Description: "(Streams) The maximum age of a record that Lambda sends to a function for processing.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(-1, 604800), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "maximum_retry_attempts": { // Property: MaximumRetryAttempts @@ -339,9 +391,13 @@ func eventSourceMappingResourceType(ctx context.Context) (provider.ResourceType, Description: "(Streams) The maximum number of times to retry when the function returns an error.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(-1, 10000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "parallelization_factor": { // Property: ParallelizationFactor @@ -355,9 +411,13 @@ func eventSourceMappingResourceType(ctx context.Context) (provider.ResourceType, Description: "(Streams) The number of batches to process from each shard concurrently.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 10), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "queues": { // Property: Queues @@ -378,12 +438,16 @@ func eventSourceMappingResourceType(ctx context.Context) (provider.ResourceType, Description: "(ActiveMQ) A list of ActiveMQ queues.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 1), validate.UniqueItems(), validate.ArrayForEach(validate.StringLenBetween(1, 1000)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("[\\s\\S]*"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "self_managed_event_source": { // Property: SelfManagedEventSource @@ -429,16 +493,24 @@ func eventSourceMappingResourceType(ctx context.Context) (provider.ResourceType, Description: "A list of Kafka server endpoints.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 10), validate.UniqueItems(), validate.ArrayForEach(validate.StringLenBetween(1, 300)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\\-]*[A-Za-z0-9]):[0-9]{1,5}"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -474,10 +546,14 @@ func eventSourceMappingResourceType(ctx context.Context) (provider.ResourceType, Description: "The identifier for the Kafka Consumer Group to join.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 200), validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9-\\/*:_+=.@-]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -534,6 +610,7 @@ func eventSourceMappingResourceType(ctx context.Context) (provider.ResourceType, Description: "The type of source access configuration.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "BASIC_AUTH", @@ -546,24 +623,35 @@ func eventSourceMappingResourceType(ctx context.Context) (provider.ResourceType, "SERVER_ROOT_CA_CERTIFICATE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "uri": { // Property: URI Description: "The URI for the source access configuration resource.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 200), validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9-\\/*:_+=.@-]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 22), validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "starting_position": { // Property: StartingPosition @@ -623,12 +711,16 @@ func eventSourceMappingResourceType(ctx context.Context) (provider.ResourceType, Description: "(Kafka) A list of Kafka topics.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 1), validate.UniqueItems(), validate.ArrayForEach(validate.StringLenBetween(1, 249)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^[^.]([a-zA-Z0-9\\-_.]+)"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tumbling_window_in_seconds": { // Property: TumblingWindowInSeconds @@ -642,9 +734,13 @@ func eventSourceMappingResourceType(ctx context.Context) (provider.ResourceType, Description: "(Streams) Tumbling window (non-overlapping time window) duration to perform aggregations.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 900), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/lambda/function_resource_gen.go b/internal/aws/lambda/function_resource_gen.go index 36b2063187..45847b4490 100644 --- a/internal/aws/lambda/function_resource_gen.go +++ b/internal/aws/lambda/function_resource_gen.go @@ -41,6 +41,7 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 1), validate.UniqueItems(), @@ -49,6 +50,9 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { "arm64", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "arn": { // Property: Arn @@ -109,39 +113,59 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "ImageUri.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_bucket": { // Property: S3Bucket Description: "An Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 63), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_key": { // Property: S3Key Description: "The Amazon S3 key of the deployment package.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_object_version": { // Property: S3ObjectVersion Description: "For versioned objects, the version of the deployment package object to use.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "zip_file": { // Property: ZipFile Description: "The source code of your Lambda function. If you include your function source inline with this parameter, AWS CloudFormation places it in a file named index and zips it to create a deployment package..", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -159,9 +183,13 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A unique Arn for CodeSigningConfig resource", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:code-signing-config:csc-[a-z0-9]{17}"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dead_letter_config": { // Property: DeadLetterConfig @@ -186,13 +214,21 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -205,9 +241,13 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A description of the function.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "environment": { // Property: Environment @@ -238,10 +278,18 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ephemeral_storage": { // Property: EphemeralStorage @@ -277,6 +325,10 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "file_system_configs": { // Property: FileSystemConfigs @@ -334,9 +386,13 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "function_name": { // Property: FunctionName @@ -370,10 +426,14 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of the method within your code that Lambda calls to execute your function. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(128), validate.StringMatch(regexp.MustCompile("^[^\\s]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_config": { // Property: ImageConfig @@ -415,30 +475,46 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Command.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(1500), validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "entry_point": { // Property: EntryPoint Description: "EntryPoint.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(1500), validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "working_directory": { // Property: WorkingDirectory Description: "WorkingDirectory.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kms_key_arn": { // Property: KmsKeyArn @@ -451,9 +527,13 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt your function's environment variables. If it's not provided, AWS Lambda uses a default service key.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "layers": { // Property: Layers @@ -469,6 +549,10 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "memory_size": { // Property: MemorySize @@ -480,6 +564,10 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The amount of memory that your function has access to. Increasing the function's memory also increases its CPU allocation. The default value is 128 MB. The value must be a multiple of 64 MB.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "package_type": { // Property: PackageType @@ -495,12 +583,16 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "PackageType.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Image", "Zip", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "reserved_concurrent_executions": { // Property: ReservedConcurrentExecutions @@ -513,9 +605,13 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The number of simultaneous executions to reserve for the function.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role": { // Property: Role @@ -542,6 +638,10 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The identifier of the function's runtime.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -590,13 +690,21 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { 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 -.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "timeout": { // Property: Timeout @@ -609,9 +717,13 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The amount of time that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tracing_config": { // Property: TracingConfig @@ -639,16 +751,24 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The tracing mode.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Active", "PassThrough", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_config": { // Property: VpcConfig @@ -686,22 +806,34 @@ func functionResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A list of VPC security groups IDs.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnet_ids": { // Property: SubnetIds Description: "A list of VPC subnet IDs.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(16), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/lambda/url_resource_gen.go b/internal/aws/lambda/url_resource_gen.go index 9942a96830..0b36aed4cd 100644 --- a/internal/aws/lambda/url_resource_gen.go +++ b/internal/aws/lambda/url_resource_gen.go @@ -123,22 +123,31 @@ func urlResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies whether credentials are included in the CORS request.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "allow_headers": { // Property: AllowHeaders Description: "Represents a collection of allowed headers.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 100), validate.ArrayForEach(validate.StringLenBetween(1, 1024)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "allow_methods": { // Property: AllowMethods Description: "Represents a collection of allowed HTTP methods.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 6), validate.ArrayForEach(validate.StringInSlice([]string{ @@ -151,38 +160,57 @@ func urlResourceType(ctx context.Context) (provider.ResourceType, error) { "*", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "allow_origins": { // Property: AllowOrigins Description: "Represents a collection of allowed origins.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 100), validate.ArrayForEach(validate.StringLenBetween(1, 253)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "expose_headers": { // Property: ExposeHeaders Description: "Represents a collection of exposed headers.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 100), validate.ArrayForEach(validate.StringLenBetween(1, 1024)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_age": { // Property: MaxAge Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 86400), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "function_arn": { // Property: FunctionArn @@ -227,12 +255,16 @@ func urlResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The invocation mode for the function?s URL. Set to BUFFERED if you want to buffer responses before returning them to the client. Set to RESPONSE_STREAM if you want to stream responses, allowing faster time to first byte and larger response payload sizes. If not set, defaults to BUFFERED.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "BUFFERED", "RESPONSE_STREAM", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "qualifier": { // Property: Qualifier diff --git a/internal/aws/lex/bot_alias_resource_gen.go b/internal/aws/lex/bot_alias_resource_gen.go index 16211e0d3d..8087baf527 100644 --- a/internal/aws/lex/bot_alias_resource_gen.go +++ b/internal/aws/lex/bot_alias_resource_gen.go @@ -170,6 +170,10 @@ func botAliasResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enabled": { // Property: Enabled @@ -193,9 +197,13 @@ func botAliasResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bot_alias_name": { // Property: BotAliasName @@ -290,9 +298,13 @@ func botAliasResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // BotAliasTags is a write-only property. }, "bot_id": { @@ -329,10 +341,14 @@ func botAliasResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The version of a bot.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 5), validate.StringMatch(regexp.MustCompile("^(DRAFT|[0-9]+)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "conversation_log_settings": { // Property: ConversationLogSettings @@ -484,10 +500,14 @@ func botAliasResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key for encrypting audio log files stored in an S3 bucket.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(20, 2048), validate.StringMatch(regexp.MustCompile("^arn:[\\w\\-]+:kms:[\\w\\-]+:[\\d]{12}:(?:key\\/[\\w\\-]+|alias\\/[a-zA-Z0-9:\\/_\\-]{1,256})$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_prefix": { // Property: LogPrefix @@ -525,9 +545,13 @@ func botAliasResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "text_log_settings": { // Property: TextLogSettings @@ -578,13 +602,21 @@ func botAliasResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -597,9 +629,13 @@ func botAliasResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A description of the bot alias. Use the description to help identify the bot alias in lists.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sentiment_analysis_settings": { // Property: SentimentAnalysisSettings @@ -630,6 +666,10 @@ func botAliasResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/lex/bot_resource_gen.go b/internal/aws/lex/bot_resource_gen.go index 36e0bd0b04..f043c98473 100644 --- a/internal/aws/lex/bot_resource_gen.go +++ b/internal/aws/lex/bot_resource_gen.go @@ -48,6 +48,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies whether to build the bot locales after bot creation completes.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // AutoBuildBotLocales is a write-only property. }, "bot_file_s3_location": { @@ -112,13 +116,21 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "For versioned objects, the version of the deployment package object to use. If not specified, the current object version will be used.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // BotFileS3Location is a write-only property. }, "bot_locales": { @@ -4007,9 +4019,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The degree to which the phrase recognition is boosted.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 3), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -4021,15 +4037,23 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description Description: "A description of the resource", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "intents": { // Property: Intents @@ -4041,9 +4065,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A description of the resource", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dialog_code_hook": { // Property: DialogCodeHook @@ -4058,6 +4086,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "fulfillment_code_hook": { // Property: FulfillmentCodeHook @@ -4090,6 +4122,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Determines whether the user can interrupt the start message while it is playing.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "delay_in_seconds": { // Property: DelayInSeconds @@ -4127,6 +4163,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -4159,11 +4199,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -4171,18 +4213,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -4196,6 +4246,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -4214,6 +4268,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -4232,6 +4290,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -4259,6 +4321,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -4291,11 +4357,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -4303,18 +4371,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -4328,6 +4404,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -4346,6 +4426,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -4364,15 +4448,21 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(2), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -4388,15 +4478,23 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "timeout_in_seconds": { // Property: TimeoutInSeconds Description: "The length of time that the fulfillment Lambda function should run before it times out.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 900), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "update_response": { // Property: UpdateResponse @@ -4408,6 +4506,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Determines whether the user can interrupt an update message while it is playing.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "frequency_in_seconds": { // Property: FrequencyInSeconds @@ -4445,6 +4547,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -4477,11 +4583,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -4489,18 +4597,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -4514,6 +4630,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -4532,6 +4652,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -4550,6 +4674,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -4577,6 +4705,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -4609,11 +4741,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -4621,18 +4755,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -4646,6 +4788,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -4664,6 +4810,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -4682,15 +4832,21 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(2), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -4706,10 +4862,18 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "post_fulfillment_status_specification": { // Property: PostFulfillmentStatusSpecification @@ -4726,6 +4890,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates whether the user can interrupt a speech prompt from the bot.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "message_groups_list": { // Property: MessageGroupsList @@ -4754,6 +4922,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -4786,11 +4958,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -4798,18 +4972,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -4823,6 +5005,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -4841,6 +5027,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -4859,6 +5049,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -4886,6 +5080,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -4918,11 +5116,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -4930,18 +5130,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -4955,6 +5163,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -4973,6 +5185,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -4991,15 +5207,21 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(2), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -5015,6 +5237,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "success_response": { // Property: SuccessResponse @@ -5026,6 +5252,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates whether the user can interrupt a speech prompt from the bot.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "message_groups_list": { // Property: MessageGroupsList @@ -5054,6 +5284,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -5086,11 +5320,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -5098,18 +5334,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -5123,6 +5367,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -5141,6 +5389,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -5159,6 +5411,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -5186,6 +5442,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -5218,11 +5478,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -5230,18 +5492,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -5255,6 +5525,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -5273,6 +5547,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -5291,15 +5569,21 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(2), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -5315,6 +5599,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "timeout_response": { // Property: TimeoutResponse @@ -5326,6 +5614,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates whether the user can interrupt a speech prompt from the bot.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "message_groups_list": { // Property: MessageGroupsList @@ -5354,6 +5646,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -5386,11 +5682,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -5398,18 +5696,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -5423,6 +5729,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -5441,6 +5751,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -5459,6 +5773,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -5486,6 +5804,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -5518,11 +5840,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -5530,18 +5854,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -5555,6 +5887,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -5573,6 +5909,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -5591,15 +5931,21 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(2), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -5615,14 +5961,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "input_contexts": { // Property: InputContexts @@ -5642,11 +6000,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "intent_closing_setting": { @@ -5664,6 +6024,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates whether the user can interrupt a speech prompt from the bot.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "message_groups_list": { // Property: MessageGroupsList @@ -5692,6 +6056,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -5724,11 +6092,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -5736,18 +6106,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -5761,6 +6139,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -5779,6 +6161,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -5797,6 +6183,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -5824,6 +6214,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -5856,11 +6250,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -5868,18 +6264,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -5893,6 +6297,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -5911,6 +6319,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -5929,15 +6341,21 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(2), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -5958,10 +6376,18 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: IsActive Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "intent_confirmation_setting": { // Property: IntentConfirmationSetting @@ -5978,6 +6404,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates whether the user can interrupt a speech prompt from the bot.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "message_groups_list": { // Property: MessageGroupsList @@ -6006,6 +6436,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -6038,11 +6472,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -6050,18 +6486,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -6075,6 +6519,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -6093,6 +6541,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -6111,6 +6563,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -6138,6 +6594,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -6170,11 +6630,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -6182,18 +6644,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -6207,6 +6677,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -6225,6 +6699,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -6243,15 +6721,21 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(2), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -6272,6 +6756,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: IsActive Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prompt_specification": { // Property: PromptSpecification @@ -6283,6 +6771,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates whether the user can interrupt a speech prompt from the bot.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_retries": { // Property: MaxRetries @@ -6320,6 +6812,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -6352,11 +6848,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -6364,18 +6862,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -6389,6 +6895,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -6407,6 +6917,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -6425,6 +6939,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -6452,6 +6970,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -6484,11 +7006,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -6496,18 +7020,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -6521,6 +7053,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -6539,6 +7075,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -6557,15 +7097,21 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(2), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -6583,12 +7129,16 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates how a message is selected from a message group among retries.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Random", "Ordered", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -6597,6 +7147,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kendra_configuration": { // Property: KendraConfiguration @@ -6618,19 +7172,31 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A query filter that Amazon Lex sends to Amazon Kendra to filter the response from a query.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 5000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "query_filter_string_enabled": { // Property: QueryFilterStringEnabled Description: "Determines whether the AMAZON.KendraSearchIntent intent uses a custom query string to query the Amazon Kendra index.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -6678,11 +7244,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(10), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "parent_intent_signature": { @@ -6690,6 +7258,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A unique identifier for the built-in intent to base this intent on.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sample_utterances": { // Property: SampleUtterances @@ -6705,8 +7277,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "slot_priorities": { @@ -6736,8 +7310,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "slots": { @@ -6750,9 +7326,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A description of the resource", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "multiple_values_setting": { // Property: MultipleValuesSetting @@ -6763,10 +7343,18 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: AllowMultipleValues Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -6798,6 +7386,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "slot_type_name": { // Property: SlotTypeName @@ -6842,6 +7434,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prompt_specification": { // Property: PromptSpecification @@ -6853,6 +7449,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates whether the user can interrupt a speech prompt from the bot.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_retries": { // Property: MaxRetries @@ -6890,6 +7490,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -6922,11 +7526,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -6934,18 +7540,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -6959,6 +7573,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -6977,6 +7595,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -6995,6 +7617,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -7022,6 +7648,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -7054,11 +7684,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -7066,18 +7698,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -7091,6 +7731,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -7109,6 +7753,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -7127,15 +7775,21 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(2), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -7153,16 +7807,24 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates how a message is selected from a message group among retries.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Random", "Ordered", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sample_utterances": { // Property: SampleUtterances @@ -7178,8 +7840,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "slot_constraint": { @@ -7209,6 +7873,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates whether the user can interrupt a speech prompt from the bot.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "message_groups_list": { // Property: MessageGroupsList @@ -7237,6 +7905,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -7269,11 +7941,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -7281,18 +7955,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -7306,6 +7988,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -7324,6 +8010,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -7342,6 +8032,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -7369,6 +8063,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -7401,11 +8099,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -7413,18 +8113,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -7438,6 +8146,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -7456,6 +8168,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -7474,15 +8190,21 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(2), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -7504,6 +8226,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies whether the bot will wait for a user to respond.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "still_waiting_response": { // Property: StillWaitingResponse @@ -7515,6 +8241,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates whether the user can interrupt a speech prompt from the bot.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "frequency_in_seconds": { // Property: FrequencyInSeconds @@ -7552,6 +8282,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -7584,11 +8318,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -7596,18 +8332,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -7621,6 +8365,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -7639,6 +8387,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -7657,6 +8409,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -7684,6 +8440,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -7716,11 +8476,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -7728,18 +8490,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -7753,6 +8523,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -7771,6 +8545,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -7789,15 +8567,21 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(2), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -7822,6 +8606,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "waiting_response": { // Property: WaitingResponse @@ -7833,6 +8621,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates whether the user can interrupt a speech prompt from the bot.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "message_groups_list": { // Property: MessageGroupsList @@ -7861,6 +8653,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -7893,11 +8689,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -7905,18 +8703,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -7930,6 +8736,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -7948,6 +8758,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -7966,6 +8780,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -7993,6 +8811,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_response_card": { // Property: ImageResponseCard @@ -8025,11 +8847,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "image_url": { @@ -8037,18 +8861,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The URL of an image to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subtitle": { // Property: Subtitle Description: "The subtitle to display on the response card.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 250), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title @@ -8062,6 +8894,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plain_text_message": { // Property: PlainTextMessage @@ -8080,6 +8916,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssml_message": { // Property: SSMLMessage @@ -8098,15 +8938,21 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(2), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -8126,6 +8972,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -8134,16 +8984,24 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(1000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "locale_id": { // Property: LocaleId @@ -8170,9 +9028,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A description of the resource", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "external_source_setting": { // Property: ExternalSourceSetting @@ -8194,10 +9056,14 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The Amazon KMS key required to decrypt the contents of the grammar, if any.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(20, 2048), validate.StringMatch(regexp.MustCompile("^arn:[\\w\\-]+:kms:[\\w\\-]+:[\\d]{12}:(?:key\\/[\\w\\-]+|alias\\/[a-zA-Z0-9:\\/_\\-]{1,256})$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_bucket_name": { // Property: S3BucketName @@ -8222,14 +9088,26 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -8246,6 +9124,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The built-in slot type used as a parent of this slot type.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "slot_type_values": { // Property: SlotTypeValues @@ -8287,21 +9169,25 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(10000), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(10000), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "value_selection_setting": { @@ -8319,15 +9205,23 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Enables using slot values as a custom vocabulary when recognizing user utterances.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "UseSlotValuesAsCustomVocabulary", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "regex_filter": { // Property: RegexFilter @@ -8346,6 +9240,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resolution_strategy": { // Property: ResolutionStrategy @@ -8361,13 +9259,21 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "voice_settings": { // Property: VoiceSettings @@ -8379,12 +9285,16 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { 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.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "standard", "neural", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "voice_id": { // Property: VoiceId @@ -8395,10 +9305,18 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // BotLocales is a write-only property. }, "bot_tags": { @@ -8458,9 +9376,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // BotTags is a write-only property. }, "data_privacy": { @@ -8504,9 +9426,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A description of the resource", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id @@ -8849,6 +9775,10 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enabled": { // Property: Enabled @@ -8872,9 +9802,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "conversation_log_settings": { // Property: ConversationLogSettings @@ -8901,10 +9835,14 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key for encrypting audio log files stored in an S3 bucket.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(20, 2048), validate.StringMatch(regexp.MustCompile("^arn:[\\w\\-]+:kms:[\\w\\-]+:[\\d]{12}:(?:key\\/[\\w\\-]+|alias\\/[a-zA-Z0-9:\\/_\\-]{1,256})$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_prefix": { // Property: LogPrefix @@ -8942,9 +9880,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "text_log_settings": { // Property: TextLogSettings @@ -8995,22 +9937,34 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description Description: "A description of the resource", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sentiment_analysis_settings": { // Property: SentimentAnalysisSettings @@ -9026,10 +9980,18 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "test_bot_alias_tags": { // Property: TestBotAliasTags @@ -9088,9 +10050,13 @@ func botResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // TestBotAliasTags is a write-only property. }, } diff --git a/internal/aws/lex/bot_version_resource_gen.go b/internal/aws/lex/bot_version_resource_gen.go index bec2d227b0..f6e8896466 100644 --- a/internal/aws/lex/bot_version_resource_gen.go +++ b/internal/aws/lex/bot_version_resource_gen.go @@ -151,9 +151,13 @@ func botVersionResourceType(ctx context.Context) (provider.ResourceType, error) Description: "A description of the version. Use the description to help identify the version in lists.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/licensemanager/grant_resource_gen.go b/internal/aws/licensemanager/grant_resource_gen.go index 87f7301f96..531db31242 100644 --- a/internal/aws/licensemanager/grant_resource_gen.go +++ b/internal/aws/licensemanager/grant_resource_gen.go @@ -34,9 +34,13 @@ func grantResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // AllowedOperations is a write-only property. }, "grant_arn": { @@ -64,6 +68,10 @@ func grantResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Name for the created Grant.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "home_region": { // Property: HomeRegion @@ -75,6 +83,10 @@ func grantResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Home region for the created grant.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "license_arn": { // Property: LicenseArn @@ -87,9 +99,13 @@ func grantResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "License Arn for the grant.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "principals": { // Property: Principals @@ -104,10 +120,14 @@ func grantResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), validate.ArrayForEach(validate.StringLenAtMost(2048)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // Principals is a write-only property. }, "status": { @@ -118,6 +138,10 @@ func grantResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "version": { // Property: Version diff --git a/internal/aws/licensemanager/license_resource_gen.go b/internal/aws/licensemanager/license_resource_gen.go index 702110a21f..906e46e55e 100644 --- a/internal/aws/licensemanager/license_resource_gen.go +++ b/internal/aws/licensemanager/license_resource_gen.go @@ -32,6 +32,10 @@ func licenseResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Beneficiary of the license.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "consumption_configuration": { // Property: ConsumptionConfiguration @@ -92,6 +96,10 @@ func licenseResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "provisional_configuration": { // Property: ProvisionalConfiguration @@ -105,11 +113,19 @@ func licenseResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "renew_type": { // Property: RenewType Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -156,11 +172,19 @@ func licenseResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: AllowCheckIn Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_count": { // Property: MaxCount Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -171,6 +195,10 @@ func licenseResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Overage Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "unit": { // Property: Unit @@ -181,6 +209,10 @@ func licenseResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -229,6 +261,10 @@ func licenseResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: SignKey Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -287,9 +323,13 @@ func licenseResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "license_name": { // Property: LicenseName @@ -325,9 +365,13 @@ func licenseResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "ProductSKU of the license.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status @@ -337,6 +381,10 @@ func licenseResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // Status is a write-only property. }, "validity": { diff --git a/internal/aws/lightsail/alarm_resource_gen.go b/internal/aws/lightsail/alarm_resource_gen.go index 0ea01fafa7..bb834626a3 100644 --- a/internal/aws/lightsail/alarm_resource_gen.go +++ b/internal/aws/lightsail/alarm_resource_gen.go @@ -79,6 +79,10 @@ func alarmResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The contact protocols to use for the alarm, such as Email, SMS (text messaging), or both.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "datapoints_to_alarm": { // Property: DatapointsToAlarm @@ -90,6 +94,10 @@ func alarmResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The number of data points that must be not within the specified threshold to trigger the alarm. If you are setting an \"M out of N\" alarm, this value (datapointsToAlarm) is the M.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "evaluation_periods": { // Property: EvaluationPeriods @@ -140,6 +148,10 @@ func alarmResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates whether the alarm is enabled. Notifications are enabled by default if you don't specify this parameter.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "notification_triggers": { // Property: NotificationTriggers @@ -156,6 +168,10 @@ func alarmResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The alarm states that trigger a notification.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "state": { // Property: State @@ -192,6 +208,10 @@ func alarmResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Sets how this alarm will handle missing data points.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/lightsail/bucket_resource_gen.go b/internal/aws/lightsail/bucket_resource_gen.go index 71c0d38abb..eb3880730d 100644 --- a/internal/aws/lightsail/bucket_resource_gen.go +++ b/internal/aws/lightsail/bucket_resource_gen.go @@ -63,16 +63,28 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A Boolean value that indicates whether the access control list (ACL) permissions that are applied to individual objects override the getObject option that is currently specified.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "get_object": { // Property: GetObject Description: "Specifies the anonymous access to all objects in a bucket.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bucket_arn": { // Property: BucketArn @@ -128,6 +140,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies whether to enable or disable versioning of objects in the bucket.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "read_only_access_accounts": { // Property: ReadOnlyAccessAccounts @@ -144,6 +160,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "An array of strings to specify the AWS account IDs that can access the bucket.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resources_receiving_access": { // Property: ResourcesReceivingAccess @@ -160,6 +180,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The names of the Lightsail resources for which to set bucket access.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -209,13 +233,21 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { 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 -.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "url": { // Property: Url diff --git a/internal/aws/lightsail/certificate_resource_gen.go b/internal/aws/lightsail/certificate_resource_gen.go index d08365699b..2ed385f86a 100644 --- a/internal/aws/lightsail/certificate_resource_gen.go +++ b/internal/aws/lightsail/certificate_resource_gen.go @@ -145,13 +145,21 @@ func certificateResourceType(ctx context.Context) (provider.ResourceType, error) 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 -.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/lightsail/container_resource_gen.go b/internal/aws/lightsail/container_resource_gen.go index 48b455d511..016bd221f5 100644 --- a/internal/aws/lightsail/container_resource_gen.go +++ b/internal/aws/lightsail/container_resource_gen.go @@ -170,12 +170,20 @@ func containerResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The launch command for the container.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "container_name": { // Property: ContainerName Description: "The name of the container.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "environment": { // Property: Environment @@ -186,21 +194,37 @@ func containerResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "variable": { // Property: Variable Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image": { // Property: Image Description: "The name of the image used for the container.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ports": { // Property: Ports @@ -211,19 +235,35 @@ func containerResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Port Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocol": { // Property: Protocol Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "public_endpoint": { // Property: PublicEndpoint @@ -235,12 +275,20 @@ func containerResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of the container for the endpoint.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "container_port": { // Property: ContainerPort Description: "The port of the container to which traffic is forwarded to.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "health_check_config": { // Property: HealthCheckConfig @@ -252,48 +300,84 @@ func containerResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The number of consecutive health checks successes required before moving the container to the Healthy state. The default value is 2.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "interval_seconds": { // Property: IntervalSeconds Description: "The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. The default value is 5.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "path": { // Property: Path Description: "The path on the container on which to perform the health check. The default value is /.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "success_codes": { // Property: SuccessCodes Description: "The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. You can specify multiple values (for example, 200,202) or a range of values (for example, 200-299).", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "timeout_seconds": { // Property: TimeoutSeconds Description: "The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. The default value is 2.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "unhealthy_threshold": { // Property: UnhealthyThreshold Description: "The number of consecutive health check failures required before moving the container to the Unhealthy state. The default value is 2.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "is_disabled": { // Property: IsDisabled @@ -305,6 +389,10 @@ func containerResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A Boolean value to indicate whether the container service is disabled.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "power": { // Property: Power @@ -352,16 +440,28 @@ func containerResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: CertificateName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "domain_names": { // Property: DomainNames Description: "An object that describes the configuration for the containers of the deployment.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "scale": { // Property: Scale @@ -448,13 +548,21 @@ func containerResourceType(ctx context.Context) (provider.ResourceType, error) { 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 -.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "url": { // Property: Url diff --git a/internal/aws/lightsail/database_resource_gen.go b/internal/aws/lightsail/database_resource_gen.go index 0b2456adf2..78750cd0a7 100644 --- a/internal/aws/lightsail/database_resource_gen.go +++ b/internal/aws/lightsail/database_resource_gen.go @@ -54,6 +54,10 @@ func databaseResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "When true, enables automated backup retention for your database. Updates are applied during the next maintenance window because this can result in an outage.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ca_certificate_identifier": { // Property: CaCertificateIdentifier @@ -65,6 +69,10 @@ func databaseResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates the certificate that needs to be associated with the database.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "database_arn": { // Property: DatabaseArn @@ -109,9 +117,13 @@ func databaseResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The password for the master user. The password can include any printable ASCII character except \"/\", \"\"\", or \"@\". It cannot contain spaces.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 63), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // MasterUserPassword is a write-only property. }, "master_username": { @@ -143,6 +155,10 @@ func databaseResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The daily time range during which automated backups are created for your new database if automated backups are enabled.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "preferred_maintenance_window": { // Property: PreferredMaintenanceWindow @@ -154,6 +170,10 @@ func databaseResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The weekly time range during which system maintenance can occur on your new database.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "publicly_accessible": { // Property: PubliclyAccessible @@ -165,6 +185,10 @@ func databaseResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies the accessibility options for your new database. A value of true specifies a database that is available to resources outside of your Lightsail account. A value of false specifies a database that is available only to your Lightsail resources in the same region as your database.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "relational_database_blueprint_id": { // Property: RelationalDatabaseBlueprintId @@ -281,52 +305,88 @@ func databaseResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies the valid range of values for the parameter.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "apply_method": { // Property: ApplyMethod Description: "Indicates when parameter updates are applied. Can be immediate or pending-reboot.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "apply_type": { // Property: ApplyType Description: "Specifies the engine-specific parameter type.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "data_type": { // Property: DataType Description: "Specifies the valid data type for the parameter.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description Description: "Provides a description of the parameter.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "is_modifiable": { // Property: IsModifiable Description: "A Boolean value indicating whether the parameter can be modified.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "parameter_name": { // Property: ParameterName Description: "Specifies the name of the parameter.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "parameter_value": { // Property: ParameterValue Description: "Specifies the value of the parameter.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // RelationalDatabaseParameters is a write-only property. }, "rotate_master_user_password": { @@ -339,6 +399,10 @@ func databaseResourceType(ctx context.Context) (provider.ResourceType, error) { 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.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // RotateMasterUserPassword is a write-only property. }, "tags": { @@ -389,13 +453,21 @@ func databaseResourceType(ctx context.Context) (provider.ResourceType, error) { 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 -.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/lightsail/disk_resource_gen.go b/internal/aws/lightsail/disk_resource_gen.go index c984d26505..adc3090f24 100644 --- a/internal/aws/lightsail/disk_resource_gen.go +++ b/internal/aws/lightsail/disk_resource_gen.go @@ -94,19 +94,28 @@ func diskResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The daily time when an automatic snapshot will be created.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[0-9]{2}:00$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status Description: "Status of the Addon", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Enabling", @@ -118,12 +127,17 @@ func diskResourceType(ctx context.Context) (provider.ResourceType, error) { "Failed", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "attached_to": { @@ -262,12 +276,20 @@ func diskResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The Availability Zone in which to create your disk. Use the following format: us-east-2a (case sensitive). Be sure to add the include Availability Zones parameter to your request.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "region_name": { // Property: RegionName Description: "The Region Name in which to create your disk.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -394,13 +416,21 @@ func diskResourceType(ctx context.Context) (provider.ResourceType, error) { 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 -.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/lightsail/distribution_resource_gen.go b/internal/aws/lightsail/distribution_resource_gen.go index c7f743c498..b5c6f4744b 100644 --- a/internal/aws/lightsail/distribution_resource_gen.go +++ b/internal/aws/lightsail/distribution_resource_gen.go @@ -149,18 +149,30 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error Description: "The HTTP methods that are processed and forwarded to the distribution's origin.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cached_http_methods": { // Property: CachedHTTPMethods Description: "The HTTP method responses that are cached by your distribution.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "default_ttl": { // Property: DefaultTTL Description: "The default amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the content has been updated.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "forwarded_cookies": { // Property: ForwardedCookies @@ -172,16 +184,28 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error Description: "The specific cookies to forward to your distribution's origin.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "option": { // Property: Option Description: "Specifies which cookies to forward to the distribution's origin for a cache behavior: all, none, or allow-list to forward only the cookies specified in the cookiesAllowList parameter.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "forwarded_headers": { // Property: ForwardedHeaders @@ -193,16 +217,28 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error Description: "The specific headers to forward to your distribution's origin.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "option": { // Property: Option Description: "The headers that you want your distribution to forward to your origin and base caching on.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "forwarded_query_strings": { // Property: ForwardedQueryStrings @@ -214,32 +250,56 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error Description: "Indicates whether the distribution forwards and caches based on query strings.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "query_strings_allow_list": { // Property: QueryStringsAllowList Description: "The specific query strings that the distribution forwards to the origin.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "maximum_ttl": { // Property: MaximumTTL Description: "The maximum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "minimum_ttl": { // Property: MinimumTTL Description: "The minimum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cache_behaviors": { // Property: CacheBehaviors @@ -273,16 +333,28 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error Description: "The cache behavior for the specified path.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "path": { // Property: Path Description: "The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/*), and file types (*.html, *jpg, *js). Directories and file paths are case-sensitive.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "certificate_name": { // Property: CertificateName @@ -294,6 +366,10 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error Description: "The certificate attached to the Distribution.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "default_cache_behavior": { // Property: DefaultCacheBehavior @@ -317,6 +393,10 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error Description: "The cache behavior of the distribution.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -378,6 +458,10 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error Description: "Indicates whether the distribution is enabled.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "origin": { // Property: Origin @@ -409,18 +493,30 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error Description: "The name of the origin resource.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocol_policy": { // Property: ProtocolPolicy Description: "The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "region_name": { // Property: RegionName Description: "The AWS Region name of the origin resource.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -488,13 +584,21 @@ func distributionResourceType(ctx context.Context) (provider.ResourceType, error 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 -.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/lightsail/instance_resource_gen.go b/internal/aws/lightsail/instance_resource_gen.go index f528e8609b..647484375a 100644 --- a/internal/aws/lightsail/instance_resource_gen.go +++ b/internal/aws/lightsail/instance_resource_gen.go @@ -94,19 +94,28 @@ func instanceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The daily time when an automatic snapshot will be created.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[0-9]{2}:00$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status Description: "Status of the Addon", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Enabling", @@ -118,12 +127,17 @@ func instanceResourceType(ctx context.Context) (provider.ResourceType, error) { "Failed", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "availability_zone": { @@ -273,12 +287,20 @@ func instanceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Instance attached to the disk.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "attachment_state": { // Property: AttachmentState Description: "Attachment state of the disk.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "disk_name": { // Property: DiskName @@ -295,12 +317,20 @@ func instanceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "IOPS of disk.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "is_system_disk": { // Property: IsSystemDisk Description: "Is the Attached disk is the system disk of the Instance.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "path": { // Property: Path @@ -313,10 +343,18 @@ func instanceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Size of the disk attached to the Instance.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ram_size_in_gb": { // Property: RamSizeInGb @@ -330,6 +368,10 @@ func instanceResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_arn": { // Property: InstanceArn @@ -388,6 +430,10 @@ func instanceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of your key pair.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "location": { // Property: Location @@ -431,6 +477,10 @@ func instanceResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "networking": { // Property: Networking @@ -541,6 +591,10 @@ func instanceResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ports": { // Property: Ports @@ -552,26 +606,40 @@ func instanceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Access Direction for Protocol of the Instance(inbound/outbound).", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "access_from": { // Property: AccessFrom Description: "Access From Protocol of the Instance.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "access_type": { // Property: AccessType Description: "Access Type Protocol of the Instance.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cidr_list_aliases": { // Property: CidrListAliases Description: "cidr List Aliases", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "cidrs": { @@ -579,8 +647,10 @@ func instanceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "cidrs", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "common_name": { @@ -588,20 +658,30 @@ func instanceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "CommonName for Protocol of the Instance.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "from_port": { // Property: FromPort Description: "From Port of the Instance.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ipv_6_cidrs": { // Property: Ipv6Cidrs Description: "IPv6 Cidrs", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "protocol": { @@ -609,12 +689,20 @@ func instanceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Port Protocol of the Instance.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "to_port": { // Property: ToPort Description: "To Port of the Instance.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -623,6 +711,10 @@ func instanceResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "private_ip_address": { // Property: PrivateIpAddress @@ -722,6 +814,10 @@ func instanceResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "support_code": { // Property: SupportCode @@ -785,13 +881,21 @@ func instanceResourceType(ctx context.Context) (provider.ResourceType, error) { 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 -.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "user_data": { // Property: UserData @@ -803,6 +907,10 @@ func instanceResourceType(ctx context.Context) (provider.ResourceType, error) { 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.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "user_name": { // Property: UserName diff --git a/internal/aws/lightsail/load_balancer_resource_gen.go b/internal/aws/lightsail/load_balancer_resource_gen.go index fe2b96295d..c33dd4d767 100644 --- a/internal/aws/lightsail/load_balancer_resource_gen.go +++ b/internal/aws/lightsail/load_balancer_resource_gen.go @@ -38,6 +38,10 @@ func loadBalancerResourceType(ctx context.Context) (provider.ResourceType, error Description: "The names of the instances attached to the load balancer.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "health_check_path": { // Property: HealthCheckPath @@ -49,6 +53,10 @@ func loadBalancerResourceType(ctx context.Context) (provider.ResourceType, error Description: "The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website (e.g., \"/\").", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_port": { // Property: InstancePort @@ -120,6 +128,10 @@ func loadBalancerResourceType(ctx context.Context) (provider.ResourceType, error Description: "Configuration option to enable session stickiness.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "session_stickiness_lb_cookie_duration_seconds": { // Property: SessionStickinessLBCookieDurationSeconds @@ -131,6 +143,10 @@ func loadBalancerResourceType(ctx context.Context) (provider.ResourceType, error Description: "Configuration option to adjust session stickiness cookie duration parameter.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -180,13 +196,21 @@ func loadBalancerResourceType(ctx context.Context) (provider.ResourceType, error 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 -.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tls_policy_name": { // Property: TlsPolicyName @@ -198,6 +222,10 @@ func loadBalancerResourceType(ctx context.Context) (provider.ResourceType, error Description: "The name of the TLS policy to apply to the load balancer.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/lightsail/load_balancer_tls_certificate_resource_gen.go b/internal/aws/lightsail/load_balancer_tls_certificate_resource_gen.go index 3684e83935..58a3c416db 100644 --- a/internal/aws/lightsail/load_balancer_tls_certificate_resource_gen.go +++ b/internal/aws/lightsail/load_balancer_tls_certificate_resource_gen.go @@ -82,6 +82,10 @@ func loadBalancerTlsCertificateResourceType(ctx context.Context) (provider.Resou Description: "A Boolean value that indicates whether HTTPS redirection is enabled for the load balancer.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "is_attached": { // Property: IsAttached @@ -93,6 +97,10 @@ func loadBalancerTlsCertificateResourceType(ctx context.Context) (provider.Resou Description: "When true, the SSL/TLS certificate is attached to the Lightsail load balancer.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "load_balancer_name": { // Property: LoadBalancerName diff --git a/internal/aws/lightsail/static_ip_resource_gen.go b/internal/aws/lightsail/static_ip_resource_gen.go index aaffd763a9..5ea88915d5 100644 --- a/internal/aws/lightsail/static_ip_resource_gen.go +++ b/internal/aws/lightsail/static_ip_resource_gen.go @@ -31,6 +31,10 @@ func staticIpResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The instance where the static IP is attached.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ip_address": { // Property: IpAddress diff --git a/internal/aws/location/geofence_collection_resource_gen.go b/internal/aws/location/geofence_collection_resource_gen.go index 2f66ca14cc..3eb3158c32 100644 --- a/internal/aws/location/geofence_collection_resource_gen.go +++ b/internal/aws/location/geofence_collection_resource_gen.go @@ -153,6 +153,10 @@ func geofenceCollectionResourceType(ctx context.Context) (provider.ResourceType, // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "update_time": { // Property: UpdateTime diff --git a/internal/aws/location/place_index_resource_gen.go b/internal/aws/location/place_index_resource_gen.go index 1ed24441c5..552cfca2f6 100644 --- a/internal/aws/location/place_index_resource_gen.go +++ b/internal/aws/location/place_index_resource_gen.go @@ -86,12 +86,16 @@ func placeIndexResourceType(ctx context.Context) (provider.ResourceType, error) // Property: IntendedUse Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "SingleUse", "Storage", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/location/tracker_resource_gen.go b/internal/aws/location/tracker_resource_gen.go index 76961b6fd0..be7f899188 100644 --- a/internal/aws/location/tracker_resource_gen.go +++ b/internal/aws/location/tracker_resource_gen.go @@ -146,6 +146,10 @@ func trackerResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tracker_arn": { // Property: TrackerArn diff --git a/internal/aws/logs/log_group_resource_gen.go b/internal/aws/logs/log_group_resource_gen.go index 1cdd2ae164..244a752b21 100644 --- a/internal/aws/logs/log_group_resource_gen.go +++ b/internal/aws/logs/log_group_resource_gen.go @@ -48,9 +48,13 @@ func logGroupResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_group_name": { // Property: LogGroupName @@ -107,6 +111,7 @@ func logGroupResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntInSlice([]int{ 1, @@ -132,6 +137,9 @@ func logGroupResourceType(ctx context.Context) (provider.ResourceType, error) { 3653, }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -189,6 +197,10 @@ func logGroupResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/logs/query_definition_resource_gen.go b/internal/aws/logs/query_definition_resource_gen.go index 3c3e6355ac..d39d2946ff 100644 --- a/internal/aws/logs/query_definition_resource_gen.go +++ b/internal/aws/logs/query_definition_resource_gen.go @@ -41,12 +41,14 @@ func queryDefinitionResourceType(ctx context.Context) (provider.ResourceType, er Description: "Optionally define specific log groups as part of your query definition", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(1, 512)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("[\\.\\-_/#A-Za-z0-9]+"), "")), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "name": { diff --git a/internal/aws/lookoutequipment/inference_scheduler_resource_gen.go b/internal/aws/lookoutequipment/inference_scheduler_resource_gen.go index 314626076b..14a090a52c 100644 --- a/internal/aws/lookoutequipment/inference_scheduler_resource_gen.go +++ b/internal/aws/lookoutequipment/inference_scheduler_resource_gen.go @@ -35,9 +35,13 @@ func inferenceSchedulerResourceType(ctx context.Context) (provider.ResourceType, Description: "A period of time (in minutes) by which inference on the data is delayed after the data starts.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 60), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "data_input_configuration": { // Property: DataInputConfiguration @@ -110,32 +114,48 @@ func inferenceSchedulerResourceType(ctx context.Context) (provider.ResourceType, Description: "Indicates the delimiter character used between items in the data.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1), validate.StringMatch(regexp.MustCompile("^(\\-|\\_|\\s)?$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "timestamp_format": { // Property: TimestampFormat Description: "The format of the timestamp, whether Epoch time, or standard, with or without hyphens (-).", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^EPOCH|yyyy-MM-dd-HH-mm-ss|yyyyMMddHHmmss$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "input_time_zone_offset": { // Property: InputTimeZoneOffset Description: "Indicates the difference between your time zone and Greenwich Mean Time (GMT).", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^(\\+|\\-)[0-9]{2}\\:[0-9]{2}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_input_configuration": { // Property: S3InputConfiguration @@ -155,9 +175,13 @@ func inferenceSchedulerResourceType(ctx context.Context) (provider.ResourceType, // Property: Prefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -216,9 +240,13 @@ func inferenceSchedulerResourceType(ctx context.Context) (provider.ResourceType, Description: "The ID number for the AWS KMS key used to encrypt the inference output.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_output_configuration": { // Property: S3OutputConfiguration @@ -238,9 +266,13 @@ func inferenceSchedulerResourceType(ctx context.Context) (provider.ResourceType, // Property: Prefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -438,9 +470,13 @@ func inferenceSchedulerResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/lookoutmetrics/alert_resource_gen.go b/internal/aws/lookoutmetrics/alert_resource_gen.go index 507813db85..8c812755d8 100644 --- a/internal/aws/lookoutmetrics/alert_resource_gen.go +++ b/internal/aws/lookoutmetrics/alert_resource_gen.go @@ -110,6 +110,10 @@ func alertResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sns_configuration": { // Property: SNSConfiguration @@ -139,6 +143,10 @@ func alertResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/lookoutmetrics/anomaly_detector_resource_gen.go b/internal/aws/lookoutmetrics/anomaly_detector_resource_gen.go index a0eb77a27c..a27474899e 100644 --- a/internal/aws/lookoutmetrics/anomaly_detector_resource_gen.go +++ b/internal/aws/lookoutmetrics/anomaly_detector_resource_gen.go @@ -79,10 +79,14 @@ func anomalyDetectorResourceType(ctx context.Context) (provider.ResourceType, er Description: "A description for the AnomalyDetector.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile(".*\\S.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "anomaly_detector_name": { // Property: AnomalyDetectorName @@ -134,10 +138,14 @@ func anomalyDetectorResourceType(ctx context.Context) (provider.ResourceType, er Description: "KMS key used to encrypt the AnomalyDetector data", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(20, 2048), validate.StringMatch(regexp.MustCompile("arn:aws.*:kms:.*:[0-9]{12}:key/.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "metric_set_list": { // Property: MetricSetList @@ -574,6 +582,7 @@ func anomalyDetectorResourceType(ctx context.Context) (provider.ResourceType, er Description: "Dimensions for this MetricSet.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(0), validate.ArrayForEach(validate.StringLenBetween(1, 63)), @@ -581,6 +590,7 @@ func anomalyDetectorResourceType(ctx context.Context) (provider.ResourceType, er }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "metric_list": { @@ -614,10 +624,14 @@ func anomalyDetectorResourceType(ctx context.Context) (provider.ResourceType, er // Property: Namespace Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), validate.StringMatch(regexp.MustCompile("[^:].*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -634,16 +648,21 @@ func anomalyDetectorResourceType(ctx context.Context) (provider.ResourceType, er Description: "A description for the MetricSet.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile(".*\\S.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "metric_set_frequency": { // Property: MetricSetFrequency Description: "A frequency period to aggregate the data", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PT5M", @@ -652,6 +671,9 @@ func anomalyDetectorResourceType(ctx context.Context) (provider.ResourceType, er "P1D", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "metric_set_name": { // Property: MetricSetName @@ -692,6 +714,10 @@ func anomalyDetectorResourceType(ctx context.Context) (provider.ResourceType, er }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cloudwatch_config": { // Property: CloudwatchConfig @@ -709,6 +735,10 @@ func anomalyDetectorResourceType(ctx context.Context) (provider.ResourceType, er }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rds_source_config": { // Property: RDSSourceConfig @@ -804,6 +834,10 @@ func anomalyDetectorResourceType(ctx context.Context) (provider.ResourceType, er }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "redshift_source_config": { // Property: RedshiftSourceConfig @@ -899,6 +933,10 @@ func anomalyDetectorResourceType(ctx context.Context) (provider.ResourceType, er }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_source_config": { // Property: S3SourceConfig @@ -916,57 +954,85 @@ func anomalyDetectorResourceType(ctx context.Context) (provider.ResourceType, er // Property: Charset Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(63), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9][a-zA-Z0-9\\-_]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "contains_header": { // Property: ContainsHeader Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "delimiter": { // Property: Delimiter Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1), validate.StringMatch(regexp.MustCompile("[^\\r\\n]"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "file_compression": { // Property: FileCompression Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", "GZIP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "header_list": { // Property: HeaderList Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(1, 63)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9][a-zA-Z0-9\\-_]*"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "quote_symbol": { // Property: QuoteSymbol Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1), validate.StringMatch(regexp.MustCompile("[^\\r\\n]|^$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "json_format_descriptor": { // Property: JsonFormatDescriptor @@ -976,25 +1042,37 @@ func anomalyDetectorResourceType(ctx context.Context) (provider.ResourceType, er // Property: Charset Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(63), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9][a-zA-Z0-9\\-_]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "file_compression": { // Property: FileCompression Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", "GZIP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1004,11 +1082,15 @@ func anomalyDetectorResourceType(ctx context.Context) (provider.ResourceType, er // Property: HistoricalDataPathList Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 1), validate.ArrayForEach(validate.StringLenAtMost(1024)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^s3://[a-z0-9].+$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleArn @@ -1023,15 +1105,23 @@ func anomalyDetectorResourceType(ctx context.Context) (provider.ResourceType, er // Property: TemplatedPathList Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 1), validate.ArrayForEach(validate.StringLenAtMost(1024)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^s3://[a-zA-Z0-9_\\-\\/ {}=]+$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1042,9 +1132,13 @@ func anomalyDetectorResourceType(ctx context.Context) (provider.ResourceType, er Description: "Offset, in seconds, between the frequency interval and the time at which the metrics are available.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 432000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "timestamp_column": { // Property: TimestampColumn @@ -1055,33 +1149,49 @@ func anomalyDetectorResourceType(ctx context.Context) (provider.ResourceType, er Description: "A timestamp format for the timestamps in the dataset", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(63), validate.StringMatch(regexp.MustCompile(".*\\S.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "column_name": { // Property: ColumnName Description: "Name of a column in the data.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 63), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9][a-zA-Z0-9\\-_]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "timezone": { // Property: Timezone Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(60), validate.StringMatch(regexp.MustCompile(".*\\S.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/m2/environment_resource_gen.go b/internal/aws/m2/environment_resource_gen.go index 1a0b8d76f3..561107a085 100644 --- a/internal/aws/m2/environment_resource_gen.go +++ b/internal/aws/m2/environment_resource_gen.go @@ -79,9 +79,13 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The version of the runtime engine for the environment.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^\\S{1,10}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "environment_arn": { // Property: EnvironmentArn @@ -145,6 +149,10 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_type": { // Property: InstanceType @@ -190,9 +198,13 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Configures a desired maintenance window for the environment. If you do not provide a value, a random system-generated value will be assigned.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^\\S{1,50}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "publicly_accessible": { // Property: PubliclyAccessible @@ -320,6 +332,10 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "fsx": { // Property: Fsx @@ -347,6 +363,10 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -402,6 +422,10 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/macie/allow_list_resource_gen.go b/internal/aws/macie/allow_list_resource_gen.go index 7ab9444660..f088557944 100644 --- a/internal/aws/macie/allow_list_resource_gen.go +++ b/internal/aws/macie/allow_list_resource_gen.go @@ -73,6 +73,10 @@ func allowListResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The S3 object key for the AllowList.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_words_list": { // Property: S3WordsList @@ -92,6 +96,10 @@ func allowListResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -107,6 +115,10 @@ func allowListResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Description of AllowList.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id @@ -202,8 +214,10 @@ func allowListResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/macie/findings_filter_resource_gen.go b/internal/aws/macie/findings_filter_resource_gen.go index 5b65e08b81..c74b613221 100644 --- a/internal/aws/macie/findings_filter_resource_gen.go +++ b/internal/aws/macie/findings_filter_resource_gen.go @@ -36,12 +36,16 @@ func findingsFilterResourceType(ctx context.Context) (provider.ResourceType, err Description: "Findings filter action.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ARCHIVE", "NOOP", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "arn": { // Property: Arn @@ -67,6 +71,10 @@ func findingsFilterResourceType(ctx context.Context) (provider.ResourceType, err Description: "Findings filter description", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "finding_criteria": { // Property: FindingCriteria @@ -129,35 +137,63 @@ func findingsFilterResourceType(ctx context.Context) (provider.ResourceType, err // Property: eq Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "gt": { // Property: gt Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "gte": { // Property: gte Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lt": { // Property: lt Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lte": { // Property: lte Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "neq": { // Property: neq Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -189,11 +225,19 @@ func findingsFilterResourceType(ctx context.Context) (provider.ResourceType, err // Property: Id Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -237,6 +281,10 @@ func findingsFilterResourceType(ctx context.Context) (provider.ResourceType, err Description: "Findings filter position.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/mediaconnect/flow_entitlement_resource_gen.go b/internal/aws/mediaconnect/flow_entitlement_resource_gen.go index 4ba33d558b..3ca71aa666 100644 --- a/internal/aws/mediaconnect/flow_entitlement_resource_gen.go +++ b/internal/aws/mediaconnect/flow_entitlement_resource_gen.go @@ -132,12 +132,20 @@ func flowEntitlementResourceType(ctx context.Context) (provider.ResourceType, er Description: "A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "device_id": { // Property: DeviceId Description: "The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key_type": { // Property: KeyType @@ -161,12 +169,20 @@ func flowEntitlementResourceType(ctx context.Context) (provider.ResourceType, er Description: "The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_id": { // Property: ResourceId Description: "An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleArn @@ -179,16 +195,28 @@ func flowEntitlementResourceType(ctx context.Context) (provider.ResourceType, er Description: " The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "url": { // Property: Url Description: "The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "entitlement_arn": { // Property: EntitlementArn @@ -218,12 +246,16 @@ func flowEntitlementResourceType(ctx context.Context) (provider.ResourceType, er Description: " An indication of whether the entitlement is enabled.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ENABLED", "DISABLED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "flow_arn": { // Property: FlowArn diff --git a/internal/aws/mediaconnect/flow_output_resource_gen.go b/internal/aws/mediaconnect/flow_output_resource_gen.go index 825a08df54..9426c7e808 100644 --- a/internal/aws/mediaconnect/flow_output_resource_gen.go +++ b/internal/aws/mediaconnect/flow_output_resource_gen.go @@ -35,6 +35,10 @@ func flowOutputResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The range of IP addresses that should be allowed to initiate output requests to this flow. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -46,6 +50,10 @@ func flowOutputResourceType(ctx context.Context) (provider.ResourceType, error) Description: "A description of the output.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination": { // Property: Destination @@ -57,6 +65,10 @@ func flowOutputResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The address where you want to send the output.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption": { // Property: Encryption @@ -106,6 +118,7 @@ func flowOutputResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "aes128", @@ -113,6 +126,9 @@ func flowOutputResourceType(ctx context.Context) (provider.ResourceType, error) "aes256", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key_type": { // Property: KeyType @@ -146,6 +162,10 @@ func flowOutputResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "flow_arn": { // Property: FlowArn @@ -168,6 +188,10 @@ func flowOutputResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The maximum latency in milliseconds. This parameter applies only to RIST-based and Zixi-based streams.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_latency": { // Property: MinLatency @@ -179,6 +203,10 @@ func flowOutputResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The minimum latency in milliseconds.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -220,6 +248,10 @@ func flowOutputResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The port to use when content is distributed to this output.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocol": { // Property: Protocol @@ -260,6 +292,10 @@ func flowOutputResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The remote ID for the Zixi-pull stream.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "smoothing_latency": { // Property: SmoothingLatency @@ -271,6 +307,10 @@ func flowOutputResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stream_id": { // Property: StreamId @@ -282,6 +322,10 @@ func flowOutputResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_interface_attachment": { // Property: VpcInterfaceAttachment @@ -305,10 +349,18 @@ func flowOutputResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The name of the VPC interface to use for this output.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/mediaconnect/flow_resource_gen.go b/internal/aws/mediaconnect/flow_resource_gen.go index e10ffed321..2ea7588200 100644 --- a/internal/aws/mediaconnect/flow_resource_gen.go +++ b/internal/aws/mediaconnect/flow_resource_gen.go @@ -225,6 +225,7 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "aes128", @@ -232,18 +233,29 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "aes256", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "constant_initialization_vector": { // Property: ConstantInitializationVector Description: "A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "device_id": { // Property: DeviceId Description: "The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key_type": { // Property: KeyType @@ -268,12 +280,20 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_id": { // Property: ResourceId Description: "An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleArn @@ -286,28 +306,48 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { Description: " The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "url": { // Property: Url Description: "The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description Description: "A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "entitlement_arn": { // Property: EntitlementArn Description: "The ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator's flow.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ingest_ip": { // Property: IngestIp @@ -323,12 +363,20 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The port that the flow will be listening on for incoming content.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_bitrate": { // Property: MaxBitrate Description: "The smoothing max bitrate for RIST, RTP, and RTP-FEC streams.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_latency": { // Property: MaxLatency @@ -368,6 +416,7 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The protocol that is used by the source or output.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "zixi-push", @@ -377,6 +426,9 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { "srt-listener", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_arn": { // Property: SourceArn @@ -401,18 +453,30 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_interface_name": { // Property: VpcInterfaceName Description: "The name of the VPC Interface this Source is configured with.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "whitelist_cidr": { // Property: WhitelistCidr Description: "The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -447,21 +511,33 @@ func flowResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Search window time to look for dash-7 packets", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "state": { // Property: State Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ENABLED", "DISABLED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/mediaconnect/flow_source_resource_gen.go b/internal/aws/mediaconnect/flow_source_resource_gen.go index aa9118d044..df95cbd701 100644 --- a/internal/aws/mediaconnect/flow_source_resource_gen.go +++ b/internal/aws/mediaconnect/flow_source_resource_gen.go @@ -103,12 +103,20 @@ func flowSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "device_id": { // Property: DeviceId Description: "The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key_type": { // Property: KeyType @@ -132,12 +140,20 @@ func flowSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_id": { // Property: ResourceId Description: "An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleArn @@ -150,16 +166,28 @@ func flowSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: " The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "url": { // Property: Url Description: "The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -182,6 +210,10 @@ func flowSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator's flow.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "flow_arn": { // Property: FlowArn @@ -193,6 +225,10 @@ func flowSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The ARN of the flow.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ingest_ip": { // Property: IngestIp @@ -218,6 +254,10 @@ func flowSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The port that the flow will be listening on for incoming content.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_bitrate": { // Property: MaxBitrate @@ -229,6 +269,10 @@ func flowSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The smoothing max bitrate for RIST, RTP, and RTP-FEC streams.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_latency": { // Property: MaxLatency @@ -277,6 +321,7 @@ func flowSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The protocol that is used by the source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "zixi-push", @@ -285,6 +330,9 @@ func flowSourceResourceType(ctx context.Context) (provider.ResourceType, error) "rist", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_arn": { // Property: SourceArn @@ -324,6 +372,10 @@ func flowSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_interface_name": { // Property: VpcInterfaceName @@ -335,6 +387,10 @@ func flowSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The name of the VPC Interface this Source is configured with.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "whitelist_cidr": { // Property: WhitelistCidr @@ -346,6 +402,10 @@ func flowSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/mediapackage/asset_resource_gen.go b/internal/aws/mediapackage/asset_resource_gen.go index cd40284901..2922e058f1 100644 --- a/internal/aws/mediapackage/asset_resource_gen.go +++ b/internal/aws/mediapackage/asset_resource_gen.go @@ -130,6 +130,10 @@ func assetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The resource ID to include in SPEKE key requests.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_arn": { // Property: SourceArn @@ -193,9 +197,13 @@ func assetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/mediapackage/channel_resource_gen.go b/internal/aws/mediapackage/channel_resource_gen.go index 61505fc1b9..c6d3db7d6a 100644 --- a/internal/aws/mediapackage/channel_resource_gen.go +++ b/internal/aws/mediapackage/channel_resource_gen.go @@ -46,6 +46,10 @@ func channelResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A short text description of the Channel.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "egress_access_logs": { // Property: EgressAccessLogs @@ -72,13 +76,21 @@ func channelResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Sets a custom AWS CloudWatch log group name for access logs. If a log group name isn't specified, the defaults are used: /aws/MediaPackage/EgressAccessLogs for egress access logs and /aws/MediaPackage/IngressAccessLogs for ingress access logs.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "hls_ingest": { // Property: HlsIngest @@ -130,28 +142,48 @@ func channelResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The system generated unique identifier for the IngestEndpoint", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "password": { // Property: Password Description: "The system generated password for ingest authentication.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "url": { // Property: Url Description: "The ingest URL to which the source stream should be sent.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "username": { // Property: Username Description: "The system generated username for ingest authentication.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -205,13 +237,21 @@ func channelResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Sets a custom AWS CloudWatch log group name for access logs. If a log group name isn't specified, the defaults are used: /aws/MediaPackage/EgressAccessLogs for egress access logs and /aws/MediaPackage/IngressAccessLogs for ingress access logs.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags diff --git a/internal/aws/mediapackage/origin_endpoint_resource_gen.go b/internal/aws/mediapackage/origin_endpoint_resource_gen.go index 3630d150bb..fa6db61aa0 100644 --- a/internal/aws/mediapackage/origin_endpoint_resource_gen.go +++ b/internal/aws/mediapackage/origin_endpoint_resource_gen.go @@ -76,6 +76,10 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "channel_id": { // Property: ChannelId @@ -322,15 +326,23 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err Description: "An optional 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting blocks. If you don't specify a value, then MediaPackage creates the constant initialization vector (IV).", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(32, 32), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key_rotation_interval_seconds": { // Property: KeyRotationIntervalSeconds Description: "Time (in seconds) between each encryption key rotation.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "speke_key_provider": { // Property: SpekeKeyProvider @@ -342,6 +354,10 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err Description: "An Amazon Resource Name (ARN) of a Certificate Manager certificate that MediaPackage will use for enforcing secure end-to-end data transfer with the key provider service.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption_contract_configuration": { // Property: EncryptionContractConfiguration @@ -386,6 +402,10 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_id": { // Property: ResourceId @@ -418,6 +438,10 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "hls_manifests": { // Property: HlsManifests @@ -429,6 +453,7 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err Description: "This setting controls how ad markers are included in the packaged OriginEndpoint. \"NONE\" will omit all SCTE-35 ad markers from the output. \"PASSTHROUGH\" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. \"SCTE35_ENHANCED\" generates ad markers and blackout tags based on SCTE-35 messages in the input source. \"DATERANGE\" inserts EXT-X-DATERANGE tags to signal ad and program transition events in HLS and CMAF manifests. For this option, you must set a programDateTimeIntervalSeconds value that is greater than 0.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", @@ -437,12 +462,16 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err "DATERANGE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ad_triggers": { // Property: AdTriggers Description: "A list of SCTE-35 message types that are treated as ad markers in the output. If empty, no ad markers are output. Specify multiple items to create ad markers for all of the included message types.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "SPLICE_INSERT", @@ -455,12 +484,16 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err "DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ads_on_delivery_restrictions": { // Property: AdsOnDeliveryRestrictions Description: "This setting allows the delivery restriction flags on SCTE-35 segmentation descriptors to determine whether a message signals an ad. Choosing \"NONE\" means no SCTE-35 messages become ads. Choosing \"RESTRICTED\" means SCTE-35 messages of the types specified in AdTriggers that contain delivery restrictions will be treated as ads. Choosing \"UNRESTRICTED\" means SCTE-35 messages of the types specified in AdTriggers that do not contain delivery restrictions will be treated as ads. Choosing \"BOTH\" means all SCTE-35 messages of the types specified in AdTriggers will be treated as ads. Note that Splice Insert messages do not have these flags and are always treated as ads if specified in AdTriggers.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", @@ -469,6 +502,9 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err "BOTH", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id @@ -481,18 +517,27 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err Description: "When enabled, an I-Frame only stream will be included in the output.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "manifest_name": { // Property: ManifestName Description: "An optional short string appended to the end of the OriginEndpoint URL. If not specified, defaults to the manifestName for the OriginEndpoint.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "playlist_type": { // Property: PlaylistType Description: "The HTTP Live Streaming (HLS) playlist type. When either \"EVENT\" or \"VOD\" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", @@ -500,40 +545,67 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err "VOD", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "playlist_window_seconds": { // Property: PlaylistWindowSeconds Description: "Time window (in seconds) contained in each parent manifest.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "program_date_time_interval_seconds": { // Property: ProgramDateTimeIntervalSeconds Description: "The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "url": { // Property: Url Description: "The URL of the packaged OriginEndpoint for consumption.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "segment_duration_seconds": { // Property: SegmentDurationSeconds Description: "Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "segment_prefix": { // Property: SegmentPrefix Description: "An optional custom string that is prepended to the name of each segment. If not specified, it defaults to the ChannelId.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stream_selection": { // Property: StreamSelection @@ -545,18 +617,27 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err Description: "The maximum video bitrate (bps) to include in output.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_video_bits_per_second": { // Property: MinVideoBitsPerSecond Description: "The minimum video bitrate (bps) to include in output.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stream_order": { // Property: StreamOrder Description: "A directive that determines the order of streams in the output.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ORIGINAL", @@ -564,14 +645,25 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err "VIDEO_BITRATE_DESCENDING", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dash_package": { // Property: DashPackage @@ -805,6 +897,7 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err Description: "A list of SCTE-35 message types that are treated as ad markers in the output. If empty, no ad markers are output. Specify multiple items to create ad markers for all of the included message types.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "SPLICE_INSERT", @@ -817,12 +910,16 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err "DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ads_on_delivery_restrictions": { // Property: AdsOnDeliveryRestrictions Description: "This setting allows the delivery restriction flags on SCTE-35 segmentation descriptors to determine whether a message signals an ad. Choosing \"NONE\" means no SCTE-35 messages become ads. Choosing \"RESTRICTED\" means SCTE-35 messages of the types specified in AdTriggers that contain delivery restrictions will be treated as ads. Choosing \"UNRESTRICTED\" means SCTE-35 messages of the types specified in AdTriggers that do not contain delivery restrictions will be treated as ads. Choosing \"BOTH\" means all SCTE-35 messages of the types specified in AdTriggers will be treated as ads. Note that Splice Insert messages do not have these flags and are always treated as ads if specified in AdTriggers.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", @@ -831,6 +928,9 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err "BOTH", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption": { // Property: Encryption @@ -842,6 +942,10 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err Description: "Time (in seconds) between each encryption key rotation.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "speke_key_provider": { // Property: SpekeKeyProvider @@ -853,6 +957,10 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err Description: "An Amazon Resource Name (ARN) of a Certificate Manager certificate that MediaPackage will use for enforcing secure end-to-end data transfer with the key provider service.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption_contract_configuration": { // Property: EncryptionContractConfiguration @@ -897,6 +1005,10 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_id": { // Property: ResourceId @@ -929,59 +1041,88 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "include_iframe_only_stream": { // Property: IncludeIframeOnlyStream Description: "When enabled, an I-Frame only stream will be included in the output.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "manifest_layout": { // Property: ManifestLayout Description: "Determines the position of some tags in the Media Presentation Description (MPD). When set to FULL, elements like SegmentTemplate and ContentProtection are included in each Representation. When set to COMPACT, duplicate elements are combined and presented at the AdaptationSet level.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "FULL", "COMPACT", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "manifest_window_seconds": { // Property: ManifestWindowSeconds Description: "Time window (in seconds) contained in each manifest.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_buffer_time_seconds": { // Property: MinBufferTimeSeconds Description: "Minimum duration (in seconds) that a player will buffer media before starting the presentation.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_update_period_seconds": { // Property: MinUpdatePeriodSeconds Description: "Minimum duration (in seconds) between potential changes to the Dynamic Adaptive Streaming over HTTP (DASH) Media Presentation Description (MPD).", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "period_triggers": { // Property: PeriodTriggers Description: "A list of triggers that controls when the outgoing Dynamic Adaptive Streaming over HTTP (DASH) Media Presentation Description (MPD) will be partitioned into multiple periods. If empty, the content will not be partitioned into more than one period. If the list contains \"ADS\", new periods will be created where the Channel source contains SCTE-35 ad markers.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "ADS", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "profile": { // Property: Profile Description: "The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to \"HBBTV_1_5\", HbbTV 1.5 compliant output is enabled.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", @@ -990,18 +1131,26 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err "DVB_DASH_2014", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "segment_duration_seconds": { // Property: SegmentDurationSeconds Description: "Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "segment_template_format": { // Property: SegmentTemplateFormat Description: "Determines the type of SegmentTemplate included in the Media Presentation Description (MPD). When set to NUMBER_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with $Number$ media URLs. When set to TIME_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with $Time$ media URLs. When set to NUMBER_WITH_DURATION, only a duration is included in each SegmentTemplate, with $Number$ media URLs.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NUMBER_WITH_TIMELINE", @@ -1009,6 +1158,9 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err "NUMBER_WITH_DURATION", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stream_selection": { // Property: StreamSelection @@ -1020,18 +1172,27 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err Description: "The maximum video bitrate (bps) to include in output.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_video_bits_per_second": { // Property: MinVideoBitsPerSecond Description: "The minimum video bitrate (bps) to include in output.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stream_order": { // Property: StreamOrder Description: "A directive that determines the order of streams in the output.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ORIGINAL", @@ -1039,22 +1200,34 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err "VIDEO_BITRATE_DESCENDING", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "suggested_presentation_delay_seconds": { // Property: SuggestedPresentationDelaySeconds Description: "Duration (in seconds) to delay live content before presentation.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "utc_timing": { // Property: UtcTiming Description: "Determines the type of UTCTiming included in the Media Presentation Description (MPD)", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "HTTP-XSDATE", @@ -1063,16 +1236,27 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err "NONE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "utc_timing_uri": { // Property: UtcTimingUri Description: "Specifies the value attribute of the UTCTiming field when utcTiming is set to HTTP-ISO, HTTP-HEAD or HTTP-XSDATE", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -1084,6 +1268,10 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err Description: "A short text description of the OriginEndpoint.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "hls_package": { // Property: HlsPackage @@ -1297,6 +1485,7 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err Description: "This setting controls how ad markers are included in the packaged OriginEndpoint. \"NONE\" will omit all SCTE-35 ad markers from the output. \"PASSTHROUGH\" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. \"SCTE35_ENHANCED\" generates ad markers and blackout tags based on SCTE-35 messages in the input source. \"DATERANGE\" inserts EXT-X-DATERANGE tags to signal ad and program transition events in HLS and CMAF manifests. For this option, you must set a programDateTimeIntervalSeconds value that is greater than 0.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", @@ -1305,12 +1494,16 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err "DATERANGE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ad_triggers": { // Property: AdTriggers Description: "A list of SCTE-35 message types that are treated as ad markers in the output. If empty, no ad markers are output. Specify multiple items to create ad markers for all of the included message types.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "SPLICE_INSERT", @@ -1323,12 +1516,16 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err "DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ads_on_delivery_restrictions": { // Property: AdsOnDeliveryRestrictions Description: "This setting allows the delivery restriction flags on SCTE-35 segmentation descriptors to determine whether a message signals an ad. Choosing \"NONE\" means no SCTE-35 messages become ads. Choosing \"RESTRICTED\" means SCTE-35 messages of the types specified in AdTriggers that contain delivery restrictions will be treated as ads. Choosing \"UNRESTRICTED\" means SCTE-35 messages of the types specified in AdTriggers that do not contain delivery restrictions will be treated as ads. Choosing \"BOTH\" means all SCTE-35 messages of the types specified in AdTriggers will be treated as ads. Note that Splice Insert messages do not have these flags and are always treated as ads if specified in AdTriggers.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", @@ -1337,6 +1534,9 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err "BOTH", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption": { // Property: Encryption @@ -1348,30 +1548,46 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err Description: "A constant initialization vector for encryption (optional). When not specified the initialization vector will be periodically rotated.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption_method": { // Property: EncryptionMethod Description: "The encryption method to use.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "AES_128", "SAMPLE_AES", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key_rotation_interval_seconds": { // Property: KeyRotationIntervalSeconds Description: "Interval (in seconds) between each encryption key rotation.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "repeat_ext_x_key": { // Property: RepeatExtXKey Description: "When enabled, the EXT-X-KEY tag will be repeated in output manifests.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "speke_key_provider": { // Property: SpekeKeyProvider @@ -1383,6 +1599,10 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err Description: "An Amazon Resource Name (ARN) of a Certificate Manager certificate that MediaPackage will use for enforcing secure end-to-end data transfer with the key provider service.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption_contract_configuration": { // Property: EncryptionContractConfiguration @@ -1427,6 +1647,10 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_id": { // Property: ResourceId @@ -1459,18 +1683,27 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "include_iframe_only_stream": { // Property: IncludeIframeOnlyStream Description: "When enabled, an I-Frame only stream will be included in the output.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "playlist_type": { // Property: PlaylistType Description: "The HTTP Live Streaming (HLS) playlist type. When either \"EVENT\" or \"VOD\" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", @@ -1478,24 +1711,39 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err "VOD", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "playlist_window_seconds": { // Property: PlaylistWindowSeconds Description: "Time window (in seconds) contained in each parent manifest.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "program_date_time_interval_seconds": { // Property: ProgramDateTimeIntervalSeconds Description: "The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "segment_duration_seconds": { // Property: SegmentDurationSeconds Description: "Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stream_selection": { // Property: StreamSelection @@ -1507,18 +1755,27 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err Description: "The maximum video bitrate (bps) to include in output.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_video_bits_per_second": { // Property: MinVideoBitsPerSecond Description: "The minimum video bitrate (bps) to include in output.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stream_order": { // Property: StreamOrder Description: "A directive that determines the order of streams in the output.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ORIGINAL", @@ -1526,20 +1783,35 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err "VIDEO_BITRATE_DESCENDING", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "use_audio_rendition_group": { // Property: UseAudioRenditionGroup Description: "When enabled, audio streams will be placed in rendition groups in the output.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id @@ -1571,6 +1843,10 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err Description: "A short string appended to the end of the OriginEndpoint URL.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "mss_package": { // Property: MssPackage @@ -1716,6 +1992,10 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err Description: "An Amazon Resource Name (ARN) of a Certificate Manager certificate that MediaPackage will use for enforcing secure end-to-end data transfer with the key provider service.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption_contract_configuration": { // Property: EncryptionContractConfiguration @@ -1760,6 +2040,10 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_id": { // Property: ResourceId @@ -1792,18 +2076,30 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "manifest_window_seconds": { // Property: ManifestWindowSeconds Description: "The time window (in seconds) contained in each manifest.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "segment_duration_seconds": { // Property: SegmentDurationSeconds Description: "The duration (in seconds) of each segment.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stream_selection": { // Property: StreamSelection @@ -1815,18 +2111,27 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err Description: "The maximum video bitrate (bps) to include in output.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_video_bits_per_second": { // Property: MinVideoBitsPerSecond Description: "The minimum video bitrate (bps) to include in output.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stream_order": { // Property: StreamOrder Description: "A directive that determines the order of streams in the output.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ORIGINAL", @@ -1834,14 +2139,25 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err "VIDEO_BITRATE_DESCENDING", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "origination": { // Property: Origination @@ -1857,12 +2173,16 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err Description: "Control whether origination of video is allowed for this OriginEndpoint. If set to ALLOW, the OriginEndpoint may by requested, pursuant to any other form of access control. If set to DENY, the OriginEndpoint may not be requested. This can be helpful for Live to VOD harvesting, or for temporarily disabling origination", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ALLOW", "DENY", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "startover_window_seconds": { // Property: StartoverWindowSeconds @@ -1874,6 +2194,10 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err Description: "Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -1915,9 +2239,13 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "time_delay_seconds": { // Property: TimeDelaySeconds @@ -1929,6 +2257,10 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err Description: "Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "url": { // Property: Url @@ -1957,6 +2289,10 @@ func originEndpointResourceType(ctx context.Context) (provider.ResourceType, err Description: "A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/mediapackage/packaging_configuration_resource_gen.go b/internal/aws/mediapackage/packaging_configuration_resource_gen.go index c5596b73d6..c93d4ce61f 100644 --- a/internal/aws/mediapackage/packaging_configuration_resource_gen.go +++ b/internal/aws/mediapackage/packaging_configuration_resource_gen.go @@ -192,6 +192,10 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "hls_manifests": { // Property: HlsManifests @@ -203,6 +207,7 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT Description: "This setting controls how ad markers are included in the packaged OriginEndpoint. \"NONE\" will omit all SCTE-35 ad markers from the output. \"PASSTHROUGH\" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. \"SCTE35_ENHANCED\" generates ad markers and blackout tags based on SCTE-35 messages in the input source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", @@ -210,30 +215,49 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT "PASSTHROUGH", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "include_iframe_only_stream": { // Property: IncludeIframeOnlyStream Description: "When enabled, an I-Frame only stream will be included in the output.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "manifest_name": { // Property: ManifestName Description: "An optional string to include in the name of the manifest.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "program_date_time_interval_seconds": { // Property: ProgramDateTimeIntervalSeconds Description: "The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "repeat_ext_x_key": { // Property: RepeatExtXKey Description: "When enabled, the EXT-X-KEY tag will be repeated in output manifests.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stream_selection": { // Property: StreamSelection @@ -245,18 +269,27 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT Description: "The maximum video bitrate (bps) to include in output.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_video_bits_per_second": { // Property: MinVideoBitsPerSecond Description: "The minimum video bitrate (bps) to include in output.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stream_order": { // Property: StreamOrder Description: "A directive that determines the order of streams in the output.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ORIGINAL", @@ -264,10 +297,17 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT "VIDEO_BITRATE_DESCENDING", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -278,16 +318,28 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT Description: "When includeEncoderConfigurationInSegments is set to true, MediaPackage places your encoder's Sequence Parameter Set (SPS), Picture Parameter Set (PPS), and Video Parameter Set (VPS) metadata in every video segment instead of in the init fragment. This lets you use different SPS/PPS/VPS settings for your assets during content playback.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "segment_duration_seconds": { // Property: SegmentDurationSeconds Description: "Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dash_package": { // Property: DashPackage @@ -446,48 +498,68 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT Description: "Determines the position of some tags in the Media Presentation Description (MPD). When set to FULL, elements like SegmentTemplate and ContentProtection are included in each Representation. When set to COMPACT, duplicate elements are combined and presented at the AdaptationSet level.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "FULL", "COMPACT", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "manifest_name": { // Property: ManifestName Description: "An optional string to include in the name of the manifest.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_buffer_time_seconds": { // Property: MinBufferTimeSeconds Description: "Minimum duration (in seconds) that a player will buffer media before starting the presentation.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "profile": { // Property: Profile Description: "The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to \"HBBTV_1_5\", HbbTV 1.5 compliant output is enabled.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", "HBBTV_1_5", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "scte_markers_source": { // Property: ScteMarkersSource Description: "The source of scte markers used. When set to SEGMENTS, the scte markers are sourced from the segments of the ingested content. When set to MANIFEST, the scte markers are sourced from the manifest of the ingested content.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "SEGMENTS", "MANIFEST", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stream_selection": { // Property: StreamSelection @@ -499,18 +571,27 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT Description: "The maximum video bitrate (bps) to include in output.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_video_bits_per_second": { // Property: MinVideoBitsPerSecond Description: "The minimum video bitrate (bps) to include in output.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stream_order": { // Property: StreamOrder Description: "A directive that determines the order of streams in the output.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ORIGINAL", @@ -518,10 +599,17 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT "VIDEO_BITRATE_DESCENDING", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -562,35 +650,52 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "include_encoder_configuration_in_segments": { // Property: IncludeEncoderConfigurationInSegments Description: "When includeEncoderConfigurationInSegments is set to true, MediaPackage places your encoder's Sequence Parameter Set (SPS), Picture Parameter Set (PPS), and Video Parameter Set (VPS) metadata in every video segment instead of in the init fragment. This lets you use different SPS/PPS/VPS settings for your assets during content playback.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "period_triggers": { // Property: PeriodTriggers Description: "A list of triggers that controls when the outgoing Dynamic Adaptive Streaming over HTTP (DASH) Media Presentation Description (MPD) will be partitioned into multiple periods. If empty, the content will not be partitioned into more than one period. If the list contains \"ADS\", new periods will be created where the Asset contains SCTE-35 ad markers.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "ADS", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "segment_duration_seconds": { // Property: SegmentDurationSeconds Description: "Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "segment_template_format": { // Property: SegmentTemplateFormat Description: "Determines the type of SegmentTemplate included in the Media Presentation Description (MPD). When set to NUMBER_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with $Number$ media URLs. When set to TIME_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with $Time$ media URLs. When set to NUMBER_WITH_DURATION, only a duration is included in each SegmentTemplate, with $Number$ media URLs.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NUMBER_WITH_TIMELINE", @@ -598,10 +703,17 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT "NUMBER_WITH_DURATION", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "hls_package": { // Property: HlsPackage @@ -746,18 +858,26 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT Description: "An HTTP Live Streaming (HLS) encryption configuration.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption_method": { // Property: EncryptionMethod Description: "The encryption method to use.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "AES_128", "SAMPLE_AES", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "speke_key_provider": { // Property: SpekeKeyProvider @@ -789,6 +909,10 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "hls_manifests": { // Property: HlsManifests @@ -800,6 +924,7 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT Description: "This setting controls how ad markers are included in the packaged OriginEndpoint. \"NONE\" will omit all SCTE-35 ad markers from the output. \"PASSTHROUGH\" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. \"SCTE35_ENHANCED\" generates ad markers and blackout tags based on SCTE-35 messages in the input source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", @@ -807,30 +932,49 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT "PASSTHROUGH", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "include_iframe_only_stream": { // Property: IncludeIframeOnlyStream Description: "When enabled, an I-Frame only stream will be included in the output.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "manifest_name": { // Property: ManifestName Description: "An optional string to include in the name of the manifest.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "program_date_time_interval_seconds": { // Property: ProgramDateTimeIntervalSeconds Description: "The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "repeat_ext_x_key": { // Property: RepeatExtXKey Description: "When enabled, the EXT-X-KEY tag will be repeated in output manifests.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stream_selection": { // Property: StreamSelection @@ -842,18 +986,27 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT Description: "The maximum video bitrate (bps) to include in output.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_video_bits_per_second": { // Property: MinVideoBitsPerSecond Description: "The minimum video bitrate (bps) to include in output.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stream_order": { // Property: StreamOrder Description: "A directive that determines the order of streams in the output.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ORIGINAL", @@ -861,10 +1014,17 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT "VIDEO_BITRATE_DESCENDING", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -875,16 +1035,28 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT Description: "Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "use_audio_rendition_group": { // Property: UseAudioRenditionGroup Description: "When enabled, audio streams will be placed in rendition groups in the output.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id @@ -1031,6 +1203,10 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "mss_manifests": { // Property: MssManifests @@ -1042,6 +1218,10 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT Description: "An optional string to include in the name of the manifest.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stream_selection": { // Property: StreamSelection @@ -1053,18 +1233,27 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT Description: "The maximum video bitrate (bps) to include in output.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_video_bits_per_second": { // Property: MinVideoBitsPerSecond Description: "The minimum video bitrate (bps) to include in output.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stream_order": { // Property: StreamOrder Description: "A directive that determines the order of streams in the output.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ORIGINAL", @@ -1072,10 +1261,17 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT "VIDEO_BITRATE_DESCENDING", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1086,10 +1282,18 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT Description: "Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "packaging_group_id": { // Property: PackagingGroupId @@ -1142,9 +1346,13 @@ func packagingConfigurationResourceType(ctx context.Context) (provider.ResourceT }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/mediapackage/packaging_group_resource_gen.go b/internal/aws/mediapackage/packaging_group_resource_gen.go index eac4028a0a..0a44997ebe 100644 --- a/internal/aws/mediapackage/packaging_group_resource_gen.go +++ b/internal/aws/mediapackage/packaging_group_resource_gen.go @@ -76,6 +76,10 @@ func packagingGroupResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "domain_name": { // Property: DomainName @@ -116,13 +120,21 @@ func packagingGroupResourceType(ctx context.Context) (provider.ResourceType, err Description: "Sets a custom AWS CloudWatch log group name for egress logs. If a log group name isn't specified, the default name is used: /aws/MediaPackage/VodEgressAccessLogs.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id diff --git a/internal/aws/memorydb/acl_resource_gen.go b/internal/aws/memorydb/acl_resource_gen.go index 1b7846fbbf..33121eaa99 100644 --- a/internal/aws/memorydb/acl_resource_gen.go +++ b/internal/aws/memorydb/acl_resource_gen.go @@ -128,9 +128,13 @@ func aCLResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "user_names": { // Property: UserNames @@ -148,9 +152,13 @@ func aCLResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "List of users associated to this acl.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/memorydb/cluster_resource_gen.go b/internal/aws/memorydb/cluster_resource_gen.go index 5f3f99cf28..e54ac3e234 100644 --- a/internal/aws/memorydb/cluster_resource_gen.go +++ b/internal/aws/memorydb/cluster_resource_gen.go @@ -62,6 +62,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A flag that enables automatic minor version upgrade when set to true.\n\nYou cannot modify the value of AutoMinorVersionUpgrade after the cluster is created. To enable AutoMinorVersionUpgrade on a cluster you must set AutoMinorVersionUpgrade to true when you create a cluster.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cluster_endpoint": { // Property: ClusterEndpoint @@ -105,6 +109,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cluster_name": { // Property: ClusterName @@ -134,6 +142,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "An optional description of the cluster.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "engine_version": { // Property: EngineVersion @@ -145,6 +157,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The Redis engine version used by the cluster.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "final_snapshot_name": { // Property: FinalSnapshotName @@ -156,6 +172,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { 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.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kms_key_id": { // Property: KmsKeyId @@ -183,6 +203,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "node_type": { // Property: NodeType @@ -205,6 +229,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The number of replicas to apply to each shard. The limit is 5.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "num_shards": { // Property: NumShards @@ -216,6 +244,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The number of shards the cluster will contain.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "parameter_group_name": { // Property: ParameterGroupName @@ -227,6 +259,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of the parameter group associated with the cluster.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "parameter_group_status": { // Property: ParameterGroupStatus @@ -273,8 +309,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "One or more Amazon VPC security groups associated with this cluster.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "snapshot_arns": { @@ -325,6 +363,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The number of days for which MemoryDB retains automatic snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "snapshot_window": { // Property: SnapshotWindow @@ -336,6 +378,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your cluster.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sns_topic_arn": { // Property: SnsTopicArn @@ -347,6 +393,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are sent.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sns_topic_status": { // Property: SnsTopicStatus @@ -358,6 +408,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The status of the Amazon SNS notification topic. Notifications are sent only if the status is enabled.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status @@ -383,6 +437,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of the subnet group to be used for the cluster.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tls_enabled": { // Property: TLSEnabled @@ -459,9 +517,13 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/memorydb/parameter_group_resource_gen.go b/internal/aws/memorydb/parameter_group_resource_gen.go index 0b8561c110..c88027c003 100644 --- a/internal/aws/memorydb/parameter_group_resource_gen.go +++ b/internal/aws/memorydb/parameter_group_resource_gen.go @@ -90,6 +90,10 @@ func parameterGroupResourceType(ctx context.Context) (provider.ResourceType, err 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.", Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // Parameters is a write-only property. }, "tags": { @@ -151,9 +155,13 @@ func parameterGroupResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/memorydb/subnet_group_resource_gen.go b/internal/aws/memorydb/subnet_group_resource_gen.go index 13032be8c2..b5ddf7ab75 100644 --- a/internal/aws/memorydb/subnet_group_resource_gen.go +++ b/internal/aws/memorydb/subnet_group_resource_gen.go @@ -47,6 +47,10 @@ func subnetGroupResourceType(ctx context.Context) (provider.ResourceType, error) Description: "An optional description of the subnet group.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnet_group_name": { // Property: SubnetGroupName @@ -141,9 +145,13 @@ func subnetGroupResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/memorydb/user_resource_gen.go b/internal/aws/memorydb/user_resource_gen.go index 201022da79..057e2352c3 100644 --- a/internal/aws/memorydb/user_resource_gen.go +++ b/internal/aws/memorydb/user_resource_gen.go @@ -84,21 +84,29 @@ func userResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Passwords used for this user account. You can create up to two passwords for each user.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 2), validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type Description: "Type of authentication strategy for this user.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "password", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -178,9 +186,13 @@ func userResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "user_name": { // Property: UserName diff --git a/internal/aws/msk/batch_scram_secret_resource_gen.go b/internal/aws/msk/batch_scram_secret_resource_gen.go index d9ace5deed..9ac5b88174 100644 --- a/internal/aws/msk/batch_scram_secret_resource_gen.go +++ b/internal/aws/msk/batch_scram_secret_resource_gen.go @@ -45,8 +45,10 @@ func batchScramSecretResourceType(ctx context.Context) (provider.ResourceType, e // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/msk/cluster_resource_gen.go b/internal/aws/msk/cluster_resource_gen.go index 11d6ce73e2..23ee42b360 100644 --- a/internal/aws/msk/cluster_resource_gen.go +++ b/internal/aws/msk/cluster_resource_gen.go @@ -155,17 +155,29 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Type Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(7, 23), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_type": { // Property: InstanceType @@ -202,31 +214,55 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "volume_throughput": { // Property: VolumeThroughput Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "volume_size": { // Property: VolumeSize Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 16384), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -318,6 +354,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "scram": { // Property: Scram @@ -331,10 +371,18 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tls": { // Property: Tls @@ -344,18 +392,28 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: CertificateAuthorityArnList Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "unauthenticated": { // Property: Unauthenticated @@ -369,10 +427,18 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cluster_name": { // Property: ClusterName @@ -425,6 +491,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "current_version": { // Property: CurrentVersion @@ -436,6 +506,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The current version of the MSK cluster", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "encryption_info": { // Property: EncryptionInfo @@ -503,6 +577,7 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: ClientBroker Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "TLS", @@ -510,6 +585,9 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { "PLAINTEXT", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "in_cluster": { // Property: InCluster @@ -524,10 +602,18 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enhanced_monitoring": { // Property: EnhancedMonitoring @@ -545,6 +631,7 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(7, 23), validate.StringInSlice([]string{ @@ -554,6 +641,9 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { "PER_TOPIC_PER_PARTITION", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kafka_version": { // Property: KafkaVersion @@ -654,10 +744,18 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: LogGroup Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "firehose": { // Property: Firehose @@ -667,6 +765,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: DeliveryStream Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enabled": { // Property: Enabled @@ -676,6 +778,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3": { // Property: S3 @@ -685,6 +791,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Bucket Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enabled": { // Property: Enabled @@ -695,10 +805,18 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Prefix Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -707,6 +825,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "number_of_broker_nodes": { // Property: NumberOfBrokerNodes @@ -777,6 +899,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "node_exporter": { // Property: NodeExporter @@ -790,6 +916,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -798,6 +928,10 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags diff --git a/internal/aws/msk/configuration_resource_gen.go b/internal/aws/msk/configuration_resource_gen.go index c05d8f9a64..367828fc24 100644 --- a/internal/aws/msk/configuration_resource_gen.go +++ b/internal/aws/msk/configuration_resource_gen.go @@ -41,6 +41,10 @@ func configurationResourceType(ctx context.Context) (provider.ResourceType, erro // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kafka_versions_list": { // Property: KafkaVersionsList diff --git a/internal/aws/msk/serverless_cluster_resource_gen.go b/internal/aws/msk/serverless_cluster_resource_gen.go index 13ea9c6196..45ff680664 100644 --- a/internal/aws/msk/serverless_cluster_resource_gen.go +++ b/internal/aws/msk/serverless_cluster_resource_gen.go @@ -176,6 +176,10 @@ func serverlessClusterResourceType(ctx context.Context) (provider.ResourceType, // Property: SecurityGroups Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnet_ids": { // Property: SubnetIds diff --git a/internal/aws/mwaa/environment_resource_gen.go b/internal/aws/mwaa/environment_resource_gen.go index 7c31b9c453..f1ae417300 100644 --- a/internal/aws/mwaa/environment_resource_gen.go +++ b/internal/aws/mwaa/environment_resource_gen.go @@ -33,6 +33,10 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Key/value pairs representing Airflow configuration variables.\n Keys are prefixed by their section:\n\n [core]\n dags_folder={AIRFLOW_HOME}/dags\n\n Would be represented as\n\n \"core.dags_folder\": \"{AIRFLOW_HOME}/dags\"", Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "airflow_version": { // Property: AirflowVersion @@ -46,10 +50,14 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Version of airflow to deploy to the environment.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(32), validate.StringMatch(regexp.MustCompile("^[0-9a-z.]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "arn": { // Property: Arn @@ -80,10 +88,14 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Represents an S3 prefix relative to the root of an S3 bucket.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "environment_class": { // Property: EnvironmentClass @@ -97,9 +109,13 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Templated configuration for airflow processes and backing infrastructure.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "execution_role_arn": { // Property: ExecutionRoleArn @@ -113,10 +129,14 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "IAM role to be used by tasks.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1224), validate.StringMatch(regexp.MustCompile("^arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b)(-[a-z]+)?:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kms_key": { // Property: KmsKey @@ -312,12 +332,17 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_level": { // Property: LogLevel Description: "", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CRITICAL", @@ -327,10 +352,17 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) "DEBUG", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "scheduler_logs": { // Property: SchedulerLogs @@ -351,12 +383,17 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_level": { // Property: LogLevel Description: "", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CRITICAL", @@ -366,10 +403,17 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) "DEBUG", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "task_logs": { // Property: TaskLogs @@ -390,12 +434,17 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_level": { // Property: LogLevel Description: "", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CRITICAL", @@ -405,10 +454,17 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) "DEBUG", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "webserver_logs": { // Property: WebserverLogs @@ -429,12 +485,17 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_level": { // Property: LogLevel Description: "", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CRITICAL", @@ -444,10 +505,17 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) "DEBUG", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "worker_logs": { // Property: WorkerLogs @@ -468,12 +536,17 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_level": { // Property: LogLevel Description: "", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CRITICAL", @@ -483,14 +556,25 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) "DEBUG", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_workers": { // Property: MaxWorkers @@ -503,9 +587,13 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Maximum worker compute units.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_workers": { // Property: MinWorkers @@ -518,9 +606,13 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Minimum worker compute units.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -588,11 +680,15 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "A list of security groups to use for the environment.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 5), validate.ArrayForEach(validate.StringLenBetween(1, 1024)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^sg-[a-zA-Z0-9\\-._]+$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnet_ids": { // Property: SubnetIds @@ -613,6 +709,10 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plugins_s3_object_version": { // Property: PluginsS3ObjectVersion @@ -625,9 +725,13 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Represents an version ID for an S3 object.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "plugins_s3_path": { // Property: PluginsS3Path @@ -641,10 +745,14 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Represents an S3 prefix relative to the root of an S3 bucket.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "requirements_s3_object_version": { // Property: RequirementsS3ObjectVersion @@ -657,9 +765,13 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Represents an version ID for an S3 object.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "requirements_s3_path": { // Property: RequirementsS3Path @@ -673,10 +785,14 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Represents an S3 prefix relative to the root of an S3 bucket.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "schedulers": { // Property: Schedulers @@ -689,9 +805,13 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Scheduler compute units.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_bucket_arn": { // Property: SourceBucketArn @@ -706,10 +826,14 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "ARN for the AWS S3 bucket to use as the source of DAGs and plugins for the environment.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1224), validate.StringMatch(regexp.MustCompile("^arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b)(-[a-z]+)?:s3:::[a-z0-9.\\-]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -721,6 +845,10 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "A map of tags for the environment.", Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "webserver_access_mode": { // Property: WebserverAccessMode @@ -736,12 +864,16 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Choice for mode of webserver access including over public internet or via private VPC endpoint.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "PRIVATE_ONLY", "PUBLIC_ONLY", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "webserver_url": { // Property: WebserverUrl @@ -772,10 +904,14 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Start time for the weekly maintenance window.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(9), validate.StringMatch(regexp.MustCompile("(MON|TUE|WED|THU|FRI|SAT|SUN):([01]\\d|2[0-3]):(00|30)"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/networkfirewall/firewall_policy_resource_gen.go b/internal/aws/networkfirewall/firewall_policy_resource_gen.go index 57007a0ea9..7f7bb31caa 100644 --- a/internal/aws/networkfirewall/firewall_policy_resource_gen.go +++ b/internal/aws/networkfirewall/firewall_policy_resource_gen.go @@ -34,10 +34,14 @@ func firewallPolicyResourceType(ctx context.Context) (provider.ResourceType, err // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("^.*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "firewall_policy": { // Property: FirewallPolicy @@ -204,6 +208,10 @@ func firewallPolicyResourceType(ctx context.Context) (provider.ResourceType, err // Property: StatefulDefaultActions Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stateful_engine_options": { // Property: StatefulEngineOptions @@ -213,16 +221,24 @@ func firewallPolicyResourceType(ctx context.Context) (provider.ResourceType, err // Property: RuleOrder Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "DEFAULT_ACTION_ORDER", "STRICT_ORDER", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stateful_rule_group_references": { // Property: StatefulRuleGroupReferences @@ -232,9 +248,13 @@ func firewallPolicyResourceType(ctx context.Context) (provider.ResourceType, err // Property: Priority Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 65535), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_arn": { // Property: ResourceArn @@ -249,6 +269,10 @@ func firewallPolicyResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stateless_custom_actions": { // Property: StatelessCustomActions @@ -282,6 +306,10 @@ func firewallPolicyResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -299,6 +327,10 @@ func firewallPolicyResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stateless_default_actions": { // Property: StatelessDefaultActions @@ -335,6 +367,10 @@ func firewallPolicyResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -444,6 +480,10 @@ func firewallPolicyResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/networkfirewall/firewall_resource_gen.go b/internal/aws/networkfirewall/firewall_resource_gen.go index 0599b65e3c..3a3cea32ea 100644 --- a/internal/aws/networkfirewall/firewall_resource_gen.go +++ b/internal/aws/networkfirewall/firewall_resource_gen.go @@ -31,6 +31,10 @@ func firewallResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -42,10 +46,14 @@ func firewallResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), validate.StringMatch(regexp.MustCompile("^.*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "endpoint_ids": { // Property: EndpointIds @@ -140,6 +148,10 @@ func firewallResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnet_change_protection": { // Property: SubnetChangeProtection @@ -149,6 +161,10 @@ func firewallResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnet_mappings": { // Property: SubnetMappings @@ -236,6 +252,10 @@ func firewallResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_id": { // Property: VpcId diff --git a/internal/aws/networkfirewall/rule_group_resource_gen.go b/internal/aws/networkfirewall/rule_group_resource_gen.go index 95e4aa6922..a3d3e9b915 100644 --- a/internal/aws/networkfirewall/rule_group_resource_gen.go +++ b/internal/aws/networkfirewall/rule_group_resource_gen.go @@ -46,10 +46,14 @@ func ruleGroupResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("^.*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rule_group": { // Property: RuleGroup @@ -573,14 +577,22 @@ func ruleGroupResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Definition Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenAtLeast(1)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^.*$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "port_sets": { // Property: PortSets @@ -591,18 +603,30 @@ func ruleGroupResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Definition Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenAtLeast(1)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^.*$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rules_source": { // Property: RulesSource @@ -642,14 +666,22 @@ func ruleGroupResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rules_string": { // Property: RulesString Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stateful_rules": { // Property: StatefulRules @@ -767,10 +799,14 @@ func ruleGroupResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Settings Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(1, 8192)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^.*$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -779,6 +815,10 @@ func ruleGroupResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stateless_rules_and_custom_actions": { // Property: StatelessRulesAndCustomActions @@ -816,6 +856,10 @@ func ruleGroupResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -833,6 +877,10 @@ func ruleGroupResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stateless_rules": { // Property: StatelessRules @@ -882,6 +930,10 @@ func ruleGroupResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destinations": { // Property: Destinations @@ -899,14 +951,22 @@ func ruleGroupResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocols": { // Property: Protocols Type: types.ListType{ElemType: types.Int64Type}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.IntBetween(0, 255)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_ports": { // Property: SourcePorts @@ -931,6 +991,10 @@ func ruleGroupResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sources": { // Property: Sources @@ -948,6 +1012,10 @@ func ruleGroupResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tcp_flags": { // Property: TCPFlags @@ -974,6 +1042,7 @@ func ruleGroupResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Masks Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "FIN", @@ -986,10 +1055,17 @@ func ruleGroupResourceType(ctx context.Context) (provider.ResourceType, error) { "CWR", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1006,6 +1082,10 @@ func ruleGroupResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1019,20 +1099,32 @@ func ruleGroupResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: RuleOrder Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "DEFAULT_ACTION_ORDER", "STRICT_ORDER", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rule_group_arn": { // Property: RuleGroupArn @@ -1138,6 +1230,10 @@ func ruleGroupResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type diff --git a/internal/aws/networkmanager/connect_attachment_resource_gen.go b/internal/aws/networkmanager/connect_attachment_resource_gen.go index a933e6c7cd..5e62721750 100644 --- a/internal/aws/networkmanager/connect_attachment_resource_gen.go +++ b/internal/aws/networkmanager/connect_attachment_resource_gen.go @@ -145,6 +145,10 @@ func connectAttachmentResourceType(ctx context.Context) (provider.ResourceType, Description: "Tunnel protocol for connect attachment", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -219,12 +223,20 @@ func connectAttachmentResourceType(ctx context.Context) (provider.ResourceType, Description: "New policy rule number of the attachment", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "segment_name": { // Property: SegmentName Description: "Proposed segment name", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -246,8 +258,10 @@ func connectAttachmentResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -344,8 +358,10 @@ func connectAttachmentResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "transport_attachment_id": { diff --git a/internal/aws/networkmanager/connect_peer_resource_gen.go b/internal/aws/networkmanager/connect_peer_resource_gen.go index b321e52e87..81a888802f 100644 --- a/internal/aws/networkmanager/connect_peer_resource_gen.go +++ b/internal/aws/networkmanager/connect_peer_resource_gen.go @@ -41,6 +41,10 @@ func connectPeerResourceType(ctx context.Context) (provider.ResourceType, error) // Property: PeerAsn Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -113,52 +117,84 @@ func connectPeerResourceType(ctx context.Context) (provider.ResourceType, error) // Property: CoreNetworkAddress Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "core_network_asn": { // Property: CoreNetworkAsn Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "peer_address": { // Property: PeerAddress Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "peer_asn": { // Property: PeerAsn Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "core_network_address": { // Property: CoreNetworkAddress Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inside_cidr_blocks": { // Property: InsideCidrBlocks Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "peer_address": { // Property: PeerAddress Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocol": { // Property: Protocol Description: "Tunnel protocol type (Only support GRE for now)", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -354,8 +390,10 @@ func connectPeerResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/networkmanager/core_network_resource_gen.go b/internal/aws/networkmanager/core_network_resource_gen.go index 6f623bb3e7..0a73833333 100644 --- a/internal/aws/networkmanager/core_network_resource_gen.go +++ b/internal/aws/networkmanager/core_network_resource_gen.go @@ -73,6 +73,10 @@ func coreNetworkResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The description of core network", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "edges": { // Property: Edges @@ -112,19 +116,29 @@ func coreNetworkResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The ASN of a core network edge.", Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "edge_location": { // Property: EdgeLocation Description: "The Region where a core network edge is located.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inside_cidr_blocks": { // Property: InsideCidrBlocks Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -173,8 +187,10 @@ func coreNetworkResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Live policy document for the core network, you must provide PolicyDocument in Json Format", Type: JSONStringType, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ JSONStringType.AttributePlanModifier(), + resource.UseStateForUnknown(), }, }, "segments": { @@ -218,8 +234,10 @@ func coreNetworkResourceType(ctx context.Context) (provider.ResourceType, error) // Property: EdgeLocations Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "name": { @@ -227,13 +245,19 @@ func coreNetworkResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Name of segment", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "shared_segments": { // Property: SharedSegments Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -303,8 +327,10 @@ func coreNetworkResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/networkmanager/device_resource_gen.go b/internal/aws/networkmanager/device_resource_gen.go index b9aae83660..b1b85e8a16 100644 --- a/internal/aws/networkmanager/device_resource_gen.go +++ b/internal/aws/networkmanager/device_resource_gen.go @@ -31,6 +31,10 @@ func deviceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The description of the device.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "device_arn": { // Property: DeviceArn @@ -104,22 +108,38 @@ func deviceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The physical address.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "latitude": { // Property: Latitude Description: "The latitude.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "longitude": { // Property: Longitude Description: "The longitude.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "model": { // Property: Model @@ -131,6 +151,10 @@ func deviceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The device model", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "serial_number": { // Property: SerialNumber @@ -142,6 +166,10 @@ func deviceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The device serial number.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "site_id": { // Property: SiteId @@ -153,6 +181,10 @@ func deviceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The site ID.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -181,15 +213,27 @@ func deviceResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Key Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type @@ -201,6 +245,10 @@ func deviceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The device type.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vendor": { // Property: Vendor @@ -212,6 +260,10 @@ func deviceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The device vendor.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/networkmanager/global_network_resource_gen.go b/internal/aws/networkmanager/global_network_resource_gen.go index 3d42450f91..a65681dfd9 100644 --- a/internal/aws/networkmanager/global_network_resource_gen.go +++ b/internal/aws/networkmanager/global_network_resource_gen.go @@ -45,6 +45,10 @@ func globalNetworkResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The description of the global network.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id @@ -87,15 +91,27 @@ func globalNetworkResourceType(ctx context.Context) (provider.ResourceType, erro // Property: Key Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/networkmanager/site_resource_gen.go b/internal/aws/networkmanager/site_resource_gen.go index b00b8ed2ac..ea41e5aeef 100644 --- a/internal/aws/networkmanager/site_resource_gen.go +++ b/internal/aws/networkmanager/site_resource_gen.go @@ -31,6 +31,10 @@ func siteResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The description of the site.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "global_network_id": { // Property: GlobalNetworkId @@ -76,22 +80,38 @@ func siteResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The physical address.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "latitude": { // Property: Latitude Description: "The latitude.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "longitude": { // Property: Longitude Description: "The longitude.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "site_arn": { // Property: SiteArn @@ -148,15 +168,27 @@ func siteResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Key Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/networkmanager/site_to_site_vpn_attachment_resource_gen.go b/internal/aws/networkmanager/site_to_site_vpn_attachment_resource_gen.go index aeed1da949..9b4e805a3b 100644 --- a/internal/aws/networkmanager/site_to_site_vpn_attachment_resource_gen.go +++ b/internal/aws/networkmanager/site_to_site_vpn_attachment_resource_gen.go @@ -186,12 +186,20 @@ func siteToSiteVpnAttachmentResourceType(ctx context.Context) (provider.Resource Description: "The rule number in the policy document that applies to this change.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "segment_name": { // Property: SegmentName Description: "The name of the segment to change.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -213,8 +221,10 @@ func siteToSiteVpnAttachmentResourceType(ctx context.Context) (provider.Resource }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -312,8 +322,10 @@ func siteToSiteVpnAttachmentResourceType(ctx context.Context) (provider.Resource }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "updated_at": { diff --git a/internal/aws/networkmanager/vpc_attachment_resource_gen.go b/internal/aws/networkmanager/vpc_attachment_resource_gen.go index 57d87e26cd..7fbbba429e 100644 --- a/internal/aws/networkmanager/vpc_attachment_resource_gen.go +++ b/internal/aws/networkmanager/vpc_attachment_resource_gen.go @@ -153,6 +153,10 @@ func vpcAttachmentResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "owner_account_id": { // Property: OwnerAccountId @@ -219,12 +223,20 @@ func vpcAttachmentResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The rule number in the policy document that applies to this change.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "segment_name": { // Property: SegmentName Description: "The name of the segment to change.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -246,8 +258,10 @@ func vpcAttachmentResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, @@ -313,8 +327,10 @@ func vpcAttachmentResourceType(ctx context.Context) (provider.ResourceType, erro Description: "Subnet Arn list", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "tags": { @@ -363,8 +379,10 @@ func vpcAttachmentResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "updated_at": { diff --git a/internal/aws/nimblestudio/launch_profile_resource_gen.go b/internal/aws/nimblestudio/launch_profile_resource_gen.go index b03f1affbc..fc228d5acf 100644 --- a/internal/aws/nimblestudio/launch_profile_resource_gen.go +++ b/internal/aws/nimblestudio/launch_profile_resource_gen.go @@ -35,9 +35,13 @@ func launchProfileResourceType(ctx context.Context) (provider.ResourceType, erro Description: "

The description.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ec_2_subnet_ids": { // Property: Ec2SubnetIds @@ -266,18 +270,26 @@ func launchProfileResourceType(ctx context.Context) (provider.ResourceType, erro Description: "

The length of time, in minutes, that a streaming session can be active before it is\n stopped or terminated. After this point, Nimble Studio automatically terminates or\n stops the session. The default length of time is 690 minutes, and the maximum length of\n time is 30 days.

", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatBetween(1.000000, 43200.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_stopped_session_length_in_minutes": { // Property: MaxStoppedSessionLengthInMinutes Description: "

Integer that determines if you can start and stop your sessions and how long a session\n can stay in the STOPPED state. The default value is 0. The maximum value is 5760.

\n

If the value is missing or set to 0, your sessions can?t be stopped. If you then call\n StopStreamingSession, the session fails. If the time that a session\n stays in the READY state exceeds the maxSessionLengthInMinutes value, the\n session will automatically be terminated (instead of stopped).

\n

If the value is set to a positive number, the session can be stopped. You can call\n StopStreamingSession to stop sessions in the READY state. If the time\n that a session stays in the READY state exceeds the\n maxSessionLengthInMinutes value, the session will automatically be\n stopped (instead of terminated).

", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatBetween(0.000000, 5760.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "session_storage": { // Property: SessionStorage @@ -306,28 +318,44 @@ func launchProfileResourceType(ctx context.Context) (provider.ResourceType, erro Description: "

The folder path in Linux workstations where files are uploaded.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), validate.StringMatch(regexp.MustCompile("^(\\$HOME|/)[/]?([A-Za-z0-9-_]+/)*([A-Za-z0-9_-]+)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "windows": { // Property: Windows Description: "

The folder path in Windows workstations where files are uploaded.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), validate.StringMatch(regexp.MustCompile("^((\\%HOMEPATH\\%)|[a-zA-Z]:)[\\\\/](?:[a-zA-Z0-9_-]+[\\\\/])*[a-zA-Z0-9_-]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "streaming_image_ids": { // Property: StreamingImageIds diff --git a/internal/aws/nimblestudio/streaming_image_resource_gen.go b/internal/aws/nimblestudio/streaming_image_resource_gen.go index 4e09107a55..4037fd7032 100644 --- a/internal/aws/nimblestudio/streaming_image_resource_gen.go +++ b/internal/aws/nimblestudio/streaming_image_resource_gen.go @@ -35,9 +35,13 @@ func streamingImageResourceType(ctx context.Context) (provider.ResourceType, err Description: "

A human-readable description of the streaming image.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ec_2_image_id": { // Property: Ec2ImageId @@ -91,10 +95,14 @@ func streamingImageResourceType(ctx context.Context) (provider.ResourceType, err Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtLeast(4), validate.StringMatch(regexp.MustCompile("^arn:.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key_type": { // Property: KeyType diff --git a/internal/aws/nimblestudio/studio_component_resource_gen.go b/internal/aws/nimblestudio/studio_component_resource_gen.go index 592e88522b..a5206d11e4 100644 --- a/internal/aws/nimblestudio/studio_component_resource_gen.go +++ b/internal/aws/nimblestudio/studio_component_resource_gen.go @@ -149,44 +149,68 @@ func studioComponentResourceType(ctx context.Context) (provider.ResourceType, er Description: "

The name for the LDAP attribute.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 40), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Description: "

The value for the LDAP attribute.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "directory_id": { // Property: DirectoryId Description: "

The directory ID of the Directory Service for Microsoft Active Directory to access\n using this studio component.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "organizational_unit_distinguished_name": { // Property: OrganizationalUnitDistinguishedName Description: "

The distinguished name (DN) and organizational unit (OU) of an Active Directory\n computer.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "compute_farm_configuration": { // Property: ComputeFarmConfiguration @@ -198,16 +222,28 @@ func studioComponentResourceType(ctx context.Context) (provider.ResourceType, er Description: "

The name of an Active Directory user that is used on ComputeFarm worker\n instances.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "endpoint": { // Property: Endpoint Description: "

The endpoint of the ComputeFarm that is accessed by the studio component\n resource.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "license_service_configuration": { // Property: LicenseServiceConfiguration @@ -219,10 +255,18 @@ func studioComponentResourceType(ctx context.Context) (provider.ResourceType, er Description: "

The endpoint of the license service that is accessed by the studio component\n resource.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "shared_file_system_configuration": { // Property: SharedFileSystemConfiguration @@ -234,45 +278,73 @@ func studioComponentResourceType(ctx context.Context) (provider.ResourceType, er Description: "

The endpoint of the shared file system that is accessed by the studio component\n resource.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "file_system_id": { // Property: FileSystemId Description: "

The unique identifier for a file system.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "linux_mount_point": { // Property: LinuxMountPoint Description: "

The mount location for a shared file system on a Linux virtual workstation.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 128), validate.StringMatch(regexp.MustCompile("^(/?|(\\$HOME)?(/[^/\\n\\s\\\\]+)*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "share_name": { // Property: ShareName Description: "

The name of the file share.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "windows_mount_drive": { // Property: WindowsMountDrive Description: "

The mount location for a shared file system on a Windows virtual workstation.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[A-Z]$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -286,9 +358,13 @@ func studioComponentResourceType(ctx context.Context) (provider.ResourceType, er Description: "

The description.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ec_2_security_group_ids": { // Property: Ec2SecurityGroupIds @@ -305,9 +381,13 @@ func studioComponentResourceType(ctx context.Context) (provider.ResourceType, er Description: "

The EC2 security groups that control access to the studio component.

", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 30), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "initialization_scripts": { // Property: InitializationScripts @@ -358,45 +438,65 @@ func studioComponentResourceType(ctx context.Context) (provider.ResourceType, er Description: "

The version number of the protocol that is used by the launch profile. The only valid\n version is \"2021-03-31\".

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 10), validate.StringMatch(regexp.MustCompile("^2021\\-03\\-31$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "platform": { // Property: Platform Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "LINUX", "WINDOWS", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "run_context": { // Property: RunContext Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "SYSTEM_INITIALIZATION", "USER_INITIALIZATION", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "script": { // Property: Script Description: "

The initialization script.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 5120), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -424,9 +524,13 @@ func studioComponentResourceType(ctx context.Context) (provider.ResourceType, er // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "script_parameters": { // Property: ScriptParameters @@ -465,26 +569,38 @@ func studioComponentResourceType(ctx context.Context) (provider.ResourceType, er Description: "

A script parameter key.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 64), validate.StringMatch(regexp.MustCompile("^[a-zA-Z_][a-zA-Z0-9_]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Description: "

A script parameter value.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 30), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "secure_initialization_role_arn": { // Property: SecureInitializationRoleArn @@ -496,9 +612,13 @@ func studioComponentResourceType(ctx context.Context) (provider.ResourceType, er // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "studio_component_id": { // Property: StudioComponentId diff --git a/internal/aws/nimblestudio/studio_resource_gen.go b/internal/aws/nimblestudio/studio_resource_gen.go index 94d675fcba..ea69e5a43e 100644 --- a/internal/aws/nimblestudio/studio_resource_gen.go +++ b/internal/aws/nimblestudio/studio_resource_gen.go @@ -116,10 +116,14 @@ func studioResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtLeast(4), validate.StringMatch(regexp.MustCompile("^arn:.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key_type": { // Property: KeyType @@ -136,6 +140,10 @@ func studioResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "studio_id": { // Property: StudioId diff --git a/internal/aws/panorama/application_instance_resource_gen.go b/internal/aws/panorama/application_instance_resource_gen.go index 615b76d7c7..0484504134 100644 --- a/internal/aws/panorama/application_instance_resource_gen.go +++ b/internal/aws/panorama/application_instance_resource_gen.go @@ -151,10 +151,14 @@ func applicationInstanceResourceType(ctx context.Context) (provider.ResourceType // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9\\-\\_]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "health_status": { // Property: HealthStatus @@ -206,10 +210,14 @@ func applicationInstanceResourceType(ctx context.Context) (provider.ResourceType // Property: PayloadData Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 51200), validate.StringMatch(regexp.MustCompile("^.+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -241,10 +249,14 @@ func applicationInstanceResourceType(ctx context.Context) (provider.ResourceType // Property: PayloadData Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 51200), validate.StringMatch(regexp.MustCompile("^.+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -349,6 +361,7 @@ func applicationInstanceResourceType(ctx context.Context) (provider.ResourceType // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "DEPLOYMENT_SUCCEEDED", @@ -359,6 +372,9 @@ func applicationInstanceResourceType(ctx context.Context) (provider.ResourceType "PROCESSING_REMOVAL", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -419,6 +435,10 @@ func applicationInstanceResourceType(ctx context.Context) (provider.ResourceType }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/panorama/package_resource_gen.go b/internal/aws/panorama/package_resource_gen.go index a9a1ca1c51..881233f693 100644 --- a/internal/aws/panorama/package_resource_gen.go +++ b/internal/aws/panorama/package_resource_gen.go @@ -209,6 +209,10 @@ func packageResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/panorama/package_version_resource_gen.go b/internal/aws/panorama/package_version_resource_gen.go index 57309d2845..2f29009a62 100644 --- a/internal/aws/panorama/package_version_resource_gen.go +++ b/internal/aws/panorama/package_version_resource_gen.go @@ -43,6 +43,10 @@ func packageVersionResourceType(ctx context.Context) (provider.ResourceType, err // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "owner_account": { // Property: OwnerAccount @@ -206,10 +210,14 @@ func packageVersionResourceType(ctx context.Context) (provider.ResourceType, err // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), validate.StringMatch(regexp.MustCompile("^[a-z0-9]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/personalize/dataset_resource_gen.go b/internal/aws/personalize/dataset_resource_gen.go index a672e490a6..8495883ea3 100644 --- a/internal/aws/personalize/dataset_resource_gen.go +++ b/internal/aws/personalize/dataset_resource_gen.go @@ -120,58 +120,86 @@ func datasetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The path to the Amazon S3 bucket where the data that you want to upload to your dataset is stored.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("(s3|http|https)://.+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dataset_arn": { // Property: DatasetArn Description: "The ARN of the dataset that receives the imported data", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("arn:([a-z\\d-]+):personalize:.*:.*:.+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dataset_import_job_arn": { // Property: DatasetImportJobArn Description: "The ARN of the dataset import job", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("arn:([a-z\\d-]+):personalize:.*:.*:.+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "job_name": { // Property: JobName Description: "The name for the dataset import job.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 63), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9][a-zA-Z0-9\\-_]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleArn Description: "The ARN of the IAM role that has permissions to read from the Amazon S3 data source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("arn:([a-z\\d-]+):iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dataset_type": { // Property: DatasetType diff --git a/internal/aws/personalize/solution_resource_gen.go b/internal/aws/personalize/solution_resource_gen.go index 7847dc62da..e58c63f2c0 100644 --- a/internal/aws/personalize/solution_resource_gen.go +++ b/internal/aws/personalize/solution_resource_gen.go @@ -361,6 +361,10 @@ func solutionResourceType(ctx context.Context) (provider.ResourceType, error) { // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "auto_ml_config": { // Property: AutoMLConfig @@ -372,33 +376,49 @@ func solutionResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The metric to optimize.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "recipe_list": { // Property: RecipeList Description: "The list of candidate recipes.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenAtMost(256)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("arn:([a-z\\d-]+):personalize:.*:.*:.+"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "event_value_threshold": { // Property: EventValueThreshold Description: "Only events with a value greater than or equal to this threshold are used for training a model.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "feature_transformation_parameters": { // Property: FeatureTransformationParameters @@ -406,6 +426,10 @@ func solutionResourceType(ctx context.Context) (provider.ResourceType, error) { // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "hpo_config": { // Property: HpoConfig @@ -427,26 +451,38 @@ func solutionResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of the hyperparameter.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "values": { // Property: Values Description: "A list of the categories for the hyperparameter.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenAtMost(1000)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "continuous_hyper_parameter_ranges": { // Property: ContinuousHyperParameterRanges @@ -458,34 +494,50 @@ func solutionResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The maximum allowable value for the hyperparameter.", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatAtLeast(-1000000.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_value": { // Property: MinValue Description: "The minimum allowable value for the hyperparameter.", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatAtLeast(-1000000.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Description: "The name of the hyperparameter.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "integer_hyper_parameter_ranges": { // Property: IntegerHyperParameterRanges @@ -497,38 +549,58 @@ func solutionResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The maximum allowable value for the hyperparameter.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtMost(1000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_value": { // Property: MinValue Description: "The minimum allowable value for the hyperparameter.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(-1000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Description: "The name of the hyperparameter.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "hpo_objective": { // Property: HpoObjective @@ -540,34 +612,50 @@ func solutionResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of the metric", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "metric_regex": { // Property: MetricRegex Description: "A regular expression for finding the metric in the training job logs.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type Description: "The type of the metric. Valid values are Maximize and Minimize.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Maximize", "Minimize", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "hpo_resource_config": { // Property: HpoResourceConfig @@ -579,26 +667,42 @@ func solutionResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The maximum number of training jobs when you create a solution version. The maximum value for maxNumberOfTrainingJobs is 40.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_parallel_training_jobs": { // Property: MaxParallelTrainingJobs Description: "The maximum number of parallel training jobs when you create a solution version. The maximum value for maxParallelTrainingJobs is 10.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/pinpoint/in_app_template_resource_gen.go b/internal/aws/pinpoint/in_app_template_resource_gen.go index 15da601ae5..ec389cb4bf 100644 --- a/internal/aws/pinpoint/in_app_template_resource_gen.go +++ b/internal/aws/pinpoint/in_app_template_resource_gen.go @@ -271,6 +271,10 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro // Property: BackgroundColor Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "body_config": { // Property: BodyConfig @@ -280,6 +284,7 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro // Property: Alignment Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "LEFT", @@ -287,20 +292,35 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro "RIGHT", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "body": { // Property: Body Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "text_color": { // Property: TextColor Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "header_config": { // Property: HeaderConfig @@ -310,6 +330,7 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro // Property: Alignment Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "LEFT", @@ -317,25 +338,44 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro "RIGHT", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "header": { // Property: Header Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "text_color": { // Property: TextColor Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_url": { // Property: ImageUrl Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "primary_btn": { // Property: PrimaryBtn @@ -349,6 +389,7 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro // Property: ButtonAction Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "LINK", @@ -356,15 +397,26 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro "CLOSE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "link": { // Property: Link Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "default_config": { // Property: DefaultConfig @@ -374,16 +426,25 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro // Property: BackgroundColor Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "border_radius": { // Property: BorderRadius Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "button_action": { // Property: ButtonAction Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "LINK", @@ -391,25 +452,44 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro "CLOSE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "link": { // Property: Link Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "text": { // Property: Text Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "text_color": { // Property: TextColor Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ios": { // Property: IOS @@ -419,6 +499,7 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro // Property: ButtonAction Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "LINK", @@ -426,15 +507,26 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro "CLOSE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "link": { // Property: Link Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "web": { // Property: Web @@ -444,6 +536,7 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro // Property: ButtonAction Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "LINK", @@ -451,19 +544,34 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro "CLOSE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "link": { // Property: Link Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "secondary_btn": { // Property: SecondaryBtn @@ -477,6 +585,7 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro // Property: ButtonAction Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "LINK", @@ -484,15 +593,26 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro "CLOSE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "link": { // Property: Link Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "default_config": { // Property: DefaultConfig @@ -502,16 +622,25 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro // Property: BackgroundColor Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "border_radius": { // Property: BorderRadius Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "button_action": { // Property: ButtonAction Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "LINK", @@ -519,25 +648,44 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro "CLOSE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "link": { // Property: Link Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "text": { // Property: Text Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "text_color": { // Property: TextColor Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ios": { // Property: IOS @@ -547,6 +695,7 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro // Property: ButtonAction Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "LINK", @@ -554,15 +703,26 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro "CLOSE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "link": { // Property: Link Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "web": { // Property: Web @@ -572,6 +732,7 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro // Property: ButtonAction Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "LINK", @@ -579,23 +740,42 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro "CLOSE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "link": { // Property: Link Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "custom_config": { // Property: CustomConfig @@ -605,6 +785,10 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro // } Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "layout": { // Property: Layout @@ -622,6 +806,7 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "BOTTOM_BANNER", @@ -632,6 +817,9 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro "CAROUSEL", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -641,6 +829,10 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro // } Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "template_description": { // Property: TemplateDescription @@ -650,6 +842,10 @@ func inAppTemplateResourceType(ctx context.Context) (provider.ResourceType, erro // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "template_name": { // Property: TemplateName diff --git a/internal/aws/qldb/stream_resource_gen.go b/internal/aws/qldb/stream_resource_gen.go index 3ef75b1f59..dbcef0fa03 100644 --- a/internal/aws/qldb/stream_resource_gen.go +++ b/internal/aws/qldb/stream_resource_gen.go @@ -96,14 +96,22 @@ func streamResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: AggregationEnabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stream_arn": { // Property: StreamArn Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("arn:[\\w+=/,.@-]+:[\\w+=/,.@-]+:[\\w+=/,.@-]*:[0-9]*:[\\w+=,.@-]+(/[\\w+=,.@-]+)*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -209,9 +217,13 @@ func streamResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/quicksight/analysis_resource_gen.go b/internal/aws/quicksight/analysis_resource_gen.go index d30b0db886..15dc048ef1 100644 --- a/internal/aws/quicksight/analysis_resource_gen.go +++ b/internal/aws/quicksight/analysis_resource_gen.go @@ -152,14 +152,19 @@ func analysisResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

The message associated with the analysis error.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile(".*\\S.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ACCESS_DENIED", @@ -174,13 +179,20 @@ func analysisResourceType(ctx context.Context) (provider.ResourceType, error) { "COLUMN_REPLACEMENT_MISSING", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_updated_time": { // Property: LastUpdatedTime @@ -211,9 +223,13 @@ func analysisResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

The descriptive name of the analysis.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "parameters": { // Property: Parameters @@ -367,9 +383,13 @@ func analysisResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "decimal_parameters": { // Property: DecimalParameters @@ -394,9 +414,13 @@ func analysisResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "integer_parameters": { // Property: IntegerParameters @@ -421,9 +445,13 @@ func analysisResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "string_parameters": { // Property: StringParameters @@ -448,13 +476,21 @@ func analysisResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // Parameters is a write-only property. }, "permissions": { @@ -516,9 +552,13 @@ func analysisResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sheets": { // Property: Sheets @@ -556,19 +596,27 @@ func analysisResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile(".*\\S.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sheet_id": { // Property: SheetId Description: "

The unique identifier associated with a sheet.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), validate.StringMatch(regexp.MustCompile("[\\w\\-]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -672,6 +720,10 @@ func analysisResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -756,9 +808,13 @@ func analysisResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "theme_arn": { // Property: ThemeArn @@ -770,6 +826,10 @@ func analysisResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

The ARN of the theme of the analysis.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/quicksight/dashboard_resource_gen.go b/internal/aws/quicksight/dashboard_resource_gen.go index adc8ffe825..1d14395a46 100644 --- a/internal/aws/quicksight/dashboard_resource_gen.go +++ b/internal/aws/quicksight/dashboard_resource_gen.go @@ -155,16 +155,24 @@ func dashboardResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: AvailabilityStatus Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ENABLED", "DISABLED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "export_to_csv_option": { // Property: ExportToCSVOption @@ -175,16 +183,24 @@ func dashboardResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: AvailabilityStatus Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ENABLED", "DISABLED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sheet_controls_option": { // Property: SheetControlsOption @@ -195,20 +211,32 @@ func dashboardResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: VisibilityState Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "EXPANDED", "COLLAPSED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // DashboardPublishOptions is a write-only property. }, "last_published_time": { @@ -255,9 +283,13 @@ func dashboardResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

The display name of the dashboard.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "parameters": { // Property: Parameters @@ -411,9 +443,13 @@ func dashboardResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "decimal_parameters": { // Property: DecimalParameters @@ -438,9 +474,13 @@ func dashboardResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "integer_parameters": { // Property: IntegerParameters @@ -465,9 +505,13 @@ func dashboardResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "string_parameters": { // Property: StringParameters @@ -492,13 +536,21 @@ func dashboardResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // Parameters is a write-only property. }, "permissions": { @@ -560,9 +612,13 @@ func dashboardResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_entity": { // Property: SourceEntity @@ -658,6 +714,10 @@ func dashboardResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -720,9 +780,13 @@ func dashboardResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "theme_arn": { // Property: ThemeArn @@ -734,6 +798,10 @@ func dashboardResourceType(ctx context.Context) (provider.ResourceType, error) { 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.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // ThemeArn is a write-only property. }, "version": { @@ -860,30 +928,46 @@ func dashboardResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

The Amazon Resource Name (ARN) of the resource.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "created_time": { // Property: CreatedTime Description: "

The time that this dashboard version was created.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "data_set_arns": { // Property: DataSetArns Description: "

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

", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description Description: "

Description.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "errors": { // Property: Errors @@ -895,14 +979,19 @@ func dashboardResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

Message.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile(".*\\S.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ACCESS_DENIED", @@ -917,13 +1006,20 @@ func dashboardResourceType(ctx context.Context) (provider.ResourceType, error) { "COLUMN_REPLACEMENT_MISSING", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sheets": { // Property: Sheets @@ -935,37 +1031,54 @@ func dashboardResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile(".*\\S.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sheet_id": { // Property: SheetId Description: "

The unique identifier associated with a sheet.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), validate.StringMatch(regexp.MustCompile("[\\w\\-]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 20), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_entity_arn": { // Property: SourceEntityArn Description: "

Source entity ARN.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CREATION_IN_PROGRESS", @@ -977,21 +1090,32 @@ func dashboardResourceType(ctx context.Context) (provider.ResourceType, error) { "DELETED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "theme_arn": { // Property: ThemeArn Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "version_number": { // Property: VersionNumber Description: "

Version number for this version of the dashboard.

", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatAtLeast(1.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1013,9 +1137,13 @@ func dashboardResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // VersionDescription is a write-only property. }, } diff --git a/internal/aws/quicksight/data_set_resource_gen.go b/internal/aws/quicksight/data_set_resource_gen.go index 1fbd1030f3..248db6f8e8 100644 --- a/internal/aws/quicksight/data_set_resource_gen.go +++ b/internal/aws/quicksight/data_set_resource_gen.go @@ -128,11 +128,15 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: CountryCode Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "US", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -146,13 +150,21 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 8), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "column_level_permission_rules": { // Property: ColumnLevelPermissionRules @@ -187,24 +199,36 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: ColumnNames Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "principals": { // Property: Principals Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "consumed_spice_capacity_in_bytes": { // Property: ConsumedSpiceCapacityInBytes @@ -271,15 +295,27 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: DisableUseAsDirectQuerySource Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "disable_use_as_imported_source": { // Property: DisableUseAsImportedSource Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "field_folders": { // Property: FieldFolders @@ -314,21 +350,33 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Columns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 5000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 500), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // FieldFolders is a write-only property. }, "import_mode": { @@ -343,12 +391,16 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "SPICE", "DIRECT_QUERY", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ingestion_wait_policy": { // Property: IngestionWaitPolicy @@ -402,6 +454,10 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // IngestionWaitPolicy is a write-only property. }, "last_updated_time": { @@ -720,9 +776,13 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

A display name for the logical table.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "data_transforms": { // Property: DataTransforms @@ -748,9 +808,13 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 32), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "new_column_type": { // Property: NewColumnType @@ -768,6 +832,10 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "create_columns_operation": { // Property: CreateColumnsOperation @@ -816,6 +884,10 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "filter_operation": { // Property: FilterOperation @@ -834,6 +906,10 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "project_operation": { // Property: ProjectOperation @@ -852,6 +928,10 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rename_column_operation": { // Property: RenameColumnOperation @@ -879,6 +959,10 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tag_column_operation": { // Property: TagColumnOperation @@ -909,18 +993,27 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

The text of a description for a column.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 500), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "column_geographic_role": { // Property: ColumnGeographicRole Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "COUNTRY", @@ -933,6 +1026,9 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { "POLITICAL1", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -944,13 +1040,21 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source": { // Property: Source @@ -962,6 +1066,10 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

The Amazon Resource Name (ARN) for the dataset.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "join_instruction": { // Property: JoinInstruction @@ -976,10 +1084,18 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: UniqueKey Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "left_operand": { // Property: LeftOperand @@ -1008,10 +1124,18 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: UniqueKey Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "right_operand": { // Property: RightOperand @@ -1039,24 +1163,40 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "physical_table_id": { // Property: PhysicalTableId Description: "

Physical table ID.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 64), validate.StringMatch(regexp.MustCompile("[0-9a-zA-Z-]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -1070,9 +1210,13 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

The display name for the dataset.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "output_columns": { // Property: OutputColumns @@ -1116,23 +1260,32 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

A description for a column.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 500), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Description: "

A display name for the dataset.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "STRING", @@ -1141,6 +1294,9 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { "DATETIME", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1207,9 +1363,13 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "physical_table_map": { // Property: PhysicalTableMap @@ -1513,6 +1673,10 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "relational_table": { // Property: RelationalTable @@ -1524,9 +1688,13 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

The catalog associated with a table.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "data_source_arn": { // Property: DataSourceArn @@ -1585,13 +1753,21 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_source": { // Property: S3Source @@ -1651,20 +1827,29 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

Whether the file has a header row, or the files each have a header row.

", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "delimiter": { // Property: Delimiter Description: "

The delimiter between values in the file.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "format": { // Property: Format Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CSV", @@ -1675,38 +1860,61 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { "JSON", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "start_from_row": { // Property: StartFromRow Description: "

A row number to start reading data from.

", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatAtLeast(1.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "text_qualifier": { // Property: TextQualifier Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "DOUBLE_QUOTE", "SINGLE_QUOTE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "row_level_permission_data_set": { // Property: RowLevelPermissionDataSet @@ -1759,22 +1967,30 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: FormatVersion Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "VERSION_1", "VERSION_2", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "namespace": { // Property: Namespace Description: "

The namespace associated with the row-level permissions dataset.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 64), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9._-]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "permission_policy": { // Property: PermissionPolicy @@ -1790,6 +2006,10 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -1846,9 +2066,13 @@ func dataSetResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/quicksight/data_source_resource_gen.go b/internal/aws/quicksight/data_source_resource_gen.go index 52103cb338..93f0834a0f 100644 --- a/internal/aws/quicksight/data_source_resource_gen.go +++ b/internal/aws/quicksight/data_source_resource_gen.go @@ -494,6 +494,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "amazon_open_search_parameters": { // Property: AmazonOpenSearchParameters @@ -512,6 +516,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "athena_parameters": { // Property: AthenaParameters @@ -523,13 +531,21 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "

The workgroup that Amazon Athena uses.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "aurora_parameters": { // Property: AuroraParameters @@ -566,6 +582,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "aurora_postgre_sql_parameters": { // Property: AuroraPostgreSqlParameters @@ -602,6 +622,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "maria_db_parameters": { // Property: MariaDbParameters @@ -638,6 +662,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "my_sql_parameters": { // Property: MySqlParameters @@ -674,6 +702,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "oracle_parameters": { // Property: OracleParameters @@ -706,6 +738,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "postgre_sql_parameters": { // Property: PostgreSqlParameters @@ -742,6 +778,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "presto_parameters": { // Property: PrestoParameters @@ -778,6 +818,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rds_parameters": { // Property: RdsParameters @@ -805,6 +849,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "redshift_parameters": { // Property: RedshiftParameters @@ -816,9 +864,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "database": { // Property: Database @@ -834,22 +886,34 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "port": { // Property: Port Description: "

Port. This field can be blank if the ClusterId is provided.

", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatBetween(0.000000, 65535.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_parameters": { // Property: S3Parameters @@ -886,6 +950,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "snowflake_parameters": { // Property: SnowflakeParameters @@ -922,6 +990,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "spark_parameters": { // Property: SparkParameters @@ -949,6 +1021,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sql_server_parameters": { // Property: SqlServerParameters @@ -985,6 +1061,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "teradata_parameters": { // Property: TeradataParameters @@ -1021,13 +1101,21 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "arn": { // Property: Arn @@ -1571,9 +1659,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) 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.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^arn:[-a-z0-9]*:quicksight:[-a-z0-9]*:[0-9]{12}:datasource/.+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "credential_pair": { // Property: CredentialPair @@ -1602,6 +1694,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "amazon_open_search_parameters": { // Property: AmazonOpenSearchParameters @@ -1620,6 +1716,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "athena_parameters": { // Property: AthenaParameters @@ -1631,13 +1731,21 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "

The workgroup that Amazon Athena uses.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "aurora_parameters": { // Property: AuroraParameters @@ -1674,6 +1782,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "aurora_postgre_sql_parameters": { // Property: AuroraPostgreSqlParameters @@ -1710,6 +1822,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "maria_db_parameters": { // Property: MariaDbParameters @@ -1746,6 +1862,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "my_sql_parameters": { // Property: MySqlParameters @@ -1782,6 +1902,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "oracle_parameters": { // Property: OracleParameters @@ -1814,6 +1938,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "postgre_sql_parameters": { // Property: PostgreSqlParameters @@ -1850,6 +1978,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "presto_parameters": { // Property: PrestoParameters @@ -1886,6 +2018,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rds_parameters": { // Property: RdsParameters @@ -1913,6 +2049,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "redshift_parameters": { // Property: RedshiftParameters @@ -1924,9 +2064,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "database": { // Property: Database @@ -1942,22 +2086,34 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "port": { // Property: Port Description: "

Port. This field can be blank if the ClusterId is provided.

", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatBetween(0.000000, 65535.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_parameters": { // Property: S3Parameters @@ -1994,6 +2150,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "snowflake_parameters": { // Property: SnowflakeParameters @@ -2030,6 +2190,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "spark_parameters": { // Property: SparkParameters @@ -2057,6 +2221,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sql_server_parameters": { // Property: SqlServerParameters @@ -2093,6 +2261,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "teradata_parameters": { // Property: TeradataParameters @@ -2129,13 +2301,21 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "password": { // Property: Password @@ -2158,10 +2338,18 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // Credentials is a write-only property. }, "data_source_id": { @@ -2643,6 +2831,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "amazon_open_search_parameters": { // Property: AmazonOpenSearchParameters @@ -2661,6 +2853,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "athena_parameters": { // Property: AthenaParameters @@ -2672,13 +2868,21 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "

The workgroup that Amazon Athena uses.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "aurora_parameters": { // Property: AuroraParameters @@ -2715,6 +2919,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "aurora_postgre_sql_parameters": { // Property: AuroraPostgreSqlParameters @@ -2751,6 +2959,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "maria_db_parameters": { // Property: MariaDbParameters @@ -2787,6 +2999,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "my_sql_parameters": { // Property: MySqlParameters @@ -2823,6 +3039,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "oracle_parameters": { // Property: OracleParameters @@ -2855,6 +3075,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "postgre_sql_parameters": { // Property: PostgreSqlParameters @@ -2891,6 +3115,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "presto_parameters": { // Property: PrestoParameters @@ -2927,6 +3155,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rds_parameters": { // Property: RdsParameters @@ -2954,6 +3186,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "redshift_parameters": { // Property: RedshiftParameters @@ -2965,9 +3201,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "database": { // Property: Database @@ -2983,22 +3223,34 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "port": { // Property: Port Description: "

Port. This field can be blank if the ClusterId is provided.

", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatBetween(0.000000, 65535.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_parameters": { // Property: S3Parameters @@ -3035,6 +3287,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "snowflake_parameters": { // Property: SnowflakeParameters @@ -3071,6 +3327,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "spark_parameters": { // Property: SparkParameters @@ -3098,6 +3358,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sql_server_parameters": { // Property: SqlServerParameters @@ -3134,6 +3398,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "teradata_parameters": { // Property: TeradataParameters @@ -3170,10 +3438,18 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "error_info": { // Property: ErrorInfo @@ -3209,11 +3485,16 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "

Error message.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ACCESS_DENIED", @@ -3226,10 +3507,17 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) "UNKNOWN", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_updated_time": { // Property: LastUpdatedTime @@ -3258,9 +3546,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "

A display name for the data source.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "permissions": { // Property: Permissions @@ -3320,9 +3612,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ssl_properties": { // Property: SslProperties @@ -3345,10 +3641,18 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) Description: "

A Boolean option to control whether SSL should be disabled.

", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status @@ -3426,9 +3730,13 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type @@ -3526,6 +3834,10 @@ func dataSourceResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/quicksight/template_resource_gen.go b/internal/aws/quicksight/template_resource_gen.go index 6efd68b0e9..b7330cab74 100644 --- a/internal/aws/quicksight/template_resource_gen.go +++ b/internal/aws/quicksight/template_resource_gen.go @@ -101,9 +101,13 @@ func templateResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

A display name for the template.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "permissions": { // Property: Permissions @@ -164,9 +168,13 @@ func templateResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_entity": { // Property: SourceEntity @@ -276,6 +284,10 @@ func templateResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_template": { // Property: SourceTemplate @@ -291,6 +303,10 @@ func templateResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -353,9 +369,13 @@ func templateResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "template_id": { // Property: TemplateId @@ -564,6 +584,10 @@ func templateResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

The time that this template version was created.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "data_set_configurations": { // Property: DataSetConfigurations @@ -585,26 +609,42 @@ func templateResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

The name of the column group's column schema.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 500), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Description: "

The name of the column group schema.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 500), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "data_set_schema": { // Property: DataSetSchema @@ -621,51 +661,83 @@ func templateResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

The data type of the column schema.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "geographic_role": { // Property: GeographicRole Description: "

The geographic role of the column schema.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Description: "

The name of the column schema.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 500), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "placeholder": { // Property: Placeholder Description: "

Placeholder.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 30), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description Description: "

The description of the template.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "errors": { // Property: Errors @@ -677,14 +749,19 @@ func templateResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

Description of the error type.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile(".*\\S.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "SOURCE_NOT_FOUND", @@ -693,13 +770,20 @@ func templateResourceType(ctx context.Context) (provider.ResourceType, error) { "ACCESS_DENIED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sheets": { // Property: Sheets @@ -711,37 +795,54 @@ func templateResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile(".*\\S.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sheet_id": { // Property: SheetId Description: "

The unique identifier associated with a sheet.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), validate.StringMatch(regexp.MustCompile("[\\w\\-]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 20), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_entity_arn": { // Property: SourceEntityArn Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CREATION_IN_PROGRESS", @@ -753,21 +854,32 @@ func templateResourceType(ctx context.Context) (provider.ResourceType, error) { "DELETED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "theme_arn": { // Property: ThemeArn Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "version_number": { // Property: VersionNumber Description: "

The version number of the template version.

", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatAtLeast(1.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -789,9 +901,13 @@ func templateResourceType(ctx context.Context) (provider.ResourceType, error) { 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.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // VersionDescription is a write-only property. }, } diff --git a/internal/aws/quicksight/theme_resource_gen.go b/internal/aws/quicksight/theme_resource_gen.go index 57746f3148..f1516cf493 100644 --- a/internal/aws/quicksight/theme_resource_gen.go +++ b/internal/aws/quicksight/theme_resource_gen.go @@ -69,10 +69,14 @@ func themeResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

The ID of the theme that a custom theme will inherit from. All themes inherit from one of\n\t\t\tthe starting themes defined by Amazon QuickSight. For a list of the starting themes, use\n\t\t\t\tListThemes or choose Themes from\n\t\t\twithin a QuickSight analysis.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), validate.StringMatch(regexp.MustCompile("[\\w\\-]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // BaseThemeId is a write-only property. }, "configuration": { @@ -292,33 +296,49 @@ func themeResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

The hexadecimal codes for the colors.

", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 100), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "empty_fill_color": { // Property: EmptyFillColor Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_max_gradient": { // Property: MinMaxGradient Description: "

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

", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 100), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sheet": { // Property: Sheet @@ -340,14 +360,26 @@ func themeResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

The option to enable display of borders for visuals.

", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tile_layout": { // Property: TileLayout @@ -364,10 +396,18 @@ func themeResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

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

", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "margin": { // Property: Margin @@ -379,18 +419,34 @@ func themeResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

This Boolean value controls whether to display sheet margins.

", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "typography": { // Property: Typography @@ -405,17 +461,29 @@ func themeResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: FontFamily Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 5), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ui_color_palette": { // Property: UIColorPalette @@ -427,152 +495,224 @@ func themeResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

This color is that applies to selected states and buttons.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "accent_foreground": { // Property: AccentForeground Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "danger": { // Property: Danger Description: "

The color that applies to error messages.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "danger_foreground": { // Property: DangerForeground Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dimension": { // Property: Dimension Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dimension_foreground": { // Property: DimensionForeground Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "measure": { // Property: Measure Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "measure_foreground": { // Property: MeasureForeground Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "primary_background": { // Property: PrimaryBackground Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "primary_foreground": { // Property: PrimaryForeground 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.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "secondary_background": { // Property: SecondaryBackground Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "secondary_foreground": { // Property: SecondaryForeground Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "success": { // Property: Success Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "success_foreground": { // Property: SuccessForeground Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "warning": { // Property: Warning Description: "

This color that applies to warning and informational messages.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "warning_foreground": { // Property: WarningForeground Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // Configuration is a write-only property. }, "created_time": { @@ -617,9 +757,13 @@ func themeResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

A display name for the theme.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "permissions": { // Property: Permissions @@ -680,9 +824,13 @@ func themeResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -740,9 +888,13 @@ func themeResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "theme_id": { // Property: ThemeId @@ -1061,16 +1213,24 @@ func themeResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

The Amazon Resource Name (ARN) of the resource.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "base_theme_id": { // Property: BaseThemeId Description: "

The Amazon QuickSight-defined ID of the theme that a custom theme inherits from. All\n themes initially inherit from a default QuickSight theme.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), validate.StringMatch(regexp.MustCompile("[\\w\\-]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "configuration": { // Property: Configuration @@ -1087,33 +1247,49 @@ func themeResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

The hexadecimal codes for the colors.

", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 100), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "empty_fill_color": { // Property: EmptyFillColor Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_max_gradient": { // Property: MinMaxGradient Description: "

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

", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 100), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sheet": { // Property: Sheet @@ -1135,14 +1311,26 @@ func themeResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

The option to enable display of borders for visuals.

", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tile_layout": { // Property: TileLayout @@ -1159,10 +1347,18 @@ func themeResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

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

", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "margin": { // Property: Margin @@ -1174,18 +1370,34 @@ func themeResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

This Boolean value controls whether to display sheet margins.

", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "typography": { // Property: Typography @@ -1200,17 +1412,29 @@ func themeResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: FontFamily Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 5), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ui_color_palette": { // Property: UIColorPalette @@ -1222,167 +1446,247 @@ func themeResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

This color is that applies to selected states and buttons.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "accent_foreground": { // Property: AccentForeground Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "danger": { // Property: Danger Description: "

The color that applies to error messages.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "danger_foreground": { // Property: DangerForeground Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dimension": { // Property: Dimension Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dimension_foreground": { // Property: DimensionForeground Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "measure": { // Property: Measure Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "measure_foreground": { // Property: MeasureForeground Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "primary_background": { // Property: PrimaryBackground Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "primary_foreground": { // Property: PrimaryForeground 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.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "secondary_background": { // Property: SecondaryBackground Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "secondary_foreground": { // Property: SecondaryForeground Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "success": { // Property: Success Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "success_foreground": { // Property: SuccessForeground Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "warning": { // Property: Warning Description: "

This color that applies to warning and informational messages.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "warning_foreground": { // Property: WarningForeground Description: "

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

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^#[A-F0-9]{6}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "created_time": { // Property: CreatedTime Description: "

The date and time that this theme version was created.

", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description Description: "

The description of the theme.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "errors": { // Property: Errors @@ -1394,31 +1698,44 @@ func themeResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

The error message.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile(".*\\S.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "INTERNAL_FAILURE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CREATION_IN_PROGRESS", @@ -1430,15 +1747,22 @@ func themeResourceType(ctx context.Context) (provider.ResourceType, error) { "DELETED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "version_number": { // Property: VersionNumber Description: "

The version number of the theme.

", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatAtLeast(1.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1459,9 +1783,13 @@ func themeResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "

A description of the first version of the theme that you're creating. Every time\n\t\t\t\tUpdateTheme is called, a new version is created. Each version of the\n\t\t\ttheme has a description of the version in the VersionDescription\n\t\t\tfield.

", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // VersionDescription is a write-only property. }, } diff --git a/internal/aws/rds/db_parameter_group_resource_gen.go b/internal/aws/rds/db_parameter_group_resource_gen.go index 00b53bb61a..724895234f 100644 --- a/internal/aws/rds/db_parameter_group_resource_gen.go +++ b/internal/aws/rds/db_parameter_group_resource_gen.go @@ -75,6 +75,10 @@ func dBParameterGroupResourceType(ctx context.Context) (provider.ResourceType, e Description: "An array of parameter names and values for the parameter update.", Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // Parameters is a write-only property. }, "tags": { @@ -125,18 +129,24 @@ func dBParameterGroupResourceType(ctx context.Context) (provider.ResourceType, e 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 -.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/rds/db_proxy_endpoint_resource_gen.go b/internal/aws/rds/db_proxy_endpoint_resource_gen.go index 29256f8af8..e43164b994 100644 --- a/internal/aws/rds/db_proxy_endpoint_resource_gen.go +++ b/internal/aws/rds/db_proxy_endpoint_resource_gen.go @@ -138,25 +138,35 @@ func dBProxyEndpointResourceType(ctx context.Context) (provider.ResourceType, er // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(128), validate.StringMatch(regexp.MustCompile("(\\w|\\d|\\s|\\\\|-|\\.:=+-)*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(128), validate.StringMatch(regexp.MustCompile("(\\w|\\d|\\s|\\\\|-|\\.:=+-)*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "target_role": { @@ -214,11 +224,13 @@ func dBProxyEndpointResourceType(ctx context.Context) (provider.ResourceType, er Description: "VPC security group IDs to associate with the new DB proxy endpoint.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "vpc_subnet_ids": { diff --git a/internal/aws/rds/db_proxy_resource_gen.go b/internal/aws/rds/db_proxy_resource_gen.go index 109a61aeea..f73f58a06c 100644 --- a/internal/aws/rds/db_proxy_resource_gen.go +++ b/internal/aws/rds/db_proxy_resource_gen.go @@ -71,41 +71,61 @@ func dBProxyResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The type of authentication that the proxy uses for connections from the proxy to the underlying database. ", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "SECRETS", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description Description: "A user-specified description about the authentication used by a proxy to log in as a specific database user. ", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "iam_auth": { // Property: IAMAuth Description: "Whether to require or disallow AWS Identity and Access Management (IAM) authentication for connections to the proxy. ", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "DISABLED", "REQUIRED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "secret_arn": { // Property: SecretArn Description: "The Amazon Resource Name (ARN) representing the secret that the proxy uses to authenticate to the RDS DB instance or Aurora DB cluster. These secrets are stored within Amazon Secrets Manager. ", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "user_name": { // Property: UserName Description: "The name of the database user to which the proxy connects.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -158,6 +178,10 @@ func dBProxyResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Whether the proxy includes detailed information about SQL statements in its logs.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "endpoint": { // Property: Endpoint @@ -207,6 +231,10 @@ func dBProxyResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "require_tls": { // Property: RequireTLS @@ -218,6 +246,10 @@ func dBProxyResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A Boolean parameter that specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleArn @@ -259,23 +291,35 @@ func dBProxyResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(128), validate.StringMatch(regexp.MustCompile("(\\w|\\d|\\s|\\\\|-|\\.:=+-)*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(128), validate.StringMatch(regexp.MustCompile("(\\w|\\d|\\s|\\\\|-|\\.:=+-)*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_security_group_ids": { // Property: VpcSecurityGroupIds @@ -291,9 +335,13 @@ func dBProxyResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "VPC security group IDs to associate with the new proxy.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_subnet_ids": { // Property: VpcSubnetIds diff --git a/internal/aws/rds/db_proxy_target_group_resource_gen.go b/internal/aws/rds/db_proxy_target_group_resource_gen.go index 11c2b6fe65..acf7111182 100644 --- a/internal/aws/rds/db_proxy_target_group_resource_gen.go +++ b/internal/aws/rds/db_proxy_target_group_resource_gen.go @@ -65,40 +65,64 @@ func dBProxyTargetGroupResourceType(ctx context.Context) (provider.ResourceType, Description: "The number of seconds for a proxy to wait for a connection to become available in the connection pool.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "init_query": { // Property: InitQuery Description: "One or more SQL statements for the proxy to run when opening each new database connection.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_connections_percent": { // Property: MaxConnectionsPercent Description: "The maximum size of the connection pool for each target in a target group.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_idle_connections_percent": { // Property: MaxIdleConnectionsPercent Description: "Controls how actively the proxy closes idle database connections in the connection pool.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "session_pinning_filters": { // Property: SessionPinningFilters Description: "Each item in the list represents a class of SQL operations that normally cause all later statements in a session using a proxy to be pinned to the same underlying database connection.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "db_cluster_identifiers": { // Property: DBClusterIdentifiers @@ -111,6 +135,10 @@ func dBProxyTargetGroupResourceType(ctx context.Context) (provider.ResourceType, // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "db_instance_identifiers": { // Property: DBInstanceIdentifiers @@ -123,6 +151,10 @@ func dBProxyTargetGroupResourceType(ctx context.Context) (provider.ResourceType, // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "db_proxy_name": { // Property: DBProxyName diff --git a/internal/aws/rds/db_subnet_group_resource_gen.go b/internal/aws/rds/db_subnet_group_resource_gen.go index 8ed8256dc0..2187d8d053 100644 --- a/internal/aws/rds/db_subnet_group_resource_gen.go +++ b/internal/aws/rds/db_subnet_group_resource_gen.go @@ -109,18 +109,24 @@ func dBSubnetGroupResourceType(ctx context.Context) (provider.ResourceType, erro 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 -. ", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/rds/event_subscription_resource_gen.go b/internal/aws/rds/event_subscription_resource_gen.go index a1f653f80b..19cdbb4bc8 100644 --- a/internal/aws/rds/event_subscription_resource_gen.go +++ b/internal/aws/rds/event_subscription_resource_gen.go @@ -53,9 +53,13 @@ func eventSubscriptionResourceType(ctx context.Context) (provider.ResourceType, Description: "A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sns_topic_arn": { // Property: SnsTopicArn @@ -86,6 +90,10 @@ func eventSubscriptionResourceType(ctx context.Context) (provider.ResourceType, Description: "The list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it cannot end with a hyphen or contain two consecutive hyphens.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_type": { // Property: SourceType @@ -97,6 +105,10 @@ func eventSubscriptionResourceType(ctx context.Context) (provider.ResourceType, Description: "The type of source that will be generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subscription_name": { // Property: SubscriptionName @@ -166,18 +178,24 @@ func eventSubscriptionResourceType(ctx context.Context) (provider.ResourceType, 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 -.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/rds/global_cluster_resource_gen.go b/internal/aws/rds/global_cluster_resource_gen.go index f9193b9ae5..e06cb35a3d 100644 --- a/internal/aws/rds/global_cluster_resource_gen.go +++ b/internal/aws/rds/global_cluster_resource_gen.go @@ -33,6 +33,10 @@ func globalClusterResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The deletion protection setting for the new global database. The global database can't be deleted when deletion protection is enabled.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "engine": { // Property: Engine diff --git a/internal/aws/redshift/endpoint_access_resource_gen.go b/internal/aws/redshift/endpoint_access_resource_gen.go index 7bb8e1a56f..4f06f3127c 100644 --- a/internal/aws/redshift/endpoint_access_resource_gen.go +++ b/internal/aws/redshift/endpoint_access_resource_gen.go @@ -202,30 +202,48 @@ func endpointAccessResourceType(ctx context.Context) (provider.ResourceType, err Description: "The Availability Zone.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "network_interface_id": { // Property: NetworkInterfaceId Description: "The network interface identifier.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "private_ip_address": { // Property: PrivateIpAddress Description: "The IPv4 address of the network interface within the subnet.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnet_id": { // Property: SubnetId Description: "The subnet identifier.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "vpc_endpoint_id": { @@ -233,12 +251,20 @@ func endpointAccessResourceType(ctx context.Context) (provider.ResourceType, err Description: "The connection endpoint ID for connecting an Amazon Redshift cluster through the proxy.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_id": { // Property: VpcId Description: "The VPC identifier that the endpoint is associated.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -296,12 +322,20 @@ func endpointAccessResourceType(ctx context.Context) (provider.ResourceType, err Description: "The status of the VPC security group.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_security_group_id": { // Property: VpcSecurityGroupId Description: "The identifier of the VPC security group.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/redshift/endpoint_authorization_resource_gen.go b/internal/aws/redshift/endpoint_authorization_resource_gen.go index 1bd2d33cd2..a221ecf3c9 100644 --- a/internal/aws/redshift/endpoint_authorization_resource_gen.go +++ b/internal/aws/redshift/endpoint_authorization_resource_gen.go @@ -142,6 +142,10 @@ func endpointAuthorizationResourceType(ctx context.Context) (provider.ResourceTy Description: " Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // Force is a write-only property. }, "grantee": { @@ -203,11 +207,13 @@ func endpointAuthorizationResourceType(ctx context.Context) (provider.ResourceTy Description: "The virtual private cloud (VPC) identifiers to grant or revoke access to.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^vpc-[A-Za-z0-9]{1,17}$"), "")), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/redshift/event_subscription_resource_gen.go b/internal/aws/redshift/event_subscription_resource_gen.go index e3b1f889dc..8a07e2d0ca 100644 --- a/internal/aws/redshift/event_subscription_resource_gen.go +++ b/internal/aws/redshift/event_subscription_resource_gen.go @@ -60,6 +60,10 @@ func eventSubscriptionResourceType(ctx context.Context) (provider.ResourceType, Description: "A boolean value; set to true to activate the subscription, and set to false to create the subscription but not activate it.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "event_categories": { // Property: EventCategories @@ -83,6 +87,7 @@ func eventSubscriptionResourceType(ctx context.Context) (provider.ResourceType, Description: "Specifies the Amazon Redshift event categories to be published by the event notification subscription.", Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "configuration", @@ -92,6 +97,9 @@ func eventSubscriptionResourceType(ctx context.Context) (provider.ResourceType, "pending", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "event_categories_list": { // Property: EventCategoriesList @@ -126,12 +134,16 @@ func eventSubscriptionResourceType(ctx context.Context) (provider.ResourceType, Description: "Specifies the Amazon Redshift event severity to be published by the event notification subscription.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ERROR", "INFO", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sns_topic_arn": { // Property: SnsTopicArn @@ -143,6 +155,10 @@ func eventSubscriptionResourceType(ctx context.Context) (provider.ResourceType, Description: "The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the event notifications.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_ids": { // Property: SourceIds @@ -158,8 +174,10 @@ func eventSubscriptionResourceType(ctx context.Context) (provider.ResourceType, Description: "A list of one or more identifiers of Amazon Redshift source objects.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "source_ids_list": { @@ -198,6 +216,7 @@ func eventSubscriptionResourceType(ctx context.Context) (provider.ResourceType, Description: "The type of source that will be generating the events.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "cluster", @@ -207,6 +226,9 @@ func eventSubscriptionResourceType(ctx context.Context) (provider.ResourceType, "scheduled-action", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status @@ -311,8 +333,10 @@ func eventSubscriptionResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/redshift/scheduled_action_resource_gen.go b/internal/aws/redshift/scheduled_action_resource_gen.go index c5a90eb8aa..221bdd1d90 100644 --- a/internal/aws/redshift/scheduled_action_resource_gen.go +++ b/internal/aws/redshift/scheduled_action_resource_gen.go @@ -31,6 +31,10 @@ func scheduledActionResourceType(ctx context.Context) (provider.ResourceType, er Description: "If true, the schedule is enabled. If false, the scheduled action does not trigger.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "end_time": { // Property: EndTime @@ -42,6 +46,10 @@ func scheduledActionResourceType(ctx context.Context) (provider.ResourceType, er Description: "The end time in UTC of the scheduled action. After this time, the scheduled action does not trigger.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "iam_role": { // Property: IamRole @@ -53,6 +61,10 @@ func scheduledActionResourceType(ctx context.Context) (provider.ResourceType, er Description: "The IAM role to assume to run the target action.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "next_invocations": { // Property: NextInvocations @@ -83,6 +95,10 @@ func scheduledActionResourceType(ctx context.Context) (provider.ResourceType, er Description: "The schedule in `at( )` or `cron( )` format.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "scheduled_action_description": { // Property: ScheduledActionDescription @@ -95,6 +111,10 @@ func scheduledActionResourceType(ctx context.Context) (provider.ResourceType, er Description: "The description of the scheduled action.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "scheduled_action_name": { // Property: ScheduledActionName @@ -121,6 +141,10 @@ func scheduledActionResourceType(ctx context.Context) (provider.ResourceType, er Description: "The start time in UTC of the scheduled action. Before this time, the scheduled action does not trigger.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "state": { // Property: State @@ -216,6 +240,10 @@ func scheduledActionResourceType(ctx context.Context) (provider.ResourceType, er }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resize_cluster": { // Property: ResizeCluster @@ -226,6 +254,10 @@ func scheduledActionResourceType(ctx context.Context) (provider.ResourceType, er // Property: Classic Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cluster_identifier": { // Property: ClusterIdentifier @@ -236,20 +268,36 @@ func scheduledActionResourceType(ctx context.Context) (provider.ResourceType, er // Property: ClusterType Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "node_type": { // Property: NodeType Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "number_of_nodes": { // Property: NumberOfNodes Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resume_cluster": { // Property: ResumeCluster @@ -264,10 +312,18 @@ func scheduledActionResourceType(ctx context.Context) (provider.ResourceType, er }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/redshiftserverless/namespace_resource_gen.go b/internal/aws/redshiftserverless/namespace_resource_gen.go index acc935974e..d1f925d6ec 100644 --- a/internal/aws/redshiftserverless/namespace_resource_gen.go +++ b/internal/aws/redshiftserverless/namespace_resource_gen.go @@ -36,9 +36,13 @@ func namespaceResourceType(ctx context.Context) (provider.ResourceType, error) { 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.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(8, 64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // AdminUserPassword is a write-only property. }, "admin_username": { @@ -52,9 +56,13 @@ func namespaceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The user name associated with the admin user for the namespace that is being created. Only alphanumeric characters and underscores are allowed. It should start with an alphabet.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("[a-zA-Z][a-zA-Z_0-9+.@-]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "db_name": { // Property: DbName @@ -68,10 +76,14 @@ func namespaceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The database name associated for the namespace that is being created. Only alphanumeric characters and underscores are allowed. It should start with an alphabet.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(127), validate.StringMatch(regexp.MustCompile("[a-zA-Z][a-zA-Z_0-9+.@-]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "default_iam_role_arn": { // Property: DefaultIamRoleArn @@ -83,6 +95,10 @@ func namespaceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The default IAM role ARN for the namespace that is being created.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "final_snapshot_name": { // Property: FinalSnapshotName @@ -96,10 +112,14 @@ func namespaceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of the namespace the source snapshot was created from. Please specify the name if needed before deleting namespace", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(255), validate.StringMatch(regexp.MustCompile("[a-z][a-z0-9]*(-[a-z0-9]+)*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "final_snapshot_retention_period": { // Property: FinalSnapshotRetentionPeriod @@ -111,6 +131,10 @@ func namespaceResourceType(ctx context.Context) (provider.ResourceType, error) { 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.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "iam_roles": { // Property: IamRoles @@ -128,11 +152,13 @@ func namespaceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A list of AWS Identity and Access Management (IAM) roles that can be used by the namespace to access other AWS services. You must supply the IAM roles in their Amazon Resource Name (ARN) format. The Default role limit for each request is 10.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(0, 512)), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "kms_key_id": { @@ -145,6 +171,10 @@ func namespaceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The AWS Key Management Service (KMS) key ID of the encryption key that you want to use to encrypt data in the namespace.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_exports": { // Property: LogExports @@ -167,6 +197,7 @@ func namespaceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The collection of log types to be exported provided by the customer. Should only be one of the three supported log types: userlog, useractivitylog and connectionlog", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 16), validate.ArrayForEach(validate.StringInSlice([]string{ @@ -177,6 +208,7 @@ func namespaceResourceType(ctx context.Context) (provider.ResourceType, error) { }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "namespace": { @@ -253,45 +285,68 @@ func namespaceResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: AdminUsername Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "creation_date": { // Property: CreationDate Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "db_name": { // Property: DbName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("[a-zA-Z][a-zA-Z_0-9+.@-]*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "default_iam_role_arn": { // Property: DefaultIamRoleArn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "iam_roles": { // Property: IamRoles Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(0, 512)), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "kms_key_id": { // Property: KmsKeyId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_exports": { // Property: LogExports Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 16), validate.ArrayForEach(validate.StringInSlice([]string{ @@ -302,31 +357,45 @@ func namespaceResourceType(ctx context.Context) (provider.ResourceType, error) { }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "namespace_arn": { // Property: NamespaceArn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "namespace_id": { // Property: NamespaceId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "namespace_name": { // Property: NamespaceName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 64), validate.StringMatch(regexp.MustCompile("^[a-z0-9-]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "AVAILABLE", @@ -334,6 +403,9 @@ func namespaceResourceType(ctx context.Context) (provider.ResourceType, error) { "DELETING", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/redshiftserverless/workgroup_resource_gen.go b/internal/aws/redshiftserverless/workgroup_resource_gen.go index d143d1f788..acb4984a89 100644 --- a/internal/aws/redshiftserverless/workgroup_resource_gen.go +++ b/internal/aws/redshiftserverless/workgroup_resource_gen.go @@ -31,6 +31,10 @@ func workgroupResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // BaseCapacity is a write-only property. }, "config_parameters": { @@ -64,24 +68,36 @@ func workgroupResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: ParameterKey Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "parameter_value": { // Property: ParameterValue Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 15000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // ConfigParameters is a write-only property. }, "enhanced_vpc_routing": { @@ -92,6 +108,10 @@ func workgroupResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // EnhancedVpcRouting is a write-only property. }, "namespace_name": { @@ -122,6 +142,10 @@ func workgroupResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // PubliclyAccessible is a write-only property. }, "security_group_ids": { @@ -141,6 +165,7 @@ func workgroupResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 32), validate.ArrayForEach(validate.StringLenBetween(0, 255)), @@ -148,6 +173,7 @@ func workgroupResourceType(ctx context.Context) (provider.ResourceType, error) { }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, // SecurityGroupIds is a write-only property. }, @@ -168,6 +194,7 @@ func workgroupResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 32), validate.ArrayForEach(validate.StringLenBetween(0, 255)), @@ -175,6 +202,7 @@ func workgroupResourceType(ctx context.Context) (provider.ResourceType, error) { }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, // SubnetIds is a write-only property. }, @@ -228,11 +256,13 @@ func workgroupResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 200), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, // Tags is a write-only property. }, @@ -381,6 +411,10 @@ func workgroupResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: BaseCapacity Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "config_parameters": { // Property: ConfigParameters @@ -390,26 +424,42 @@ func workgroupResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: ParameterKey Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "parameter_value": { // Property: ParameterValue Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 15000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "creation_date": { // Property: CreationDate Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "endpoint": { // Property: Endpoint @@ -419,11 +469,19 @@ func workgroupResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Address Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "port": { // Property: Port Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_endpoints": { // Property: VpcEndpoints @@ -437,85 +495,132 @@ func workgroupResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: AvailabilityZone Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "network_interface_id": { // Property: NetworkInterfaceId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "private_ip_address": { // Property: PrivateIpAddress Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnet_id": { // Property: SubnetId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "vpc_endpoint_id": { // Property: VpcEndpointId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_id": { // Property: VpcId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enhanced_vpc_routing": { // Property: EnhancedVpcRouting Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "namespace_name": { // Property: NamespaceName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 64), validate.StringMatch(regexp.MustCompile("^[a-z0-9-]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "publicly_accessible": { // Property: PubliclyAccessible Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "security_group_ids": { // Property: SecurityGroupIds Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(0, 255)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^sg-[0-9a-fA-F]{8,}$"), "")), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "status": { // Property: Status Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CREATING", @@ -524,37 +629,54 @@ func workgroupResourceType(ctx context.Context) (provider.ResourceType, error) { "DELETING", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subnet_ids": { // Property: SubnetIds Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(0, 255)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^subnet-[0-9a-fA-F]{8,}$"), "")), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "workgroup_arn": { // Property: WorkgroupArn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "workgroup_id": { // Property: WorkgroupId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "workgroup_name": { // Property: WorkgroupName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 64), validate.StringMatch(regexp.MustCompile("^[a-z0-9-]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/refactorspaces/environment_resource_gen.go b/internal/aws/refactorspaces/environment_resource_gen.go index bf35ed2258..a510ecb1d4 100644 --- a/internal/aws/refactorspaces/environment_resource_gen.go +++ b/internal/aws/refactorspaces/environment_resource_gen.go @@ -175,8 +175,10 @@ func environmentResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "transit_gateway_id": { diff --git a/internal/aws/refactorspaces/route_resource_gen.go b/internal/aws/refactorspaces/route_resource_gen.go index b613366f09..9994c75f0c 100644 --- a/internal/aws/refactorspaces/route_resource_gen.go +++ b/internal/aws/refactorspaces/route_resource_gen.go @@ -92,6 +92,10 @@ func routeResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // DefaultRoute is a write-only property. }, "environment_identifier": { @@ -241,8 +245,10 @@ func routeResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "uri_path_route": { @@ -351,6 +357,10 @@ func routeResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // UriPathRoute is a write-only property. }, } diff --git a/internal/aws/refactorspaces/service_resource_gen.go b/internal/aws/refactorspaces/service_resource_gen.go index b413f2b6c3..10d4c18241 100644 --- a/internal/aws/refactorspaces/service_resource_gen.go +++ b/internal/aws/refactorspaces/service_resource_gen.go @@ -254,8 +254,10 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "url_endpoint": { @@ -288,10 +290,14 @@ func serviceResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: HealthUrl Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), validate.StringMatch(regexp.MustCompile("^https?://[-a-zA-Z0-9+\\x38@#/%?=~_|!:,.;]*[-a-zA-Z0-9+\\x38@#/%=~_|]$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "url": { // Property: Url diff --git a/internal/aws/rekognition/collection_resource_gen.go b/internal/aws/rekognition/collection_resource_gen.go index 7af15a14bc..a912731432 100644 --- a/internal/aws/rekognition/collection_resource_gen.go +++ b/internal/aws/rekognition/collection_resource_gen.go @@ -117,9 +117,13 @@ func collectionResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/resiliencehub/app_resource_gen.go b/internal/aws/resiliencehub/app_resource_gen.go index 79718e9ff9..d32d98295b 100644 --- a/internal/aws/resiliencehub/app_resource_gen.go +++ b/internal/aws/resiliencehub/app_resource_gen.go @@ -52,12 +52,16 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Assessment execution schedule.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Disabled", "Daily", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "app_template_body": { // Property: AppTemplateBody @@ -89,9 +93,13 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "App description.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 500), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -122,6 +130,10 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Amazon Resource Name (ARN) of the Resiliency Policy.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_mappings": { // Property: ResourceMappings @@ -191,6 +203,10 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: LogicalStackName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "mapping_type": { // Property: MappingType @@ -208,17 +224,25 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: AwsAccountId Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[0-9]{12}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "aws_region": { // Property: AwsRegion Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[a-z]{2}-((iso[a-z]{0,1}-)|(gov-)){0,1}[a-z]+-[0-9]$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "identifier": { // Property: Identifier @@ -244,14 +268,22 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: ResourceName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[A-Za-z0-9][A-Za-z0-9_\\-]{1,59}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "terraform_source_name": { // Property: TerraformSourceName Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -276,6 +308,10 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/resiliencehub/resiliency_policy_resource_gen.go b/internal/aws/resiliencehub/resiliency_policy_resource_gen.go index 67b40e1de2..fa60f33415 100644 --- a/internal/aws/resiliencehub/resiliency_policy_resource_gen.go +++ b/internal/aws/resiliencehub/resiliency_policy_resource_gen.go @@ -38,6 +38,7 @@ func resiliencyPolicyResourceType(ctx context.Context) (provider.ResourceType, e Description: "Data Location Constraint of the Policy.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "AnyLocation", @@ -45,6 +46,9 @@ func resiliencyPolicyResourceType(ctx context.Context) (provider.ResourceType, e "SameCountry", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "policy": { // Property: Policy @@ -82,12 +86,20 @@ func resiliencyPolicyResourceType(ctx context.Context) (provider.ResourceType, e Description: "RPO in seconds.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rto_in_secs": { // Property: RtoInSecs Description: "RTO in seconds.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -119,9 +131,13 @@ func resiliencyPolicyResourceType(ctx context.Context) (provider.ResourceType, e Description: "Description of Resiliency Policy.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(500), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "policy_name": { // Property: PolicyName @@ -154,6 +170,10 @@ func resiliencyPolicyResourceType(ctx context.Context) (provider.ResourceType, e // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tier": { // Property: Tier diff --git a/internal/aws/resourcegroups/group_resource_gen.go b/internal/aws/resourcegroups/group_resource_gen.go index 7325fd15a4..9faa1d3bf3 100644 --- a/internal/aws/resourcegroups/group_resource_gen.go +++ b/internal/aws/resourcegroups/group_resource_gen.go @@ -79,24 +79,44 @@ func groupResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Name Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "values": { // Property: Values Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "description": { // Property: Description @@ -109,9 +129,13 @@ func groupResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The description of the resource group", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -190,11 +214,19 @@ func groupResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: ResourceTypeFilters Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stack_identifier": { // Property: StackIdentifier Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tag_filters": { // Property: TagFilters @@ -204,34 +236,58 @@ func groupResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Key Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "values": { // Property: Values Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "TAG_FILTERS_1_0", "CLOUDFORMATION_STACK_1_0", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resources": { // Property: Resources @@ -244,6 +300,10 @@ func groupResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -270,15 +330,27 @@ func groupResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Key Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/robomaker/fleet_resource_gen.go b/internal/aws/robomaker/fleet_resource_gen.go index 5569ad7e97..d6b16311c9 100644 --- a/internal/aws/robomaker/fleet_resource_gen.go +++ b/internal/aws/robomaker/fleet_resource_gen.go @@ -79,6 +79,10 @@ func fleetResourceType(ctx context.Context) (provider.ResourceType, error) { // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/robomaker/robot_application_resource_gen.go b/internal/aws/robomaker/robot_application_resource_gen.go index cc1c29d5a6..3b3c007239 100644 --- a/internal/aws/robomaker/robot_application_resource_gen.go +++ b/internal/aws/robomaker/robot_application_resource_gen.go @@ -47,9 +47,13 @@ func robotApplicationResourceType(ctx context.Context) (provider.ResourceType, e Description: "The revision ID of robot application.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 40), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "environment": { // Property: Environment @@ -61,6 +65,10 @@ func robotApplicationResourceType(ctx context.Context) (provider.ResourceType, e Description: "The URI of the Docker image for the robot application.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -135,6 +143,7 @@ func robotApplicationResourceType(ctx context.Context) (provider.ResourceType, e Description: "The version of robot software suite.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Kinetic", @@ -142,6 +151,9 @@ func robotApplicationResourceType(ctx context.Context) (provider.ResourceType, e "Dashing", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -217,8 +229,10 @@ func robotApplicationResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "tags": { @@ -241,6 +255,10 @@ func robotApplicationResourceType(ctx context.Context) (provider.ResourceType, e // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/robomaker/robot_resource_gen.go b/internal/aws/robomaker/robot_resource_gen.go index 14f07d64a4..83dcf8b583 100644 --- a/internal/aws/robomaker/robot_resource_gen.go +++ b/internal/aws/robomaker/robot_resource_gen.go @@ -142,6 +142,10 @@ func robotResourceType(ctx context.Context) (provider.ResourceType, error) { // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/robomaker/simulation_application_resource_gen.go b/internal/aws/robomaker/simulation_application_resource_gen.go index 6a8af27745..2b47e07d6c 100644 --- a/internal/aws/robomaker/simulation_application_resource_gen.go +++ b/internal/aws/robomaker/simulation_application_resource_gen.go @@ -46,6 +46,10 @@ func simulationApplicationResourceType(ctx context.Context) (provider.ResourceTy Description: "The current revision id.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "environment": { // Property: Environment @@ -57,6 +61,10 @@ func simulationApplicationResourceType(ctx context.Context) (provider.ResourceTy Description: "The URI of the Docker image for the robot application.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -133,6 +141,10 @@ func simulationApplicationResourceType(ctx context.Context) (provider.ResourceTy }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "robot_software_suite": { // Property: RobotSoftwareSuite @@ -187,6 +199,7 @@ func simulationApplicationResourceType(ctx context.Context) (provider.ResourceTy Description: "The version of the robot software suite.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Kinetic", @@ -195,6 +208,9 @@ func simulationApplicationResourceType(ctx context.Context) (provider.ResourceTy "Foxy", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -256,6 +272,7 @@ func simulationApplicationResourceType(ctx context.Context) (provider.ResourceTy Description: "The version of the simulation software suite.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "7", @@ -267,6 +284,9 @@ func simulationApplicationResourceType(ctx context.Context) (provider.ResourceTy "Foxy", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -349,8 +369,10 @@ func simulationApplicationResourceType(ctx context.Context) (provider.ResourceTy }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "tags": { @@ -373,6 +395,10 @@ func simulationApplicationResourceType(ctx context.Context) (provider.ResourceTy // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/rolesanywhere/crl_resource_gen.go b/internal/aws/rolesanywhere/crl_resource_gen.go index 4979d49e7b..fdd09e63cf 100644 --- a/internal/aws/rolesanywhere/crl_resource_gen.go +++ b/internal/aws/rolesanywhere/crl_resource_gen.go @@ -31,6 +31,10 @@ func cRLResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "crl_id": { // Property: CrlId @@ -53,6 +57,10 @@ func cRLResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -62,6 +70,10 @@ func cRLResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -112,9 +124,13 @@ func cRLResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "trust_anchor_arn": { // Property: TrustAnchorArn @@ -125,9 +141,13 @@ func cRLResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^arn:aws(-[^:]+)?:rolesanywhere(:.*){2}(:trust-anchor.*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/rolesanywhere/profile_resource_gen.go b/internal/aws/rolesanywhere/profile_resource_gen.go index 3fee90f0a1..c8b8637b8e 100644 --- a/internal/aws/rolesanywhere/profile_resource_gen.go +++ b/internal/aws/rolesanywhere/profile_resource_gen.go @@ -32,9 +32,13 @@ func profileResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatBetween(900.000000, 43200.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enabled": { // Property: Enabled @@ -44,6 +48,10 @@ func profileResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "managed_policy_arns": { // Property: ManagedPolicyArns @@ -56,6 +64,10 @@ func profileResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -65,6 +77,10 @@ func profileResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "profile_arn": { // Property: ProfileArn @@ -99,6 +115,10 @@ func profileResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arns": { // Property: RoleArns @@ -113,9 +133,13 @@ func profileResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenBetween(1, 1011)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "session_policy": { // Property: SessionPolicy @@ -125,6 +149,10 @@ func profileResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -175,9 +203,13 @@ func profileResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/rolesanywhere/trust_anchor_resource_gen.go b/internal/aws/rolesanywhere/trust_anchor_resource_gen.go index 363bc83bb1..1e71d680cb 100644 --- a/internal/aws/rolesanywhere/trust_anchor_resource_gen.go +++ b/internal/aws/rolesanywhere/trust_anchor_resource_gen.go @@ -30,6 +30,10 @@ func trustAnchorResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -39,6 +43,10 @@ func trustAnchorResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source": { // Property: Source @@ -78,20 +86,33 @@ func trustAnchorResourceType(ctx context.Context) (provider.ResourceType, error) // Property: AcmPcaArn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "x509_certificate_data": { // Property: X509CertificateData Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_type": { // Property: SourceType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "AWS_ACM_PCA", @@ -99,10 +120,17 @@ func trustAnchorResourceType(ctx context.Context) (provider.ResourceType, error) "SELF_SIGNED_REPOSITORY", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -153,9 +181,13 @@ func trustAnchorResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "trust_anchor_arn": { // Property: TrustAnchorArn diff --git a/internal/aws/route53/cidr_collection_resource_gen.go b/internal/aws/route53/cidr_collection_resource_gen.go index 9f5515219b..f4241ea77e 100644 --- a/internal/aws/route53/cidr_collection_resource_gen.go +++ b/internal/aws/route53/cidr_collection_resource_gen.go @@ -106,6 +106,10 @@ func cidrCollectionResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name diff --git a/internal/aws/route53/health_check_resource_gen.go b/internal/aws/route53/health_check_resource_gen.go index 1104c3c6c2..f0bbf8f4b1 100644 --- a/internal/aws/route53/health_check_resource_gen.go +++ b/internal/aws/route53/health_check_resource_gen.go @@ -171,60 +171,87 @@ func healthCheckResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "child_health_checks": { // Property: ChildHealthChecks Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(256), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "enable_sni": { // Property: EnableSNI Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "failure_threshold": { // Property: FailureThreshold Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 10), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "fully_qualified_domain_name": { // Property: FullyQualifiedDomainName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "health_threshold": { // Property: HealthThreshold Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ip_address": { // Property: IPAddress Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(45), validate.StringMatch(regexp.MustCompile("^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "insufficient_data_health_status": { // Property: InsufficientDataHealthStatus Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Healthy", @@ -232,11 +259,18 @@ func healthCheckResourceType(ctx context.Context) (provider.ResourceType, error) "Unhealthy", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inverted": { // Property: Inverted Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "measure_latency": { // Property: MeasureLatency @@ -252,19 +286,25 @@ func healthCheckResourceType(ctx context.Context) (provider.ResourceType, error) // Property: Port Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 65535), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "regions": { // Property: Regions Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(64), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "request_interval": { @@ -284,25 +324,37 @@ func healthCheckResourceType(ctx context.Context) (provider.ResourceType, error) // Property: ResourcePath Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "routing_control_arn": { // Property: RoutingControlArn Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "search_string": { // Property: SearchString Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type @@ -394,6 +446,10 @@ func healthCheckResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/route53/hosted_zone_resource_gen.go b/internal/aws/route53/hosted_zone_resource_gen.go index e7412fc875..7e92dc3dae 100644 --- a/internal/aws/route53/hosted_zone_resource_gen.go +++ b/internal/aws/route53/hosted_zone_resource_gen.go @@ -45,13 +45,21 @@ func hostedZoneResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Any comments that you want to include about the hosted zone.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "hosted_zone_tags": { // Property: HostedZoneTags @@ -107,6 +115,10 @@ func hostedZoneResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id @@ -185,6 +197,10 @@ func hostedZoneResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vp_cs": { // Property: VPCs @@ -232,6 +248,10 @@ func hostedZoneResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/route53recoverycontrol/cluster_resource_gen.go b/internal/aws/route53recoverycontrol/cluster_resource_gen.go index 16be865720..3dc9392bbb 100644 --- a/internal/aws/route53recoverycontrol/cluster_resource_gen.go +++ b/internal/aws/route53recoverycontrol/cluster_resource_gen.go @@ -69,17 +69,25 @@ func clusterResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Endpoint Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "region": { // Property: Region Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 32), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/route53recoverycontrol/safety_rule_resource_gen.go b/internal/aws/route53recoverycontrol/safety_rule_resource_gen.go index 63120422b9..af39a5eefe 100644 --- a/internal/aws/route53recoverycontrol/safety_rule_resource_gen.go +++ b/internal/aws/route53recoverycontrol/safety_rule_resource_gen.go @@ -69,6 +69,10 @@ func safetyRuleResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "control_panel_arn": { // Property: ControlPanelArn @@ -151,6 +155,10 @@ func safetyRuleResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -162,6 +170,10 @@ func safetyRuleResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The name for the safety rule.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rule_config": { // Property: RuleConfig diff --git a/internal/aws/route53recoveryreadiness/cell_resource_gen.go b/internal/aws/route53recoveryreadiness/cell_resource_gen.go index 32b91143e6..283104efe2 100644 --- a/internal/aws/route53recoveryreadiness/cell_resource_gen.go +++ b/internal/aws/route53recoveryreadiness/cell_resource_gen.go @@ -73,11 +73,13 @@ func cellResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A list of cell Amazon Resource Names (ARNs) contained within this cell, for use in nested cells. For example, Availability Zones within specific Regions.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "parent_readiness_scopes": { @@ -148,8 +150,10 @@ func cellResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/route53recoveryreadiness/readiness_check_resource_gen.go b/internal/aws/route53recoveryreadiness/readiness_check_resource_gen.go index 710aa2c465..58d304697a 100644 --- a/internal/aws/route53recoveryreadiness/readiness_check_resource_gen.go +++ b/internal/aws/route53recoveryreadiness/readiness_check_resource_gen.go @@ -72,10 +72,14 @@ func readinessCheckResourceType(ctx context.Context) (provider.ResourceType, err Description: "The name of the resource set to check.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 64), validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9_]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -125,8 +129,10 @@ func readinessCheckResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/route53recoveryreadiness/recovery_group_resource_gen.go b/internal/aws/route53recoveryreadiness/recovery_group_resource_gen.go index 424965056b..b1bb6257ac 100644 --- a/internal/aws/route53recoveryreadiness/recovery_group_resource_gen.go +++ b/internal/aws/route53recoveryreadiness/recovery_group_resource_gen.go @@ -40,12 +40,14 @@ func recoveryGroupResourceType(ctx context.Context) (provider.ResourceType, erro Description: "A list of the cell Amazon Resource Names (ARNs) in the recovery group.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(5), validate.ArrayForEach(validate.StringLenBetween(1, 256)), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "recovery_group_arn": { @@ -132,8 +134,10 @@ func recoveryGroupResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/route53recoveryreadiness/resource_set_resource_gen.go b/internal/aws/route53recoveryreadiness/resource_set_resource_gen.go index 550e666a05..42ab430b9a 100644 --- a/internal/aws/route53recoveryreadiness/resource_set_resource_gen.go +++ b/internal/aws/route53recoveryreadiness/resource_set_resource_gen.go @@ -176,6 +176,10 @@ func resourceSetResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The component identifier of the resource, generated when DNS target resource is used.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dns_target_resource": { // Property: DnsTargetResource @@ -187,24 +191,40 @@ func resourceSetResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The domain name that acts as an ingress point to a portion of the customer application.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "hosted_zone_arn": { // Property: HostedZoneArn Description: "The hosted zone Amazon Resource Name (ARN) that contains the DNS record with the provided name of the target resource.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "record_set_id": { // Property: RecordSetId Description: "The Route 53 record set ID that will uniquely identify a DNS record, given a name and a type.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "record_type": { // Property: RecordType Description: "The type of DNS record of the target resource.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_resource": { // Property: TargetResource @@ -221,10 +241,18 @@ func resourceSetResourceType(ctx context.Context) (provider.ResourceType, error) Description: "A Network Load Balancer resource Amazon Resource Name (ARN).", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "r53_resource": { // Property: R53Resource @@ -236,20 +264,33 @@ func resourceSetResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The DNS target domain name.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "record_set_id": { // Property: RecordSetId Description: "The Resource Record set id.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.RequiredAttributes( validate.OneOfRequired( @@ -262,18 +303,27 @@ func resourceSetResourceType(ctx context.Context) (provider.ResourceType, error) ), ), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "readiness_scopes": { // Property: ReadinessScopes Description: "A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this resource is contained within.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "resource_arn": { @@ -281,6 +331,10 @@ func resourceSetResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The Amazon Resource Name (ARN) of the AWS resource.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -340,8 +394,10 @@ func resourceSetResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/route53resolver/firewall_domain_list_resource_gen.go b/internal/aws/route53resolver/firewall_domain_list_resource_gen.go index 9118e3d434..943374f17e 100644 --- a/internal/aws/route53resolver/firewall_domain_list_resource_gen.go +++ b/internal/aws/route53resolver/firewall_domain_list_resource_gen.go @@ -97,9 +97,13 @@ func firewallDomainListResourceType(ctx context.Context) (provider.ResourceType, Description: "S3 URL to import domains from.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // DomainFileUrl is a write-only property. }, "domains": { @@ -119,10 +123,14 @@ func firewallDomainListResourceType(ctx context.Context) (provider.ResourceType, Description: "An inline list of domains to use for this domain list.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), validate.ArrayForEach(validate.StringLenBetween(1, 255)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // Domains is a write-only property. }, "id": { @@ -287,6 +295,10 @@ func firewallDomainListResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/route53resolver/firewall_rule_group_association_resource_gen.go b/internal/aws/route53resolver/firewall_rule_group_association_resource_gen.go index fb3881c5aa..cb2c14fe73 100644 --- a/internal/aws/route53resolver/firewall_rule_group_association_resource_gen.go +++ b/internal/aws/route53resolver/firewall_rule_group_association_resource_gen.go @@ -151,12 +151,16 @@ func firewallRuleGroupAssociationResourceType(ctx context.Context) (provider.Res Description: "MutationProtectionStatus", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ENABLED", "DISABLED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -171,9 +175,13 @@ func firewallRuleGroupAssociationResourceType(ctx context.Context) (provider.Res Description: "FirewallRuleGroupAssociationName", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "priority": { // Property: Priority @@ -276,6 +284,10 @@ func firewallRuleGroupAssociationResourceType(ctx context.Context) (provider.Res }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_id": { // Property: VpcId diff --git a/internal/aws/route53resolver/firewall_rule_group_resource_gen.go b/internal/aws/route53resolver/firewall_rule_group_resource_gen.go index bd15fff648..986b8fc1c9 100644 --- a/internal/aws/route53resolver/firewall_rule_group_resource_gen.go +++ b/internal/aws/route53resolver/firewall_rule_group_resource_gen.go @@ -159,35 +159,48 @@ func firewallRuleGroupResourceType(ctx context.Context) (provider.ResourceType, Description: "BlockOverrideDnsType", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CNAME", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "block_override_domain": { // Property: BlockOverrideDomain Description: "BlockOverrideDomain", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "block_override_ttl": { // Property: BlockOverrideTtl Description: "BlockOverrideTtl", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 604800), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "block_response": { // Property: BlockResponse Description: "BlockResponse", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NODATA", @@ -195,6 +208,9 @@ func firewallRuleGroupResourceType(ctx context.Context) (provider.ResourceType, "OVERRIDE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "firewall_domain_list_id": { // Property: FirewallDomainListId @@ -214,6 +230,10 @@ func firewallRuleGroupResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id @@ -408,6 +428,10 @@ func firewallRuleGroupResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/route53resolver/resolver_rule_resource_gen.go b/internal/aws/route53resolver/resolver_rule_resource_gen.go index 8cd2ad7fdc..6004870d2d 100644 --- a/internal/aws/route53resolver/resolver_rule_resource_gen.go +++ b/internal/aws/route53resolver/resolver_rule_resource_gen.go @@ -67,9 +67,13 @@ func resolverRuleResourceType(ctx context.Context) (provider.ResourceType, error Description: "The name for the Resolver rule", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resolver_endpoint_id": { // Property: ResolverEndpointId @@ -83,9 +87,13 @@ func resolverRuleResourceType(ctx context.Context) (provider.ResourceType, error Description: "The ID of the endpoint that the rule is associated with.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resolver_rule_id": { // Property: ResolverRuleId @@ -182,8 +190,10 @@ func resolverRuleResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "target_ips": { @@ -228,15 +238,21 @@ func resolverRuleResourceType(ctx context.Context) (provider.ResourceType, error Description: "The port at Ip that you want to forward DNS queries to. ", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 65535), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/rum/app_monitor_resource_gen.go b/internal/aws/rum/app_monitor_resource_gen.go index 148bf65734..8e8a9a3276 100644 --- a/internal/aws/rum/app_monitor_resource_gen.go +++ b/internal/aws/rum/app_monitor_resource_gen.go @@ -118,18 +118,27 @@ func appMonitorResourceType(ctx context.Context) (provider.ResourceType, error) Description: "If you set this to true, the RUM web client sets two cookies, a session cookie and a user cookie. The cookies allow the RUM web client to collect data relating to the number of users an application has and the behavior of the application across a sequence of events. Cookies are stored in the top-level domain of the current page.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_x_ray": { // Property: EnableXRay Description: "If you set this to true, RUM enables xray tracing for the user sessions that RUM samples. RUM adds an xray trace header to allowed HTTP requests. It also records an xray segment for allowed HTTP requests. You can see traces and segments from these user sessions in the xray console and the CW ServiceLens console.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "excluded_pages": { // Property: ExcludedPages Description: "A list of URLs in your website or application to exclude from RUM data collection. You can't include both ExcludedPages and IncludedPages in the same operation.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 50), validate.ArrayForEach(validate.StringLenBetween(1, 1260)), @@ -137,6 +146,7 @@ func appMonitorResourceType(ctx context.Context) (provider.ResourceType, error) }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "favorite_pages": { @@ -144,11 +154,13 @@ func appMonitorResourceType(ctx context.Context) (provider.ResourceType, error) Description: "A list of pages in the RUM console that are to be displayed with a favorite icon.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 50), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "guest_role_arn": { @@ -156,25 +168,34 @@ func appMonitorResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The ARN of the guest IAM role that is attached to the identity pool that is used to authorize the sending of data to RUM.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("arn:[^:]*:[^:]*:[^:]*:[^:]*:.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "identity_pool_id": { // Property: IdentityPoolId Description: "The ID of the identity pool that is used to authorize the sending of data to RUM.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 55), validate.StringMatch(regexp.MustCompile("[\\w-]+:[0-9a-f-]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "included_pages": { // Property: IncludedPages Description: "If this app monitor is to collect data from only certain pages in your application, this structure lists those pages. You can't include both ExcludedPages and IncludedPages in the same operation.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 50), validate.ArrayForEach(validate.StringLenBetween(1, 1260)), @@ -182,6 +203,7 @@ func appMonitorResourceType(ctx context.Context) (provider.ResourceType, error) }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "session_sample_rate": { @@ -189,15 +211,20 @@ func appMonitorResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Specifies the percentage of user sessions to use for RUM data collection. Choosing a higher percentage gives you more data but also incurs more costs. The number you specify is the percentage of user sessions that will be used. If you omit this parameter, the default of 10 is used.", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatBetween(0.000000, 1.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "telemetries": { // Property: Telemetries Description: "An array that lists the types of telemetry data that this app monitor is to collect.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringInSlice([]string{ "errors", @@ -207,11 +234,16 @@ func appMonitorResourceType(ctx context.Context) (provider.ResourceType, error) }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cw_log_enabled": { // Property: CwLogEnabled @@ -223,6 +255,10 @@ func appMonitorResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Data collected by RUM is kept by RUM for 30 days and then deleted. This parameter specifies whether RUM sends a copy of this telemetry data to CWLlong in your account. This enables you to keep the telemetry data for more than 30 days, but it does incur CWLlong charges. If you omit this parameter, the default is false", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "domain": { // Property: Domain @@ -319,6 +355,10 @@ func appMonitorResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/s3/access_point_resource_gen.go b/internal/aws/s3/access_point_resource_gen.go index 46a2afeccc..6c62c97354 100644 --- a/internal/aws/s3/access_point_resource_gen.go +++ b/internal/aws/s3/access_point_resource_gen.go @@ -118,6 +118,10 @@ func accessPointResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The Access Point Policy you want to apply to this access point.", Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "policy_status": { // Property: PolicyStatus @@ -142,16 +146,24 @@ func accessPointResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Specifies whether the policy is public or not.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "true", "false", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "public_access_block_configuration": { // Property: PublicAccessBlockConfiguration @@ -186,24 +198,40 @@ func accessPointResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Specifies whether Amazon S3 should block public access control lists (ACLs) for buckets in this account. Setting this element to TRUE causes the following behavior:\n- PUT Bucket acl and PUT Object acl calls fail if the specified ACL is public.\n - PUT Object calls fail if the request includes a public ACL.\n. - PUT Bucket calls fail if the request includes a public ACL.\nEnabling this setting doesn't affect existing policies or ACLs.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "block_public_policy": { // Property: BlockPublicPolicy Description: "Specifies whether Amazon S3 should block public bucket policies for buckets in this account. Setting this element to TRUE causes Amazon S3 to reject calls to PUT Bucket policy if the specified bucket policy allows public access. Enabling this setting doesn't affect existing bucket policies.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ignore_public_acls": { // Property: IgnorePublicAcls Description: "Specifies whether Amazon S3 should ignore public ACLs for buckets in this account. Setting this element to TRUE causes Amazon S3 to ignore all public ACLs on buckets in this account and any objects that they contain. Enabling this setting doesn't affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "restrict_public_buckets": { // Property: RestrictPublicBuckets Description: "Specifies whether Amazon S3 should restrict public bucket policies for this bucket. Setting this element to TRUE restricts access to this bucket to only AWS services and authorized users within this account if the bucket has a public policy.\nEnabling this setting doesn't affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -237,9 +265,13 @@ func accessPointResourceType(ctx context.Context) (provider.ResourceType, error) Description: "If this field is specified, this access point will only allow connections from the specified VPC ID.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/s3/bucket_resource_gen.go b/internal/aws/s3/bucket_resource_gen.go index cf7ff844ed..1b0ace8aab 100644 --- a/internal/aws/s3/bucket_resource_gen.go +++ b/internal/aws/s3/bucket_resource_gen.go @@ -62,6 +62,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "access_control": { // Property: AccessControl @@ -83,6 +87,7 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A canned access control list (ACL) that grants predefined permissions to the bucket.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "AuthenticatedRead", @@ -95,6 +100,9 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { "PublicReadWrite", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "analytics_configurations": { // Property: AnalyticsConfigurations @@ -214,6 +222,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The prefix that an object must have to be included in the analytics results.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "storage_class_analysis": { // Property: StorageClassAnalysis @@ -235,6 +247,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The account ID that owns the destination S3 bucket. ", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bucket_arn": { // Property: BucketArn @@ -260,6 +276,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The prefix to use when exporting data. The prefix is prepended to all results.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -274,6 +294,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -296,16 +320,24 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "arn": { // Property: Arn @@ -385,6 +417,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Setting the BucketKeyEnabled element to true causes Amazon S3 to use an S3 Bucket Key. By default, S3 Bucket Key is not enabled.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "server_side_encryption_by_default": { // Property: ServerSideEncryptionByDefault @@ -396,6 +432,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "\"KMSMasterKeyID\" can only be used when you set the value of SSEAlgorithm as aws:kms.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sse_algorithm": { // Property: SSEAlgorithm @@ -411,6 +451,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -422,6 +466,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bucket_name": { // Property: BucketName @@ -540,9 +588,13 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Headers that are specified in the Access-Control-Request-Headers header.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "allowed_methods": { // Property: AllowedMethods @@ -574,27 +626,39 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object).", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Description: "A unique identifier for this rule.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_age": { // Property: MaxAge Description: "The time in seconds that your browser is to cache the preflight response for the specified resource.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -606,6 +670,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "domain_name": { // Property: DomainName @@ -742,6 +810,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "An object key name prefix that identifies the subset of objects to which the rule applies.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status @@ -773,9 +845,13 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tierings": { // Property: Tierings @@ -810,9 +886,13 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inventory_configurations": { // Property: InventoryConfigurations @@ -932,6 +1012,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The account ID that owns the destination S3 bucket. ", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bucket_arn": { // Property: BucketArn @@ -957,6 +1041,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The prefix to use when exporting data. The prefix is prepended to all results.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -991,6 +1079,7 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Contains the optional fields that are included in the inventory results.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), validate.ArrayForEach(validate.StringInSlice([]string{ @@ -1008,12 +1097,19 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { "BucketKeyStatus", })), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix": { // Property: Prefix Description: "The prefix that is prepended to all inventory results.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "schedule_frequency": { // Property: ScheduleFrequency @@ -1030,9 +1126,13 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lifecycle_configuration": { // Property: LifecycleConfiguration @@ -1315,33 +1415,53 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "expiration_date": { // Property: ExpirationDate Description: "The date value in ISO 8601 format. The timezone is always UTC. (YYYY-MM-DDThh:mm:ssZ)", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^([0-2]\\d{3})-(0[0-9]|1[0-2])-([0-2]\\d|3[01])T([01]\\d|2[0-4]):([0-5]\\d):([0-6]\\d)((\\.\\d{3})?)Z$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "expiration_in_days": { // Property: ExpirationInDays Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "expired_object_delete_marker": { // Property: ExpiredObjectDeleteMarker Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "noncurrent_version_expiration": { // Property: NoncurrentVersionExpiration @@ -1353,6 +1473,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specified the number of newer noncurrent and current versions that must exists before performing the associated action", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "noncurrent_days": { // Property: NoncurrentDays @@ -1363,11 +1487,19 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "noncurrent_version_expiration_in_days": { // Property: NoncurrentVersionExpirationInDays Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "noncurrent_version_transition": { // Property: NoncurrentVersionTransition @@ -1379,6 +1511,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specified the number of newer noncurrent and current versions that must exists before performing the associated action", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "storage_class": { // Property: StorageClass @@ -1406,6 +1542,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "noncurrent_version_transitions": { // Property: NoncurrentVersionTransitions @@ -1416,6 +1556,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specified the number of newer noncurrent and current versions that must exists before performing the associated action", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "storage_class": { // Property: StorageClass @@ -1443,32 +1587,48 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "object_size_greater_than": { // Property: ObjectSizeGreaterThan Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(20), validate.StringMatch(regexp.MustCompile("[0-9]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "object_size_less_than": { // Property: ObjectSizeLessThan Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(20), validate.StringMatch(regexp.MustCompile("[0-9]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix": { // Property: Prefix Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status @@ -1498,9 +1658,13 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "transition": { // Property: Transition @@ -1528,18 +1692,30 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The date value in ISO 8601 format. The timezone is always UTC. (YYYY-MM-DDThh:mm:ssZ)", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^([0-2]\\d{3})-(0[0-9]|1[0-2])-([0-2]\\d|3[01])T([01]\\d|2[0-4]):([0-5]\\d):([0-6]\\d)((\\.\\d{3})?)Z$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "transition_in_days": { // Property: TransitionInDays Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "transitions": { // Property: Transitions @@ -1566,21 +1742,33 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The date value in ISO 8601 format. The timezone is always UTC. (YYYY-MM-DDThh:mm:ssZ)", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^([0-2]\\d{3})-(0[0-9]|1[0-2])-([0-2]\\d|3[01])T([01]\\d|2[0-4]):([0-5]\\d):([0-6]\\d)((\\.\\d{3})?)Z$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "transition_in_days": { // Property: TransitionInDays Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1592,6 +1780,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "logging_configuration": { // Property: LoggingConfiguration @@ -1618,15 +1810,27 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of an Amazon S3 bucket where Amazon S3 store server access log files. You can store log files in any bucket that you own. By default, logs are stored in the bucket where the LoggingConfiguration property is defined.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "log_file_prefix": { // Property: LogFilePrefix Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "metrics_configurations": { // Property: MetricsConfigurations @@ -1684,6 +1888,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: AccessPointArn Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id @@ -1694,6 +1902,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Prefix Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tag_filters": { // Property: TagFilters @@ -1712,16 +1924,24 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "notification_configuration": { // Property: NotificationConfiguration @@ -1971,6 +2191,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lambda_configurations": { // Property: LambdaConfigurations @@ -2023,6 +2247,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "function": { // Property: Function @@ -2033,9 +2261,13 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "queue_configurations": { // Property: QueueConfigurations @@ -2088,6 +2320,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "queue": { // Property: Queue @@ -2098,9 +2334,13 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "topic_configurations": { // Property: TopicConfigurations @@ -2153,6 +2393,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "topic": { // Property: Topic @@ -2163,13 +2407,21 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "object_lock_configuration": { // Property: ObjectLockConfiguration @@ -2218,6 +2470,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: ObjectLockEnabled Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rule": { // Property: Rule @@ -2233,34 +2489,58 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Days Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "mode": { // Property: Mode Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "COMPLIANCE", "GOVERNANCE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "years": { // Property: Years Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "object_lock_enabled": { // Property: ObjectLockEnabled @@ -2323,6 +2603,7 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies an object ownership rule.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ObjectWriter", @@ -2330,6 +2611,9 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { "BucketOwnerEnforced", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -2341,6 +2625,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "public_access_block_configuration": { // Property: PublicAccessBlockConfiguration @@ -2376,28 +2664,48 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies whether Amazon S3 should block public access control lists (ACLs) for this bucket and objects in this bucket. Setting this element to TRUE causes the following behavior:\n- PUT Bucket acl and PUT Object acl calls fail if the specified ACL is public.\n - PUT Object calls fail if the request includes a public ACL.\nEnabling this setting doesn't affect existing policies or ACLs.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "block_public_policy": { // Property: BlockPublicPolicy Description: "Specifies whether Amazon S3 should block public bucket policies for this bucket. Setting this element to TRUE causes Amazon S3 to reject calls to PUT Bucket policy if the specified bucket policy allows public access.\nEnabling this setting doesn't affect existing bucket policies.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ignore_public_acls": { // Property: IgnorePublicAcls Description: "Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket. Setting this element to TRUE causes Amazon S3 to ignore all public ACLs on this bucket and objects in this bucket.\nEnabling this setting doesn't affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "restrict_public_buckets": { // Property: RestrictPublicBuckets Description: "Specifies whether Amazon S3 should restrict public bucket policies for this bucket. Setting this element to TRUE restricts access to this bucket to only AWS services and authorized users within this account if the bucket has a public policy.\nEnabling this setting doesn't affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "regional_domain_name": { // Property: RegionalDomainName @@ -2721,16 +3029,24 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Status Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Disabled", "Enabled", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "destination": { // Property: Destination @@ -2750,11 +3066,19 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "account": { // Property: Account Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bucket": { // Property: Bucket @@ -2775,6 +3099,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "metrics": { // Property: Metrics @@ -2792,6 +3120,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status @@ -2807,6 +3139,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "replication_time": { // Property: ReplicationTime @@ -2839,12 +3175,17 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "storage_class": { // Property: StorageClass Description: "The storage class to use when replicating objects, such as S3 Standard or reduced redundancy.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "DEEP_ARCHIVE", @@ -2857,6 +3198,9 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { "STANDARD_IA", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -2874,6 +3218,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Prefix Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tag_filters": { // Property: TagFilters @@ -2892,18 +3240,30 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix": { // Property: Prefix Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tag_filter": { // Property: TagFilter @@ -2923,33 +3283,53 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Description: "A unique identifier for the rule.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix": { // Property: Prefix Description: "An object key name prefix that identifies the object or objects to which the rule applies.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "priority": { // Property: Priority Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_selection_criteria": { // Property: SourceSelectionCriteria @@ -2976,6 +3356,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sse_kms_encrypted_objects": { // Property: SseKmsEncryptedObjects @@ -2997,10 +3381,18 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status @@ -3024,6 +3416,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -3075,8 +3471,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "versioning_configuration": { @@ -3124,6 +3522,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "website_configuration": { // Property: WebsiteConfiguration @@ -3233,12 +3635,20 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of the error document for the website.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "index_document": { // Property: IndexDocument Description: "The name of the index document for the website.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "redirect_all_requests_to": { // Property: RedirectAllRequestsTo @@ -3256,16 +3666,24 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Protocol to use when redirecting requests. The default is the protocol that is used in the original request.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "http", "https", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "routing_rules": { // Property: RoutingRules @@ -3281,36 +3699,56 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The host name to use in the redirect request.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "http_redirect_code": { // Property: HttpRedirectCode Description: "The HTTP redirect code to use on the response. Not required if one of the siblings is present.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "protocol": { // Property: Protocol Description: "Protocol to use when redirecting requests. The default is the protocol that is used in the original request.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "http", "https", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "replace_key_prefix_with": { // Property: ReplaceKeyPrefixWith Description: "The object key prefix to use in the redirect request.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "replace_key_with": { // Property: ReplaceKeyWith Description: "The specific object key to use in the redirect request.d", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -3326,24 +3764,44 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The HTTP error code when the redirect is applied. ", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key_prefix_equals": { // Property: KeyPrefixEquals Description: "The object key name prefix when the redirect is applied.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "website_url": { // Property: WebsiteURL 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 30c0e51890..caedb4d4b7 100644 --- a/internal/aws/s3/multi_region_access_point_resource_gen.go +++ b/internal/aws/s3/multi_region_access_point_resource_gen.go @@ -108,24 +108,40 @@ func multiRegionAccessPointResourceType(ctx context.Context) (provider.ResourceT Description: "Specifies whether Amazon S3 should block public access control lists (ACLs) for buckets in this account. Setting this element to TRUE causes the following behavior:\n- PUT Bucket acl and PUT Object acl calls fail if the specified ACL is public.\n - PUT Object calls fail if the request includes a public ACL.\n. - PUT Bucket calls fail if the request includes a public ACL.\nEnabling this setting doesn't affect existing policies or ACLs.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "block_public_policy": { // Property: BlockPublicPolicy Description: "Specifies whether Amazon S3 should block public bucket policies for buckets in this account. Setting this element to TRUE causes Amazon S3 to reject calls to PUT Bucket policy if the specified bucket policy allows public access. Enabling this setting doesn't affect existing bucket policies.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ignore_public_acls": { // Property: IgnorePublicAcls Description: "Specifies whether Amazon S3 should ignore public ACLs for buckets in this account. Setting this element to TRUE causes Amazon S3 to ignore all public ACLs on buckets in this account and any objects that they contain. Enabling this setting doesn't affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "restrict_public_buckets": { // Property: RestrictPublicBuckets Description: "Specifies whether Amazon S3 should restrict public bucket policies for this bucket. Setting this element to TRUE restricts access to this bucket to only AWS services and authorized users within this account if the bucket has a public policy.\nEnabling this setting doesn't affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -174,10 +190,14 @@ func multiRegionAccessPointResourceType(ctx context.Context) (provider.ResourceT // Property: AccountId Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(12, 12), validate.StringMatch(regexp.MustCompile("^[0-9]{12}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bucket": { // Property: Bucket diff --git a/internal/aws/s3/storage_lens_resource_gen.go b/internal/aws/s3/storage_lens_resource_gen.go index 94c1849eaa..643257b27b 100644 --- a/internal/aws/s3/storage_lens_resource_gen.go +++ b/internal/aws/s3/storage_lens_resource_gen.go @@ -299,10 +299,18 @@ func storageLensResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Specifies whether activity metrics are enabled or disabled.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bucket_level": { // Property: BucketLevel @@ -319,10 +327,18 @@ func storageLensResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Specifies whether activity metrics are enabled or disabled.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix_level": { // Property: PrefixLevel @@ -338,6 +354,10 @@ func storageLensResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Specifies whether prefix-level storage metrics are enabled or disabled.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "selection_criteria": { // Property: SelectionCriteria @@ -349,22 +369,38 @@ func storageLensResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Delimiter to divide S3 key into hierarchy of prefixes.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_depth": { // Property: MaxDepth Description: "Max depth of prefixes of S3 key that Amazon S3 Storage Lens will analyze.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "min_storage_bytes_percentage": { // Property: MinStorageBytesPercentage Description: "The minimum storage bytes threshold for the prefixes to be included in the analysis.", Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -373,6 +409,10 @@ func storageLensResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -396,6 +436,10 @@ func storageLensResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "data_export": { // Property: DataExport @@ -416,6 +460,10 @@ func storageLensResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_bucket_destination": { // Property: S3BucketDestination @@ -453,16 +501,28 @@ func storageLensResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sses3": { // Property: SSES3 Description: "S3 default server-side encryption.", Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "format": { // Property: Format @@ -492,14 +552,26 @@ func storageLensResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The prefix to use for Amazon S3 Storage Lens export.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "exclude": { // Property: Exclude @@ -510,15 +582,27 @@ func storageLensResourceType(ctx context.Context) (provider.ResourceType, error) // Property: Buckets Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "regions": { // Property: Regions Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id @@ -542,15 +626,27 @@ func storageLensResourceType(ctx context.Context) (provider.ResourceType, error) // Property: Buckets Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "regions": { // Property: Regions Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "is_enabled": { // Property: IsEnabled @@ -625,9 +721,13 @@ func storageLensResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/s3objectlambda/access_point_resource_gen.go b/internal/aws/s3objectlambda/access_point_resource_gen.go index 8fd61e6c26..3ddc221063 100644 --- a/internal/aws/s3objectlambda/access_point_resource_gen.go +++ b/internal/aws/s3objectlambda/access_point_resource_gen.go @@ -156,11 +156,19 @@ func accessPointResourceType(ctx context.Context) (provider.ResourceType, error) // Property: AllowedFeatures Type: types.SetType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cloudwatch_metrics_enabled": { // Property: CloudWatchMetricsEnabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "supporting_access_point": { // Property: SupportingAccessPoint @@ -199,10 +207,18 @@ func accessPointResourceType(ctx context.Context) (provider.ResourceType, error) // Property: FunctionPayload Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -236,6 +252,10 @@ func accessPointResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Specifies whether the Object lambda Access Point Policy is Public or not. Object lambda Access Points are private by default.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -278,24 +298,40 @@ func accessPointResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Specifies whether Amazon S3 should block public access control lists (ACLs) to this object lambda access point. Setting this element to TRUE causes the following behavior:\n- PUT Bucket acl and PUT Object acl calls fail if the specified ACL is public.\n - PUT Object calls fail if the request includes a public ACL.\n. - PUT Bucket calls fail if the request includes a public ACL.\nEnabling this setting doesn't affect existing policies or ACLs.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "block_public_policy": { // Property: BlockPublicPolicy Description: "Specifies whether Amazon S3 should block public bucket policies for buckets in this account. Setting this element to TRUE causes Amazon S3 to reject calls to PUT Bucket policy if the specified bucket policy allows public access. Enabling this setting doesn't affect existing bucket policies.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ignore_public_acls": { // Property: IgnorePublicAcls Description: "Specifies whether Amazon S3 should ignore public ACLs for buckets in this account. Setting this element to TRUE causes Amazon S3 to ignore all public ACLs on buckets in this account and any objects that they contain. Enabling this setting doesn't affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "restrict_public_buckets": { // Property: RestrictPublicBuckets Description: "Specifies whether Amazon S3 should restrict public bucket policies for this bucket. Setting this element to TRUE restricts access to this bucket to only AWS services and authorized users within this account if the bucket has a public policy.\nEnabling this setting doesn't affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/s3outposts/access_point_resource_gen.go b/internal/aws/s3outposts/access_point_resource_gen.go index c0576a4e33..fd8e47de62 100644 --- a/internal/aws/s3outposts/access_point_resource_gen.go +++ b/internal/aws/s3outposts/access_point_resource_gen.go @@ -92,6 +92,10 @@ func accessPointResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The access point policy associated with this access point.", Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_configuration": { // Property: VpcConfiguration @@ -117,9 +121,13 @@ func accessPointResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Virtual Private Cloud (VPC) Id from which AccessPoint will allow requests.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/s3outposts/bucket_resource_gen.go b/internal/aws/s3outposts/bucket_resource_gen.go index 24787c6486..2c18d7adfe 100644 --- a/internal/aws/s3outposts/bucket_resource_gen.go +++ b/internal/aws/s3outposts/bucket_resource_gen.go @@ -259,24 +259,36 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "expiration_date": { // Property: ExpirationDate Description: "Indicates when objects are deleted from Amazon S3Outposts. The date value must be in ISO 8601 format. The time is always midnight UTC.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^([0-2]\\d{3})-(0[0-9]|1[0-2])-([0-2]\\d|3[01])T([01]\\d|2[0-4]):([0-5]\\d):([0-6]\\d)((\\.\\d{3})?)Z$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "expiration_in_days": { // Property: ExpirationInDays Description: "Indicates the number of days after creation when objects are deleted from Amazon S3Outposts.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "filter": { // Property: Filter @@ -293,6 +305,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Prefix identifies one or more objects to which the rule applies.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -320,19 +336,31 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "prefix": { // Property: Prefix Description: "Object key prefix that identifies one or more objects to which this rule applies.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tag": { // Property: Tag @@ -360,10 +388,15 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.RequiredAttributes( validate.OneOfRequired( @@ -379,26 +412,37 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { ), ), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id Description: "Unique identifier for the lifecycle rule. The value can't be longer than 255 characters.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "status": { // Property: Status Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Enabled", "Disabled", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -425,6 +469,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "outpost_id": { // Property: OutpostId @@ -498,6 +546,10 @@ func bucketResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/sagemaker/app_image_config_resource_gen.go b/internal/aws/sagemaker/app_image_config_resource_gen.go index 3e397379e5..d04388f787 100644 --- a/internal/aws/sagemaker/app_image_config_resource_gen.go +++ b/internal/aws/sagemaker/app_image_config_resource_gen.go @@ -140,32 +140,48 @@ func appImageConfigResourceType(ctx context.Context) (provider.ResourceType, err Description: "The default POSIX group ID (GID). If not specified, defaults to 100.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 65535), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "default_uid": { // Property: DefaultUid Description: "The default POSIX user ID (UID). If not specified, defaults to 1000.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 65535), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "mount_path": { // Property: MountPath Description: "The path within the image to mount the user's EFS home directory. The directory should be empty. If not specified, defaults to /home/sagemaker-user.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), validate.StringMatch(regexp.MustCompile("^/.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kernel_specs": { // Property: KernelSpecs @@ -177,9 +193,13 @@ func appImageConfigResourceType(ctx context.Context) (provider.ResourceType, err Description: "The display name of the kernel.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -200,6 +220,10 @@ func appImageConfigResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags diff --git a/internal/aws/sagemaker/app_resource_gen.go b/internal/aws/sagemaker/app_resource_gen.go index 0f9f16ad51..515f11b661 100644 --- a/internal/aws/sagemaker/app_resource_gen.go +++ b/internal/aws/sagemaker/app_resource_gen.go @@ -205,6 +205,7 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The instance type that the image version runs on.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "system", @@ -266,30 +267,45 @@ func appResourceType(ctx context.Context) (provider.ResourceType, error) { "ml.g5.48xlarge", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sage_maker_image_arn": { // Property: SageMakerImageArn Description: "The ARN of the SageMaker image that the image version belongs to.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), validate.StringMatch(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image/[a-z0-9]([-.]?[a-z0-9])*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sage_maker_image_version_arn": { // Property: SageMakerImageVersionArn Description: "The ARN of the image version created on the instance.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), validate.StringMatch(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image-version/[a-z0-9]([-.]?[a-z0-9])*/[0-9]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags 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 3c77d95a19..22b916ef20 100644 --- a/internal/aws/sagemaker/data_quality_job_definition_resource_gen.go +++ b/internal/aws/sagemaker/data_quality_job_definition_resource_gen.go @@ -112,20 +112,28 @@ func dataQualityJobDefinitionResourceType(ctx context.Context) (provider.Resourc Description: "An array of arguments for the container used to run the monitoring job.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), validate.ArrayForEach(validate.StringLenBetween(1, 256)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "container_entrypoint": { // Property: ContainerEntrypoint Description: "Specifies the entrypoint for a container used to run the monitoring job.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 256)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "environment": { // Property: Environment @@ -134,6 +142,10 @@ func dataQualityJobDefinitionResourceType(ctx context.Context) (provider.Resourc Type: types.MapType{ElemType: types.StringType}, // Pattern "[\\S\\s]*" ignored. Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_uri": { // Property: ImageUri @@ -150,20 +162,28 @@ func dataQualityJobDefinitionResourceType(ctx context.Context) (provider.Resourc Description: "An Amazon S3 URI to a script that is called after analysis has been performed. Applicable only for the built-in (first party) containers.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "record_preprocessor_source_uri": { // Property: RecordPreprocessorSourceUri Description: "An Amazon S3 URI to a script that is called per row prior to running analysis. It can base64 decode the payload and convert it into a flatted json so that the built-in container can use the converted data. Applicable only for the built-in (first party) containers", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -223,10 +243,14 @@ func dataQualityJobDefinitionResourceType(ctx context.Context) (provider.Resourc Description: "The name of a processing job", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 63), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "constraints_resource": { // Property: ConstraintsResource @@ -238,14 +262,22 @@ func dataQualityJobDefinitionResourceType(ctx context.Context) (provider.Resourc Description: "The Amazon S3 URI for baseline constraint file in Amazon S3 that the current monitoring job should validated against.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "statistics_resource": { // Property: StatisticsResource @@ -257,14 +289,22 @@ func dataQualityJobDefinitionResourceType(ctx context.Context) (provider.Resourc Description: "The Amazon S3 URI for the baseline statistics file in Amazon S3 that the current monitoring job should be validated against.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -360,24 +400,32 @@ func dataQualityJobDefinitionResourceType(ctx context.Context) (provider.Resourc Description: "Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "FullyReplicated", "ShardedByS3Key", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_input_mode": { // Property: S3InputMode Description: "Whether the Pipe or File is used as the input mode for transfering data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Pipe", "File", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -464,10 +512,14 @@ func dataQualityJobDefinitionResourceType(ctx context.Context) (provider.Resourc Description: "The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2048), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "monitoring_outputs": { // Property: MonitoringOutputs @@ -494,12 +546,16 @@ func dataQualityJobDefinitionResourceType(ctx context.Context) (provider.Resourc Description: "Whether to upload the results of the monitoring job continuously or after the job completes.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Continuous", "EndOfJob", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_uri": { // Property: S3Uri @@ -538,10 +594,14 @@ func dataQualityJobDefinitionResourceType(ctx context.Context) (provider.Resourc Description: "The name of the endpoint used to run the monitoring job.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(63), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "job_definition_arn": { // Property: JobDefinitionArn @@ -656,6 +716,10 @@ func dataQualityJobDefinitionResourceType(ctx context.Context) (provider.Resourc Description: "The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "volume_size_in_gb": { // Property: VolumeSizeInGB @@ -736,12 +800,20 @@ func dataQualityJobDefinitionResourceType(ctx context.Context) (provider.Resourc Description: "Whether to encrypt all communications between distributed processing jobs. Choose True to encrypt communications. Encryption provides greater security for distributed processing jobs, but the processing might take longer.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_network_isolation": { // Property: EnableNetworkIsolation Description: "Whether to allow inbound and outbound network calls to and from the containers used for the processing job.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_config": { // Property: VpcConfig @@ -773,6 +845,10 @@ func dataQualityJobDefinitionResourceType(ctx context.Context) (provider.Resourc }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/sagemaker/device_fleet_resource_gen.go b/internal/aws/sagemaker/device_fleet_resource_gen.go index 0fc4082c1d..bd1904167e 100644 --- a/internal/aws/sagemaker/device_fleet_resource_gen.go +++ b/internal/aws/sagemaker/device_fleet_resource_gen.go @@ -36,10 +36,14 @@ func deviceFleetResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Description for the edge device fleet", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 800), validate.StringMatch(regexp.MustCompile("[\\S\\s]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "device_fleet_name": { // Property: DeviceFleetName @@ -96,10 +100,14 @@ func deviceFleetResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The KMS key id used for encryption on the S3 bucket", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9:_-]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_output_location": { // Property: S3OutputLocation @@ -190,6 +198,10 @@ func deviceFleetResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/sagemaker/device_resource_gen.go b/internal/aws/sagemaker/device_resource_gen.go index daced9642a..4f75b440ce 100644 --- a/internal/aws/sagemaker/device_resource_gen.go +++ b/internal/aws/sagemaker/device_resource_gen.go @@ -64,10 +64,14 @@ func deviceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Description of the device", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 40), validate.StringMatch(regexp.MustCompile("[\\S\\s]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "device_name": { // Property: DeviceName @@ -87,14 +91,22 @@ func deviceResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "AWS Internet of Things (IoT) object name.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(128), validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9:_-]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "device_fleet_name": { // Property: DeviceFleetName @@ -170,6 +182,10 @@ func deviceResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/sagemaker/domain_resource_gen.go b/internal/aws/sagemaker/domain_resource_gen.go index f8d254731a..de1da78694 100644 --- a/internal/aws/sagemaker/domain_resource_gen.go +++ b/internal/aws/sagemaker/domain_resource_gen.go @@ -467,10 +467,14 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The user profile Amazon Resource Name (ARN).", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(20, 2048), validate.StringMatch(regexp.MustCompile("^arn:aws[a-z\\-]*:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "jupyter_server_app_settings": { // Property: JupyterServerAppSettings @@ -486,6 +490,7 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The instance type that the image version runs on.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "system", @@ -522,44 +527,67 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { "ml.g4dn.16xlarge", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lifecycle_config_arn": { // Property: LifecycleConfigArn Description: "The Amazon Resource Name (ARN) of the Lifecycle Configuration to attach to the Resource.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image-version/[a-z0-9]([-.]?[a-z0-9])*/[0-9]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sage_maker_image_arn": { // Property: SageMakerImageArn Description: "The Amazon Resource Name (ARN) of the SageMaker image that the image version belongs to.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image/[a-z0-9]([-.]?[a-z0-9])*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sage_maker_image_version_arn": { // Property: SageMakerImageVersionArn Description: "The Amazon Resource Name (ARN) of the image version created on the instance.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image-version/[a-z0-9]([-.]?[a-z0-9])*/[0-9]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kernel_gateway_app_settings": { // Property: KernelGatewayAppSettings @@ -596,18 +624,24 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The version number of the CustomImage.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 30), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "default_resource_spec": { @@ -620,6 +654,7 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The instance type that the image version runs on.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "system", @@ -656,44 +691,67 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { "ml.g4dn.16xlarge", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lifecycle_config_arn": { // Property: LifecycleConfigArn Description: "The Amazon Resource Name (ARN) of the Lifecycle Configuration to attach to the Resource.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image-version/[a-z0-9]([-.]?[a-z0-9])*/[0-9]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sage_maker_image_arn": { // Property: SageMakerImageArn Description: "The Amazon Resource Name (ARN) of the SageMaker image that the image version belongs to.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image/[a-z0-9]([-.]?[a-z0-9])*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sage_maker_image_version_arn": { // Property: SageMakerImageVersionArn Description: "The Amazon Resource Name (ARN) of the image version created on the instance.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image-version/[a-z0-9]([-.]?[a-z0-9])*/[0-9]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "r_session_app_settings": { // Property: RSessionAppSettings @@ -730,18 +788,24 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The version number of the CustomImage.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 30), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "default_resource_spec": { @@ -753,6 +817,7 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The instance type that the image version runs on.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "system", @@ -789,44 +854,67 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { "ml.g4dn.16xlarge", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lifecycle_config_arn": { // Property: LifecycleConfigArn Description: "The Amazon Resource Name (ARN) of the Lifecycle Configuration to attach to the Resource.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image-version/[a-z0-9]([-.]?[a-z0-9])*/[0-9]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sage_maker_image_arn": { // Property: SageMakerImageArn Description: "The Amazon Resource Name (ARN) of the SageMaker image that the image version belongs to.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image/[a-z0-9]([-.]?[a-z0-9])*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sage_maker_image_version_arn": { // Property: SageMakerImageVersionArn Description: "The Amazon Resource Name (ARN) of the image version created on the instance.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image-version/[a-z0-9]([-.]?[a-z0-9])*/[0-9]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "r_studio_server_pro_app_settings": { // Property: RStudioServerProAppSettings @@ -838,34 +926,47 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Indicates whether the current user has access to the RStudioServerPro app.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ENABLED", "DISABLED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "user_group": { // Property: UserGroup Description: "The level of permissions that the user has within the RStudioServerPro app. This value defaults to User. The Admin value allows the user access to the RStudio Administrative Dashboard.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "R_STUDIO_ADMIN", "R_STUDIO_USER", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "security_groups": { // Property: SecurityGroups Description: "The security groups for the Amazon Virtual Private Cloud (VPC) that Studio uses for communication.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 5), validate.ArrayForEach(validate.StringLenAtMost(32)), @@ -873,6 +974,7 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "sharing_settings": { @@ -885,36 +987,52 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Whether to include the notebook cell output when sharing the notebook. The default is Disabled.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Allowed", "Disabled", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_kms_key_id": { // Property: S3KmsKeyId Description: "When NotebookOutputOption is Allowed, the AWS Key Management Service (KMS) encryption key ID used to encrypt the notebook cell output in the Amazon S3 bucket.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2048), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_output_path": { // Property: S3OutputPath Description: "When NotebookOutputOption is Allowed, the Amazon S3 bucket used to store the shared notebook snapshots.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1101,6 +1219,7 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The instance type that the image version runs on.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "system", @@ -1137,36 +1256,51 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { "ml.g4dn.16xlarge", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "lifecycle_config_arn": { // Property: LifecycleConfigArn Description: "The Amazon Resource Name (ARN) of the Lifecycle Configuration to attach to the Resource.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image-version/[a-z0-9]([-.]?[a-z0-9])*/[0-9]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sage_maker_image_arn": { // Property: SageMakerImageArn Description: "The Amazon Resource Name (ARN) of the SageMaker image that the image version belongs to.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image/[a-z0-9]([-.]?[a-z0-9])*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sage_maker_image_version_arn": { // Property: SageMakerImageVersionArn Description: "The Amazon Resource Name (ARN) of the image version created on the instance.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image-version/[a-z0-9]([-.]?[a-z0-9])*/[0-9]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1195,22 +1329,34 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A URL pointing to an RStudio Connect server.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^(https:|http:|www\\.)\\S*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "r_studio_package_manager_url": { // Property: RStudioPackageManagerUrl Description: "A URL pointing to an RStudio Package Manager server.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^(https:|http:|www\\.)\\S*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "security_group_ids": { // Property: SecurityGroupIds @@ -1232,6 +1378,10 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "home_efs_file_system_id": { // Property: HomeEfsFileSystemId diff --git a/internal/aws/sagemaker/feature_group_resource_gen.go b/internal/aws/sagemaker/feature_group_resource_gen.go index 1c7122141a..d1615c194f 100644 --- a/internal/aws/sagemaker/feature_group_resource_gen.go +++ b/internal/aws/sagemaker/feature_group_resource_gen.go @@ -248,11 +248,19 @@ func featureGroupResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "disable_glue_table_creation": { // Property: DisableGlueTableCreation Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_storage_config": { // Property: S3StorageConfig @@ -262,9 +270,13 @@ func featureGroupResourceType(ctx context.Context) (provider.ResourceType, error // Property: KmsKeyId Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_uri": { // Property: S3Uri @@ -316,6 +328,10 @@ func featureGroupResourceType(ctx context.Context) (provider.ResourceType, error // Property: EnableOnlineStore Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "security_config": { // Property: SecurityConfig @@ -325,13 +341,21 @@ func featureGroupResourceType(ctx context.Context) (provider.ResourceType, error // Property: KmsKeyId Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/sagemaker/image_resource_gen.go b/internal/aws/sagemaker/image_resource_gen.go index a14c0c1b84..213993ba30 100644 --- a/internal/aws/sagemaker/image_resource_gen.go +++ b/internal/aws/sagemaker/image_resource_gen.go @@ -53,10 +53,14 @@ func imageResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A description of the image.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile(".+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_display_name": { // Property: ImageDisplayName @@ -71,10 +75,14 @@ func imageResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The display name of the image.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), validate.StringMatch(regexp.MustCompile("^[A-Za-z0-9 -_]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_name": { // Property: ImageName @@ -170,9 +178,13 @@ func imageResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } 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 ba22efd017..ae085c9719 100644 --- a/internal/aws/sagemaker/model_bias_job_definition_resource_gen.go +++ b/internal/aws/sagemaker/model_bias_job_definition_resource_gen.go @@ -49,10 +49,14 @@ func modelBiasJobDefinitionResourceType(ctx context.Context) (provider.ResourceT Description: "The name of the endpoint used to run the monitoring job.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(63), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "job_definition_arn": { // Property: JobDefinitionArn @@ -167,6 +171,10 @@ func modelBiasJobDefinitionResourceType(ctx context.Context) (provider.ResourceT Description: "The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "volume_size_in_gb": { // Property: VolumeSizeInGB @@ -250,6 +258,10 @@ func modelBiasJobDefinitionResourceType(ctx context.Context) (provider.ResourceT Type: types.MapType{ElemType: types.StringType}, // Pattern "[\\S\\s]*" ignored. Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_uri": { // Property: ImageUri @@ -306,10 +318,14 @@ func modelBiasJobDefinitionResourceType(ctx context.Context) (provider.ResourceT Description: "The name of a processing job", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 63), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "constraints_resource": { // Property: ConstraintsResource @@ -321,14 +337,22 @@ func modelBiasJobDefinitionResourceType(ctx context.Context) (provider.ResourceT Description: "The Amazon S3 URI for baseline constraint file in Amazon S3 that the current monitoring job should validated against.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -454,10 +478,14 @@ func modelBiasJobDefinitionResourceType(ctx context.Context) (provider.ResourceT Description: "Monitoring end time offset, e.g. PT0H", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 15), validate.StringMatch(regexp.MustCompile("^.?P.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "endpoint_name": { // Property: EndpointName @@ -474,18 +502,26 @@ func modelBiasJobDefinitionResourceType(ctx context.Context) (provider.ResourceT Description: "JSONpath to locate features in JSONlines dataset", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inference_attribute": { // Property: InferenceAttribute Description: "Index or JSONpath to locate predicted label(s)", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "local_path": { // Property: LocalPath @@ -502,48 +538,68 @@ func modelBiasJobDefinitionResourceType(ctx context.Context) (provider.ResourceT Description: "Index or JSONpath to locate probabilities", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "probability_threshold_attribute": { // Property: ProbabilityThresholdAttribute Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_data_distribution_type": { // Property: S3DataDistributionType Description: "Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "FullyReplicated", "ShardedByS3Key", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_input_mode": { // Property: S3InputMode Description: "Whether the Pipe or File is used as the input mode for transfering data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Pipe", "File", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "start_time_offset": { // Property: StartTimeOffset Description: "Monitoring start time offset, e.g. -PT1H", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 15), validate.StringMatch(regexp.MustCompile("^.?P.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -649,10 +705,14 @@ func modelBiasJobDefinitionResourceType(ctx context.Context) (provider.ResourceT Description: "The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2048), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "monitoring_outputs": { // Property: MonitoringOutputs @@ -679,12 +739,16 @@ func modelBiasJobDefinitionResourceType(ctx context.Context) (provider.ResourceT Description: "Whether to upload the results of the monitoring job continuously or after the job completes.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Continuous", "EndOfJob", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_uri": { // Property: S3Uri @@ -770,12 +834,20 @@ func modelBiasJobDefinitionResourceType(ctx context.Context) (provider.ResourceT Description: "Whether to encrypt all communications between distributed processing jobs. Choose True to encrypt communications. Encryption provides greater security for distributed processing jobs, but the processing might take longer.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_network_isolation": { // Property: EnableNetworkIsolation Description: "Whether to allow inbound and outbound network calls to and from the containers used for the processing job.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_config": { // Property: VpcConfig @@ -807,6 +879,10 @@ func modelBiasJobDefinitionResourceType(ctx context.Context) (provider.ResourceT }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), 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 792a4c5cb7..0c40cdbadf 100644 --- a/internal/aws/sagemaker/model_explainability_job_definition_resource_gen.go +++ b/internal/aws/sagemaker/model_explainability_job_definition_resource_gen.go @@ -49,10 +49,14 @@ func modelExplainabilityJobDefinitionResourceType(ctx context.Context) (provider Description: "The name of the endpoint used to run the monitoring job.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(63), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "job_definition_arn": { // Property: JobDefinitionArn @@ -167,6 +171,10 @@ func modelExplainabilityJobDefinitionResourceType(ctx context.Context) (provider Description: "The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "volume_size_in_gb": { // Property: VolumeSizeInGB @@ -250,6 +258,10 @@ func modelExplainabilityJobDefinitionResourceType(ctx context.Context) (provider Type: types.MapType{ElemType: types.StringType}, // Pattern "[\\S\\s]*" ignored. Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_uri": { // Property: ImageUri @@ -306,10 +318,14 @@ func modelExplainabilityJobDefinitionResourceType(ctx context.Context) (provider Description: "The name of a processing job", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 63), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "constraints_resource": { // Property: ConstraintsResource @@ -321,14 +337,22 @@ func modelExplainabilityJobDefinitionResourceType(ctx context.Context) (provider Description: "The Amazon S3 URI for baseline constraint file in Amazon S3 that the current monitoring job should validated against.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -429,18 +453,26 @@ func modelExplainabilityJobDefinitionResourceType(ctx context.Context) (provider Description: "JSONpath to locate features in JSONlines dataset", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inference_attribute": { // Property: InferenceAttribute Description: "Index or JSONpath to locate predicted label(s)", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "local_path": { // Property: LocalPath @@ -457,33 +489,45 @@ func modelExplainabilityJobDefinitionResourceType(ctx context.Context) (provider Description: "Index or JSONpath to locate probabilities", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_data_distribution_type": { // Property: S3DataDistributionType Description: "Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "FullyReplicated", "ShardedByS3Key", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_input_mode": { // Property: S3InputMode Description: "Whether the Pipe or File is used as the input mode for transfering data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Pipe", "File", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -570,10 +614,14 @@ func modelExplainabilityJobDefinitionResourceType(ctx context.Context) (provider Description: "The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2048), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "monitoring_outputs": { // Property: MonitoringOutputs @@ -600,12 +648,16 @@ func modelExplainabilityJobDefinitionResourceType(ctx context.Context) (provider Description: "Whether to upload the results of the monitoring job continuously or after the job completes.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Continuous", "EndOfJob", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_uri": { // Property: S3Uri @@ -691,12 +743,20 @@ func modelExplainabilityJobDefinitionResourceType(ctx context.Context) (provider Description: "Whether to encrypt all communications between distributed processing jobs. Choose True to encrypt communications. Encryption provides greater security for distributed processing jobs, but the processing might take longer.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_network_isolation": { // Property: EnableNetworkIsolation Description: "Whether to allow inbound and outbound network calls to and from the containers used for the processing job.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_config": { // Property: VpcConfig @@ -728,6 +788,10 @@ func modelExplainabilityJobDefinitionResourceType(ctx context.Context) (provider }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/sagemaker/model_package_group_resource_gen.go b/internal/aws/sagemaker/model_package_group_resource_gen.go index bb8b26cc3b..1503444e10 100644 --- a/internal/aws/sagemaker/model_package_group_resource_gen.go +++ b/internal/aws/sagemaker/model_package_group_resource_gen.go @@ -104,6 +104,10 @@ func modelPackageGroupResourceType(ctx context.Context) (provider.ResourceType, // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "model_package_group_status": { // Property: ModelPackageGroupStatus @@ -185,9 +189,13 @@ func modelPackageGroupResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/sagemaker/model_package_resource_gen.go b/internal/aws/sagemaker/model_package_resource_gen.go index 671844e570..dde233b174 100644 --- a/internal/aws/sagemaker/model_package_resource_gen.go +++ b/internal/aws/sagemaker/model_package_resource_gen.go @@ -198,10 +198,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The DNS host name for the Docker container.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(63), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "environment": { // Property: Environment @@ -210,22 +214,34 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Type: types.MapType{ElemType: types.StringType}, // Pattern "[\\S\\s]*" ignored. Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "framework": { // Property: Framework Description: "The machine learning framework of the model package container image.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "framework_version": { // Property: FrameworkVersion Description: "The framework version of the Model Package Container Image.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 10), validate.StringMatch(regexp.MustCompile("[0-9]\\.[A-Za-z0-9.]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image": { // Property: Image @@ -242,20 +258,28 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "An MD5 hash of the training algorithm that identifies the Docker image used for training.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(72), validate.StringMatch(regexp.MustCompile("^[Ss][Hh][Aa]256:[0-9a-fA-F]{64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "model_data_url": { // Property: ModelDataUrl Description: "A structure with Model Input details.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "model_input": { // Property: ModelInput @@ -274,22 +298,34 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "nearest_model_name": { // Property: NearestModelName Description: "The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that matches your model.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "product_id": { // Property: ProductId Description: "The AWS Marketplace product ID of the model package.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -303,10 +339,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "A description of the additional Inference specification.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -323,39 +363,59 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The supported MIME types for the input data.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenAtMost(256)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile(".*"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "supported_realtime_inference_instance_types": { // Property: SupportedRealtimeInferenceInstanceTypes Description: "A list of the instance types that are used to generate inferences in real-time", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "supported_response_mime_types": { // Property: SupportedResponseMIMETypes Description: "The supported MIME types for the output data.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenAtMost(1024)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^[-\\w]+\\/.+$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "supported_transform_instance_types": { // Property: SupportedTransformInstanceTypes Description: "A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "additional_inference_specifications": { // Property: AdditionalInferenceSpecifications @@ -539,10 +599,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The DNS host name for the Docker container.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(63), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "environment": { // Property: Environment @@ -551,22 +615,34 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Type: types.MapType{ElemType: types.StringType}, // Pattern "[\\S\\s]*" ignored. Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "framework": { // Property: Framework Description: "The machine learning framework of the model package container image.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "framework_version": { // Property: FrameworkVersion Description: "The framework version of the Model Package Container Image.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 10), validate.StringMatch(regexp.MustCompile("[0-9]\\.[A-Za-z0-9.]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image": { // Property: Image @@ -583,20 +659,28 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "An MD5 hash of the training algorithm that identifies the Docker image used for training.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(72), validate.StringMatch(regexp.MustCompile("^[Ss][Hh][Aa]256:[0-9a-fA-F]{64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "model_data_url": { // Property: ModelDataUrl Description: "A structure with Model Input details.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "model_input": { // Property: ModelInput @@ -615,22 +699,34 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "nearest_model_name": { // Property: NearestModelName Description: "The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that matches your model.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "product_id": { // Property: ProductId Description: "The AWS Marketplace product ID of the model package.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -644,10 +740,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "A description of the additional Inference specification.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -664,42 +764,62 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The supported MIME types for the input data.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenAtMost(256)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile(".*"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "supported_realtime_inference_instance_types": { // Property: SupportedRealtimeInferenceInstanceTypes Description: "A list of the instance types that are used to generate inferences in real-time", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "supported_response_mime_types": { // Property: SupportedResponseMIMETypes Description: "The supported MIME types for the output data.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenAtMost(1024)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^[-\\w]+\\/.+$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "supported_transform_instance_types": { // Property: SupportedTransformInstanceTypes Description: "A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 15), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "additional_inference_specifications_to_add": { // Property: AdditionalInferenceSpecificationsToAdd @@ -883,10 +1003,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The DNS host name for the Docker container.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(63), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "environment": { // Property: Environment @@ -895,22 +1019,34 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Type: types.MapType{ElemType: types.StringType}, // Pattern "[\\S\\s]*" ignored. Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "framework": { // Property: Framework Description: "The machine learning framework of the model package container image.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "framework_version": { // Property: FrameworkVersion Description: "The framework version of the Model Package Container Image.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 10), validate.StringMatch(regexp.MustCompile("[0-9]\\.[A-Za-z0-9.]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image": { // Property: Image @@ -927,20 +1063,28 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "An MD5 hash of the training algorithm that identifies the Docker image used for training.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(72), validate.StringMatch(regexp.MustCompile("^[Ss][Hh][Aa]256:[0-9a-fA-F]{64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "model_data_url": { // Property: ModelDataUrl Description: "A structure with Model Input details.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "model_input": { // Property: ModelInput @@ -959,22 +1103,34 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "nearest_model_name": { // Property: NearestModelName Description: "The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that matches your model.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "product_id": { // Property: ProductId Description: "The AWS Marketplace product ID of the model package.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -988,10 +1144,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "A description of the additional Inference specification.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -1008,42 +1168,62 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The supported MIME types for the input data.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenAtMost(256)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile(".*"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "supported_realtime_inference_instance_types": { // Property: SupportedRealtimeInferenceInstanceTypes Description: "A list of the instance types that are used to generate inferences in real-time", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "supported_response_mime_types": { // Property: SupportedResponseMIMETypes Description: "The supported MIME types for the output data.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringLenAtMost(1024)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^[-\\w]+\\/.+$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "supported_transform_instance_types": { // Property: SupportedTransformInstanceTypes Description: "A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 15), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "approval_description": { // Property: ApprovalDescription @@ -1057,10 +1237,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "A description provided for the model approval.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "certify_for_marketplace": { // Property: CertifyForMarketplace @@ -1072,6 +1256,10 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "Whether to certify the model package for listing on AWS Marketplace.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "client_token": { // Property: ClientToken @@ -1126,22 +1314,38 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The domain associated with the user.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "user_profile_arn": { // Property: UserProfileArn Description: "The Amazon Resource Name (ARN) of the user's profile.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "user_profile_name": { // Property: UserProfileName Description: "The name of the user's profile.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "creation_time": { // Property: CreationTime @@ -1182,6 +1386,10 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Type: types.MapType{ElemType: types.StringType}, // Pattern "^([\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@]*)${1,256}" ignored. Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "domain": { // Property: Domain @@ -1514,20 +1722,28 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The digest of the file source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(72), validate.StringMatch(regexp.MustCompile("^[Ss][Hh][Aa]256:[0-9a-fA-F]{64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "content_type": { // Property: ContentType Description: "The type of content stored in the file source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_uri": { // Property: S3Uri @@ -1542,6 +1758,10 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "post_training_constraints": { // Property: PostTrainingConstraints @@ -1553,10 +1773,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The digest of the metric source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(72), validate.StringMatch(regexp.MustCompile("^[Ss][Hh][Aa]256:[0-9a-fA-F]{64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "content_type": { // Property: ContentType @@ -1581,6 +1805,10 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "pre_training_constraints": { // Property: PreTrainingConstraints @@ -1592,10 +1820,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The digest of the metric source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(72), validate.StringMatch(regexp.MustCompile("^[Ss][Hh][Aa]256:[0-9a-fA-F]{64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "content_type": { // Property: ContentType @@ -1620,10 +1852,18 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "explainability": { // Property: Explainability @@ -1640,20 +1880,28 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The digest of the file source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(72), validate.StringMatch(regexp.MustCompile("^[Ss][Hh][Aa]256:[0-9a-fA-F]{64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "content_type": { // Property: ContentType Description: "The type of content stored in the file source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_uri": { // Property: S3Uri @@ -1668,6 +1916,10 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "constraints": { // Property: Constraints @@ -1679,10 +1931,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The digest of the metric source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(72), validate.StringMatch(regexp.MustCompile("^[Ss][Hh][Aa]256:[0-9a-fA-F]{64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "content_type": { // Property: ContentType @@ -1707,10 +1963,18 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "model_data_quality": { // Property: ModelDataQuality @@ -1727,10 +1991,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The digest of the metric source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(72), validate.StringMatch(regexp.MustCompile("^[Ss][Hh][Aa]256:[0-9a-fA-F]{64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "content_type": { // Property: ContentType @@ -1755,6 +2023,10 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "statistics": { // Property: Statistics @@ -1766,10 +2038,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The digest of the metric source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(72), validate.StringMatch(regexp.MustCompile("^[Ss][Hh][Aa]256:[0-9a-fA-F]{64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "content_type": { // Property: ContentType @@ -1794,10 +2070,18 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "model_quality": { // Property: ModelQuality @@ -1814,10 +2098,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The digest of the metric source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(72), validate.StringMatch(regexp.MustCompile("^[Ss][Hh][Aa]256:[0-9a-fA-F]{64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "content_type": { // Property: ContentType @@ -1842,6 +2130,10 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "statistics": { // Property: Statistics @@ -1853,10 +2145,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The digest of the metric source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(72), validate.StringMatch(regexp.MustCompile("^[Ss][Hh][Aa]256:[0-9a-fA-F]{64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "content_type": { // Property: ContentType @@ -1881,10 +2177,18 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1918,6 +2222,10 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Type: types.MapType{ElemType: types.StringType}, // Pattern "[\\S\\s]*" ignored. Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inference_specification": { // Property: InferenceSpecification @@ -2083,10 +2391,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The DNS host name for the Docker container.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(63), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "environment": { // Property: Environment @@ -2095,22 +2407,34 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Type: types.MapType{ElemType: types.StringType}, // Pattern "[\\S\\s]*" ignored. Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "framework": { // Property: Framework Description: "The machine learning framework of the model package container image.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "framework_version": { // Property: FrameworkVersion Description: "The framework version of the Model Package Container Image.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 10), validate.StringMatch(regexp.MustCompile("[0-9]\\.[A-Za-z0-9.]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image": { // Property: Image @@ -2127,20 +2451,28 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "An MD5 hash of the training algorithm that identifies the Docker image used for training.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(72), validate.StringMatch(regexp.MustCompile("^[Ss][Hh][Aa]256:[0-9a-fA-F]{64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "model_data_url": { // Property: ModelDataUrl Description: "A structure with Model Input details.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "model_input": { // Property: ModelInput @@ -2159,22 +2491,34 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "nearest_model_name": { // Property: NearestModelName Description: "The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that matches your model.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "product_id": { // Property: ProductId Description: "The AWS Marketplace product ID of the model package.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -2199,6 +2543,10 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "A list of the instance types that are used to generate inferences in real-time", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "supported_response_mime_types": { // Property: SupportedResponseMIMETypes @@ -2215,9 +2563,13 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -2258,22 +2610,38 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The domain associated with the user.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "user_profile_arn": { // Property: UserProfileArn Description: "The Amazon Resource Name (ARN) of the user's profile.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "user_profile_name": { // Property: UserProfileName Description: "The name of the user's profile.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_modified_time": { // Property: LastModifiedTime @@ -2285,6 +2653,10 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The time at which the model package was last modified.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "metadata_properties": { // Property: MetadataProperties @@ -2328,40 +2700,56 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The commit ID.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "generated_by": { // Property: GeneratedBy Description: "The entity this entity was generated by.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "project_id": { // Property: ProjectId Description: "The project ID metadata.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "repository": { // Property: Repository Description: "The repository metadata.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -2387,6 +2775,7 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The approval status of the model package.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Approved", @@ -2394,6 +2783,9 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error "PendingManualApproval", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "model_metrics": { // Property: ModelMetrics @@ -2683,10 +3075,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The digest of the metric source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(72), validate.StringMatch(regexp.MustCompile("^[Ss][Hh][Aa]256:[0-9a-fA-F]{64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "content_type": { // Property: ContentType @@ -2711,6 +3107,10 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "pre_training_report": { // Property: PreTrainingReport @@ -2722,10 +3122,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The digest of the metric source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(72), validate.StringMatch(regexp.MustCompile("^[Ss][Hh][Aa]256:[0-9a-fA-F]{64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "content_type": { // Property: ContentType @@ -2750,6 +3154,10 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "report": { // Property: Report @@ -2761,10 +3169,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The digest of the metric source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(72), validate.StringMatch(regexp.MustCompile("^[Ss][Hh][Aa]256:[0-9a-fA-F]{64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "content_type": { // Property: ContentType @@ -2789,10 +3201,18 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "explainability": { // Property: Explainability @@ -2809,10 +3229,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The digest of the metric source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(72), validate.StringMatch(regexp.MustCompile("^[Ss][Hh][Aa]256:[0-9a-fA-F]{64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "content_type": { // Property: ContentType @@ -2837,10 +3261,18 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "model_data_quality": { // Property: ModelDataQuality @@ -2857,10 +3289,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The digest of the metric source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(72), validate.StringMatch(regexp.MustCompile("^[Ss][Hh][Aa]256:[0-9a-fA-F]{64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "content_type": { // Property: ContentType @@ -2885,6 +3321,10 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "statistics": { // Property: Statistics @@ -2896,10 +3336,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The digest of the metric source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(72), validate.StringMatch(regexp.MustCompile("^[Ss][Hh][Aa]256:[0-9a-fA-F]{64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "content_type": { // Property: ContentType @@ -2924,10 +3368,18 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "model_quality": { // Property: ModelQuality @@ -2944,10 +3396,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The digest of the metric source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(72), validate.StringMatch(regexp.MustCompile("^[Ss][Hh][Aa]256:[0-9a-fA-F]{64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "content_type": { // Property: ContentType @@ -2972,6 +3428,10 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "statistics": { // Property: Statistics @@ -2983,10 +3443,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The digest of the metric source.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(72), validate.StringMatch(regexp.MustCompile("^[Ss][Hh][Aa]256:[0-9a-fA-F]{64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "content_type": { // Property: ContentType @@ -3011,10 +3475,18 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -3096,6 +3568,10 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The name or arn of the model package.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "model_package_status": { // Property: ModelPackageStatus @@ -3215,6 +3691,10 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "If the overall status is Failed, the reason for the failure.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -3243,6 +3723,10 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "validation_statuses": { // Property: ValidationStatuses @@ -3253,6 +3737,10 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "If the overall status is Failed, the reason for the failure.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -3285,6 +3773,10 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "model_package_status_item": { // Property: ModelPackageStatusItem @@ -3329,6 +3821,10 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "If the overall status is Failed, the reason for the failure.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -3357,6 +3853,10 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "model_package_version": { // Property: ModelPackageVersion @@ -3369,9 +3869,13 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The version of the model package.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sample_payload_url": { // Property: SamplePayloadUrl @@ -3461,10 +3965,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -3535,6 +4043,10 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -3594,9 +4106,13 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "task": { // Property: Task @@ -3864,12 +4380,16 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "A string that determines the number of records included in a single mini-batch.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "MultiRecord", "SingleRecord", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "environment": { // Property: Environment @@ -3878,24 +4398,36 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Type: types.MapType{ElemType: types.StringType}, // Pattern "[\\S\\s]*" ignored. Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_concurrent_transforms": { // Property: MaxConcurrentTransforms Description: "The maximum number of parallel requests that can be sent to each instance in a transform job. The default value is 1.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_payload_in_mb": { // Property: MaxPayloadInMB Description: "The maximum payload size allowed, in MB. A payload is the data portion of a record (without metadata).", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "transform_input": { // Property: TransformInput @@ -3907,22 +4439,30 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "If your transform data is compressed, specify the compression type. Amazon SageMaker automatically decompresses the data for the transform job accordingly. The default value is None.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "None", "Gzip", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "content_type": { // Property: ContentType Description: "The multipurpose internet mail extension (MIME) type of the data. Amazon SageMaker uses the MIME type with each http call to transfer data to the transform job.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "data_source": { // Property: DataSource @@ -3970,6 +4510,7 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The method to use to split the transform job's data files into smaller batches. ", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "None", @@ -3978,6 +4519,9 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error "RecordIO", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -3993,32 +4537,44 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The MIME type used to specify the output data. Amazon SageMaker uses the MIME type with each http call to transfer data from the transform job.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "assemble_with": { // Property: AssembleWith Description: "Defines how to assemble the results of the transform job as a single S3 object.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "None", "Line", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kms_key_id": { // Property: KmsKeyId Description: "The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2048), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_output_path": { // Property: S3OutputPath @@ -4059,10 +4615,14 @@ func modelPackageResourceType(ctx context.Context) (provider.ResourceType, error Description: "The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt model data on the storage volume attached to the ML compute instance(s) that run the batch transform job.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2048), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), 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 830477b4b6..ec05ee5c43 100644 --- a/internal/aws/sagemaker/model_quality_job_definition_resource_gen.go +++ b/internal/aws/sagemaker/model_quality_job_definition_resource_gen.go @@ -49,10 +49,14 @@ func modelQualityJobDefinitionResourceType(ctx context.Context) (provider.Resour Description: "The name of the endpoint used to run the monitoring job.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(63), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "job_definition_arn": { // Property: JobDefinitionArn @@ -167,6 +171,10 @@ func modelQualityJobDefinitionResourceType(ctx context.Context) (provider.Resour Description: "The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "volume_size_in_gb": { // Property: VolumeSizeInGB @@ -273,20 +281,28 @@ func modelQualityJobDefinitionResourceType(ctx context.Context) (provider.Resour Description: "An array of arguments for the container used to run the monitoring job.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), validate.ArrayForEach(validate.StringLenBetween(1, 256)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "container_entrypoint": { // Property: ContainerEntrypoint Description: "Specifies the entrypoint for a container used to run the monitoring job.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 256)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "environment": { // Property: Environment @@ -295,6 +311,10 @@ func modelQualityJobDefinitionResourceType(ctx context.Context) (provider.Resour Type: types.MapType{ElemType: types.StringType}, // Pattern "[\\S\\s]*" ignored. Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_uri": { // Property: ImageUri @@ -311,10 +331,14 @@ func modelQualityJobDefinitionResourceType(ctx context.Context) (provider.Resour Description: "An Amazon S3 URI to a script that is called after analysis has been performed. Applicable only for the built-in (first party) containers.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "problem_type": { // Property: ProblemType @@ -334,10 +358,14 @@ func modelQualityJobDefinitionResourceType(ctx context.Context) (provider.Resour Description: "An Amazon S3 URI to a script that is called per row prior to running analysis. It can base64 decode the payload and convert it into a flatted json so that the built-in container can use the converted data. Applicable only for the built-in (first party) containers", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -384,10 +412,14 @@ func modelQualityJobDefinitionResourceType(ctx context.Context) (provider.Resour Description: "The name of a processing job", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 63), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "constraints_resource": { // Property: ConstraintsResource @@ -399,14 +431,22 @@ func modelQualityJobDefinitionResourceType(ctx context.Context) (provider.Resour Description: "The Amazon S3 URI for baseline constraint file in Amazon S3 that the current monitoring job should validated against.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -527,10 +567,14 @@ func modelQualityJobDefinitionResourceType(ctx context.Context) (provider.Resour Description: "Monitoring end time offset, e.g. PT0H", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 15), validate.StringMatch(regexp.MustCompile("^.?P.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "endpoint_name": { // Property: EndpointName @@ -547,9 +591,13 @@ func modelQualityJobDefinitionResourceType(ctx context.Context) (provider.Resour Description: "Index or JSONpath to locate predicted label(s)", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "local_path": { // Property: LocalPath @@ -566,48 +614,68 @@ func modelQualityJobDefinitionResourceType(ctx context.Context) (provider.Resour Description: "Index or JSONpath to locate probabilities", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "probability_threshold_attribute": { // Property: ProbabilityThresholdAttribute Type: types.Float64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_data_distribution_type": { // Property: S3DataDistributionType Description: "Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "FullyReplicated", "ShardedByS3Key", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_input_mode": { // Property: S3InputMode Description: "Whether the Pipe or File is used as the input mode for transfering data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Pipe", "File", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "start_time_offset": { // Property: StartTimeOffset Description: "Monitoring start time offset, e.g. -PT1H", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 15), validate.StringMatch(regexp.MustCompile("^.?P.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -713,10 +781,14 @@ func modelQualityJobDefinitionResourceType(ctx context.Context) (provider.Resour Description: "The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2048), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "monitoring_outputs": { // Property: MonitoringOutputs @@ -743,12 +815,16 @@ func modelQualityJobDefinitionResourceType(ctx context.Context) (provider.Resour Description: "Whether to upload the results of the monitoring job continuously or after the job completes.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Continuous", "EndOfJob", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_uri": { // Property: S3Uri @@ -834,12 +910,20 @@ func modelQualityJobDefinitionResourceType(ctx context.Context) (provider.Resour Description: "Whether to encrypt all communications between distributed processing jobs. Choose True to encrypt communications. Encryption provides greater security for distributed processing jobs, but the processing might take longer.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_network_isolation": { // Property: EnableNetworkIsolation Description: "Whether to allow inbound and outbound network calls to and from the containers used for the processing job.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_config": { // Property: VpcConfig @@ -871,6 +955,10 @@ func modelQualityJobDefinitionResourceType(ctx context.Context) (provider.Resour }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/sagemaker/monitoring_schedule_resource_gen.go b/internal/aws/sagemaker/monitoring_schedule_resource_gen.go index 3d68843ed3..018095a482 100644 --- a/internal/aws/sagemaker/monitoring_schedule_resource_gen.go +++ b/internal/aws/sagemaker/monitoring_schedule_resource_gen.go @@ -49,10 +49,14 @@ func monitoringScheduleResourceType(ctx context.Context) (provider.ResourceType, Description: "The name of the endpoint used to run the monitoring job.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(63), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "failure_reason": { // Property: FailureReason @@ -66,9 +70,13 @@ func monitoringScheduleResourceType(ctx context.Context) (provider.ResourceType, Description: "Contains the reason a monitoring job failed, if it failed.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_modified_time": { // Property: LastModifiedTime @@ -162,19 +170,27 @@ func monitoringScheduleResourceType(ctx context.Context) (provider.ResourceType, Description: "The name of the endpoint used to run the monitoring job.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(63), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "failure_reason": { // Property: FailureReason Description: "Contains the reason a monitoring job failed, if it failed.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "last_modified_time": { // Property: LastModifiedTime @@ -214,10 +230,14 @@ func monitoringScheduleResourceType(ctx context.Context) (provider.ResourceType, Description: "The Amazon Resource Name (ARN) of the monitoring job.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:processing-job/.*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "scheduled_time": { // Property: ScheduledTime @@ -228,6 +248,10 @@ func monitoringScheduleResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "monitoring_schedule_arn": { // Property: MonitoringScheduleArn @@ -657,14 +681,22 @@ func monitoringScheduleResourceType(ctx context.Context) (provider.ResourceType, Description: "The Amazon S3 URI for baseline constraint file in Amazon S3 that the current monitoring job should validated against.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "statistics_resource": { // Property: StatisticsResource @@ -676,18 +708,30 @@ func monitoringScheduleResourceType(ctx context.Context) (provider.ResourceType, Description: "The Amazon S3 URI for the baseline statistics file in Amazon S3 that the current monitoring job should be validated against.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "environment": { // Property: Environment @@ -696,6 +740,10 @@ func monitoringScheduleResourceType(ctx context.Context) (provider.ResourceType, Type: types.MapType{ElemType: types.StringType}, // Pattern "[\\S\\s]*" ignored. Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "monitoring_app_specification": { // Property: MonitoringAppSpecification @@ -707,20 +755,28 @@ func monitoringScheduleResourceType(ctx context.Context) (provider.ResourceType, Description: "An array of arguments for the container used to run the monitoring job.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), validate.ArrayForEach(validate.StringLenBetween(1, 256)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "container_entrypoint": { // Property: ContainerEntrypoint Description: "Specifies the entrypoint for a container used to run the monitoring job.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(100), validate.ArrayForEach(validate.StringLenBetween(1, 256)), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "image_uri": { // Property: ImageUri @@ -737,20 +793,28 @@ func monitoringScheduleResourceType(ctx context.Context) (provider.ResourceType, Description: "An Amazon S3 URI to a script that is called after analysis has been performed. Applicable only for the built-in (first party) containers.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "record_preprocessor_source_uri": { // Property: RecordPreprocessorSourceUri Description: "An Amazon S3 URI to a script that is called per row prior to running analysis. It can base64 decode the payload and convert it into a flatted json so that the built-in container can use the converted data. Applicable only for the built-in (first party) containers", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -791,24 +855,32 @@ func monitoringScheduleResourceType(ctx context.Context) (provider.ResourceType, Description: "Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defauts to FullyReplicated", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "FullyReplicated", "ShardedByS3Key", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_input_mode": { // Property: S3InputMode Description: "Whether the Pipe or File is used as the input mode for transfering data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Pipe", "File", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -831,10 +903,14 @@ func monitoringScheduleResourceType(ctx context.Context) (provider.ResourceType, Description: "The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2048), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "monitoring_outputs": { // Property: MonitoringOutputs @@ -861,12 +937,16 @@ func monitoringScheduleResourceType(ctx context.Context) (provider.ResourceType, Description: "Whether to upload the results of the monitoring job continuously or after the job completes.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Continuous", "EndOfJob", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_uri": { // Property: S3Uri @@ -920,6 +1000,10 @@ func monitoringScheduleResourceType(ctx context.Context) (provider.ResourceType, Description: "The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "volume_size_in_gb": { // Property: VolumeSizeInGB @@ -948,12 +1032,20 @@ func monitoringScheduleResourceType(ctx context.Context) (provider.ResourceType, Description: "Whether to encrypt all communications between distributed processing jobs. Choose True to encrypt communications. Encryption provides greater security for distributed processing jobs, but the processing might take longer.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enable_network_isolation": { // Property: EnableNetworkIsolation Description: "Whether to allow inbound and outbound network calls to and from the containers used for the processing job.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "vpc_config": { // Property: VpcConfig @@ -985,10 +1077,18 @@ func monitoringScheduleResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleArn @@ -1017,26 +1117,39 @@ func monitoringScheduleResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "monitoring_job_definition_name": { // Property: MonitoringJobDefinitionName Description: "Name of the job definition", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 63), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "monitoring_type": { // Property: MonitoringType Description: "The type of monitoring job.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "DataQuality", @@ -1045,6 +1158,9 @@ func monitoringScheduleResourceType(ctx context.Context) (provider.ResourceType, "ModelExplainability", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "schedule_config": { // Property: ScheduleConfig @@ -1063,6 +1179,10 @@ func monitoringScheduleResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -1104,6 +1224,7 @@ func monitoringScheduleResourceType(ctx context.Context) (provider.ResourceType, Description: "The status of a schedule job.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Pending", @@ -1112,6 +1233,9 @@ func monitoringScheduleResourceType(ctx context.Context) (provider.ResourceType, "Stopped", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -1170,9 +1294,13 @@ func monitoringScheduleResourceType(ctx context.Context) (provider.ResourceType, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/sagemaker/pipeline_resource_gen.go b/internal/aws/sagemaker/pipeline_resource_gen.go index 6e8c24a6b3..a2cc5f30aa 100644 --- a/internal/aws/sagemaker/pipeline_resource_gen.go +++ b/internal/aws/sagemaker/pipeline_resource_gen.go @@ -54,6 +54,10 @@ func pipelineResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "pipeline_definition": { // Property: PipelineDefinition @@ -100,6 +104,10 @@ func pipelineResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A specification that defines the pipeline in JSON format.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "pipeline_definition_s3_location": { // Property: PipelineDefinitionS3Location @@ -116,6 +124,10 @@ func pipelineResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The Amazon S3 ETag (a file checksum) of the PipelineDefinition file. If you don't specify a value, SageMaker skips ETag validation of your PipelineDefinition file.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key": { // Property: Key @@ -128,10 +140,18 @@ func pipelineResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "For versioning-enabled buckets, a specific version of the PipelineDefinition file.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -149,9 +169,13 @@ func pipelineResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The description of the Pipeline.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 3072), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "pipeline_display_name": { // Property: PipelineDisplayName @@ -166,10 +190,14 @@ func pipelineResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The display name of the Pipeline.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "pipeline_name": { // Property: PipelineName @@ -248,6 +276,10 @@ func pipelineResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/sagemaker/project_resource_gen.go b/internal/aws/sagemaker/project_resource_gen.go index 79f01322a1..c6ded8f3b9 100644 --- a/internal/aws/sagemaker/project_resource_gen.go +++ b/internal/aws/sagemaker/project_resource_gen.go @@ -164,16 +164,24 @@ func projectResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The identifier of the provisioning artifact (also known as a version).", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(100), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "provisioned_product_status_message": { // Property: ProvisionedProductStatusMessage Description: "Provisioned Product Status Message", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -249,10 +257,14 @@ func projectResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The path identifier of the product.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(100), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "product_id": { // Property: ProductId @@ -269,10 +281,14 @@ func projectResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The identifier of the provisioning artifact (also known as a version).", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(100), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9](-*[a-zA-Z0-9])*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "provisioning_parameters": { // Property: ProvisioningParameters @@ -302,6 +318,10 @@ func projectResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/sagemaker/user_profile_resource_gen.go b/internal/aws/sagemaker/user_profile_resource_gen.go index 4085bea64a..241fb29378 100644 --- a/internal/aws/sagemaker/user_profile_resource_gen.go +++ b/internal/aws/sagemaker/user_profile_resource_gen.go @@ -429,10 +429,14 @@ func userProfileResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The user profile Amazon Resource Name (ARN).", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(20, 2048), validate.StringMatch(regexp.MustCompile("^arn:aws[a-z\\-]*:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "jupyter_server_app_settings": { // Property: JupyterServerAppSettings @@ -448,6 +452,7 @@ func userProfileResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The instance type that the image version runs on.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "system", @@ -484,34 +489,53 @@ func userProfileResourceType(ctx context.Context) (provider.ResourceType, error) "ml.g4dn.16xlarge", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sage_maker_image_arn": { // Property: SageMakerImageArn Description: "The ARN of the SageMaker image that the image version belongs to.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image/[a-z0-9]([-.]?[a-z0-9])*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sage_maker_image_version_arn": { // Property: SageMakerImageVersionArn Description: "The ARN of the image version created on the instance.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image-version/[a-z0-9]([-.]?[a-z0-9])*/[0-9]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kernel_gateway_app_settings": { // Property: KernelGatewayAppSettings @@ -548,16 +572,24 @@ func userProfileResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The version number of the CustomImage.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 30), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "default_resource_spec": { // Property: DefaultResourceSpec @@ -569,6 +601,7 @@ func userProfileResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The instance type that the image version runs on.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "system", @@ -605,34 +638,53 @@ func userProfileResourceType(ctx context.Context) (provider.ResourceType, error) "ml.g4dn.16xlarge", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sage_maker_image_arn": { // Property: SageMakerImageArn Description: "The ARN of the SageMaker image that the image version belongs to.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image/[a-z0-9]([-.]?[a-z0-9])*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sage_maker_image_version_arn": { // Property: SageMakerImageVersionArn Description: "The ARN of the image version created on the instance.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(256), validate.StringMatch(regexp.MustCompile("^arn:aws(-[\\w]+)*:sagemaker:.+:[0-9]{12}:image-version/[a-z0-9]([-.]?[a-z0-9])*/[0-9]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "r_studio_server_pro_app_settings": { // Property: RStudioServerProAppSettings @@ -676,17 +728,25 @@ func userProfileResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "security_groups": { // Property: SecurityGroups Description: "The security groups for the Amazon Virtual Private Cloud (VPC) that Studio uses for communication.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 5), validate.ArrayForEach(validate.StringLenAtMost(32)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("[-0-9a-zA-Z]+"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sharing_settings": { // Property: SharingSettings @@ -698,40 +758,60 @@ func userProfileResourceType(ctx context.Context) (provider.ResourceType, error) Description: "Whether to include the notebook cell output when sharing the notebook. The default is Disabled.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Allowed", "Disabled", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_kms_key_id": { // Property: S3KmsKeyId Description: "When NotebookOutputOption is Allowed, the AWS Key Management Service (KMS) encryption key ID used to encrypt the notebook cell output in the Amazon S3 bucket.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(2048), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "s3_output_path": { // Property: S3OutputPath Description: "When NotebookOutputOption is Allowed, the Amazon S3 bucket used to store the shared notebook snapshots.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), validate.StringMatch(regexp.MustCompile("^(https|s3)://([^/]+)/?(.*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/servicecatalog/cloudformation_provisioned_product_resource_gen.go b/internal/aws/servicecatalog/cloudformation_provisioned_product_resource_gen.go index 56dc5a324d..230ca01cae 100644 --- a/internal/aws/servicecatalog/cloudformation_provisioned_product_resource_gen.go +++ b/internal/aws/servicecatalog/cloudformation_provisioned_product_resource_gen.go @@ -36,6 +36,7 @@ func cloudFormationProvisionedProductResourceType(ctx context.Context) (provider // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "en", @@ -43,6 +44,9 @@ func cloudFormationProvisionedProductResourceType(ctx context.Context) (provider "zh", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "cloudformation_stack_arn": { // Property: CloudformationStackArn @@ -112,9 +116,13 @@ func cloudFormationProvisionedProductResourceType(ctx context.Context) (provider // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "path_name": { // Property: PathName @@ -126,9 +134,13 @@ func cloudFormationProvisionedProductResourceType(ctx context.Context) (provider // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "product_id": { // Property: ProductId @@ -140,9 +152,13 @@ func cloudFormationProvisionedProductResourceType(ctx context.Context) (provider // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "product_name": { // Property: ProductName @@ -154,9 +170,13 @@ func cloudFormationProvisionedProductResourceType(ctx context.Context) (provider // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "provisioned_product_id": { // Property: ProvisionedProductId @@ -201,9 +221,13 @@ func cloudFormationProvisionedProductResourceType(ctx context.Context) (provider // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "provisioning_artifact_name": { // Property: ProvisioningArtifactName @@ -213,6 +237,10 @@ func cloudFormationProvisionedProductResourceType(ctx context.Context) (provider // } Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "provisioning_parameters": { // Property: ProvisioningParameters @@ -260,6 +288,10 @@ func cloudFormationProvisionedProductResourceType(ctx context.Context) (provider }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "provisioning_preferences": { // Property: ProvisioningPreferences @@ -318,47 +350,68 @@ func cloudFormationProvisionedProductResourceType(ctx context.Context) (provider // Property: StackSetAccounts Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^[0-9]{12}$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stack_set_failure_tolerance_count": { // Property: StackSetFailureToleranceCount Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stack_set_failure_tolerance_percentage": { // Property: StackSetFailureTolerancePercentage Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(0, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stack_set_max_concurrency_count": { // Property: StackSetMaxConcurrencyCount Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stack_set_max_concurrency_percentage": { // Property: StackSetMaxConcurrencyPercentage Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stack_set_operation_type": { // Property: StackSetOperationType Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CREATE", @@ -366,19 +419,30 @@ func cloudFormationProvisionedProductResourceType(ctx context.Context) (provider "DELETE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "stack_set_regions": { // Property: StackSetRegions Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^[a-z]{2}-([a-z]+-)+[1-9]"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "record_id": { // Property: RecordId @@ -445,6 +509,10 @@ func cloudFormationProvisionedProductResourceType(ctx context.Context) (provider }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/servicecatalog/service_action_resource_gen.go b/internal/aws/servicecatalog/service_action_resource_gen.go index 56db63d723..d88b25abe7 100644 --- a/internal/aws/servicecatalog/service_action_resource_gen.go +++ b/internal/aws/servicecatalog/service_action_resource_gen.go @@ -35,6 +35,7 @@ func serviceActionResourceType(ctx context.Context) (provider.ResourceType, erro // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "en", @@ -42,6 +43,9 @@ func serviceActionResourceType(ctx context.Context) (provider.ResourceType, erro "zh", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // AcceptLanguage is a write-only property. }, "definition": { @@ -117,9 +121,13 @@ func serviceActionResourceType(ctx context.Context) (provider.ResourceType, erro // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id diff --git a/internal/aws/servicecatalogappregistry/application_resource_gen.go b/internal/aws/servicecatalogappregistry/application_resource_gen.go index f686206b8d..10c8b8e107 100644 --- a/internal/aws/servicecatalogappregistry/application_resource_gen.go +++ b/internal/aws/servicecatalogappregistry/application_resource_gen.go @@ -47,9 +47,13 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The description of the application. ", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id @@ -98,6 +102,10 @@ func applicationResourceType(ctx context.Context) (provider.ResourceType, error) // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/servicecatalogappregistry/attribute_group_resource_gen.go b/internal/aws/servicecatalogappregistry/attribute_group_resource_gen.go index d7fa5c2806..f543bb507e 100644 --- a/internal/aws/servicecatalogappregistry/attribute_group_resource_gen.go +++ b/internal/aws/servicecatalogappregistry/attribute_group_resource_gen.go @@ -56,9 +56,13 @@ func attributeGroupResourceType(ctx context.Context) (provider.ResourceType, err Description: "The description of the attribute group. ", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id @@ -107,6 +111,10 @@ func attributeGroupResourceType(ctx context.Context) (provider.ResourceType, err // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/ses/configuration_set_event_destination_resource_gen.go b/internal/aws/ses/configuration_set_event_destination_resource_gen.go index cd83b9b0f6..e2f11b6cbb 100644 --- a/internal/aws/ses/configuration_set_event_destination_resource_gen.go +++ b/internal/aws/ses/configuration_set_event_destination_resource_gen.go @@ -188,19 +188,29 @@ func configurationSetEventDestinationResourceType(ctx context.Context) (provider }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "enabled": { // Property: Enabled Description: "Sets whether Amazon SES publishes events to this destination when you send an email with the associated configuration set. Set to true to enable publishing to this destination; set to false to prevent publishing to this destination. The default value is false. ", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kinesis_firehose_destination": { // Property: KinesisFirehoseDestination @@ -222,6 +232,10 @@ func configurationSetEventDestinationResourceType(ctx context.Context) (provider }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "matching_event_types": { // Property: MatchingEventTypes @@ -237,9 +251,13 @@ func configurationSetEventDestinationResourceType(ctx context.Context) (provider Description: "The name of the event destination set.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9_-]{0,64}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sns_destination": { // Property: SnsDestination @@ -258,6 +276,10 @@ func configurationSetEventDestinationResourceType(ctx context.Context) (provider }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/ses/configuration_set_resource_gen.go b/internal/aws/ses/configuration_set_resource_gen.go index a455265a0a..da50514c69 100644 --- a/internal/aws/ses/configuration_set_resource_gen.go +++ b/internal/aws/ses/configuration_set_resource_gen.go @@ -50,19 +50,31 @@ func configurationSetResourceType(ctx context.Context) (provider.ResourceType, e Description: "The name of the dedicated IP pool to associate with the configuration set.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tls_policy": { // Property: TlsPolicy Description: "Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS). If the value is Require , messages are only delivered if a TLS connection can be established. If the value is Optional , messages can be delivered in plain text if a TLS connection can't be established.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("REQUIRE|OPTIONAL"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -107,10 +119,18 @@ func configurationSetResourceType(ctx context.Context) (provider.ResourceType, e Description: "If true , tracking of reputation metrics is enabled for the configuration set. If false , tracking of reputation metrics is disabled for the configuration set.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sending_options": { // Property: SendingOptions @@ -133,10 +153,18 @@ func configurationSetResourceType(ctx context.Context) (provider.ResourceType, e // Property: SendingEnabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "suppression_options": { // Property: SuppressionOptions @@ -167,16 +195,22 @@ func configurationSetResourceType(ctx context.Context) (provider.ResourceType, e Description: "A list that contains the reasons that email addresses are automatically added to the suppression list for your account.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("BOUNCE|COMPLAINT"), "")), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tracking_options": { // Property: TrackingOptions @@ -200,10 +234,18 @@ func configurationSetResourceType(ctx context.Context) (provider.ResourceType, e Description: "The domain to use for tracking open and click events.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/ses/contact_list_resource_gen.go b/internal/aws/ses/contact_list_resource_gen.go index 77ffc35504..95db430ad1 100644 --- a/internal/aws/ses/contact_list_resource_gen.go +++ b/internal/aws/ses/contact_list_resource_gen.go @@ -54,9 +54,13 @@ func contactListResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The description of the contact list.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(500), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -110,11 +114,13 @@ func contactListResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 50), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "topics": { @@ -171,9 +177,13 @@ func contactListResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The description of the topic.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 500), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "display_name": { // Property: DisplayName @@ -196,11 +206,13 @@ func contactListResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 20), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/ses/email_identity_resource_gen.go b/internal/aws/ses/email_identity_resource_gen.go index 10ddeecf3b..fa5aecdc6c 100644 --- a/internal/aws/ses/email_identity_resource_gen.go +++ b/internal/aws/ses/email_identity_resource_gen.go @@ -45,10 +45,18 @@ func emailIdentityResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The configuration set to use by default when sending from this identity. Note that any configuration set defined in the email sending request takes precedence.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dkim_attributes": { // Property: DkimAttributes @@ -72,10 +80,18 @@ func emailIdentityResourceType(ctx context.Context) (provider.ResourceType, erro Description: "Sets the DKIM signing configuration for the identity. When you set this value true, then the messages that are sent from the identity are signed using DKIM. If you set this value to false, your messages are sent without DKIM signing.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dkim_dns_token_name_1": { // Property: DkimDNSTokenName1 @@ -180,25 +196,41 @@ func emailIdentityResourceType(ctx context.Context) (provider.ResourceType, erro 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.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "domain_signing_selector": { // Property: DomainSigningSelector Description: "[Bring Your Own DKIM] A string that's used to identify a public key in the DNS configuration for a domain.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "next_signing_key_length": { // Property: NextSigningKeyLength Description: "[Easy DKIM] The key length of the future DKIM key pair to be generated. This can be changed at most once per day.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("RSA_1024_BIT|RSA_2048_BIT"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // DkimSigningAttributes is a write-only property. }, "email_identity": { @@ -237,10 +269,18 @@ func emailIdentityResourceType(ctx context.Context) (provider.ResourceType, erro Description: "If the value is true, you receive email notifications when bounce or complaint events occur", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "mail_from_attributes": { // Property: MailFromAttributes @@ -269,19 +309,31 @@ func emailIdentityResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The action to take if the required MX record isn't found when you send an email. When you set this value to UseDefaultValue , the mail is sent using amazonses.com as the MAIL FROM domain. When you set this value to RejectMessage , the Amazon SES API v2 returns a MailFromDomainNotVerified error, and doesn't attempt to deliver the email.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("USE_DEFAULT_VALUE|REJECT_MESSAGE"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "mail_from_domain": { // Property: MailFromDomain Description: "The custom MAIL FROM domain that you want the verified identity to use", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/ses/template_resource_gen.go b/internal/aws/ses/template_resource_gen.go index 8488d74a5d..44de8d0e10 100644 --- a/internal/aws/ses/template_resource_gen.go +++ b/internal/aws/ses/template_resource_gen.go @@ -75,6 +75,10 @@ func templateResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The HTML body of the email.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "subject_part": { // Property: SubjectPart @@ -102,10 +106,18 @@ func templateResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The email body that is visible to recipients whose email clients do not display HTML content.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/signer/signing_profile_resource_gen.go b/internal/aws/signer/signing_profile_resource_gen.go index 48aea178c7..973a30d278 100644 --- a/internal/aws/signer/signing_profile_resource_gen.go +++ b/internal/aws/signer/signing_profile_resource_gen.go @@ -131,6 +131,7 @@ func signingProfileResourceType(ctx context.Context) (provider.ResourceType, err // Property: Type Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "DAYS", @@ -138,11 +139,18 @@ func signingProfileResourceType(ctx context.Context) (provider.ResourceType, err "YEARS", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -184,21 +192,33 @@ func signingProfileResourceType(ctx context.Context) (provider.ResourceType, err // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 127), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/sqs/queue_resource_gen.go b/internal/aws/sqs/queue_resource_gen.go index 55e3a753ca..3f3356f8e2 100644 --- a/internal/aws/sqs/queue_resource_gen.go +++ b/internal/aws/sqs/queue_resource_gen.go @@ -45,6 +45,10 @@ func queueResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "For first-in-first-out (FIFO) queues, specifies whether to enable content-based deduplication. During the deduplication interval, Amazon SQS treats messages that are sent with identical content as duplicates and delivers only one copy of the message.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "deduplication_scope": { // Property: DeduplicationScope @@ -56,6 +60,10 @@ func queueResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies whether message deduplication occurs at the message group or queue level. Valid values are messageGroup and queue.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "delay_seconds": { // Property: DelaySeconds @@ -67,6 +75,10 @@ func queueResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The time in seconds for which the delivery of all messages in the queue is delayed. You can specify an integer value of 0 to 900 (15 minutes). The default value is 0.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "fifo_queue": { // Property: FifoQueue @@ -94,6 +106,10 @@ func queueResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies whether the FIFO queue throughput quota applies to the entire queue or per message group. Valid values are perQueue and perMessageGroupId. The perMessageGroupId value is allowed only when the value for DeduplicationScope is messageGroup.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kms_data_key_reuse_period_seconds": { // Property: KmsDataKeyReusePeriodSeconds @@ -105,6 +121,10 @@ func queueResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The length of time in seconds for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. The value must be an integer between 60 (1 minute) and 86,400 (24 hours). The default is 300 (5 minutes).", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "kms_master_key_id": { // Property: KmsMasterKeyId @@ -116,6 +136,10 @@ func queueResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The ID of an AWS managed customer master key (CMK) for Amazon SQS or a custom CMK. To use the AWS managed CMK for Amazon SQS, specify the (default) alias alias/aws/sqs.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "maximum_message_size": { // Property: MaximumMessageSize @@ -127,6 +151,10 @@ func queueResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The limit of how many bytes that a message can contain before Amazon SQS rejects it. You can specify an integer value from 1,024 bytes (1 KiB) to 262,144 bytes (256 KiB). The default value is 262,144 (256 KiB).", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "message_retention_period": { // Property: MessageRetentionPeriod @@ -138,6 +166,10 @@ func queueResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The number of seconds that Amazon SQS retains a message. You can specify an integer value from 60 seconds (1 minute) to 1,209,600 seconds (14 days). The default value is 345,600 seconds (4 days).", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "queue_name": { // Property: QueueName @@ -179,6 +211,10 @@ func queueResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies the duration, in seconds, that the ReceiveMessage action call waits until a message is in the queue in order to include it in the response, rather than returning an empty response if a message isn't yet available. You can specify an integer from 1 to 20. Short polling is used as the default or when you specify 0 for this property.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "redrive_allow_policy": { // Property: RedriveAllowPolicy @@ -190,6 +226,10 @@ func queueResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The string that includes the parameters for the permissions for the dead-letter queue redrive permission and which source queues can specify dead-letter queues as a JSON object.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "redrive_policy": { // Property: RedrivePolicy @@ -201,6 +241,10 @@ func queueResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "A string that includes the parameters for the dead-letter queue functionality (redrive policy) of the source queue.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sqs_managed_sse_enabled": { // Property: SqsManagedSseEnabled @@ -212,6 +256,10 @@ func queueResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Enables server-side queue encryption using SQS owned encryption keys. Only one server-side encryption option is supported per queue (e.g. SSE-KMS or SSE-SQS ).", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -258,8 +306,10 @@ func queueResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "visibility_timeout": { @@ -272,6 +322,10 @@ func queueResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The length of time during which a message will be unavailable after a message is delivered from the queue. This blocks other components from receiving the same message and gives the initial component time to process and delete the message from the queue. Values must be from 0 to 43,200 seconds (12 hours). If you don't specify a value, AWS CloudFormation uses the default value of 30 seconds.", Type: types.Int64Type, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/ssm/association_resource_gen.go b/internal/aws/ssm/association_resource_gen.go index 7df5489a5f..40de5adced 100644 --- a/internal/aws/ssm/association_resource_gen.go +++ b/internal/aws/ssm/association_resource_gen.go @@ -31,6 +31,10 @@ func associationResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "association_id": { // Property: AssociationId @@ -62,9 +66,13 @@ func associationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The name of the association.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9_\\-.]{3,128}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "automation_target_parameter_name": { // Property: AutomationTargetParameterName @@ -76,9 +84,13 @@ func associationResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "calendar_names": { // Property: CalendarNames @@ -100,6 +112,10 @@ func associationResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "compliance_severity": { // Property: ComplianceSeverity @@ -116,6 +132,7 @@ func associationResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "CRITICAL", @@ -125,6 +142,9 @@ func associationResourceType(ctx context.Context) (provider.ResourceType, error) "UNSPECIFIED", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "document_version": { // Property: DocumentVersion @@ -137,9 +157,13 @@ func associationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The version of the SSM document to associate with the target.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("([$]LATEST|[$]DEFAULT|^[1-9][0-9]*$)"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_id": { // Property: InstanceId @@ -156,9 +180,13 @@ func associationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "The ID of the instance that the SSM document is associated with.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("(^i-(\\w{8}|\\w{17})$)|(^mi-\\w{17}$)"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_concurrency": { // Property: MaxConcurrency @@ -175,9 +203,13 @@ func associationResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^([1-9][0-9]{0,6}|[1-9][0-9]%|[1-9]%|100%)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "max_errors": { // Property: MaxErrors @@ -194,9 +226,13 @@ func associationResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^([1-9][0-9]{0,6}|[0]|[1-9][0-9]%|[0-9]%|100%)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -256,33 +292,53 @@ func associationResourceType(ctx context.Context) (provider.ResourceType, error) // Property: OutputS3BucketName Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 63), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "output_s3_key_prefix": { // Property: OutputS3KeyPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1024), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "output_s3_region": { // Property: OutputS3Region Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 20), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "parameters": { // Property: Parameters @@ -304,6 +360,10 @@ func associationResourceType(ctx context.Context) (provider.ResourceType, error) // Pattern: "" Type: types.MapType{ElemType: types.ListType{ElemType: types.StringType}}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "schedule_expression": { // Property: ScheduleExpression @@ -323,9 +383,13 @@ func associationResourceType(ctx context.Context) (provider.ResourceType, error) Description: "A Cron or Rate expression that specifies when the association is applied to the target.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "schedule_offset": { // Property: ScheduleOffset @@ -337,9 +401,13 @@ func associationResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 6), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sync_compliance": { // Property: SyncCompliance @@ -353,12 +421,16 @@ func associationResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "AUTO", "MANUAL", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "targets": { // Property: Targets @@ -413,9 +485,13 @@ func associationResourceType(ctx context.Context) (provider.ResourceType, error) }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 5), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "wait_for_success_timeout_seconds": { // Property: WaitForSuccessTimeoutSeconds @@ -427,9 +503,13 @@ func associationResourceType(ctx context.Context) (provider.ResourceType, error) // } Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(15, 172800), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/ssm/document_resource_gen.go b/internal/aws/ssm/document_resource_gen.go index 27cab1b15c..6bc23f91a9 100644 --- a/internal/aws/ssm/document_resource_gen.go +++ b/internal/aws/ssm/document_resource_gen.go @@ -75,6 +75,7 @@ func documentResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The key of a key-value pair that identifies the location of an attachment to a document.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "SourceUrl", @@ -82,38 +83,49 @@ func documentResourceType(ctx context.Context) (provider.ResourceType, error) { "AttachmentReference", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Description: "The name of the document attachment file.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), validate.StringMatch(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "values": { // Property: Values 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.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 1), validate.ArrayForEach(validate.StringLenBetween(1, 100000)), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 20), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "content": { @@ -259,29 +271,39 @@ func documentResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of the required SSM document. The name can be an Amazon Resource Name (ARN).", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(200), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9_\\-.:/]{3,200}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "version": { // Property: Version Description: "The document version required by the current document.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(8), validate.StringMatch(regexp.MustCompile("([$]LATEST|[$]DEFAULT|^[1-9][0-9]*$)"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "tags": { @@ -321,29 +343,39 @@ func documentResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of the tag.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), validate.StringMatch(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Description: "The value of the tag.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), validate.StringMatch(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(1000), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "target_type": { @@ -357,9 +389,13 @@ func documentResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specify a target type to define the kinds of resources the document can run on.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^\\/[\\w\\.\\-\\:\\/]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "update_method": { // Property: UpdateMethod @@ -399,9 +435,13 @@ func documentResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "An optional field specifying the version of the artifact you are creating with the document. This value is unique across all versions of a document, and cannot be changed.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9_\\-.]{1,128}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/ssm/resource_data_sync_resource_gen.go b/internal/aws/ssm/resource_data_sync_resource_gen.go index 34f264f431..c66788d5c6 100644 --- a/internal/aws/ssm/resource_data_sync_resource_gen.go +++ b/internal/aws/ssm/resource_data_sync_resource_gen.go @@ -151,9 +151,13 @@ func resourceDataSyncResourceType(ctx context.Context) (provider.ResourceType, e // Property: BucketPrefix Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "bucket_region": { // Property: BucketRegion @@ -167,9 +171,13 @@ func resourceDataSyncResourceType(ctx context.Context) (provider.ResourceType, e // Property: KMSKeyArn Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sync_format": { // Property: SyncFormat @@ -291,15 +299,27 @@ func resourceDataSyncResourceType(ctx context.Context) (provider.ResourceType, e // Property: OrganizationalUnits Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "include_future_regions": { // Property: IncludeFutureRegions Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_regions": { // Property: SourceRegions @@ -317,6 +337,10 @@ func resourceDataSyncResourceType(ctx context.Context) (provider.ResourceType, e }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sync_type": { // Property: SyncType diff --git a/internal/aws/ssmcontacts/contact_channel_resource_gen.go b/internal/aws/ssmcontacts/contact_channel_resource_gen.go index f39fa97313..06a9403f79 100644 --- a/internal/aws/ssmcontacts/contact_channel_resource_gen.go +++ b/internal/aws/ssmcontacts/contact_channel_resource_gen.go @@ -47,6 +47,10 @@ func contactChannelResourceType(ctx context.Context) (provider.ResourceType, err Description: "The details that SSM Incident Manager uses when trying to engage the contact channel.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "channel_name": { // Property: ChannelName @@ -61,9 +65,13 @@ func contactChannelResourceType(ctx context.Context) (provider.ResourceType, err Description: "The device name. String of 6 to 50 alphabetical, numeric, dash, and underscore characters.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 255), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "channel_type": { // Property: ChannelType @@ -126,6 +134,10 @@ func contactChannelResourceType(ctx context.Context) (provider.ResourceType, err 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.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/ssmcontacts/contact_resource_gen.go b/internal/aws/ssmcontacts/contact_resource_gen.go index 8bc4e319c5..2eee7eeab9 100644 --- a/internal/aws/ssmcontacts/contact_resource_gen.go +++ b/internal/aws/ssmcontacts/contact_resource_gen.go @@ -192,6 +192,10 @@ func contactResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "contact_target_info": { // Property: ContactTargetInfo @@ -213,10 +217,15 @@ func contactResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.RequiredAttributes( validate.OneOfRequired( @@ -229,6 +238,9 @@ func contactResourceType(ctx context.Context) (provider.ResourceType, error) { ), ), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/ssmincidents/replication_set_resource_gen.go b/internal/aws/ssmincidents/replication_set_resource_gen.go index 66994cd910..c6e87534cc 100644 --- a/internal/aws/ssmincidents/replication_set_resource_gen.go +++ b/internal/aws/ssmincidents/replication_set_resource_gen.go @@ -116,15 +116,23 @@ func replicationSetResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "region_name": { // Property: RegionName Description: "The AWS region name.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(20), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/ssmincidents/response_plan_resource_gen.go b/internal/aws/ssmincidents/response_plan_resource_gen.go index 59db27fed2..b004fd341d 100644 --- a/internal/aws/ssmincidents/response_plan_resource_gen.go +++ b/internal/aws/ssmincidents/response_plan_resource_gen.go @@ -172,9 +172,13 @@ func responsePlanResourceType(ctx context.Context) (provider.ResourceType, error Description: "The version of the document to use when starting the SSM automation document.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "dynamic_parameters": { // Property: DynamicParameters @@ -199,12 +203,16 @@ func responsePlanResourceType(ctx context.Context) (provider.ResourceType, error Description: "The variable types used as dynamic parameter value when starting the SSM automation document.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "INCIDENT_RECORD_ARN", "INVOLVED_RESOURCES", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -213,9 +221,13 @@ func responsePlanResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "parameters": { // Property: Parameters @@ -243,9 +255,13 @@ func responsePlanResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "role_arn": { // Property: RoleArn @@ -262,16 +278,24 @@ func responsePlanResourceType(ctx context.Context) (provider.ResourceType, error Description: "The account type to use when starting the SSM automation document.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "IMPACTED_ACCOUNT", "RESPONSE_PLAN_OWNER_ACCOUNT", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -330,15 +354,23 @@ func responsePlanResourceType(ctx context.Context) (provider.ResourceType, error // Property: ChatbotSns Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), validate.ArrayForEach(validate.StringLenAtMost(1000)), validate.ArrayForEach(validate.StringMatch(regexp.MustCompile("^arn:aws(-(cn|us-gov))?:sns:(([a-z]+-)+[0-9])?:([0-9]{12})?:[^.]+$"), "")), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "display_name": { // Property: DisplayName @@ -352,9 +384,13 @@ func responsePlanResourceType(ctx context.Context) (provider.ResourceType, error Description: "The display name of the response plan.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 200), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "engagements": { // Property: Engagements @@ -482,9 +518,13 @@ func responsePlanResourceType(ctx context.Context) (provider.ResourceType, error Description: "The deduplication string.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "impact": { // Property: Impact @@ -538,19 +578,25 @@ func responsePlanResourceType(ctx context.Context) (provider.ResourceType, error Description: "The ARN of the Chatbot SNS topic.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(1000), validate.StringMatch(regexp.MustCompile("^arn:aws(-(cn|us-gov))?:sns:(([a-z]+-)+[0-9])?:([0-9]{12})?:[^.]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(10), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "summary": { @@ -558,9 +604,13 @@ func responsePlanResourceType(ctx context.Context) (provider.ResourceType, error Description: "The summary string.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 4000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "title": { // Property: Title diff --git a/internal/aws/sso/instance_access_control_attribute_configuration_resource_gen.go b/internal/aws/sso/instance_access_control_attribute_configuration_resource_gen.go index d45ca47e5e..9d7ecaeecd 100644 --- a/internal/aws/sso/instance_access_control_attribute_configuration_resource_gen.go +++ b/internal/aws/sso/instance_access_control_attribute_configuration_resource_gen.go @@ -99,11 +99,13 @@ func instanceAccessControlAttributeConfigurationResourceType(ctx context.Context }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "instance_access_control_attribute_configuration": { @@ -207,6 +209,10 @@ func instanceAccessControlAttributeConfigurationResourceType(ctx context.Context }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_arn": { // Property: InstanceArn diff --git a/internal/aws/sso/permission_set_resource_gen.go b/internal/aws/sso/permission_set_resource_gen.go index e4677771ab..34721ec504 100644 --- a/internal/aws/sso/permission_set_resource_gen.go +++ b/internal/aws/sso/permission_set_resource_gen.go @@ -69,10 +69,14 @@ func permissionSetResourceType(ctx context.Context) (provider.ResourceType, erro // Property: Path Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("((/[A-Za-z0-9\\.,\\+@=_-]+)*)/"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -100,9 +104,13 @@ func permissionSetResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The permission set description.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 700), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "inline_policy": { // Property: InlinePolicy @@ -114,6 +122,10 @@ func permissionSetResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The inline policy to put in permission set.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "instance_arn": { // Property: InstanceArn @@ -257,27 +269,43 @@ func permissionSetResourceType(ctx context.Context) (provider.ResourceType, erro // Property: Path Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("((/[A-Za-z0-9\\.,\\+@=_-]+)*)/"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "managed_policy_arn": { // Property: ManagedPolicyArn Description: "The managed policy to attach.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(20, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "relay_state_type": { // Property: RelayStateType @@ -292,10 +320,14 @@ func permissionSetResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The relay state URL that redirect links to any service in the AWS Management Console.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 240), validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9&$@#\\/%?=~\\-_'"|!:,.;*+\\[\\]\\ \\(\\)\\{\\}]+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "session_duration": { // Property: SessionDuration @@ -310,9 +342,13 @@ func permissionSetResourceType(ctx context.Context) (provider.ResourceType, erro Description: "The length of time that a user can be signed in to an AWS account.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 100), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -368,11 +404,13 @@ func permissionSetResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/stepfunctions/activity_resource_gen.go b/internal/aws/stepfunctions/activity_resource_gen.go index 9b79ab9093..d9e472e495 100644 --- a/internal/aws/stepfunctions/activity_resource_gen.go +++ b/internal/aws/stepfunctions/activity_resource_gen.go @@ -102,8 +102,10 @@ func activityResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/stepfunctions/state_machine_resource_gen.go b/internal/aws/stepfunctions/state_machine_resource_gen.go index fa390fe10d..b4fedc21d5 100644 --- a/internal/aws/stepfunctions/state_machine_resource_gen.go +++ b/internal/aws/stepfunctions/state_machine_resource_gen.go @@ -44,6 +44,10 @@ func stateMachineResourceType(ctx context.Context) (provider.ResourceType, error // } Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // Definition is a write-only property. }, "definition_s3_location": { @@ -84,10 +88,18 @@ func stateMachineResourceType(ctx context.Context) (provider.ResourceType, error // Property: Version Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // DefinitionS3Location is a write-only property. }, "definition_string": { @@ -100,9 +112,13 @@ func stateMachineResourceType(ctx context.Context) (provider.ResourceType, error // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1048576), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "definition_substitutions": { // Property: DefinitionSubstitutions @@ -119,6 +135,10 @@ func stateMachineResourceType(ctx context.Context) (provider.ResourceType, error // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // DefinitionSubstitutions is a write-only property. }, "logging_configuration": { @@ -178,33 +198,48 @@ func stateMachineResourceType(ctx context.Context) (provider.ResourceType, error // Property: LogGroupArn Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "include_execution_data": { // Property: IncludeExecutionData Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "level": { // Property: Level Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "ALL", @@ -213,10 +248,17 @@ func stateMachineResourceType(ctx context.Context) (provider.ResourceType, error "OFF", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -338,8 +380,10 @@ func stateMachineResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "tracing_configuration": { @@ -360,10 +404,18 @@ func stateMachineResourceType(ctx context.Context) (provider.ResourceType, error // Property: Enabled Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/supportapp/slack_channel_configuration_resource_gen.go b/internal/aws/supportapp/slack_channel_configuration_resource_gen.go index 89f565b39b..2c3c2ad478 100644 --- a/internal/aws/supportapp/slack_channel_configuration_resource_gen.go +++ b/internal/aws/supportapp/slack_channel_configuration_resource_gen.go @@ -57,10 +57,14 @@ func slackChannelConfigurationResourceType(ctx context.Context) (provider.Resour Description: "The channel name in Slack.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), validate.StringMatch(regexp.MustCompile("^.+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "channel_role_arn": { // Property: ChannelRoleArn @@ -90,6 +94,10 @@ func slackChannelConfigurationResourceType(ctx context.Context) (provider.Resour Description: "Whether to notify when a correspondence is added to a case.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "notify_on_case_severity": { // Property: NotifyOnCaseSeverity @@ -124,6 +132,10 @@ func slackChannelConfigurationResourceType(ctx context.Context) (provider.Resour Description: "Whether to notify when a case is created or reopened.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "notify_on_resolve_case": { // Property: NotifyOnResolveCase @@ -135,6 +147,10 @@ func slackChannelConfigurationResourceType(ctx context.Context) (provider.Resour Description: "Whether to notify when a case is resolved.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "team_id": { // Property: TeamId diff --git a/internal/aws/timestream/database_resource_gen.go b/internal/aws/timestream/database_resource_gen.go index 5b9bd95501..8261f7dfd6 100644 --- a/internal/aws/timestream/database_resource_gen.go +++ b/internal/aws/timestream/database_resource_gen.go @@ -67,9 +67,13 @@ func databaseResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The KMS key for the database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -104,26 +108,36 @@ func databaseResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/timestream/scheduled_query_resource_gen.go b/internal/aws/timestream/scheduled_query_resource_gen.go index de197404e9..537f0bf48c 100644 --- a/internal/aws/timestream/scheduled_query_resource_gen.go +++ b/internal/aws/timestream/scheduled_query_resource_gen.go @@ -128,22 +128,30 @@ func scheduledQueryResourceType(ctx context.Context) (provider.ResourceType, err Description: "Encryption at rest options for the error reports. If no encryption option is specified, Timestream will choose SSE_S3 as default.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "SSE_S3", "SSE_KMS", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "object_key_prefix": { // Property: ObjectKeyPrefix Description: "Prefix for error report keys.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 896), validate.StringMatch(regexp.MustCompile("[a-zA-Z0-9|!\\-_*'\\(\\)]([a-zA-Z0-9]|[!\\-_*'\\(\\)\\/.])+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -501,11 +509,13 @@ func scheduledQueryResourceType(ctx context.Context) (provider.ResourceType, err }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "target_configuration": { @@ -748,6 +758,10 @@ func scheduledQueryResourceType(ctx context.Context) (provider.ResourceType, err Description: "Name of the measure name column from the query result.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "mixed_measure_mappings": { // Property: MixedMeasureMappings @@ -759,6 +773,10 @@ func scheduledQueryResourceType(ctx context.Context) (provider.ResourceType, err Description: "Refers to the value of the measure name in a result row. This field is required if MeasureNameColumn is provided.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "measure_value_type": { // Property: MeasureValueType @@ -805,15 +823,21 @@ func scheduledQueryResourceType(ctx context.Context) (provider.ResourceType, err Description: "Custom name to be used for attribute name in derived table. If not provided, source column name would be used.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "source_column": { @@ -821,21 +845,31 @@ func scheduledQueryResourceType(ctx context.Context) (provider.ResourceType, err Description: "This field refers to the source column from which the measure value is to be read for result materialization.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target_measure_name": { // Property: TargetMeasureName Description: "Target measure name to be used. If not provided, the target measure name by default would be MeasureName if provided, or SourceColumn otherwise.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "multi_measure_mappings": { @@ -873,6 +907,10 @@ func scheduledQueryResourceType(ctx context.Context) (provider.ResourceType, err Description: "Custom name to be used for attribute name in derived table. If not provided, source column name would be used.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -889,10 +927,18 @@ func scheduledQueryResourceType(ctx context.Context) (provider.ResourceType, err Description: "Name of the target multi-measure in the derived table. Required if MeasureNameColumn is not provided. If MeasureNameColumn is provided then the value from that column will be used as the multi-measure name.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "table_name": { // Property: TableName diff --git a/internal/aws/timestream/table_resource_gen.go b/internal/aws/timestream/table_resource_gen.go index 84f3f97174..96dc5c75cf 100644 --- a/internal/aws/timestream/table_resource_gen.go +++ b/internal/aws/timestream/table_resource_gen.go @@ -140,24 +140,44 @@ func tableResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Must be provided if SSE_KMS is specified as the encryption option", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "object_key_prefix": { // Property: ObjectKeyPrefix Description: "String used to prefix all data in the bucket.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name @@ -199,16 +219,28 @@ func tableResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The duration for which data must be stored in the magnetic store.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "memory_store_retention_period_in_hours": { // Property: MemoryStoreRetentionPeriodInHours Description: "The duration for which data must be stored in the memory store.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "table_name": { // Property: TableName @@ -263,26 +295,36 @@ func tableResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(200), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/transfer/workflow_resource_gen.go b/internal/aws/transfer/workflow_resource_gen.go index 9f6378e86d..5dea9dce99 100644 --- a/internal/aws/transfer/workflow_resource_gen.go +++ b/internal/aws/transfer/workflow_resource_gen.go @@ -275,64 +275,96 @@ func workflowResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies the S3 bucket that contains the file being copied.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 63), validate.StringMatch(regexp.MustCompile("^[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key": { // Property: Key Description: "The name assigned to the file when it was created in S3. You use the object key to retrieve the object.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Description: "The name of the step, used as an identifier.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 30), validate.StringMatch(regexp.MustCompile("^[\\w-]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "overwrite_existing": { // Property: OverwriteExisting Description: "A flag that indicates whether or not to overwrite an existing file of the same name. The default is FALSE.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "TRUE", "FALSE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_file_location": { // Property: SourceFileLocation Description: "Specifies which file to use as input to the workflow step.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), validate.StringMatch(regexp.MustCompile("^\\$\\{(\\w+.)+\\w+\\}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "custom_step_details": { // Property: CustomStepDetails @@ -344,43 +376,63 @@ func workflowResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of the step, used as an identifier.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 30), validate.StringMatch(regexp.MustCompile("^[\\w-]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_file_location": { // Property: SourceFileLocation Description: "Specifies which file to use as input to the workflow step.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), validate.StringMatch(regexp.MustCompile("^\\$\\{(\\w+.)+\\w+\\}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target": { // Property: Target Description: "The ARN for the lambda function that is being called.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 170), validate.StringMatch(regexp.MustCompile("arn:[a-z-]+:lambda:.*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "timeout_seconds": { // Property: TimeoutSeconds Description: "Timeout, in seconds, for the step.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 1800), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "delete_step_details": { // Property: DeleteStepDetails @@ -392,24 +444,36 @@ func workflowResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of the step, used as an identifier.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 30), validate.StringMatch(regexp.MustCompile("^[\\w-]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_file_location": { // Property: SourceFileLocation Description: "Specifies which file to use as input to the workflow step.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), validate.StringMatch(regexp.MustCompile("^\\$\\{(\\w+.)+\\w+\\}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tag_step_details": { // Property: TagStepDetails @@ -421,20 +485,28 @@ func workflowResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of the step, used as an identifier.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 30), validate.StringMatch(regexp.MustCompile("^[\\w-]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_file_location": { // Property: SourceFileLocation Description: "Specifies which file to use as input to the workflow step.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), validate.StringMatch(regexp.MustCompile("^\\$\\{(\\w+.)+\\w+\\}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -462,18 +534,27 @@ func workflowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(10), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "COPY", @@ -482,6 +563,9 @@ func workflowResourceType(ctx context.Context) (provider.ResourceType, error) { "TAG", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -708,64 +792,96 @@ func workflowResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Specifies the S3 bucket that contains the file being copied.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(3, 63), validate.StringMatch(regexp.MustCompile("^[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "key": { // Property: Key Description: "The name assigned to the file when it was created in S3. You use the object key to retrieve the object.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), validate.StringMatch(regexp.MustCompile(".*"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "name": { // Property: Name Description: "The name of the step, used as an identifier.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 30), validate.StringMatch(regexp.MustCompile("^[\\w-]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "overwrite_existing": { // Property: OverwriteExisting Description: "A flag that indicates whether or not to overwrite an existing file of the same name. The default is FALSE.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "TRUE", "FALSE", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_file_location": { // Property: SourceFileLocation Description: "Specifies which file to use as input to the workflow step.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), validate.StringMatch(regexp.MustCompile("^\\$\\{(\\w+.)+\\w+\\}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "custom_step_details": { // Property: CustomStepDetails @@ -777,43 +893,63 @@ func workflowResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of the step, used as an identifier.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 30), validate.StringMatch(regexp.MustCompile("^[\\w-]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_file_location": { // Property: SourceFileLocation Description: "Specifies which file to use as input to the workflow step.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), validate.StringMatch(regexp.MustCompile("^\\$\\{(\\w+.)+\\w+\\}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "target": { // Property: Target Description: "The ARN for the lambda function that is being called.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 170), validate.StringMatch(regexp.MustCompile("arn:[a-z-]+:lambda:.*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "timeout_seconds": { // Property: TimeoutSeconds Description: "Timeout, in seconds, for the step.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 1800), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "delete_step_details": { // Property: DeleteStepDetails @@ -825,24 +961,36 @@ func workflowResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of the step, used as an identifier.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 30), validate.StringMatch(regexp.MustCompile("^[\\w-]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_file_location": { // Property: SourceFileLocation Description: "Specifies which file to use as input to the workflow step.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), validate.StringMatch(regexp.MustCompile("^\\$\\{(\\w+.)+\\w+\\}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tag_step_details": { // Property: TagStepDetails @@ -854,20 +1002,28 @@ func workflowResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The name of the step, used as an identifier.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 30), validate.StringMatch(regexp.MustCompile("^[\\w-]*$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "source_file_location": { // Property: SourceFileLocation Description: "Specifies which file to use as input to the workflow step.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), validate.StringMatch(regexp.MustCompile("^\\$\\{(\\w+.)+\\w+\\}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -895,18 +1051,27 @@ func workflowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(10), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "type": { // Property: Type Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "COPY", @@ -915,6 +1080,9 @@ func workflowResourceType(ctx context.Context) (provider.ResourceType, error) { "TAG", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -984,9 +1152,13 @@ func workflowResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtMost(50), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "workflow_id": { // Property: WorkflowId diff --git a/internal/aws/voiceid/domain_resource_gen.go b/internal/aws/voiceid/domain_resource_gen.go index 014116f2b3..7796a1602e 100644 --- a/internal/aws/voiceid/domain_resource_gen.go +++ b/internal/aws/voiceid/domain_resource_gen.go @@ -34,10 +34,14 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { // } Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1024), validate.StringMatch(regexp.MustCompile("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-%@]*)$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, // Description is a write-only property. }, "domain_id": { @@ -158,11 +162,13 @@ func domainResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 200), }, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/wafv2/ip_set_resource_gen.go b/internal/aws/wafv2/ip_set_resource_gen.go index 831625ba9f..fb68569063 100644 --- a/internal/aws/wafv2/ip_set_resource_gen.go +++ b/internal/aws/wafv2/ip_set_resource_gen.go @@ -68,9 +68,13 @@ func iPSetResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Description of the entity.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9=:#@/\\-,.][a-zA-Z0-9+=:#@/\\-,.\\s]+[a-zA-Z0-9+=:#@/\\-,.]{1,256}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "ip_address_version": { // Property: IPAddressVersion @@ -181,24 +185,36 @@ func iPSetResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/wafv2/logging_configuration_resource_gen.go b/internal/aws/wafv2/logging_configuration_resource_gen.go index ba539e44da..0eeb88bb86 100644 --- a/internal/aws/wafv2/logging_configuration_resource_gen.go +++ b/internal/aws/wafv2/logging_configuration_resource_gen.go @@ -196,6 +196,10 @@ func loggingConfigurationResourceType(ctx context.Context) (provider.ResourceTyp }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "label_name_condition": { // Property: LabelNameCondition @@ -211,6 +215,10 @@ func loggingConfigurationResourceType(ctx context.Context) (provider.ResourceTyp }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -241,6 +249,10 @@ func loggingConfigurationResourceType(ctx context.Context) (provider.ResourceTyp }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "managed_by_firewall_manager": { // Property: ManagedByFirewallManager @@ -359,6 +371,7 @@ func loggingConfigurationResourceType(ctx context.Context) (provider.ResourceTyp Description: "What AWS WAF should do if it fails to completely parse the JSON body.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "MATCH", @@ -366,6 +379,9 @@ func loggingConfigurationResourceType(ctx context.Context) (provider.ResourceTyp "EVALUATE_AS_STRING", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "match_pattern": { // Property: MatchPattern @@ -377,15 +393,23 @@ func loggingConfigurationResourceType(ctx context.Context) (provider.ResourceTyp Description: "Match all of the elements. See also MatchScope in JsonBody. You must specify either this setting or the IncludedPaths setting, but not both.", Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "included_paths": { // Property: IncludedPaths Description: "Match only the specified include paths. See also MatchScope in JsonBody.", Type: types.ListType{ElemType: types.StringType}, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -407,18 +431,30 @@ func loggingConfigurationResourceType(ctx context.Context) (provider.ResourceTyp }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "method": { // Property: Method Description: "Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform. ", Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "query_string": { // Property: QueryString Description: "Inspect the query string. This is the part of a URL that appears after a ? character, if any. ", Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "single_header": { // Property: SingleHeader @@ -434,18 +470,28 @@ func loggingConfigurationResourceType(ctx context.Context) (provider.ResourceTyp }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "uri_path": { // Property: UriPath Description: "Inspect the request URI path. This is the part of a web request that identifies a resource, for example, /images/daily-ad.jpg. ", Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, "resource_arn": { diff --git a/internal/aws/wafv2/regex_pattern_set_resource_gen.go b/internal/aws/wafv2/regex_pattern_set_resource_gen.go index 0e0144fd33..3a291b1c29 100644 --- a/internal/aws/wafv2/regex_pattern_set_resource_gen.go +++ b/internal/aws/wafv2/regex_pattern_set_resource_gen.go @@ -48,9 +48,13 @@ func regexPatternSetResourceType(ctx context.Context) (provider.ResourceType, er Description: "Description of the entity.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9=:#@/\\-,.][a-zA-Z0-9+=:#@/\\-,.\\s]+[a-zA-Z0-9+=:#@/\\-,.]{1,256}$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "id": { // Property: Id @@ -152,24 +156,36 @@ func regexPatternSetResourceType(ctx context.Context) (provider.ResourceType, er // Property: Key Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "value": { // Property: Value Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, } diff --git a/internal/aws/wisdom/assistant_resource_gen.go b/internal/aws/wisdom/assistant_resource_gen.go index f13e4c7aed..7da46c94a9 100644 --- a/internal/aws/wisdom/assistant_resource_gen.go +++ b/internal/aws/wisdom/assistant_resource_gen.go @@ -104,9 +104,13 @@ func assistantResourceType(ctx context.Context) (provider.ResourceType, error) { // Property: KmsKeyId Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 4096), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/wisdom/knowledge_base_resource_gen.go b/internal/aws/wisdom/knowledge_base_resource_gen.go index db31daf5ae..455a694cee 100644 --- a/internal/aws/wisdom/knowledge_base_resource_gen.go +++ b/internal/aws/wisdom/knowledge_base_resource_gen.go @@ -127,13 +127,21 @@ func knowledgeBaseResourceType(ctx context.Context) (provider.ResourceType, erro // Property: TemplateUri Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 4096), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "server_side_encryption_configuration": { // Property: ServerSideEncryptionConfiguration @@ -155,9 +163,13 @@ func knowledgeBaseResourceType(ctx context.Context) (provider.ResourceType, erro // Property: KmsKeyId Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 4096), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), @@ -241,6 +253,10 @@ func knowledgeBaseResourceType(ctx context.Context) (provider.ResourceType, erro }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/workspaces/connection_alias_resource_gen.go b/internal/aws/workspaces/connection_alias_resource_gen.go index ced610a6b1..6965695354 100644 --- a/internal/aws/workspaces/connection_alias_resource_gen.go +++ b/internal/aws/workspaces/connection_alias_resource_gen.go @@ -83,11 +83,16 @@ func connectionAliasResourceType(ctx context.Context) (provider.ResourceType, er // Property: AssociatedAccountId Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "association_status": { // Property: AssociationStatus Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NOT_ASSOCIATED", @@ -97,24 +102,35 @@ func connectionAliasResourceType(ctx context.Context) (provider.ResourceType, er "PENDING_DISASSOCIATION", }), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "connection_identifier": { // Property: ConnectionIdentifier Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 20), validate.StringMatch(regexp.MustCompile("^[a-zA-Z0-9]+$"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_id": { // Property: ResourceId Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1000), validate.StringMatch(regexp.MustCompile(".+"), ""), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), diff --git a/internal/aws/xray/group_resource_gen.go b/internal/aws/xray/group_resource_gen.go index 989fc1ae74..4d9cea61e4 100644 --- a/internal/aws/xray/group_resource_gen.go +++ b/internal/aws/xray/group_resource_gen.go @@ -32,6 +32,10 @@ func groupResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The filter expression defining criteria by which to group traces.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "group_arn": { // Property: GroupARN @@ -61,9 +65,13 @@ func groupResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "The case-sensitive name of the new group. Names must be unique.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 32), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "insights_configuration": { // Property: InsightsConfiguration @@ -89,16 +97,28 @@ func groupResourceType(ctx context.Context) (provider.ResourceType, error) { Description: "Set the InsightsEnabled value to true to enable insights or false to disable insights.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "notifications_enabled": { // Property: NotificationsEnabled Description: "Set the NotificationsEnabled value to true to enable insights notifications. Notifications can only be enabled on a group with InsightsEnabled set to true.", Type: types.BoolType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -138,8 +158,10 @@ func groupResourceType(ctx context.Context) (provider.ResourceType, error) { }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/aws/xray/sampling_rule_resource_gen.go b/internal/aws/xray/sampling_rule_resource_gen.go index 1550e1ec83..5e7ead0dc3 100644 --- a/internal/aws/xray/sampling_rule_resource_gen.go +++ b/internal/aws/xray/sampling_rule_resource_gen.go @@ -48,9 +48,13 @@ func samplingRuleResourceType(ctx context.Context) (provider.ResourceType, error Description: "The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 32), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sampling_rule": { // Property: SamplingRule @@ -142,115 +146,171 @@ func samplingRuleResourceType(ctx context.Context) (provider.ResourceType, error // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "fixed_rate": { // Property: FixedRate Description: "The percentage of matching requests to instrument, after the reservoir is exhausted.", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatBetween(0.000000, 1.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "http_method": { // Property: HTTPMethod Description: "Matches the HTTP method from a request URL.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(10), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "host": { // Property: Host Description: "Matches the hostname from a request URL.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "priority": { // Property: Priority Description: "The priority of the sampling rule.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 9999), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "reservoir_size": { // Property: ReservoirSize Description: "A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_arn": { // Property: ResourceARN Description: "Matches the ARN of the AWS resource on which the service runs.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(500), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rule_arn": { // Property: RuleARN Description: "The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rule_name": { // Property: RuleName Description: "The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 32), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "service_name": { // Property: ServiceName Description: "Matches the name that the service uses to identify itself in segments.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "service_type": { // Property: ServiceType Description: "Matches the origin that the service uses to identify its type in segments.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "url_path": { // Property: URLPath Description: "Matches the path from a request URL.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "version": { // Property: Version Description: "The version of the sampling rule format (1)", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sampling_rule_record": { // Property: SamplingRuleRecord @@ -355,12 +415,20 @@ func samplingRuleResourceType(ctx context.Context) (provider.ResourceType, error Description: "When the rule was created, in Unix time seconds.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "modified_at": { // Property: ModifiedAt Description: "When the rule was modified, in Unix time seconds.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sampling_rule": { // Property: SamplingRule @@ -372,119 +440,179 @@ func samplingRuleResourceType(ctx context.Context) (provider.ResourceType, error // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "fixed_rate": { // Property: FixedRate Description: "The percentage of matching requests to instrument, after the reservoir is exhausted.", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatBetween(0.000000, 1.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "http_method": { // Property: HTTPMethod Description: "Matches the HTTP method from a request URL.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(10), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "host": { // Property: Host Description: "Matches the hostname from a request URL.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "priority": { // Property: Priority Description: "The priority of the sampling rule.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 9999), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "reservoir_size": { // Property: ReservoirSize Description: "A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_arn": { // Property: ResourceARN Description: "Matches the ARN of the AWS resource on which the service runs.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(500), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rule_arn": { // Property: RuleARN Description: "The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rule_name": { // Property: RuleName Description: "The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 32), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "service_name": { // Property: ServiceName Description: "Matches the name that the service uses to identify itself in segments.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "service_type": { // Property: ServiceType Description: "Matches the origin that the service uses to identify its type in segments.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "url_path": { // Property: URLPath Description: "Matches the path from a request URL.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "version": { // Property: Version Description: "The version of the sampling rule format (1)", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(1), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "sampling_rule_update": { // Property: SamplingRuleUpdate @@ -571,106 +699,158 @@ func samplingRuleResourceType(ctx context.Context) (provider.ResourceType, error // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "fixed_rate": { // Property: FixedRate Description: "The percentage of matching requests to instrument, after the reservoir is exhausted.", Type: types.Float64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.FloatBetween(0.000000, 1.000000), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "http_method": { // Property: HTTPMethod Description: "Matches the HTTP method from a request URL.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(10), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "host": { // Property: Host Description: "Matches the hostname from a request URL.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "priority": { // Property: Priority Description: "The priority of the sampling rule.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(1, 9999), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "reservoir_size": { // Property: ReservoirSize Description: "A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.", Type: types.Int64Type, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.IntAtLeast(0), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "resource_arn": { // Property: ResourceARN Description: "Matches the ARN of the AWS resource on which the service runs.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(500), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rule_arn": { // Property: RuleARN Description: "The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.", Type: types.StringType, Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "rule_name": { // Property: RuleName Description: "The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 32), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "service_name": { // Property: ServiceName Description: "Matches the name that the service uses to identify itself in segments.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "service_type": { // Property: ServiceType Description: "Matches the origin that the service uses to identify its type in segments.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(64), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "url_path": { // Property: URLPath Description: "Matches the path from a request URL.", Type: types.StringType, Optional: true, + Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenAtMost(128), }, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, }, ), Optional: true, + Computed: true, + PlanModifiers: []tfsdk.AttributePlanModifier{ + resource.UseStateForUnknown(), + }, }, "tags": { // Property: Tags @@ -710,8 +890,10 @@ func samplingRuleResourceType(ctx context.Context) (provider.ResourceType, error }, ), Optional: true, + Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ Multiset(), + resource.UseStateForUnknown(), }, }, } diff --git a/internal/provider/generators/shared/codegen/emitter.go b/internal/provider/generators/shared/codegen/emitter.go index 4d522d547b..304492f278 100644 --- a/internal/provider/generators/shared/codegen/emitter.go +++ b/internal/provider/generators/shared/codegen/emitter.go @@ -595,6 +595,11 @@ func (e Emitter) emitAttribute(attributeNameMap map[string]string, path []string computed = true } + // All Optional attributes are also Computed. + if optional && !computed { + computed = true + } + if required { e.printf("Required:true,\n") }