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

Methods

NameAccessible byRequired Params
create_resourceINSERTIdentityStoreId, DisplayName, 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,
description,
display_name,
group_id,
identity_store_id
FROM aws.identitystore.groups
WHERE region = 'us-east-1';

Gets all properties from an individual group.

SELECT
region,
description,
display_name,
group_id,
identity_store_id
FROM aws.identitystore.groups
WHERE region = 'us-east-1' AND data__Identifier = '<GroupId>|<IdentityStoreId>';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM aws.identitystore.groups
WHERE data__Identifier = '<GroupId|IdentityStoreId>'
AND region = 'us-east-1';

Permissions

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

Create

identitystore:CreateGroup,
identitystore:DescribeGroup

Read

identitystore:DescribeGroup

Update

identitystore:DescribeGroup,
identitystore:UpdateGroup

Delete

identitystore:DescribeGroup,
identitystore:DeleteGroup

List

identitystore:ListGroups