Skip to main content

groups

Creates, updates, deletes, gets or lists a groups resource.

Overview

Namegroups
TypeResource
Idaws.synthetics.groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe ARN of the group. (pattern: <code>arn:(aws[a-zA-Z-]*)?:synthetics:[a-z]{2,4}(-[a-z]{2,4})?-[a-z]+-\d{1}:\d{12}:group:[0-9a-z]+</code>)
created_timestring (date-time)The date and time that the group was created.
idstringThe unique ID of the group.
last_modified_timestring (date-time)The date and time that the group was most recently updated.
namestringThe name of the group.
tagsobjectThe list of key-value pairs that are associated with the canary.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_groupselectgroup_identifier, regionReturns information about one group. Groups are a global resource, so you can use this operation from any Region.
list_groupsselectregionReturns a list of all groups in the account, displaying their names, unique IDs, and ARNs. The groups from all Regions are returned.
create_groupinsertregion, NameCreates a group which you can use to associate canaries with each other, including cross-Region canaries. Using groups can help you with managing and automating your canaries, and you can also view aggregated run results and statistics for all canaries in a group. Groups are global resources. When you create a group, it is replicated across Amazon Web Services Regions, and you can view it and add canaries to it from any Region. Although the group ARN format reflects the Region name where it was created, a group is not constrained to any Region. This means that you can put canaries from multiple Regions into the same group, and then use that group to view and manage all of those canaries in a single view. Groups are supported in all Regions except the Regions that are disabled by default. For more information about these Regions, see Enabling a Region. Each group can contain as many as 10 canaries. You can have as many as 20 groups in your account. Any single canary can be a member of up to 10 groups.
associate_resourceupdategroup_identifier, region, ResourceArnAssociates a canary with a group. Using groups can help you with managing and automating your canaries, and you can also view aggregated run results and statistics for all canaries in a group. You must run this operation in the Region where the canary exists.
delete_groupdeletegroup_identifier, regionDeletes a group. The group doesn't need to be empty to be deleted. If there are canaries in the group, they are not deleted when you delete the group. Groups are a global resource that appear in all Regions, but the request to delete a group must be made from its home Region. You can find the home Region of a group within its ARN.
disassociate_resourceexecgroup_identifier, region, ResourceArnRemoves a canary from a group. You must run this operation in the Region where the canary exists.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
group_identifierstringSpecifies the group. You can specify the group name, the ARN, or the group ID as the GroupIdentifier.
regionstringAWS region (default: us-east-1)

SELECT examples

Returns information about one group. Groups are a global resource, so you can use this operation from any Region.

SELECT
arn,
created_time,
id,
last_modified_time,
name,
tags
FROM aws.synthetics.groups
WHERE group_identifier = '{{ group_identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a group which you can use to associate canaries with each other, including cross-Region canaries. Using groups can help you with managing and automating your canaries, and you can also view aggregated run results and statistics for all canaries in a group. Groups are global resources. When you create a group, it is replicated across Amazon Web Services Regions, and you can view it and add canaries to it from any Region. Although the group ARN format reflects the Region name where it was created, a group is not constrained to any Region. This means that you can put canaries from multiple Regions into the same group, and then use that group to view and manage all of those canaries in a single view. Groups are supported in all Regions except the Regions that are disabled by default. For more information about these Regions, see Enabling a Region. Each group can contain as many as 10 canaries. You can have as many as 20 groups in your account. Any single canary can be a member of up to 10 groups.

INSERT INTO aws.synthetics.groups (
Name,
Tags,
region
)
SELECT
'{{ Name }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
group
;

UPDATE examples

Associates a canary with a group. Using groups can help you with managing and automating your canaries, and you can also view aggregated run results and statistics for all canaries in a group. You must run this operation in the Region where the canary exists.

UPDATE aws.synthetics.groups
SET
ResourceArn = '{{ ResourceArn }}'
WHERE
group_identifier = '{{ group_identifier }}' --required
AND region = '{{ region }}' --required
AND ResourceArn = '{{ ResourceArn }}' --required;

DELETE examples

Deletes a group. The group doesn't need to be empty to be deleted. If there are canaries in the group, they are not deleted when you delete the group. Groups are a global resource that appear in all Regions, but the request to delete a group must be made from its home Region. You can find the home Region of a group within its ARN.

DELETE FROM aws.synthetics.groups
WHERE group_identifier = '{{ group_identifier }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Removes a canary from a group. You must run this operation in the Region where the canary exists.

EXEC aws.synthetics.groups.disassociate_resource
@group_identifier='{{ group_identifier }}' --required,
@region='{{ region }}' --required
@@json=
'{
"ResourceArn": "{{ ResourceArn }}"
}'
;