Skip to main content

groups

Creates, updates, deletes or gets a group resource or lists groups in a region

Overview

Namegroups
TypeResource
DescriptionResource Type definition for AWS::Synthetics::Group
Idawscc.synthetics.groups

Fields

NameDatatypeDescription
namestringName of the group.
idstringId of the group.
tagsarray
resource_arnsarray
regionstringAWS region.

For more information, see AWS::Synthetics::Group.

Methods

NameResourceAccessible byRequired Params
create_resourcegroupsINSERTName, region
delete_resourcegroupsDELETEIdentifier, region
update_resourcegroupsUPDATEIdentifier, PatchDocument, region
list_resourcesgroups_list_onlySELECTregion
get_resourcegroupsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual group.

SELECT
region,
name,
id,
tags,
resource_arns
FROM awscc.synthetics.groups
WHERE
region = 'us-east-1' AND
Identifier = '{{ name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.synthetics.groups (
Name,
region
)
SELECT
'{{ name }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.synthetics.groups
SET PatchDocument = string('{{ {
"Tags": tags,
"ResourceArns": resource_arns
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ name }}';

DELETE example

/*+ delete */
DELETE FROM awscc.synthetics.groups
WHERE
Identifier = '{{ name }}' AND
region = 'us-east-1';

Permissions

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

synthetics:CreateGroup,
synthetics:AssociateResource,
synthetics:TagResource,
synthetics:GetGroup