// Code generated by generators/resource/main.go; DO NOT EDIT. package kinesisfirehose import ( "context" "regexp" "github.com/hashicorp/terraform-plugin-framework/tfsdk" "github.com/hashicorp/terraform-plugin-framework/types" . "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" "github.com/hashicorp/terraform-provider-awscc/internal/validate" ) func init() { registry.AddResourceTypeFactory("awscc_kinesisfirehose_delivery_stream", deliveryStreamResourceType) } // deliveryStreamResourceType returns the Terraform awscc_kinesisfirehose_delivery_stream resource type. // This Terraform resource type corresponds to the CloudFormation AWS::KinesisFirehose::DeliveryStream resource type. func deliveryStreamResourceType(ctx context.Context) (tfsdk.ResourceType, error) { attributes := map[string]tfsdk.Attribute{ "amazonopensearchservice_destination_configuration": { // Property: AmazonopensearchserviceDestinationConfiguration // CloudFormation resource type schema: // { // "additionalProperties": false, // "properties": { // "BufferingHints": { // "additionalProperties": false, // "properties": { // "IntervalInSeconds": { // "type": "integer" // }, // "SizeInMBs": { // "type": "integer" // } // }, // "type": "object" // }, // "CloudWatchLoggingOptions": { // "additionalProperties": false, // "properties": { // "Enabled": { // "type": "boolean" // }, // "LogGroupName": { // "type": "string" // }, // "LogStreamName": { // "type": "string" // } // }, // "type": "object" // }, // "ClusterEndpoint": { // "maxLength": 512, // "minLength": 1, // "pattern": "https:.*", // "type": "string" // }, // "DomainARN": { // "maxLength": 512, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // }, // "IndexName": { // "maxLength": 80, // "minLength": 1, // "type": "string" // }, // "IndexRotationPeriod": { // "enum": [ // "NoRotation", // "OneHour", // "OneDay", // "OneWeek", // "OneMonth" // ], // "type": "string" // }, // "ProcessingConfiguration": { // "additionalProperties": false, // "properties": { // "Enabled": { // "type": "boolean" // }, // "Processors": { // "items": { // "additionalProperties": false, // "properties": { // "Parameters": { // "items": { // "additionalProperties": false, // "properties": { // "ParameterName": { // "type": "string" // }, // "ParameterValue": { // "type": "string" // } // }, // "required": [ // "ParameterValue", // "ParameterName" // ], // "type": "object" // }, // "type": "array", // "uniqueItems": true // }, // "Type": { // "enum": [ // "RecordDeAggregation", // "Lambda", // "MetadataExtraction", // "AppendDelimiterToRecord" // ], // "type": "string" // } // }, // "required": [ // "Type" // ], // "type": "object" // }, // "type": "array", // "uniqueItems": true // } // }, // "type": "object" // }, // "RetryOptions": { // "additionalProperties": false, // "properties": { // "DurationInSeconds": { // "type": "integer" // } // }, // "type": "object" // }, // "RoleARN": { // "maxLength": 512, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // }, // "S3BackupMode": { // "enum": [ // "FailedDocumentsOnly", // "AllDocuments" // ], // "type": "string" // }, // "S3Configuration": { // "additionalProperties": false, // "properties": { // "BucketARN": { // "maxLength": 2048, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // }, // "BufferingHints": { // "additionalProperties": false, // "properties": { // "IntervalInSeconds": { // "type": "integer" // }, // "SizeInMBs": { // "type": "integer" // } // }, // "type": "object" // }, // "CloudWatchLoggingOptions": { // "additionalProperties": false, // "properties": { // "Enabled": { // "type": "boolean" // }, // "LogGroupName": { // "type": "string" // }, // "LogStreamName": { // "type": "string" // } // }, // "type": "object" // }, // "CompressionFormat": { // "enum": [ // "UNCOMPRESSED", // "GZIP", // "ZIP", // "Snappy", // "HADOOP_SNAPPY" // ], // "type": "string" // }, // "EncryptionConfiguration": { // "additionalProperties": false, // "properties": { // "KMSEncryptionConfig": { // "additionalProperties": false, // "properties": { // "AWSKMSKeyARN": { // "type": "string" // } // }, // "required": [ // "AWSKMSKeyARN" // ], // "type": "object" // }, // "NoEncryptionConfig": { // "enum": [ // "NoEncryption" // ], // "type": "string" // } // }, // "type": "object" // }, // "ErrorOutputPrefix": { // "maxLength": 1024, // "minLength": 0, // "type": "string" // }, // "Prefix": { // "maxLength": 1024, // "minLength": 0, // "type": "string" // }, // "RoleARN": { // "maxLength": 512, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // } // }, // "required": [ // "BucketARN", // "RoleARN" // ], // "type": "object" // }, // "TypeName": { // "maxLength": 100, // "minLength": 0, // "type": "string" // }, // "VpcConfiguration": { // "additionalProperties": false, // "properties": { // "RoleARN": { // "maxLength": 512, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // }, // "SecurityGroupIds": { // "items": { // "maxLength": 1024, // "minLength": 1, // "type": "string" // }, // "maxItems": 5, // "minItems": 1, // "type": "array", // "uniqueItems": true // }, // "SubnetIds": { // "items": { // "maxLength": 1024, // "minLength": 1, // "type": "string" // }, // "maxItems": 16, // "minItems": 1, // "type": "array", // "uniqueItems": true // } // }, // "required": [ // "RoleARN", // "SubnetIds", // "SecurityGroupIds" // ], // "type": "object" // } // }, // "required": [ // "IndexName", // "S3Configuration", // "RoleARN" // ], // "type": "object" // } Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "buffering_hints": { // Property: BufferingHints Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "interval_in_seconds": { // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, }, }, ), Optional: true, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, }, }, ), Optional: true, }, "cluster_endpoint": { // Property: ClusterEndpoint Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("https:.*"), ""), }, }, "domain_arn": { // Property: DomainARN Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, "index_name": { // Property: IndexName Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 80), }, }, "index_rotation_period": { // Property: IndexRotationPeriod Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NoRotation", "OneHour", "OneDay", "OneWeek", "OneMonth", }), }, }, "processing_configuration": { // Property: ProcessingConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, }, "processors": { // Property: Processors Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "parameters": { // Property: Parameters Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "parameter_name": { // Property: ParameterName Type: types.StringType, Required: true, }, "parameter_value": { // Property: ParameterValue Type: types.StringType, Required: true, }, }, tfsdk.ListNestedAttributesOptions{}, ), Optional: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, }, "type": { // Property: Type Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "RecordDeAggregation", "Lambda", "MetadataExtraction", "AppendDelimiterToRecord", }), }, }, }, tfsdk.ListNestedAttributesOptions{}, ), Optional: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, }, }, ), Optional: true, }, "retry_options": { // Property: RetryOptions Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "duration_in_seconds": { // Property: DurationInSeconds Type: types.Int64Type, Optional: true, }, }, ), Optional: true, }, "role_arn": { // Property: RoleARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, "s3_backup_mode": { // Property: S3BackupMode Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "FailedDocumentsOnly", "AllDocuments", }), }, }, "s3_configuration": { // Property: S3Configuration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "bucket_arn": { // Property: BucketARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, "buffering_hints": { // Property: BufferingHints Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "interval_in_seconds": { // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, }, }, ), Optional: true, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, }, }, ), Optional: true, }, "compression_format": { // Property: CompressionFormat Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "UNCOMPRESSED", "GZIP", "ZIP", "Snappy", "HADOOP_SNAPPY", }), }, }, "encryption_configuration": { // Property: EncryptionConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "kms_encryption_config": { // Property: KMSEncryptionConfig Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "awskms_key_arn": { // Property: AWSKMSKeyARN Type: types.StringType, Required: true, }, }, ), Optional: true, }, "no_encryption_config": { // Property: NoEncryptionConfig Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NoEncryption", }), }, }, }, ), Optional: true, }, "error_output_prefix": { // Property: ErrorOutputPrefix Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, }, "prefix": { // Property: Prefix Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, }, "role_arn": { // Property: RoleARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, }, ), Required: true, }, "type_name": { // Property: TypeName Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 100), }, }, "vpc_configuration": { // Property: VpcConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "role_arn": { // Property: RoleARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, "security_group_ids": { // Property: SecurityGroupIds Type: types.ListType{ElemType: types.StringType}, Required: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 5), validate.UniqueItems(), validate.ArrayForEach(validate.StringLenBetween(1, 1024)), }, }, "subnet_ids": { // Property: SubnetIds Type: types.ListType{ElemType: types.StringType}, Required: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 16), validate.UniqueItems(), validate.ArrayForEach(validate.StringLenBetween(1, 1024)), }, }, }, ), Optional: true, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), tfsdk.RequiresReplace(), }, }, }, ), Optional: true, }, "arn": { // Property: Arn // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "delivery_stream_encryption_configuration_input": { // Property: DeliveryStreamEncryptionConfigurationInput // CloudFormation resource type schema: // { // "additionalProperties": false, // "properties": { // "KeyARN": { // "maxLength": 512, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // }, // "KeyType": { // "enum": [ // "AWS_OWNED_CMK", // "CUSTOMER_MANAGED_CMK" // ], // "type": "string" // } // }, // "required": [ // "KeyType" // ], // "type": "object" // } Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "key_arn": { // Property: KeyARN Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, "key_type": { // Property: KeyType Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "AWS_OWNED_CMK", "CUSTOMER_MANAGED_CMK", }), }, }, }, ), Optional: true, }, "delivery_stream_name": { // Property: DeliveryStreamName // CloudFormation resource type schema: // { // "maxLength": 64, // "minLength": 1, // "pattern": "[a-zA-Z0-9._-]+", // "type": "string" // } 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{ tfsdk.UseStateForUnknown(), tfsdk.RequiresReplace(), }, }, "delivery_stream_type": { // Property: DeliveryStreamType // CloudFormation resource type schema: // { // "enum": [ // "DirectPut", // "KinesisStreamAsSource" // ], // "type": "string" // } Type: types.StringType, Optional: true, Computed: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "DirectPut", "KinesisStreamAsSource", }), }, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), tfsdk.RequiresReplace(), }, }, "elasticsearch_destination_configuration": { // Property: ElasticsearchDestinationConfiguration // CloudFormation resource type schema: // { // "additionalProperties": false, // "properties": { // "BufferingHints": { // "additionalProperties": false, // "properties": { // "IntervalInSeconds": { // "type": "integer" // }, // "SizeInMBs": { // "type": "integer" // } // }, // "type": "object" // }, // "CloudWatchLoggingOptions": { // "additionalProperties": false, // "properties": { // "Enabled": { // "type": "boolean" // }, // "LogGroupName": { // "type": "string" // }, // "LogStreamName": { // "type": "string" // } // }, // "type": "object" // }, // "ClusterEndpoint": { // "maxLength": 512, // "minLength": 1, // "pattern": "https:.*", // "type": "string" // }, // "DomainARN": { // "maxLength": 512, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // }, // "IndexName": { // "maxLength": 80, // "minLength": 1, // "type": "string" // }, // "IndexRotationPeriod": { // "enum": [ // "NoRotation", // "OneHour", // "OneDay", // "OneWeek", // "OneMonth" // ], // "type": "string" // }, // "ProcessingConfiguration": { // "additionalProperties": false, // "properties": { // "Enabled": { // "type": "boolean" // }, // "Processors": { // "items": { // "additionalProperties": false, // "properties": { // "Parameters": { // "items": { // "additionalProperties": false, // "properties": { // "ParameterName": { // "type": "string" // }, // "ParameterValue": { // "type": "string" // } // }, // "required": [ // "ParameterValue", // "ParameterName" // ], // "type": "object" // }, // "type": "array", // "uniqueItems": true // }, // "Type": { // "enum": [ // "RecordDeAggregation", // "Lambda", // "MetadataExtraction", // "AppendDelimiterToRecord" // ], // "type": "string" // } // }, // "required": [ // "Type" // ], // "type": "object" // }, // "type": "array", // "uniqueItems": true // } // }, // "type": "object" // }, // "RetryOptions": { // "additionalProperties": false, // "properties": { // "DurationInSeconds": { // "type": "integer" // } // }, // "type": "object" // }, // "RoleARN": { // "maxLength": 512, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // }, // "S3BackupMode": { // "enum": [ // "FailedDocumentsOnly", // "AllDocuments" // ], // "type": "string" // }, // "S3Configuration": { // "additionalProperties": false, // "properties": { // "BucketARN": { // "maxLength": 2048, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // }, // "BufferingHints": { // "additionalProperties": false, // "properties": { // "IntervalInSeconds": { // "type": "integer" // }, // "SizeInMBs": { // "type": "integer" // } // }, // "type": "object" // }, // "CloudWatchLoggingOptions": { // "additionalProperties": false, // "properties": { // "Enabled": { // "type": "boolean" // }, // "LogGroupName": { // "type": "string" // }, // "LogStreamName": { // "type": "string" // } // }, // "type": "object" // }, // "CompressionFormat": { // "enum": [ // "UNCOMPRESSED", // "GZIP", // "ZIP", // "Snappy", // "HADOOP_SNAPPY" // ], // "type": "string" // }, // "EncryptionConfiguration": { // "additionalProperties": false, // "properties": { // "KMSEncryptionConfig": { // "additionalProperties": false, // "properties": { // "AWSKMSKeyARN": { // "type": "string" // } // }, // "required": [ // "AWSKMSKeyARN" // ], // "type": "object" // }, // "NoEncryptionConfig": { // "enum": [ // "NoEncryption" // ], // "type": "string" // } // }, // "type": "object" // }, // "ErrorOutputPrefix": { // "maxLength": 1024, // "minLength": 0, // "type": "string" // }, // "Prefix": { // "maxLength": 1024, // "minLength": 0, // "type": "string" // }, // "RoleARN": { // "maxLength": 512, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // } // }, // "required": [ // "BucketARN", // "RoleARN" // ], // "type": "object" // }, // "TypeName": { // "maxLength": 100, // "minLength": 0, // "type": "string" // }, // "VpcConfiguration": { // "additionalProperties": false, // "properties": { // "RoleARN": { // "maxLength": 512, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // }, // "SecurityGroupIds": { // "items": { // "maxLength": 1024, // "minLength": 1, // "type": "string" // }, // "maxItems": 5, // "minItems": 1, // "type": "array", // "uniqueItems": true // }, // "SubnetIds": { // "items": { // "maxLength": 1024, // "minLength": 1, // "type": "string" // }, // "maxItems": 16, // "minItems": 1, // "type": "array", // "uniqueItems": true // } // }, // "required": [ // "RoleARN", // "SubnetIds", // "SecurityGroupIds" // ], // "type": "object" // } // }, // "required": [ // "IndexName", // "S3Configuration", // "RoleARN" // ], // "type": "object" // } Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "buffering_hints": { // Property: BufferingHints Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "interval_in_seconds": { // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, }, }, ), Optional: true, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, }, }, ), Optional: true, }, "cluster_endpoint": { // Property: ClusterEndpoint Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("https:.*"), ""), }, }, "domain_arn": { // Property: DomainARN Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, "index_name": { // Property: IndexName Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 80), }, }, "index_rotation_period": { // Property: IndexRotationPeriod Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NoRotation", "OneHour", "OneDay", "OneWeek", "OneMonth", }), }, }, "processing_configuration": { // Property: ProcessingConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, }, "processors": { // Property: Processors Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "parameters": { // Property: Parameters Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "parameter_name": { // Property: ParameterName Type: types.StringType, Required: true, }, "parameter_value": { // Property: ParameterValue Type: types.StringType, Required: true, }, }, tfsdk.ListNestedAttributesOptions{}, ), Optional: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, }, "type": { // Property: Type Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "RecordDeAggregation", "Lambda", "MetadataExtraction", "AppendDelimiterToRecord", }), }, }, }, tfsdk.ListNestedAttributesOptions{}, ), Optional: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, }, }, ), Optional: true, }, "retry_options": { // Property: RetryOptions Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "duration_in_seconds": { // Property: DurationInSeconds Type: types.Int64Type, Optional: true, }, }, ), Optional: true, }, "role_arn": { // Property: RoleARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, "s3_backup_mode": { // Property: S3BackupMode Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "FailedDocumentsOnly", "AllDocuments", }), }, }, "s3_configuration": { // Property: S3Configuration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "bucket_arn": { // Property: BucketARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, "buffering_hints": { // Property: BufferingHints Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "interval_in_seconds": { // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, }, }, ), Optional: true, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, }, }, ), Optional: true, }, "compression_format": { // Property: CompressionFormat Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "UNCOMPRESSED", "GZIP", "ZIP", "Snappy", "HADOOP_SNAPPY", }), }, }, "encryption_configuration": { // Property: EncryptionConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "kms_encryption_config": { // Property: KMSEncryptionConfig Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "awskms_key_arn": { // Property: AWSKMSKeyARN Type: types.StringType, Required: true, }, }, ), Optional: true, }, "no_encryption_config": { // Property: NoEncryptionConfig Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NoEncryption", }), }, }, }, ), Optional: true, }, "error_output_prefix": { // Property: ErrorOutputPrefix Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, }, "prefix": { // Property: Prefix Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, }, "role_arn": { // Property: RoleARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, }, ), Required: true, }, "type_name": { // Property: TypeName Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 100), }, }, "vpc_configuration": { // Property: VpcConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "role_arn": { // Property: RoleARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, "security_group_ids": { // Property: SecurityGroupIds Type: types.ListType{ElemType: types.StringType}, Required: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 5), validate.UniqueItems(), validate.ArrayForEach(validate.StringLenBetween(1, 1024)), }, }, "subnet_ids": { // Property: SubnetIds Type: types.ListType{ElemType: types.StringType}, Required: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 16), validate.UniqueItems(), validate.ArrayForEach(validate.StringLenBetween(1, 1024)), }, }, }, ), Optional: true, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), tfsdk.RequiresReplace(), }, }, }, ), Optional: true, }, "extended_s3_destination_configuration": { // Property: ExtendedS3DestinationConfiguration // CloudFormation resource type schema: // { // "additionalProperties": false, // "properties": { // "BucketARN": { // "maxLength": 2048, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // }, // "BufferingHints": { // "additionalProperties": false, // "properties": { // "IntervalInSeconds": { // "type": "integer" // }, // "SizeInMBs": { // "type": "integer" // } // }, // "type": "object" // }, // "CloudWatchLoggingOptions": { // "additionalProperties": false, // "properties": { // "Enabled": { // "type": "boolean" // }, // "LogGroupName": { // "type": "string" // }, // "LogStreamName": { // "type": "string" // } // }, // "type": "object" // }, // "CompressionFormat": { // "enum": [ // "UNCOMPRESSED", // "GZIP", // "ZIP", // "Snappy", // "HADOOP_SNAPPY" // ], // "type": "string" // }, // "DataFormatConversionConfiguration": { // "additionalProperties": false, // "properties": { // "Enabled": { // "type": "boolean" // }, // "InputFormatConfiguration": { // "additionalProperties": false, // "properties": { // "Deserializer": { // "additionalProperties": false, // "properties": { // "HiveJsonSerDe": { // "additionalProperties": false, // "properties": { // "TimestampFormats": { // "items": { // "type": "string" // }, // "type": "array", // "uniqueItems": true // } // }, // "type": "object" // }, // "OpenXJsonSerDe": { // "additionalProperties": false, // "properties": { // "CaseInsensitive": { // "type": "boolean" // }, // "ColumnToJsonKeyMappings": { // "patternProperties": { // "": { // "type": "string" // } // }, // "type": "object" // }, // "ConvertDotsInJsonKeysToUnderscores": { // "type": "boolean" // } // }, // "type": "object" // } // }, // "type": "object" // } // }, // "type": "object" // }, // "OutputFormatConfiguration": { // "additionalProperties": false, // "properties": { // "Serializer": { // "additionalProperties": false, // "properties": { // "OrcSerDe": { // "additionalProperties": false, // "properties": { // "BlockSizeBytes": { // "type": "integer" // }, // "BloomFilterColumns": { // "items": { // "type": "string" // }, // "type": "array", // "uniqueItems": true // }, // "BloomFilterFalsePositiveProbability": { // "type": "number" // }, // "Compression": { // "type": "string" // }, // "DictionaryKeyThreshold": { // "type": "number" // }, // "EnablePadding": { // "type": "boolean" // }, // "FormatVersion": { // "type": "string" // }, // "PaddingTolerance": { // "type": "number" // }, // "RowIndexStride": { // "type": "integer" // }, // "StripeSizeBytes": { // "type": "integer" // } // }, // "type": "object" // }, // "ParquetSerDe": { // "additionalProperties": false, // "properties": { // "BlockSizeBytes": { // "type": "integer" // }, // "Compression": { // "type": "string" // }, // "EnableDictionaryCompression": { // "type": "boolean" // }, // "MaxPaddingBytes": { // "type": "integer" // }, // "PageSizeBytes": { // "type": "integer" // }, // "WriterVersion": { // "type": "string" // } // }, // "type": "object" // } // }, // "type": "object" // } // }, // "type": "object" // }, // "SchemaConfiguration": { // "additionalProperties": false, // "properties": { // "CatalogId": { // "type": "string" // }, // "DatabaseName": { // "type": "string" // }, // "Region": { // "type": "string" // }, // "RoleARN": { // "maxLength": 512, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // }, // "TableName": { // "type": "string" // }, // "VersionId": { // "type": "string" // } // }, // "type": "object" // } // }, // "type": "object" // }, // "DynamicPartitioningConfiguration": { // "additionalProperties": false, // "properties": { // "Enabled": { // "type": "boolean" // }, // "RetryOptions": { // "additionalProperties": false, // "properties": { // "DurationInSeconds": { // "type": "integer" // } // }, // "type": "object" // } // }, // "type": "object" // }, // "EncryptionConfiguration": { // "additionalProperties": false, // "properties": { // "KMSEncryptionConfig": { // "additionalProperties": false, // "properties": { // "AWSKMSKeyARN": { // "type": "string" // } // }, // "required": [ // "AWSKMSKeyARN" // ], // "type": "object" // }, // "NoEncryptionConfig": { // "enum": [ // "NoEncryption" // ], // "type": "string" // } // }, // "type": "object" // }, // "ErrorOutputPrefix": { // "maxLength": 1024, // "minLength": 0, // "type": "string" // }, // "Prefix": { // "maxLength": 1024, // "minLength": 0, // "type": "string" // }, // "ProcessingConfiguration": { // "additionalProperties": false, // "properties": { // "Enabled": { // "type": "boolean" // }, // "Processors": { // "items": { // "additionalProperties": false, // "properties": { // "Parameters": { // "items": { // "additionalProperties": false, // "properties": { // "ParameterName": { // "type": "string" // }, // "ParameterValue": { // "type": "string" // } // }, // "required": [ // "ParameterValue", // "ParameterName" // ], // "type": "object" // }, // "type": "array", // "uniqueItems": true // }, // "Type": { // "enum": [ // "RecordDeAggregation", // "Lambda", // "MetadataExtraction", // "AppendDelimiterToRecord" // ], // "type": "string" // } // }, // "required": [ // "Type" // ], // "type": "object" // }, // "type": "array", // "uniqueItems": true // } // }, // "type": "object" // }, // "RoleARN": { // "maxLength": 512, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // }, // "S3BackupConfiguration": { // "additionalProperties": false, // "properties": { // "BucketARN": { // "maxLength": 2048, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // }, // "BufferingHints": { // "additionalProperties": false, // "properties": { // "IntervalInSeconds": { // "type": "integer" // }, // "SizeInMBs": { // "type": "integer" // } // }, // "type": "object" // }, // "CloudWatchLoggingOptions": { // "additionalProperties": false, // "properties": { // "Enabled": { // "type": "boolean" // }, // "LogGroupName": { // "type": "string" // }, // "LogStreamName": { // "type": "string" // } // }, // "type": "object" // }, // "CompressionFormat": { // "enum": [ // "UNCOMPRESSED", // "GZIP", // "ZIP", // "Snappy", // "HADOOP_SNAPPY" // ], // "type": "string" // }, // "EncryptionConfiguration": { // "additionalProperties": false, // "properties": { // "KMSEncryptionConfig": { // "additionalProperties": false, // "properties": { // "AWSKMSKeyARN": { // "type": "string" // } // }, // "required": [ // "AWSKMSKeyARN" // ], // "type": "object" // }, // "NoEncryptionConfig": { // "enum": [ // "NoEncryption" // ], // "type": "string" // } // }, // "type": "object" // }, // "ErrorOutputPrefix": { // "maxLength": 1024, // "minLength": 0, // "type": "string" // }, // "Prefix": { // "maxLength": 1024, // "minLength": 0, // "type": "string" // }, // "RoleARN": { // "maxLength": 512, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // } // }, // "required": [ // "BucketARN", // "RoleARN" // ], // "type": "object" // }, // "S3BackupMode": { // "enum": [ // "Disabled", // "Enabled" // ], // "type": "string" // } // }, // "required": [ // "BucketARN", // "RoleARN" // ], // "type": "object" // } Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "bucket_arn": { // Property: BucketARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, "buffering_hints": { // Property: BufferingHints Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "interval_in_seconds": { // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, }, }, ), Optional: true, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, }, }, ), Optional: true, }, "compression_format": { // Property: CompressionFormat Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "UNCOMPRESSED", "GZIP", "ZIP", "Snappy", "HADOOP_SNAPPY", }), }, }, "data_format_conversion_configuration": { // Property: DataFormatConversionConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, }, "input_format_configuration": { // Property: InputFormatConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "deserializer": { // Property: Deserializer Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "hive_json_ser_de": { // Property: HiveJsonSerDe Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "timestamp_formats": { // Property: TimestampFormats Type: types.ListType{ElemType: types.StringType}, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, }, }, ), Optional: true, }, "open_x_json_ser_de": { // Property: OpenXJsonSerDe Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "case_insensitive": { // Property: CaseInsensitive Type: types.BoolType, Optional: true, }, "column_to_json_key_mappings": { // Property: ColumnToJsonKeyMappings // Pattern: "" Type: types.MapType{ElemType: types.StringType}, Optional: true, }, "convert_dots_in_json_keys_to_underscores": { // Property: ConvertDotsInJsonKeysToUnderscores Type: types.BoolType, Optional: true, }, }, ), Optional: true, }, }, ), Optional: true, }, }, ), Optional: true, }, "output_format_configuration": { // Property: OutputFormatConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "serializer": { // Property: Serializer Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "orc_ser_de": { // Property: OrcSerDe Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "block_size_bytes": { // Property: BlockSizeBytes Type: types.Int64Type, Optional: true, }, "bloom_filter_columns": { // Property: BloomFilterColumns Type: types.ListType{ElemType: types.StringType}, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, }, "bloom_filter_false_positive_probability": { // Property: BloomFilterFalsePositiveProbability Type: types.Float64Type, Optional: true, }, "compression": { // Property: Compression Type: types.StringType, Optional: true, }, "dictionary_key_threshold": { // Property: DictionaryKeyThreshold Type: types.Float64Type, Optional: true, }, "enable_padding": { // Property: EnablePadding Type: types.BoolType, Optional: true, }, "format_version": { // Property: FormatVersion Type: types.StringType, Optional: true, }, "padding_tolerance": { // Property: PaddingTolerance Type: types.Float64Type, Optional: true, }, "row_index_stride": { // Property: RowIndexStride Type: types.Int64Type, Optional: true, }, "stripe_size_bytes": { // Property: StripeSizeBytes Type: types.Int64Type, Optional: true, }, }, ), Optional: true, }, "parquet_ser_de": { // Property: ParquetSerDe Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "block_size_bytes": { // Property: BlockSizeBytes Type: types.Int64Type, Optional: true, }, "compression": { // Property: Compression Type: types.StringType, Optional: true, }, "enable_dictionary_compression": { // Property: EnableDictionaryCompression Type: types.BoolType, Optional: true, }, "max_padding_bytes": { // Property: MaxPaddingBytes Type: types.Int64Type, Optional: true, }, "page_size_bytes": { // Property: PageSizeBytes Type: types.Int64Type, Optional: true, }, "writer_version": { // Property: WriterVersion Type: types.StringType, Optional: true, }, }, ), Optional: true, }, }, ), Optional: true, }, }, ), Optional: true, }, "schema_configuration": { // Property: SchemaConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "catalog_id": { // Property: CatalogId Type: types.StringType, Optional: true, }, "database_name": { // Property: DatabaseName Type: types.StringType, Optional: true, }, "region": { // Property: Region Type: types.StringType, Optional: true, }, "role_arn": { // Property: RoleARN Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, "table_name": { // Property: TableName Type: types.StringType, Optional: true, }, "version_id": { // Property: VersionId Type: types.StringType, Optional: true, }, }, ), Optional: true, }, }, ), Optional: true, }, "dynamic_partitioning_configuration": { // Property: DynamicPartitioningConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, }, "retry_options": { // Property: RetryOptions Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "duration_in_seconds": { // Property: DurationInSeconds Type: types.Int64Type, Optional: true, }, }, ), Optional: true, }, }, ), Optional: true, }, "encryption_configuration": { // Property: EncryptionConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "kms_encryption_config": { // Property: KMSEncryptionConfig Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "awskms_key_arn": { // Property: AWSKMSKeyARN Type: types.StringType, Required: true, }, }, ), Optional: true, }, "no_encryption_config": { // Property: NoEncryptionConfig Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NoEncryption", }), }, }, }, ), Optional: true, }, "error_output_prefix": { // Property: ErrorOutputPrefix Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, }, "prefix": { // Property: Prefix Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, }, "processing_configuration": { // Property: ProcessingConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, }, "processors": { // Property: Processors Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "parameters": { // Property: Parameters Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "parameter_name": { // Property: ParameterName Type: types.StringType, Required: true, }, "parameter_value": { // Property: ParameterValue Type: types.StringType, Required: true, }, }, tfsdk.ListNestedAttributesOptions{}, ), Optional: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, }, "type": { // Property: Type Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "RecordDeAggregation", "Lambda", "MetadataExtraction", "AppendDelimiterToRecord", }), }, }, }, tfsdk.ListNestedAttributesOptions{}, ), Optional: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, }, }, ), Optional: true, }, "role_arn": { // Property: RoleARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, "s3_backup_configuration": { // Property: S3BackupConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "bucket_arn": { // Property: BucketARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, "buffering_hints": { // Property: BufferingHints Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "interval_in_seconds": { // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, }, }, ), Optional: true, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, }, }, ), Optional: true, }, "compression_format": { // Property: CompressionFormat Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "UNCOMPRESSED", "GZIP", "ZIP", "Snappy", "HADOOP_SNAPPY", }), }, }, "encryption_configuration": { // Property: EncryptionConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "kms_encryption_config": { // Property: KMSEncryptionConfig Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "awskms_key_arn": { // Property: AWSKMSKeyARN Type: types.StringType, Required: true, }, }, ), Optional: true, }, "no_encryption_config": { // Property: NoEncryptionConfig Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NoEncryption", }), }, }, }, ), Optional: true, }, "error_output_prefix": { // Property: ErrorOutputPrefix Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, }, "prefix": { // Property: Prefix Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, }, "role_arn": { // Property: RoleARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, }, ), Optional: true, }, "s3_backup_mode": { // Property: S3BackupMode Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Disabled", "Enabled", }), }, }, }, ), Optional: true, }, "http_endpoint_destination_configuration": { // Property: HttpEndpointDestinationConfiguration // CloudFormation resource type schema: // { // "additionalProperties": false, // "properties": { // "BufferingHints": { // "additionalProperties": false, // "properties": { // "IntervalInSeconds": { // "type": "integer" // }, // "SizeInMBs": { // "type": "integer" // } // }, // "type": "object" // }, // "CloudWatchLoggingOptions": { // "additionalProperties": false, // "properties": { // "Enabled": { // "type": "boolean" // }, // "LogGroupName": { // "type": "string" // }, // "LogStreamName": { // "type": "string" // } // }, // "type": "object" // }, // "EndpointConfiguration": { // "additionalProperties": false, // "properties": { // "AccessKey": { // "maxLength": 4096, // "minLength": 0, // "type": "string" // }, // "Name": { // "maxLength": 256, // "minLength": 1, // "type": "string" // }, // "Url": { // "maxLength": 1000, // "minLength": 1, // "type": "string" // } // }, // "required": [ // "Url" // ], // "type": "object" // }, // "ProcessingConfiguration": { // "additionalProperties": false, // "properties": { // "Enabled": { // "type": "boolean" // }, // "Processors": { // "items": { // "additionalProperties": false, // "properties": { // "Parameters": { // "items": { // "additionalProperties": false, // "properties": { // "ParameterName": { // "type": "string" // }, // "ParameterValue": { // "type": "string" // } // }, // "required": [ // "ParameterValue", // "ParameterName" // ], // "type": "object" // }, // "type": "array", // "uniqueItems": true // }, // "Type": { // "enum": [ // "RecordDeAggregation", // "Lambda", // "MetadataExtraction", // "AppendDelimiterToRecord" // ], // "type": "string" // } // }, // "required": [ // "Type" // ], // "type": "object" // }, // "type": "array", // "uniqueItems": true // } // }, // "type": "object" // }, // "RequestConfiguration": { // "additionalProperties": false, // "properties": { // "CommonAttributes": { // "items": { // "additionalProperties": false, // "properties": { // "AttributeName": { // "maxLength": 256, // "minLength": 1, // "type": "string" // }, // "AttributeValue": { // "maxLength": 1024, // "minLength": 0, // "type": "string" // } // }, // "required": [ // "AttributeName", // "AttributeValue" // ], // "type": "object" // }, // "maxItems": 50, // "minItems": 0, // "type": "array", // "uniqueItems": true // }, // "ContentEncoding": { // "enum": [ // "NONE", // "GZIP" // ], // "type": "string" // } // }, // "type": "object" // }, // "RetryOptions": { // "additionalProperties": false, // "properties": { // "DurationInSeconds": { // "type": "integer" // } // }, // "type": "object" // }, // "RoleARN": { // "maxLength": 512, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // }, // "S3BackupMode": { // "type": "string" // }, // "S3Configuration": { // "additionalProperties": false, // "properties": { // "BucketARN": { // "maxLength": 2048, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // }, // "BufferingHints": { // "additionalProperties": false, // "properties": { // "IntervalInSeconds": { // "type": "integer" // }, // "SizeInMBs": { // "type": "integer" // } // }, // "type": "object" // }, // "CloudWatchLoggingOptions": { // "additionalProperties": false, // "properties": { // "Enabled": { // "type": "boolean" // }, // "LogGroupName": { // "type": "string" // }, // "LogStreamName": { // "type": "string" // } // }, // "type": "object" // }, // "CompressionFormat": { // "enum": [ // "UNCOMPRESSED", // "GZIP", // "ZIP", // "Snappy", // "HADOOP_SNAPPY" // ], // "type": "string" // }, // "EncryptionConfiguration": { // "additionalProperties": false, // "properties": { // "KMSEncryptionConfig": { // "additionalProperties": false, // "properties": { // "AWSKMSKeyARN": { // "type": "string" // } // }, // "required": [ // "AWSKMSKeyARN" // ], // "type": "object" // }, // "NoEncryptionConfig": { // "enum": [ // "NoEncryption" // ], // "type": "string" // } // }, // "type": "object" // }, // "ErrorOutputPrefix": { // "maxLength": 1024, // "minLength": 0, // "type": "string" // }, // "Prefix": { // "maxLength": 1024, // "minLength": 0, // "type": "string" // }, // "RoleARN": { // "maxLength": 512, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // } // }, // "required": [ // "BucketARN", // "RoleARN" // ], // "type": "object" // } // }, // "required": [ // "EndpointConfiguration", // "S3Configuration" // ], // "type": "object" // } Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "buffering_hints": { // Property: BufferingHints Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "interval_in_seconds": { // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, }, }, ), Optional: true, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, }, }, ), Optional: true, }, "endpoint_configuration": { // Property: EndpointConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "access_key": { // Property: AccessKey Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 4096), }, }, "name": { // Property: Name Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, }, "url": { // Property: Url Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 1000), }, }, }, ), Required: true, }, "processing_configuration": { // Property: ProcessingConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, }, "processors": { // Property: Processors Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "parameters": { // Property: Parameters Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "parameter_name": { // Property: ParameterName Type: types.StringType, Required: true, }, "parameter_value": { // Property: ParameterValue Type: types.StringType, Required: true, }, }, tfsdk.ListNestedAttributesOptions{}, ), Optional: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, }, "type": { // Property: Type Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "RecordDeAggregation", "Lambda", "MetadataExtraction", "AppendDelimiterToRecord", }), }, }, }, tfsdk.ListNestedAttributesOptions{}, ), Optional: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, }, }, ), Optional: true, }, "request_configuration": { // Property: RequestConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "common_attributes": { // Property: CommonAttributes Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "attribute_name": { // Property: AttributeName Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 256), }, }, "attribute_value": { // Property: AttributeValue Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, }, }, tfsdk.ListNestedAttributesOptions{}, ), Optional: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(0, 50), validate.UniqueItems(), }, }, "content_encoding": { // Property: ContentEncoding Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NONE", "GZIP", }), }, }, }, ), Optional: true, }, "retry_options": { // Property: RetryOptions Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "duration_in_seconds": { // Property: DurationInSeconds Type: types.Int64Type, Optional: true, }, }, ), Optional: true, }, "role_arn": { // Property: RoleARN Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, "s3_backup_mode": { // Property: S3BackupMode Type: types.StringType, Optional: true, }, "s3_configuration": { // Property: S3Configuration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "bucket_arn": { // Property: BucketARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, "buffering_hints": { // Property: BufferingHints Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "interval_in_seconds": { // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, }, }, ), Optional: true, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, }, }, ), Optional: true, }, "compression_format": { // Property: CompressionFormat Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "UNCOMPRESSED", "GZIP", "ZIP", "Snappy", "HADOOP_SNAPPY", }), }, }, "encryption_configuration": { // Property: EncryptionConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "kms_encryption_config": { // Property: KMSEncryptionConfig Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "awskms_key_arn": { // Property: AWSKMSKeyARN Type: types.StringType, Required: true, }, }, ), Optional: true, }, "no_encryption_config": { // Property: NoEncryptionConfig Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NoEncryption", }), }, }, }, ), Optional: true, }, "error_output_prefix": { // Property: ErrorOutputPrefix Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, }, "prefix": { // Property: Prefix Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, }, "role_arn": { // Property: RoleARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, }, ), Required: true, }, }, ), Optional: true, }, "kinesis_stream_source_configuration": { // Property: KinesisStreamSourceConfiguration // CloudFormation resource type schema: // { // "additionalProperties": false, // "properties": { // "KinesisStreamARN": { // "maxLength": 512, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // }, // "RoleARN": { // "maxLength": 512, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // } // }, // "required": [ // "RoleARN", // "KinesisStreamARN" // ], // "type": "object" // } Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "kinesis_stream_arn": { // Property: KinesisStreamARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, "role_arn": { // Property: RoleARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, }, ), Optional: true, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), tfsdk.RequiresReplace(), }, }, "redshift_destination_configuration": { // Property: RedshiftDestinationConfiguration // CloudFormation resource type schema: // { // "additionalProperties": false, // "properties": { // "CloudWatchLoggingOptions": { // "additionalProperties": false, // "properties": { // "Enabled": { // "type": "boolean" // }, // "LogGroupName": { // "type": "string" // }, // "LogStreamName": { // "type": "string" // } // }, // "type": "object" // }, // "ClusterJDBCURL": { // "maxLength": 512, // "minLength": 1, // "type": "string" // }, // "CopyCommand": { // "additionalProperties": false, // "properties": { // "CopyOptions": { // "maxLength": 204800, // "minLength": 0, // "type": "string" // }, // "DataTableColumns": { // "maxLength": 204800, // "minLength": 0, // "type": "string" // }, // "DataTableName": { // "maxLength": 512, // "minLength": 1, // "type": "string" // } // }, // "required": [ // "DataTableName" // ], // "type": "object" // }, // "Password": { // "maxLength": 512, // "minLength": 6, // "type": "string" // }, // "ProcessingConfiguration": { // "additionalProperties": false, // "properties": { // "Enabled": { // "type": "boolean" // }, // "Processors": { // "items": { // "additionalProperties": false, // "properties": { // "Parameters": { // "items": { // "additionalProperties": false, // "properties": { // "ParameterName": { // "type": "string" // }, // "ParameterValue": { // "type": "string" // } // }, // "required": [ // "ParameterValue", // "ParameterName" // ], // "type": "object" // }, // "type": "array", // "uniqueItems": true // }, // "Type": { // "enum": [ // "RecordDeAggregation", // "Lambda", // "MetadataExtraction", // "AppendDelimiterToRecord" // ], // "type": "string" // } // }, // "required": [ // "Type" // ], // "type": "object" // }, // "type": "array", // "uniqueItems": true // } // }, // "type": "object" // }, // "RetryOptions": { // "additionalProperties": false, // "properties": { // "DurationInSeconds": { // "type": "integer" // } // }, // "type": "object" // }, // "RoleARN": { // "maxLength": 512, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // }, // "S3BackupConfiguration": { // "additionalProperties": false, // "properties": { // "BucketARN": { // "maxLength": 2048, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // }, // "BufferingHints": { // "additionalProperties": false, // "properties": { // "IntervalInSeconds": { // "type": "integer" // }, // "SizeInMBs": { // "type": "integer" // } // }, // "type": "object" // }, // "CloudWatchLoggingOptions": { // "additionalProperties": false, // "properties": { // "Enabled": { // "type": "boolean" // }, // "LogGroupName": { // "type": "string" // }, // "LogStreamName": { // "type": "string" // } // }, // "type": "object" // }, // "CompressionFormat": { // "enum": [ // "UNCOMPRESSED", // "GZIP", // "ZIP", // "Snappy", // "HADOOP_SNAPPY" // ], // "type": "string" // }, // "EncryptionConfiguration": { // "additionalProperties": false, // "properties": { // "KMSEncryptionConfig": { // "additionalProperties": false, // "properties": { // "AWSKMSKeyARN": { // "type": "string" // } // }, // "required": [ // "AWSKMSKeyARN" // ], // "type": "object" // }, // "NoEncryptionConfig": { // "enum": [ // "NoEncryption" // ], // "type": "string" // } // }, // "type": "object" // }, // "ErrorOutputPrefix": { // "maxLength": 1024, // "minLength": 0, // "type": "string" // }, // "Prefix": { // "maxLength": 1024, // "minLength": 0, // "type": "string" // }, // "RoleARN": { // "maxLength": 512, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // } // }, // "required": [ // "BucketARN", // "RoleARN" // ], // "type": "object" // }, // "S3BackupMode": { // "enum": [ // "Disabled", // "Enabled" // ], // "type": "string" // }, // "S3Configuration": { // "additionalProperties": false, // "properties": { // "BucketARN": { // "maxLength": 2048, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // }, // "BufferingHints": { // "additionalProperties": false, // "properties": { // "IntervalInSeconds": { // "type": "integer" // }, // "SizeInMBs": { // "type": "integer" // } // }, // "type": "object" // }, // "CloudWatchLoggingOptions": { // "additionalProperties": false, // "properties": { // "Enabled": { // "type": "boolean" // }, // "LogGroupName": { // "type": "string" // }, // "LogStreamName": { // "type": "string" // } // }, // "type": "object" // }, // "CompressionFormat": { // "enum": [ // "UNCOMPRESSED", // "GZIP", // "ZIP", // "Snappy", // "HADOOP_SNAPPY" // ], // "type": "string" // }, // "EncryptionConfiguration": { // "additionalProperties": false, // "properties": { // "KMSEncryptionConfig": { // "additionalProperties": false, // "properties": { // "AWSKMSKeyARN": { // "type": "string" // } // }, // "required": [ // "AWSKMSKeyARN" // ], // "type": "object" // }, // "NoEncryptionConfig": { // "enum": [ // "NoEncryption" // ], // "type": "string" // } // }, // "type": "object" // }, // "ErrorOutputPrefix": { // "maxLength": 1024, // "minLength": 0, // "type": "string" // }, // "Prefix": { // "maxLength": 1024, // "minLength": 0, // "type": "string" // }, // "RoleARN": { // "maxLength": 512, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // } // }, // "required": [ // "BucketARN", // "RoleARN" // ], // "type": "object" // }, // "Username": { // "maxLength": 512, // "minLength": 1, // "type": "string" // } // }, // "required": [ // "S3Configuration", // "Username", // "ClusterJDBCURL", // "CopyCommand", // "RoleARN", // "Password" // ], // "type": "object" // } Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, }, }, ), Optional: true, }, "cluster_jdbcurl": { // Property: ClusterJDBCURL Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), }, }, "copy_command": { // Property: CopyCommand Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "copy_options": { // Property: CopyOptions Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 204800), }, }, "data_table_columns": { // Property: DataTableColumns Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 204800), }, }, "data_table_name": { // Property: DataTableName Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), }, }, }, ), Required: true, }, "password": { // Property: Password Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(6, 512), }, }, "processing_configuration": { // Property: ProcessingConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, }, "processors": { // Property: Processors Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "parameters": { // Property: Parameters Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "parameter_name": { // Property: ParameterName Type: types.StringType, Required: true, }, "parameter_value": { // Property: ParameterValue Type: types.StringType, Required: true, }, }, tfsdk.ListNestedAttributesOptions{}, ), Optional: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, }, "type": { // Property: Type Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "RecordDeAggregation", "Lambda", "MetadataExtraction", "AppendDelimiterToRecord", }), }, }, }, tfsdk.ListNestedAttributesOptions{}, ), Optional: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, }, }, ), Optional: true, }, "retry_options": { // Property: RetryOptions Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "duration_in_seconds": { // Property: DurationInSeconds Type: types.Int64Type, Optional: true, }, }, ), Optional: true, }, "role_arn": { // Property: RoleARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, "s3_backup_configuration": { // Property: S3BackupConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "bucket_arn": { // Property: BucketARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, "buffering_hints": { // Property: BufferingHints Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "interval_in_seconds": { // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, }, }, ), Optional: true, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, }, }, ), Optional: true, }, "compression_format": { // Property: CompressionFormat Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "UNCOMPRESSED", "GZIP", "ZIP", "Snappy", "HADOOP_SNAPPY", }), }, }, "encryption_configuration": { // Property: EncryptionConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "kms_encryption_config": { // Property: KMSEncryptionConfig Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "awskms_key_arn": { // Property: AWSKMSKeyARN Type: types.StringType, Required: true, }, }, ), Optional: true, }, "no_encryption_config": { // Property: NoEncryptionConfig Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NoEncryption", }), }, }, }, ), Optional: true, }, "error_output_prefix": { // Property: ErrorOutputPrefix Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, }, "prefix": { // Property: Prefix Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, }, "role_arn": { // Property: RoleARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, }, ), Optional: true, }, "s3_backup_mode": { // Property: S3BackupMode Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Disabled", "Enabled", }), }, }, "s3_configuration": { // Property: S3Configuration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "bucket_arn": { // Property: BucketARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, "buffering_hints": { // Property: BufferingHints Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "interval_in_seconds": { // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, }, }, ), Optional: true, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, }, }, ), Optional: true, }, "compression_format": { // Property: CompressionFormat Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "UNCOMPRESSED", "GZIP", "ZIP", "Snappy", "HADOOP_SNAPPY", }), }, }, "encryption_configuration": { // Property: EncryptionConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "kms_encryption_config": { // Property: KMSEncryptionConfig Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "awskms_key_arn": { // Property: AWSKMSKeyARN Type: types.StringType, Required: true, }, }, ), Optional: true, }, "no_encryption_config": { // Property: NoEncryptionConfig Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NoEncryption", }), }, }, }, ), Optional: true, }, "error_output_prefix": { // Property: ErrorOutputPrefix Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, }, "prefix": { // Property: Prefix Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, }, "role_arn": { // Property: RoleARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, }, ), Required: true, }, "username": { // Property: Username Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), }, }, }, ), Optional: true, }, "s3_destination_configuration": { // Property: S3DestinationConfiguration // CloudFormation resource type schema: // { // "additionalProperties": false, // "properties": { // "BucketARN": { // "maxLength": 2048, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // }, // "BufferingHints": { // "additionalProperties": false, // "properties": { // "IntervalInSeconds": { // "type": "integer" // }, // "SizeInMBs": { // "type": "integer" // } // }, // "type": "object" // }, // "CloudWatchLoggingOptions": { // "additionalProperties": false, // "properties": { // "Enabled": { // "type": "boolean" // }, // "LogGroupName": { // "type": "string" // }, // "LogStreamName": { // "type": "string" // } // }, // "type": "object" // }, // "CompressionFormat": { // "enum": [ // "UNCOMPRESSED", // "GZIP", // "ZIP", // "Snappy", // "HADOOP_SNAPPY" // ], // "type": "string" // }, // "EncryptionConfiguration": { // "additionalProperties": false, // "properties": { // "KMSEncryptionConfig": { // "additionalProperties": false, // "properties": { // "AWSKMSKeyARN": { // "type": "string" // } // }, // "required": [ // "AWSKMSKeyARN" // ], // "type": "object" // }, // "NoEncryptionConfig": { // "enum": [ // "NoEncryption" // ], // "type": "string" // } // }, // "type": "object" // }, // "ErrorOutputPrefix": { // "maxLength": 1024, // "minLength": 0, // "type": "string" // }, // "Prefix": { // "maxLength": 1024, // "minLength": 0, // "type": "string" // }, // "RoleARN": { // "maxLength": 512, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // } // }, // "required": [ // "BucketARN", // "RoleARN" // ], // "type": "object" // } Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "bucket_arn": { // Property: BucketARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, "buffering_hints": { // Property: BufferingHints Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "interval_in_seconds": { // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, }, }, ), Optional: true, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, }, }, ), Optional: true, }, "compression_format": { // Property: CompressionFormat Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "UNCOMPRESSED", "GZIP", "ZIP", "Snappy", "HADOOP_SNAPPY", }), }, }, "encryption_configuration": { // Property: EncryptionConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "kms_encryption_config": { // Property: KMSEncryptionConfig Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "awskms_key_arn": { // Property: AWSKMSKeyARN Type: types.StringType, Required: true, }, }, ), Optional: true, }, "no_encryption_config": { // Property: NoEncryptionConfig Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NoEncryption", }), }, }, }, ), Optional: true, }, "error_output_prefix": { // Property: ErrorOutputPrefix Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, }, "prefix": { // Property: Prefix Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, }, "role_arn": { // Property: RoleARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, }, ), Optional: true, }, "splunk_destination_configuration": { // Property: SplunkDestinationConfiguration // CloudFormation resource type schema: // { // "additionalProperties": false, // "properties": { // "CloudWatchLoggingOptions": { // "additionalProperties": false, // "properties": { // "Enabled": { // "type": "boolean" // }, // "LogGroupName": { // "type": "string" // }, // "LogStreamName": { // "type": "string" // } // }, // "type": "object" // }, // "HECAcknowledgmentTimeoutInSeconds": { // "maximum": 600, // "minimum": 180, // "type": "integer" // }, // "HECEndpoint": { // "maxLength": 2048, // "minLength": 0, // "type": "string" // }, // "HECEndpointType": { // "enum": [ // "Raw", // "Event" // ], // "type": "string" // }, // "HECToken": { // "maxLength": 2048, // "minLength": 0, // "type": "string" // }, // "ProcessingConfiguration": { // "additionalProperties": false, // "properties": { // "Enabled": { // "type": "boolean" // }, // "Processors": { // "items": { // "additionalProperties": false, // "properties": { // "Parameters": { // "items": { // "additionalProperties": false, // "properties": { // "ParameterName": { // "type": "string" // }, // "ParameterValue": { // "type": "string" // } // }, // "required": [ // "ParameterValue", // "ParameterName" // ], // "type": "object" // }, // "type": "array", // "uniqueItems": true // }, // "Type": { // "enum": [ // "RecordDeAggregation", // "Lambda", // "MetadataExtraction", // "AppendDelimiterToRecord" // ], // "type": "string" // } // }, // "required": [ // "Type" // ], // "type": "object" // }, // "type": "array", // "uniqueItems": true // } // }, // "type": "object" // }, // "RetryOptions": { // "additionalProperties": false, // "properties": { // "DurationInSeconds": { // "type": "integer" // } // }, // "type": "object" // }, // "S3BackupMode": { // "type": "string" // }, // "S3Configuration": { // "additionalProperties": false, // "properties": { // "BucketARN": { // "maxLength": 2048, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // }, // "BufferingHints": { // "additionalProperties": false, // "properties": { // "IntervalInSeconds": { // "type": "integer" // }, // "SizeInMBs": { // "type": "integer" // } // }, // "type": "object" // }, // "CloudWatchLoggingOptions": { // "additionalProperties": false, // "properties": { // "Enabled": { // "type": "boolean" // }, // "LogGroupName": { // "type": "string" // }, // "LogStreamName": { // "type": "string" // } // }, // "type": "object" // }, // "CompressionFormat": { // "enum": [ // "UNCOMPRESSED", // "GZIP", // "ZIP", // "Snappy", // "HADOOP_SNAPPY" // ], // "type": "string" // }, // "EncryptionConfiguration": { // "additionalProperties": false, // "properties": { // "KMSEncryptionConfig": { // "additionalProperties": false, // "properties": { // "AWSKMSKeyARN": { // "type": "string" // } // }, // "required": [ // "AWSKMSKeyARN" // ], // "type": "object" // }, // "NoEncryptionConfig": { // "enum": [ // "NoEncryption" // ], // "type": "string" // } // }, // "type": "object" // }, // "ErrorOutputPrefix": { // "maxLength": 1024, // "minLength": 0, // "type": "string" // }, // "Prefix": { // "maxLength": 1024, // "minLength": 0, // "type": "string" // }, // "RoleARN": { // "maxLength": 512, // "minLength": 1, // "pattern": "arn:.*", // "type": "string" // } // }, // "required": [ // "BucketARN", // "RoleARN" // ], // "type": "object" // } // }, // "required": [ // "HECEndpoint", // "S3Configuration", // "HECToken", // "HECEndpointType" // ], // "type": "object" // } Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, }, }, ), Optional: true, }, "hec_acknowledgment_timeout_in_seconds": { // Property: HECAcknowledgmentTimeoutInSeconds Type: types.Int64Type, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.IntBetween(180, 600), }, }, "hec_endpoint": { // Property: HECEndpoint Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 2048), }, }, "hec_endpoint_type": { // Property: HECEndpointType Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "Raw", "Event", }), }, }, "hec_token": { // Property: HECToken Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 2048), }, }, "processing_configuration": { // Property: ProcessingConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, }, "processors": { // Property: Processors Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "parameters": { // Property: Parameters Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "parameter_name": { // Property: ParameterName Type: types.StringType, Required: true, }, "parameter_value": { // Property: ParameterValue Type: types.StringType, Required: true, }, }, tfsdk.ListNestedAttributesOptions{}, ), Optional: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, }, "type": { // Property: Type Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "RecordDeAggregation", "Lambda", "MetadataExtraction", "AppendDelimiterToRecord", }), }, }, }, tfsdk.ListNestedAttributesOptions{}, ), Optional: true, Validators: []tfsdk.AttributeValidator{ validate.UniqueItems(), }, }, }, ), Optional: true, }, "retry_options": { // Property: RetryOptions Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "duration_in_seconds": { // Property: DurationInSeconds Type: types.Int64Type, Optional: true, }, }, ), Optional: true, }, "s3_backup_mode": { // Property: S3BackupMode Type: types.StringType, Optional: true, }, "s3_configuration": { // Property: S3Configuration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "bucket_arn": { // Property: BucketARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 2048), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, "buffering_hints": { // Property: BufferingHints Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "interval_in_seconds": { // Property: IntervalInSeconds Type: types.Int64Type, Optional: true, }, "size_in_m_bs": { // Property: SizeInMBs Type: types.Int64Type, Optional: true, }, }, ), Optional: true, }, "cloudwatch_logging_options": { // Property: CloudWatchLoggingOptions Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "enabled": { // Property: Enabled Type: types.BoolType, Optional: true, }, "log_group_name": { // Property: LogGroupName Type: types.StringType, Optional: true, }, "log_stream_name": { // Property: LogStreamName Type: types.StringType, Optional: true, }, }, ), Optional: true, }, "compression_format": { // Property: CompressionFormat Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "UNCOMPRESSED", "GZIP", "ZIP", "Snappy", "HADOOP_SNAPPY", }), }, }, "encryption_configuration": { // Property: EncryptionConfiguration Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "kms_encryption_config": { // Property: KMSEncryptionConfig Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "awskms_key_arn": { // Property: AWSKMSKeyARN Type: types.StringType, Required: true, }, }, ), Optional: true, }, "no_encryption_config": { // Property: NoEncryptionConfig Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringInSlice([]string{ "NoEncryption", }), }, }, }, ), Optional: true, }, "error_output_prefix": { // Property: ErrorOutputPrefix Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, }, "prefix": { // Property: Prefix Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 1024), }, }, "role_arn": { // Property: RoleARN Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 512), validate.StringMatch(regexp.MustCompile("arn:.*"), ""), }, }, }, ), Required: true, }, }, ), Optional: true, }, "tags": { // Property: Tags // CloudFormation resource type schema: // { // "items": { // "properties": { // "Key": { // "maxLength": 128, // "minLength": 1, // "pattern": "", // "type": "string" // }, // "Value": { // "maxLength": 256, // "minLength": 0, // "pattern": "^[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@%]*$", // "type": "string" // } // }, // "required": [ // "Key" // ], // "type": "object" // }, // "maxItems": 50, // "minItems": 1, // "type": "array" // } Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "key": { // Property: Key Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(1, 128), }, }, "value": { // Property: Value Type: types.StringType, Optional: true, Validators: []tfsdk.AttributeValidator{ validate.StringLenBetween(0, 256), validate.StringMatch(regexp.MustCompile("^[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@%]*$"), ""), }, }, }, tfsdk.ListNestedAttributesOptions{}, ), Optional: true, Validators: []tfsdk.AttributeValidator{ validate.ArrayLenBetween(1, 50), }, }, } attributes["id"] = tfsdk.Attribute{ Description: "Uniquely identifies the resource.", Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, } schema := tfsdk.Schema{ Description: "Resource Type definition for AWS::KinesisFirehose::DeliveryStream", Version: 1, Attributes: attributes, } var opts ResourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::KinesisFirehose::DeliveryStream").WithTerraformTypeName("awscc_kinesisfirehose_delivery_stream") opts = opts.WithTerraformSchema(schema) opts = opts.WithSyntheticIDAttribute(true) opts = opts.WithAttributeNameMap(map[string]string{ "access_key": "AccessKey", "amazonopensearchservice_destination_configuration": "AmazonopensearchserviceDestinationConfiguration", "arn": "Arn", "attribute_name": "AttributeName", "attribute_value": "AttributeValue", "awskms_key_arn": "AWSKMSKeyARN", "block_size_bytes": "BlockSizeBytes", "bloom_filter_columns": "BloomFilterColumns", "bloom_filter_false_positive_probability": "BloomFilterFalsePositiveProbability", "bucket_arn": "BucketARN", "buffering_hints": "BufferingHints", "case_insensitive": "CaseInsensitive", "catalog_id": "CatalogId", "cloudwatch_logging_options": "CloudWatchLoggingOptions", "cluster_endpoint": "ClusterEndpoint", "cluster_jdbcurl": "ClusterJDBCURL", "column_to_json_key_mappings": "ColumnToJsonKeyMappings", "common_attributes": "CommonAttributes", "compression": "Compression", "compression_format": "CompressionFormat", "content_encoding": "ContentEncoding", "convert_dots_in_json_keys_to_underscores": "ConvertDotsInJsonKeysToUnderscores", "copy_command": "CopyCommand", "copy_options": "CopyOptions", "data_format_conversion_configuration": "DataFormatConversionConfiguration", "data_table_columns": "DataTableColumns", "data_table_name": "DataTableName", "database_name": "DatabaseName", "delivery_stream_encryption_configuration_input": "DeliveryStreamEncryptionConfigurationInput", "delivery_stream_name": "DeliveryStreamName", "delivery_stream_type": "DeliveryStreamType", "deserializer": "Deserializer", "dictionary_key_threshold": "DictionaryKeyThreshold", "domain_arn": "DomainARN", "duration_in_seconds": "DurationInSeconds", "dynamic_partitioning_configuration": "DynamicPartitioningConfiguration", "elasticsearch_destination_configuration": "ElasticsearchDestinationConfiguration", "enable_dictionary_compression": "EnableDictionaryCompression", "enable_padding": "EnablePadding", "enabled": "Enabled", "encryption_configuration": "EncryptionConfiguration", "endpoint_configuration": "EndpointConfiguration", "error_output_prefix": "ErrorOutputPrefix", "extended_s3_destination_configuration": "ExtendedS3DestinationConfiguration", "format_version": "FormatVersion", "hec_acknowledgment_timeout_in_seconds": "HECAcknowledgmentTimeoutInSeconds", "hec_endpoint": "HECEndpoint", "hec_endpoint_type": "HECEndpointType", "hec_token": "HECToken", "hive_json_ser_de": "HiveJsonSerDe", "http_endpoint_destination_configuration": "HttpEndpointDestinationConfiguration", "index_name": "IndexName", "index_rotation_period": "IndexRotationPeriod", "input_format_configuration": "InputFormatConfiguration", "interval_in_seconds": "IntervalInSeconds", "key": "Key", "key_arn": "KeyARN", "key_type": "KeyType", "kinesis_stream_arn": "KinesisStreamARN", "kinesis_stream_source_configuration": "KinesisStreamSourceConfiguration", "kms_encryption_config": "KMSEncryptionConfig", "log_group_name": "LogGroupName", "log_stream_name": "LogStreamName", "max_padding_bytes": "MaxPaddingBytes", "name": "Name", "no_encryption_config": "NoEncryptionConfig", "open_x_json_ser_de": "OpenXJsonSerDe", "orc_ser_de": "OrcSerDe", "output_format_configuration": "OutputFormatConfiguration", "padding_tolerance": "PaddingTolerance", "page_size_bytes": "PageSizeBytes", "parameter_name": "ParameterName", "parameter_value": "ParameterValue", "parameters": "Parameters", "parquet_ser_de": "ParquetSerDe", "password": "Password", "prefix": "Prefix", "processing_configuration": "ProcessingConfiguration", "processors": "Processors", "redshift_destination_configuration": "RedshiftDestinationConfiguration", "region": "Region", "request_configuration": "RequestConfiguration", "retry_options": "RetryOptions", "role_arn": "RoleARN", "row_index_stride": "RowIndexStride", "s3_backup_configuration": "S3BackupConfiguration", "s3_backup_mode": "S3BackupMode", "s3_configuration": "S3Configuration", "s3_destination_configuration": "S3DestinationConfiguration", "schema_configuration": "SchemaConfiguration", "security_group_ids": "SecurityGroupIds", "serializer": "Serializer", "size_in_m_bs": "SizeInMBs", "splunk_destination_configuration": "SplunkDestinationConfiguration", "stripe_size_bytes": "StripeSizeBytes", "subnet_ids": "SubnetIds", "table_name": "TableName", "tags": "Tags", "timestamp_formats": "TimestampFormats", "type": "Type", "type_name": "TypeName", "url": "Url", "username": "Username", "value": "Value", "version_id": "VersionId", "vpc_configuration": "VpcConfiguration", "writer_version": "WriterVersion", }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) opts = opts.WithUpdateTimeoutInMinutes(0) resourceType, err := NewResourceType(ctx, opts...) if err != nil { return nil, err } return resourceType, nil }