AWS::RoboMaker::RobotApplicationVersion
The AWS::RoboMaker::RobotApplicationVersion resource creates an Amazon RoboMaker robot version.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::RoboMaker::RobotApplicationVersion", "Properties" : { "Application" :String, "CurrentRevisionId" :String} }
YAML
Type: AWS::RoboMaker::RobotApplicationVersion Properties: Application:StringCurrentRevisionId:String
Properties
Application-
The application information for the robot application.
Required: Yes
Type: String
Minimum:
1Maximum:
1224Pattern:
arn:.*Update requires: Replacement
CurrentRevisionId-
The current revision id for the robot application. If you provide a value and it matches the latest revision ID, a new version will be created.
Required: No
Type: String
Minimum:
1Maximum:
40Pattern:
[a-zA-Z0-9_.\-]*Update requires: Replacement
Return values
Ref
When you pass the logical ID of an AWS::RoboMaker::RobotApplicationVersion
resource to the intrinsic Ref function, the function returns the Amazon
Resource Name (ARN) of the robot application version, such as
arn:aws:robomaker:us-west-2:123456789012:robot-application/MyRobotApplication/1546541208251.
For more information about using the Reffunction, see Ref.
Fn::GetAtt
The Fn::GetAttintrinsic 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::GetAttintrinsic function, see Fn::GetAtt.
Examples
Create an Amazon RoboMaker Robot Application Version
The following example creates a robot application.
JSON
{ "Description": "RoboMaker RobotApplicationVersion example", "Resources": { "BasicRobotApplication": { "Type": "AWS::RoboMaker::RobotApplication", "Properties": { "Name": "MyRobotApplication", "Environment": "111122223333.dkr.ecr.us-west-2.amazonaws.com/my-robot-app:latest", "RobotSoftwareSuite": { "Name": "General" } } }, "BasicRobotApplicationVersion": { "Type": "AWS::RoboMaker::RobotApplicationVersion", "Properties": { "Application": { "Fn::GetAtt" : [ "BasicRobotApplication", "Arn" ] }, "CurrentRevisionId": { "Fn::GetAtt" : [ "BasicRobotApplication", "CurrentRevisionId" ] } } } }, "Outputs": { "RobotApplicationVersion": { "Value": "BasicRobotApplicationVersion" } } }
YAML
--- Description: "RoboMaker RobotApplicationVersion example" Resources: BasicRobotApplication: Type: "AWS::RoboMaker::RobotApplication" Properties: Name: "MyRobotApplication" Environment: "111122223333.dkr.ecr.us-west-2.amazonaws.com/my-robot-app:latest" RobotSoftwareSuite: Name: "General" BasicRobotApplicationVersion: Type: "AWS::RoboMaker::RobotApplicationVersion" Properties: Application: !GetAtt BasicRobotApplication.Arn CurrentRevisionId: !GetAtt BasicRobotApplication.CurrentRevisionId Outputs: RobotApplicationVersion: Value: !Ref BasicRobotApplicationVersion