Skip to main content

robot_applications

Creates, updates, deletes or gets a robot_application resource or lists robot_applications in a region

Overview

Namerobot_applications
TypeResource
DescriptionThis schema is for testing purpose only.
Idawscc.robomaker.robot_applications

Fields

NameDatatypeDescription
namestringThe name of the robot application.
sourcesarrayThe sources of the robot application.
environmentstringThe URI of the Docker image for the robot application.
robot_software_suiteobjectInformation about a robot software suite.
current_revision_idstringThe revision ID of robot application.
arnstring
tagsobjectA key-value pair to associate with a resource.
regionstringAWS region.

For more information, see AWS::RoboMaker::RobotApplication.

Methods

NameResourceAccessible byRequired Params
create_resourcerobot_applicationsINSERTRobotSoftwareSuite, region
delete_resourcerobot_applicationsDELETEIdentifier, region
update_resourcerobot_applicationsUPDATEIdentifier, PatchDocument, region
list_resourcesrobot_applications_list_onlySELECTregion
get_resourcerobot_applicationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual robot_application.

SELECT
region,
name,
sources,
environment,
robot_software_suite,
current_revision_id,
arn,
tags
FROM awscc.robomaker.robot_applications
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new robot_application resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.robomaker.robot_applications (
RobotSoftwareSuite,
region
)
SELECT
'{{ robot_software_suite }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a robot_application resource, using stack-deploy.

/*+ update */
UPDATE awscc.robomaker.robot_applications
SET PatchDocument = string('{{ {
"Sources": sources,
"Environment": environment,
"RobotSoftwareSuite": robot_software_suite,
"CurrentRevisionId": current_revision_id,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.robomaker.robot_applications
WHERE
Identifier = '{{ arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the robot_applications resource, the following permissions are required:

robomaker:CreateRobotApplication,
robomaker:TagResource,
robomaker:UntagResource,
ecr:BatchGetImage,
ecr:GetAuthorizationToken,
ecr:BatchCheckLayerAvailability,
ecr-public:GetAuthorizationToken,
sts:GetServiceBearerToken