// Code generated by generators/singular-data-source/main.go; DO NOT EDIT. package apprunner 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_apprunner_observability_configuration", observabilityConfigurationDataSourceType) } // observabilityConfigurationDataSourceType returns the Terraform awscc_apprunner_observability_configuration data source type. // This Terraform data source type corresponds to the CloudFormation AWS::AppRunner::ObservabilityConfiguration resource type. func observabilityConfigurationDataSourceType(ctx context.Context) (tfsdk.DataSourceType, error) { attributes := map[string]tfsdk.Attribute{ "latest": { // Property: Latest // CloudFormation resource type schema: // { // "description": "It's set to true for the configuration with the highest Revision among all configurations that share the same Name. It's set to false otherwise.", // "type": "boolean" // } Description: "It's set to true for the configuration with the highest Revision among all configurations that share the same Name. It's set to false otherwise.", Type: types.BoolType, Computed: true, }, "observability_configuration_arn": { // Property: ObservabilityConfigurationArn // CloudFormation resource type schema: // { // "description": "The Amazon Resource Name (ARN) of this ObservabilityConfiguration", // "maxLength": 1011, // "minLength": 1, // "pattern": "", // "type": "string" // } Description: "The Amazon Resource Name (ARN) of this ObservabilityConfiguration", Type: types.StringType, Computed: true, }, "observability_configuration_name": { // Property: ObservabilityConfigurationName // CloudFormation resource type schema: // { // "description": "A name for the observability configuration. When you use it for the first time in an AWS Region, App Runner creates revision number 1 of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration.", // "maxLength": 32, // "minLength": 4, // "pattern": "[A-Za-z0-9][A-Za-z0-9\\-_]{3,31}", // "type": "string" // } Description: "A name for the observability configuration. When you use it for the first time in an AWS Region, App Runner creates revision number 1 of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration.", Type: types.StringType, Computed: true, }, "observability_configuration_revision": { // Property: ObservabilityConfigurationRevision // CloudFormation resource type schema: // { // "description": "The revision of this observability configuration. It's unique among all the active configurations ('Status': 'ACTIVE') that share the same ObservabilityConfigurationName.", // "type": "integer" // } Description: "The revision of this observability configuration. It's unique among all the active configurations ('Status': 'ACTIVE') that share the same ObservabilityConfigurationName.", Type: types.Int64Type, Computed: true, }, "tags": { // Property: Tags // CloudFormation resource type schema: // { // "description": "A list of metadata items that you can associate with your observability configuration resource. A tag is a key-value pair.", // "items": { // "additionalProperties": false, // "properties": { // "Key": { // "type": "string" // }, // "Value": { // "type": "string" // } // }, // "type": "object" // }, // "type": "array" // } Description: "A list of metadata items that you can associate with your observability configuration resource. A tag is a key-value pair.", 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, }, "trace_configuration": { // Property: TraceConfiguration // CloudFormation resource type schema: // { // "additionalProperties": false, // "description": "The configuration of the tracing feature within this observability configuration. If you don't specify it, App Runner doesn't enable tracing.", // "properties": { // "Vendor": { // "description": "The implementation provider chosen for tracing App Runner services.", // "enum": [ // "AWSXRAY" // ], // "type": "string" // } // }, // "required": [ // "Vendor" // ], // "type": "object" // } Description: "The configuration of the tracing feature within this observability configuration. If you don't specify it, App Runner doesn't enable tracing.", Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "vendor": { // Property: Vendor Description: "The implementation provider chosen for tracing App Runner services.", Type: types.StringType, Computed: true, }, }, ), 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::AppRunner::ObservabilityConfiguration", Version: 1, Attributes: attributes, } var opts DataSourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::AppRunner::ObservabilityConfiguration").WithTerraformTypeName("awscc_apprunner_observability_configuration") opts = opts.WithTerraformSchema(schema) opts = opts.WithAttributeNameMap(map[string]string{ "key": "Key", "latest": "Latest", "observability_configuration_arn": "ObservabilityConfigurationArn", "observability_configuration_name": "ObservabilityConfigurationName", "observability_configuration_revision": "ObservabilityConfigurationRevision", "tags": "Tags", "trace_configuration": "TraceConfiguration", "value": "Value", "vendor": "Vendor", }) singularDataSourceType, err := NewSingularDataSourceType(ctx, opts...) if err != nil { return nil, err } return singularDataSourceType, nil }