Skip to main content

group_memberships

Creates, updates, deletes or gets a group_membership resource or lists group_memberships in a region

Overview

Namegroup_memberships
TypeResource
DescriptionResource Type Definition for AWS:IdentityStore::GroupMembership
Idawscc.identitystore.group_memberships

Fields

NameDatatypeDescription
group_idstringThe unique identifier for a group in the identity store.
identity_store_idstringThe globally unique identifier for the identity store.
member_idobjectAn object containing the identifier of a group member.
membership_idstringThe identifier for a GroupMembership in the identity store.
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcegroup_membershipsINSERTIdentityStoreId, GroupId, MemberId, region
delete_resourcegroup_membershipsDELETEIdentifier, region
list_resourcesgroup_memberships_list_onlySELECTregion
get_resourcegroup_membershipsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual group_membership.

SELECT
region,
group_id,
identity_store_id,
member_id,
membership_id
FROM awscc.identitystore.group_memberships
WHERE
region = '{{ region }}' AND
Identifier = '{{ membership_id }}|{{ identity_store_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.identitystore.group_memberships (
GroupId,
IdentityStoreId,
MemberId,
region
)
SELECT
'{{ group_id }}',
'{{ identity_store_id }}',
'{{ member_id }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.identitystore.group_memberships
WHERE
Identifier = '{{ membership_id }}|{{ identity_store_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

identitystore:CreateGroupMembership,
identitystore:DescribeGroupMembership