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
Idaws.synthetics.groups

Fields

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

Methods

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

SELECT examples

Gets all groups in a region.

SELECT
region,
name,
id,
tags,
resource_arns
FROM aws.synthetics.groups
WHERE region = 'us-east-1';

Gets all properties from an individual group.

SELECT
region,
name,
id,
tags,
resource_arns
FROM aws.synthetics.groups
WHERE region = 'us-east-1' AND data__Identifier = '<Name>';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM aws.synthetics.groups
WHERE data__Identifier = '<Name>'
AND region = 'us-east-1';

Permissions

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

Create

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

Update

synthetics:AssociateResource,
synthetics:DisassociateResource,
synthetics:TagResource,
synthetics:UntagResource,
synthetics:GetGroup,
synthetics:ListGroupResources

Read

synthetics:GetGroup,
synthetics:ListTagsForResource,
synthetics:ListGroupResources

Delete

synthetics:DeleteGroup,
synthetics:GetGroup

List

synthetics:ListGroups