Skip to main content

sync_jobs

Creates, updates, deletes or gets a sync_job resource or lists sync_jobs in a region

Overview

Namesync_jobs
TypeResource
DescriptionResource schema for AWS::IoTTwinMaker::SyncJob
Idawscc.iottwinmaker.sync_jobs

Fields

NameDatatypeDescription
workspace_idstringThe ID of the workspace.
sync_sourcestringThe source of the SyncJob.
sync_rolestringThe IAM Role that execute SyncJob.
creation_date_timestringThe date and time when the sync job was created.
arnstringThe ARN of the SyncJob.
statestringThe state of SyncJob.
tagsobjectA key-value pair to associate with a resource.
regionstringAWS region.

For more information, see AWS::IoTTwinMaker::SyncJob.

Methods

NameResourceAccessible byRequired Params
create_resourcesync_jobsINSERTWorkspaceId, SyncSource, SyncRole, region
delete_resourcesync_jobsDELETEIdentifier, region
list_resourcessync_jobs_list_onlySELECTregion
get_resourcesync_jobsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual sync_job.

SELECT
region,
workspace_id,
sync_source,
sync_role,
creation_date_time,
update_date_time,
arn,
state,
tags
FROM awscc.iottwinmaker.sync_jobs
WHERE
region = 'us-east-1' AND
Identifier = '{{ workspace_id }}|{{ sync_source }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.iottwinmaker.sync_jobs (
WorkspaceId,
SyncSource,
SyncRole,
region
)
SELECT
'{{ workspace_id }}',
'{{ sync_source }}',
'{{ sync_role }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.iottwinmaker.sync_jobs
WHERE
Identifier = '{{ workspace_id }}|{{ sync_source }}' AND
region = 'us-east-1';

Permissions

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

iam:PassRole,
iottwinmaker:CreateSyncJob,
iottwinmaker:GetSyncJob,
iottwinmaker:GetWorkspace,
iottwinmaker:ListTagsForResource,
iottwinmaker:TagResource