AWS CloudFormation
User Guide (Version )

AWS::RoboMaker::SimulationApplicationVersion

The AWS::RoboMaker::SimulationApplicationVersion resource creates a version of an AWS RoboMaker simulation application.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::RoboMaker::SimulationApplicationVersion", "Properties" : { "Application" : String, "CurrentRevisionId" : String } }

YAML

Type: AWS::RoboMaker::SimulationApplicationVersion Properties: Application: String CurrentRevisionId: String

Properties

Application

The application information for the simulation application.

Required: Yes

Type: String

Minimum: 1

Maximum: 1224

Pattern: arn:.*

Update requires: Replacement

CurrentRevisionId

The current revision id for the simulation application. If you provide a value and it matches the latest revision ID, a new version will be created.

Required: No

Type: String

Minimum: 1

Maximum: 40

Pattern: [a-zA-Z0-9_.\-]*

Update requires: Replacement

Return Values

Ref

When you pass the logical ID of an AWS::RoboMaker::SimulationApplicationVersion resource to the intrinsic Ref function, the function returns the Amazon Resource Name (ARN) of the simulation application version, such as arn:aws:robomaker:us-west-2:123456789012:simulation-application/MySimulationApplication/1546541201334.

For more information about using the Ref function, see Ref.

Examples

Create an AWS RoboMaker Simulation Application Version

The following example creates a simulation application version.

JSON

{ "Description": "RoboMaker SimulationApplicationVersion example", "Resources": { "BasicSimulationApplication": { "Type": "AWS::RoboMaker::SimulationApplication", "Properties": { "Name": "MySimulationApplication", "Sources": [ { "S3Bucket": "my-bucket", "S3Key": "my_simulation_bundle_x86.tar.gz", "Architecture": "X86_64" } ], "RobotSoftwareSuite": { "Name": "ROS", "Version": "Kinetic" }, "SimulationSoftwareSuite": { "Name": "Gazebo", "Version": "7" }, "RenderingEngine": { "Name": "OGRE", "Version": "1.x" } } }, "BasicSimulationApplicationVersion": { "Type": "AWS::RoboMaker::SimulationApplicationVersion", "Properties": { "Application": { "Fn::GetAtt" : [ "BasicSimulationApplication", "Arn" ] }, "CurrentRevisionId": { "Fn::GetAtt" : [ "BasicSimulationApplication", "CurrentRevisionId" ] } } } }, "Outputs": { "SimulationApplicationVersion": { "Value": "BasicSimulationApplicationVersion" } } }

YAML

--- Description: "RoboMaker SimulationApplicationVersion example" Resources: BasicSimulationApplication: Type: "AWS::RoboMaker::SimulationApplication" Properties: Name: "MySimulationApplication" Sources: - S3Bucket: "my-bucket" S3Key: "my_simulation_bundle_x86.tar.gz" Architecture: "X86_64" RobotSoftwareSuite: Name: "ROS" Version: "Kinetic" SimulationSoftwareSuite: Name: "Gazebo" Version: "7" RenderingEngine: Name: "OGRE" Version: "1.x" BasicSimulationApplicationVersion: Type: "AWS::RoboMaker::SimulationApplicationVersion" Properties: Application: !GetAtt BasicSimulationApplication.Arn CurrentRevisionId: !GetAtt BasicSimulationApplication.CurrentRevisionId Outputs: SimulationApplicationVersion: Value: !Ref BasicSimulationApplicationVersion