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
Pattern:
arn:[\w+=/,.@-]+:[\w+=/,.@-]+:[\w+=/,.@-]*:[0-9]*:[\w+=,.@-]+(/[\w+=,.@-]+)*
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
Pattern:
[a-zA-Z0-9_.\-]*
Minimum:
1
Maximum:
40
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
.
Fn::GetAtt
The Fn::GetAtt
intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.
For more information about using the Fn::GetAtt
intrinsic function, see Fn::GetAtt
.
ApplicationVersion
-
The simulation application version.
Arn
-
The Amazon Resource Name (ARN) of the simulation application version.
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", "Environment": "111122223333.dkr.ecr.us-west-2.amazonaws.com/my-sim-app:latest", "RobotSoftwareSuite": { "Name": "General" }, "SimulationSoftwareSuite": { "Name": "SimulationRuntime" } } }, "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" Environment: "111122223333.dkr.ecr.us-west-2.amazonaws.com/my-sim-app:latest" RobotSoftwareSuite: Name: "General" SimulationSoftwareSuite: Name: "SimulationRuntime" BasicSimulationApplicationVersion: Type: "AWS::RoboMaker::SimulationApplicationVersion" Properties: Application: !GetAtt BasicSimulationApplication.Arn CurrentRevisionId: !GetAtt BasicSimulationApplication.CurrentRevisionId Outputs: SimulationApplicationVersion: Value: !Ref BasicSimulationApplicationVersion