Skip to main content

groups

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

Overview

Namegroups
TypeResource
DescriptionThis schema provides construct and validation rules for AWS-XRay Group resource parameters.
Idaws.xray.groups

Fields

NameDatatypeDescription
filter_expressionstringThe filter expression defining criteria by which to group traces.
group_namestringThe case-sensitive name of the new group. Names must be unique.
group_arnstringThe ARN of the group that was generated on creation.
insights_configurationobject
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTGroupName, 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,
filter_expression,
group_name,
group_arn,
insights_configuration,
tags
FROM aws.xray.groups
WHERE region = 'us-east-1';

Gets all properties from an individual group.

SELECT
region,
filter_expression,
group_name,
group_arn,
insights_configuration,
tags
FROM aws.xray.groups
WHERE region = 'us-east-1' AND data__Identifier = '<GroupARN>';

INSERT example

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

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

DELETE example

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

Permissions

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

Create

xray:CreateGroup,
xray:TagResource

Read

xray:GetGroup,
xray:ListTagsForResource

Update

xray:UpdateGroup,
xray:TagResource,
xray:UntagResource,
xray:ListTagsForResource

Delete

xray:DeleteGroup

List

xray:GetGroups,
xray:ListTagsForResource