// Code generated by generators/singular-data-source/main.go; DO NOT EDIT. package robomaker 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_robomaker_robot_application", robotApplicationDataSourceType) } // robotApplicationDataSourceType returns the Terraform awscc_robomaker_robot_application data source type. // This Terraform data source type corresponds to the CloudFormation AWS::RoboMaker::RobotApplication resource type. func robotApplicationDataSourceType(ctx context.Context) (tfsdk.DataSourceType, error) { attributes := map[string]tfsdk.Attribute{ "arn": { // Property: Arn // CloudFormation resource type schema: // { // "pattern": "arn:[\\w+=/,.@-]+:[\\w+=/,.@-]+:[\\w+=/,.@-]*:[0-9]*:[\\w+=,.@-]+(/[\\w+=,.@-]+)*", // "type": "string" // } Type: types.StringType, Computed: true, }, "current_revision_id": { // Property: CurrentRevisionId // CloudFormation resource type schema: // { // "description": "The revision ID of robot application.", // "maxLength": 40, // "minLength": 1, // "type": "string" // } Description: "The revision ID of robot application.", Type: types.StringType, Computed: true, }, "environment": { // Property: Environment // CloudFormation resource type schema: // { // "description": "The URI of the Docker image for the robot application.", // "type": "string" // } Description: "The URI of the Docker image for the robot application.", Type: types.StringType, Computed: true, }, "name": { // Property: Name // CloudFormation resource type schema: // { // "description": "The name of the robot application.", // "maxLength": 255, // "minLength": 1, // "type": "string" // } Description: "The name of the robot application.", Type: types.StringType, Computed: true, }, "robot_software_suite": { // Property: RobotSoftwareSuite // CloudFormation resource type schema: // { // "additionalProperties": false, // "description": "The robot software suite used by the robot application.", // "properties": { // "Name": { // "description": "The name of robot software suite.", // "enum": [ // "ROS", // "ROS2", // "General" // ], // "type": "string" // }, // "Version": { // "description": "The version of robot software suite.", // "enum": [ // "Kinetic", // "Melodic", // "Dashing" // ], // "type": "string" // } // }, // "required": [ // "Name" // ], // "type": "object" // } Description: "The robot software suite used by the robot application.", Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "name": { // Property: Name Description: "The name of robot software suite.", Type: types.StringType, Computed: true, }, "version": { // Property: Version Description: "The version of robot software suite.", Type: types.StringType, Computed: true, }, }, ), Computed: true, }, "sources": { // Property: Sources // CloudFormation resource type schema: // { // "description": "The sources of the robot application.", // "insertionOrder": false, // "items": { // "additionalProperties": false, // "properties": { // "Architecture": { // "description": "The architecture of robot application.", // "enum": [ // "X86_64", // "ARM64", // "ARMHF" // ], // "maxLength": 255, // "minLength": 1, // "type": "string" // }, // "S3Bucket": { // "description": "The Arn of the S3Bucket that stores the robot application source.", // "type": "string" // }, // "S3Key": { // "description": "The s3 key of robot application source.", // "type": "string" // } // }, // "required": [ // "S3Bucket", // "S3Key", // "Architecture" // ], // "type": "object" // }, // "type": "array" // } Description: "The sources of the robot application.", Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "architecture": { // Property: Architecture Description: "The architecture of robot application.", Type: types.StringType, Computed: true, }, "s3_bucket": { // Property: S3Bucket Description: "The Arn of the S3Bucket that stores the robot application source.", Type: types.StringType, Computed: true, }, "s3_key": { // Property: S3Key Description: "The s3 key of robot application source.", Type: types.StringType, Computed: true, }, }, tfsdk.ListNestedAttributesOptions{}, ), Computed: true, }, "tags": { // Property: Tags // CloudFormation resource type schema: // { // "additionalProperties": false, // "description": "A key-value pair to associate with a resource.", // "patternProperties": { // "": { // "description": "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.", // "maxLength": 256, // "minLength": 1, // "type": "string" // } // }, // "type": "object" // } Description: "A key-value pair to associate with a resource.", // Pattern: "" Type: types.MapType{ElemType: types.StringType}, 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::RoboMaker::RobotApplication", Version: 1, Attributes: attributes, } var opts DataSourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::RoboMaker::RobotApplication").WithTerraformTypeName("awscc_robomaker_robot_application") opts = opts.WithTerraformSchema(schema) opts = opts.WithAttributeNameMap(map[string]string{ "architecture": "Architecture", "arn": "Arn", "current_revision_id": "CurrentRevisionId", "environment": "Environment", "name": "Name", "robot_software_suite": "RobotSoftwareSuite", "s3_bucket": "S3Bucket", "s3_key": "S3Key", "sources": "Sources", "tags": "Tags", "version": "Version", }) singularDataSourceType, err := NewSingularDataSourceType(ctx, opts...) if err != nil { return nil, err } return singularDataSourceType, nil }