// Code generated by generators/singular-data-source/main.go; DO NOT EDIT. package iotwireless 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_iotwireless_destination", destinationDataSourceType) } // destinationDataSourceType returns the Terraform awscc_iotwireless_destination data source type. // This Terraform data source type corresponds to the CloudFormation AWS::IoTWireless::Destination resource type. func destinationDataSourceType(ctx context.Context) (tfsdk.DataSourceType, error) { attributes := map[string]tfsdk.Attribute{ "arn": { // Property: Arn // CloudFormation resource type schema: // { // "description": "Destination arn. Returned after successful create.", // "type": "string" // } Description: "Destination arn. Returned after successful create.", Type: types.StringType, Computed: true, }, "description": { // Property: Description // CloudFormation resource type schema: // { // "description": "Destination description", // "maxLength": 2048, // "type": "string" // } Description: "Destination description", Type: types.StringType, Computed: true, }, "expression": { // Property: Expression // CloudFormation resource type schema: // { // "description": "Destination expression", // "type": "string" // } Description: "Destination expression", Type: types.StringType, Computed: true, }, "expression_type": { // Property: ExpressionType // CloudFormation resource type schema: // { // "description": "Must be RuleName", // "enum": [ // "RuleName", // "MqttTopic" // ], // "type": "string" // } Description: "Must be RuleName", Type: types.StringType, Computed: true, }, "name": { // Property: Name // CloudFormation resource type schema: // { // "description": "Unique name of destination", // "maxLength": 128, // "pattern": "[a-zA-Z0-9:_-]+", // "type": "string" // } Description: "Unique name of destination", Type: types.StringType, Computed: true, }, "role_arn": { // Property: RoleArn // CloudFormation resource type schema: // { // "description": "AWS role ARN that grants access", // "maxLength": 2048, // "minLength": 20, // "type": "string" // } Description: "AWS role ARN that grants access", Type: types.StringType, Computed: true, }, "tags": { // Property: Tags // CloudFormation resource type schema: // { // "description": "A list of key-value pairs that contain metadata for the destination.", // "insertionOrder": false, // "items": { // "additionalProperties": false, // "properties": { // "Key": { // "maxLength": 127, // "minLength": 1, // "type": "string" // }, // "Value": { // "maxLength": 255, // "minLength": 1, // "type": "string" // } // }, // "type": "object" // }, // "maxItems": 200, // "type": "array", // "uniqueItems": true // } Description: "A list of key-value pairs that contain metadata for the destination.", Attributes: tfsdk.SetNestedAttributes( map[string]tfsdk.Attribute{ "key": { // Property: Key Type: types.StringType, Computed: true, }, "value": { // Property: Value Type: types.StringType, Computed: true, }, }, tfsdk.SetNestedAttributesOptions{}, ), 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::IoTWireless::Destination", Version: 1, Attributes: attributes, } var opts DataSourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::IoTWireless::Destination").WithTerraformTypeName("awscc_iotwireless_destination") opts = opts.WithTerraformSchema(schema) opts = opts.WithAttributeNameMap(map[string]string{ "arn": "Arn", "description": "Description", "expression": "Expression", "expression_type": "ExpressionType", "key": "Key", "name": "Name", "role_arn": "RoleArn", "tags": "Tags", "value": "Value", }) singularDataSourceType, err := NewSingularDataSourceType(ctx, opts...) if err != nil { return nil, err } return singularDataSourceType, nil }