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::IdentityStore::Group
Idawscc.identitystore.groups

Fields

NameDatatypeDescription
descriptionstringA string containing the description of the group.
display_namestringA string containing the name of the group. This value is commonly displayed when the group is referenced.
group_idstringThe unique identifier for a group in the identity store.
identity_store_idstringThe globally unique identifier for the identity store.
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcegroupsINSERTIdentityStoreId, DisplayName, 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,
description,
display_name,
group_id,
identity_store_id
FROM awscc.identitystore.groups
WHERE
region = 'us-east-1' AND
Identifier = '{{ group_id }}|{{ identity_store_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.identitystore.groups (
DisplayName,
IdentityStoreId,
region
)
SELECT
'{{ display_name }}',
'{{ identity_store_id }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.identitystore.groups
SET PatchDocument = string('{{ {
"Description": description,
"DisplayName": display_name
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ group_id }}|{{ identity_store_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.identitystore.groups
WHERE
Identifier = '{{ group_id }}|{{ identity_store_id }}' AND
region = 'us-east-1';

Permissions

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

identitystore:CreateGroup,
identitystore:DescribeGroup