AWS::RoboMaker::Robot
AWS::RoboMaker::RobotApplication
资源创建一个 AWS RoboMaker 机器人。
语法
要在 AWS CloudFormation 模板中声明此实体,请使用以下语法:
JSON
{ "Type" : "AWS::RoboMaker::Robot", "Properties" : { "Architecture" :
String
, "Fleet" :String
, "GreengrassGroupId" :String
, "Name" :String
, "Tags" :Json
} }
YAML
Type: AWS::RoboMaker::Robot Properties: Architecture:
String
Fleet:String
GreengrassGroupId:String
Name:String
Tags:Json
属性
Architecture
-
机器人的架构。
必需:是
类型:字符串
允许的值:
ARM64 | ARMHF | X86_64
Update requires: Replacement
Fleet
-
机器人将注册到的队列的 Amazon 资源名称 (ARN)。
必需:否
类型:字符串
Update requires: Replacement
GreengrassGroupId
-
与机器人关联的 Greengrass 组。
必需:是
类型:字符串
最低:
1
最高:
1224
模式:
.*
Update requires: Replacement
Name
-
机器人的名称。
必需:否
类型:字符串
最低:
1
最高:
255
模式:
[a-zA-Z0-9_\-]*
Update requires: Replacement
Tags
-
包含附加到机器人的标签键和标签值的映射。
必需:否
类型:Json
Update requires: No interruption
返回值
Ref
如果将 AWS::RoboMaker::Robot
资源的逻辑 ID 传递给内部 Ref
函数,则此函数将返回机器人应用程序的 Amazon 资源名称 (ARN),例如 arn:aws:robomaker:us-west-2:123456789012:robot/MyRobot/1544035373264
。
For more information about using the Ref
function, see Ref.
示例
创建一个 AWS RoboMaker 机器人
以下示例创建一个机器人。
JSON
{ "Description": "RoboMaker Robot example", "Resources": { "BasicFleet": { "Type": "AWS::RoboMaker::Fleet", "Properties": { "Name": "MyFleet" } }, "BasicRobot": { "Type": "AWS::RoboMaker::Robot", "Properties": { "Name": "MyRobot", "GreengrassGroupId": "51229986-abdc-4ca6-94f8-04735a0c9f07", "Architecture": "ARMHF", "Fleet": { "Fn::GetAtt" : [ "BasicFleet", "Arn" ] }, "Tags": { "Name": "BasicRobot", "Type": "CFN" } } } }, "Outputs": { "Robot": { "Value": "BasicRobot" } } }
YAML
--- Description: "RoboMaker Robot example" Resources: BasicFleet: Type: "AWS::RoboMaker::Fleet" Properties: Name: "MyFleet" BasicRobot: Type: "AWS::RoboMaker::Robot" Properties: Name: "MyRobot" GreengrassGroupId: "51229986-abdc-4ca6-94f8-04735a0c9f07" Architecture: "ARMHF" Fleet: !GetAtt BasicFleet.Arn Tags: "Name" : "BasicRobot" "Type" : "CFN" Outputs: Robot: Value: !Ref BasicRobot