// 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_simulation_application", simulationApplicationDataSourceType) } // simulationApplicationDataSourceType returns the Terraform awscc_robomaker_simulation_application data source type. // This Terraform data source type corresponds to the CloudFormation AWS::RoboMaker::SimulationApplication resource type. func simulationApplicationDataSourceType(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 current revision id.", // "type": "string" // } Description: "The current revision id.", 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 simulation application.", // "maxLength": 255, // "minLength": 1, // "pattern": "[a-zA-Z0-9_\\-]*", // "type": "string" // } Description: "The name of the simulation application.", Type: types.StringType, Computed: true, }, "rendering_engine": { // Property: RenderingEngine // CloudFormation resource type schema: // { // "additionalProperties": false, // "description": "The rendering engine for the simulation application.", // "properties": { // "Name": { // "description": "The name of the rendering engine.", // "enum": [ // "OGRE" // ], // "type": "string" // }, // "Version": { // "description": "The version of the rendering engine.", // "pattern": "1.x", // "type": "string" // } // }, // "required": [ // "Name", // "Version" // ], // "type": "object" // } Description: "The rendering engine for the simulation application.", Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "name": { // Property: Name Description: "The name of the rendering engine.", Type: types.StringType, Computed: true, }, "version": { // Property: Version Description: "The version of the rendering engine.", Type: types.StringType, Computed: true, }, }, ), Computed: true, }, "robot_software_suite": { // Property: RobotSoftwareSuite // CloudFormation resource type schema: // { // "additionalProperties": false, // "description": "The robot software suite used by the simulation application.", // "properties": { // "Name": { // "description": "The name of the robot software suite.", // "enum": [ // "ROS", // "ROS2", // "General" // ], // "type": "string" // }, // "Version": { // "description": "The version of the robot software suite.", // "enum": [ // "Kinetic", // "Melodic", // "Dashing", // "Foxy" // ], // "type": "string" // } // }, // "required": [ // "Name" // ], // "type": "object" // } Description: "The robot software suite used by the simulation application.", Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "name": { // Property: Name Description: "The name of the robot software suite.", Type: types.StringType, Computed: true, }, "version": { // Property: Version Description: "The version of the robot software suite.", Type: types.StringType, Computed: true, }, }, ), Computed: true, }, "simulation_software_suite": { // Property: SimulationSoftwareSuite // CloudFormation resource type schema: // { // "additionalProperties": false, // "description": "The simulation software suite used by the simulation application.", // "properties": { // "Name": { // "description": "The name of the simulation software suite.", // "enum": [ // "Gazebo", // "RosbagPlay", // "SimulationRuntime" // ], // "type": "string" // }, // "Version": { // "description": "The version of the simulation software suite.", // "enum": [ // "7", // "9", // "11", // "Kinetic", // "Melodic", // "Dashing", // "Foxy" // ], // "type": "string" // } // }, // "required": [ // "Name" // ], // "type": "object" // } Description: "The simulation software suite used by the simulation application.", Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "name": { // Property: Name Description: "The name of the simulation software suite.", Type: types.StringType, Computed: true, }, "version": { // Property: Version Description: "The version of the simulation software suite.", Type: types.StringType, Computed: true, }, }, ), Computed: true, }, "sources": { // Property: Sources // CloudFormation resource type schema: // { // "description": "The sources of the simulation application.", // "insertionOrder": false, // "items": { // "additionalProperties": false, // "description": "Information about a source configuration.", // "properties": { // "Architecture": { // "description": "The target processor architecture for the application.", // "enum": [ // "X86_64", // "ARM64", // "ARMHF" // ], // "type": "string" // }, // "S3Bucket": { // "description": "The Amazon S3 bucket name.", // "pattern": "[a-z0-9][a-z0-9.\\-]*[a-z0-9]", // "type": "string" // }, // "S3Key": { // "description": "The s3 object key.", // "maxLength": 1024, // "minLength": 1, // "type": "string" // } // }, // "required": [ // "S3Bucket", // "S3Key", // "Architecture" // ], // "type": "object" // }, // "type": "array" // } Description: "The sources of the simulation application.", Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "architecture": { // Property: Architecture Description: "The target processor architecture for the application.", Type: types.StringType, Computed: true, }, "s3_bucket": { // Property: S3Bucket Description: "The Amazon S3 bucket name.", Type: types.StringType, Computed: true, }, "s3_key": { // Property: S3Key Description: "The s3 object key.", 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::SimulationApplication", Version: 1, Attributes: attributes, } var opts DataSourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::RoboMaker::SimulationApplication").WithTerraformTypeName("awscc_robomaker_simulation_application") opts = opts.WithTerraformSchema(schema) opts = opts.WithAttributeNameMap(map[string]string{ "architecture": "Architecture", "arn": "Arn", "current_revision_id": "CurrentRevisionId", "environment": "Environment", "name": "Name", "rendering_engine": "RenderingEngine", "robot_software_suite": "RobotSoftwareSuite", "s3_bucket": "S3Bucket", "s3_key": "S3Key", "simulation_software_suite": "SimulationSoftwareSuite", "sources": "Sources", "tags": "Tags", "version": "Version", }) singularDataSourceType, err := NewSingularDataSourceType(ctx, opts...) if err != nil { return nil, err } return singularDataSourceType, nil }