AWS::RoboMaker::RobotApplicationVersion - AWS CloudFormation
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 AWS 服务入门

AWS::RoboMaker::RobotApplicationVersion

AWS::RoboMaker::RobotApplicationVersion 资源创建一个 AWS RoboMaker 机器人版本。

语法

要在 AWS CloudFormation 模板中声明此实体,请使用以下语法:

JSON

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

YAML

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

属性

Application

机器人应用程序的应用程序信息。

必需:是

类型:字符串

最低1

最高1224

模式arn:.*

Update requires: Replacement

CurrentRevisionId

机器人应用程序的当前修订版 ID。如果您提供一个值,并且该值与最新修订版 ID 匹配,则将创建新版本。

必需:否

类型:字符串

最低1

最高40

模式[a-zA-Z0-9_.\-]*

Update requires: Replacement

返回值

Ref

如果将 AWS::RoboMaker::RobotApplicationVersion 资源的逻辑 ID 传递给内部 Ref 函数,则此函数将返回机器人应用程序版本的 Amazon 资源名称 (ARN),例如 arn:aws:robomaker:us-west-2:123456789012:robot-application/MyRobotApplication/1546541208251

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

示例

创建一个 AWS RoboMaker 机器人应用程序版本

以下示例创建一个机器人应用程序。

JSON

{ "Description": "RoboMaker RobotApplicationVersion example", "Resources": { "BasicRobotApplication": { "Type": "AWS::RoboMaker::RobotApplication", "Properties": { "Name": "MyRobotApplication", "Sources": [ { "S3Bucket": "my-bucket", "S3Key": "robot_bundle_x86.tar.gz", "Architecture": "ARMHF" } ], "RobotSoftwareSuite": { "Name": "ROS", "Version": "Kinetic" } } }, "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" Sources: - S3Bucket: "my-bucket" S3Key: "robot_bundle_x86.tar.gz" Architecture: "ARMHF" RobotSoftwareSuite: Name: "ROS" Version: "Kinetic" BasicRobotApplicationVersion: Type: "AWS::RoboMaker::RobotApplicationVersion" Properties: Application: !GetAtt BasicRobotApplication.Arn CurrentRevisionId: !GetAtt BasicRobotApplication.CurrentRevisionId Outputs: RobotApplicationVersion: Value: !Ref BasicRobotApplicationVersion