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

AWS::RoboMaker::SimulationApplicationVersion

AWS::RoboMaker::SimulationApplicationVersion 资源创建某个版本的 AWS RoboMaker 模拟应用程序。

语法

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

JSON

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

YAML

Type: AWS::RoboMaker::SimulationApplicationVersion 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::SimulationApplicationVersion 资源的逻辑 ID 传递给内部 Ref 函数,则此函数将返回模拟应用程序版本的 Amazon 资源名称 (ARN),例如 arn:aws:robomaker:us-west-2:123456789012:simulation-application/MySimulationApplication/1546541201334

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

示例

创建一个 AWS RoboMaker 模拟应用程序版本

以下示例创建一个模拟应用程序版本。

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