// Code generated by generators/singular-data-source/main.go; DO NOT EDIT. package mediapackage import ( "context" "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" ) func init() { registry.AddDataSourceTypeFactory("awscc_mediapackage_packaging_group", packagingGroupDataSourceType) } // packagingGroupDataSourceType returns the Terraform awscc_mediapackage_packaging_group data source type. // This Terraform data source type corresponds to the CloudFormation AWS::MediaPackage::PackagingGroup resource type. func packagingGroupDataSourceType(ctx context.Context) (tfsdk.DataSourceType, error) { attributes := map[string]tfsdk.Attribute{ "arn": { // Property: Arn // CloudFormation resource type schema: // { // "description": "The ARN of the PackagingGroup.", // "type": "string" // } Description: "The ARN of the PackagingGroup.", Type: types.StringType, Computed: true, }, "authorization": { // Property: Authorization // CloudFormation resource type schema: // { // "additionalProperties": false, // "description": "CDN Authorization", // "properties": { // "CdnIdentifierSecret": { // "description": "The Amazon Resource Name (ARN) for the secret in AWS Secrets Manager that is used for CDN authorization.", // "type": "string" // }, // "SecretsRoleArn": { // "description": "The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to communicate with AWS Secrets Manager.", // "type": "string" // } // }, // "required": [ // "CdnIdentifierSecret", // "SecretsRoleArn" // ], // "type": "object" // } Description: "CDN Authorization", Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "cdn_identifier_secret": { // Property: CdnIdentifierSecret Description: "The Amazon Resource Name (ARN) for the secret in AWS Secrets Manager that is used for CDN authorization.", Type: types.StringType, Computed: true, }, "secrets_role_arn": { // Property: SecretsRoleArn Description: "The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to communicate with AWS Secrets Manager.", Type: types.StringType, Computed: true, }, }, ), Computed: true, }, "domain_name": { // Property: DomainName // CloudFormation resource type schema: // { // "description": "The fully qualified domain name for Assets in the PackagingGroup.", // "type": "string" // } Description: "The fully qualified domain name for Assets in the PackagingGroup.", Type: types.StringType, Computed: true, }, "egress_access_logs": { // Property: EgressAccessLogs // CloudFormation resource type schema: // { // "additionalProperties": false, // "description": "The configuration parameters for egress access logging.", // "properties": { // "LogGroupName": { // "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.", // "maxLength": 512, // "minLength": 1, // "pattern": "", // "type": "string" // } // }, // "type": "object" // } Description: "The configuration parameters for egress access logging.", Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "log_group_name": { // Property: LogGroupName 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, Computed: true, }, }, ), Computed: true, }, "id": { // Property: Id // CloudFormation resource type schema: // { // "description": "The ID of the PackagingGroup.", // "maxLength": 256, // "minLength": 1, // "pattern": "", // "type": "string" // } Description: "The ID of the PackagingGroup.", Type: types.StringType, Computed: true, }, "tags": { // Property: Tags // CloudFormation resource type schema: // { // "description": "A collection of tags associated with a resource", // "items": { // "additionalProperties": false, // "properties": { // "Key": { // "type": "string" // }, // "Value": { // "type": "string" // } // }, // "required": [ // "Value", // "Key" // ], // "type": "object" // }, // "type": "array", // "uniqueItems": true // } Description: "A collection of tags associated with a resource", Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "key": { // Property: Key Type: types.StringType, Computed: true, }, "value": { // Property: Value Type: types.StringType, Computed: true, }, }, tfsdk.ListNestedAttributesOptions{}, ), Computed: true, }, } attributes["id"] = tfsdk.Attribute{ Description: "Uniquely identifies the resource.", Type: types.StringType, Required: true, } schema := tfsdk.Schema{ Description: "Data Source schema for AWS::MediaPackage::PackagingGroup", Version: 1, Attributes: attributes, } var opts DataSourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::MediaPackage::PackagingGroup").WithTerraformTypeName("awscc_mediapackage_packaging_group") opts = opts.WithTerraformSchema(schema) opts = opts.WithAttributeNameMap(map[string]string{ "arn": "Arn", "authorization": "Authorization", "cdn_identifier_secret": "CdnIdentifierSecret", "domain_name": "DomainName", "egress_access_logs": "EgressAccessLogs", "id": "Id", "key": "Key", "log_group_name": "LogGroupName", "secrets_role_arn": "SecretsRoleArn", "tags": "Tags", "value": "Value", }) singularDataSourceType, err := NewSingularDataSourceType(ctx, opts...) if err != nil { return nil, err } return singularDataSourceType, nil }