Skip to main content

resource_data_syncs

Creates, updates, deletes or gets a resource_data_sync resource or lists resource_data_syncs in a region

Overview

Nameresource_data_syncs
TypeResource
DescriptionResource Type definition for AWS::SSM::ResourceDataSync
Idaws.ssm.resource_data_syncs

Fields

NameDatatypeDescription
s3_destinationobject
kms_key_arnstring
sync_sourceobject
bucket_namestring
bucket_regionstring
sync_formatstring
sync_namestring
sync_typestring
bucket_prefixstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTSyncName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all resource_data_syncs in a region.

SELECT
region,
s3_destination,
kms_key_arn,
sync_source,
bucket_name,
bucket_region,
sync_format,
sync_name,
sync_type,
bucket_prefix
FROM aws.ssm.resource_data_syncs
WHERE region = 'us-east-1';

Gets all properties from an individual resource_data_sync.

SELECT
region,
s3_destination,
kms_key_arn,
sync_source,
bucket_name,
bucket_region,
sync_format,
sync_name,
sync_type,
bucket_prefix
FROM aws.ssm.resource_data_syncs
WHERE region = 'us-east-1' AND data__Identifier = '<SyncName>';

INSERT example

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

/*+ create */
INSERT INTO aws.ssm.resource_data_syncs (
,
region
)
SELECT
'{{ }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.ssm.resource_data_syncs
WHERE data__Identifier = '<SyncName>'
AND region = 'us-east-1';

Permissions

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

Create

ssm:CreateResourceDataSync,
ssm:ListResourceDataSync

Delete

ssm:ListResourceDataSync,
ssm:DeleteResourceDataSync

Update

ssm:ListResourceDataSync,
ssm:UpdateResourceDataSync

List

ssm:ListResourceDataSync

Read

ssm:ListResourceDataSync