Skip to main content

simulation_applications

Creates, updates, deletes or gets a simulation_application resource or lists simulation_applications in a region

Overview

Namesimulation_applications
TypeResource
DescriptionThis schema is for testing purpose only.
Idawscc.robomaker.simulation_applications

Fields

NameDatatypeDescription
arnstring
namestringThe name of the simulation application.
current_revision_idstringThe current revision id.
rendering_engineobjectThe rendering engine for the simulation application.
robot_software_suiteobjectThe robot software suite used by the simulation application.
simulation_software_suiteobjectThe simulation software suite used by the simulation application.
sourcesarrayThe sources of the simulation application.
environmentstringThe URI of the Docker image for the robot application.
tagsobjectA key-value pair to associate with a resource.
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcesimulation_applicationsINSERTRobotSoftwareSuite, SimulationSoftwareSuite, region
delete_resourcesimulation_applicationsDELETEIdentifier, region
update_resourcesimulation_applicationsUPDATEIdentifier, PatchDocument, region
list_resourcessimulation_applications_list_onlySELECTregion
get_resourcesimulation_applicationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual simulation_application.

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

INSERT example

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

/*+ create */
INSERT INTO awscc.robomaker.simulation_applications (
RobotSoftwareSuite,
SimulationSoftwareSuite,
region
)
SELECT
'{{ robot_software_suite }}',
'{{ simulation_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 simulation_application resource, using stack-deploy.

/*+ update */
UPDATE awscc.robomaker.simulation_applications
SET PatchDocument = string('{{ {
"CurrentRevisionId": current_revision_id,
"RenderingEngine": rendering_engine,
"RobotSoftwareSuite": robot_software_suite,
"SimulationSoftwareSuite": simulation_software_suite,
"Sources": sources,
"Environment": environment,
"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.simulation_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 simulation_applications resource, the following permissions are required:

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