Skip to content
GitHubXDiscord

Group

The Group resource lets you manage AWS IdentityStore Groups for organizing users and managing their permissions within your AWS environment.

Create a basic IdentityStore group with a display name and a description:

import AWS from "alchemy/aws/control";
const basicGroup = await AWS.IdentityStore.Group("basicGroup", {
DisplayName: "Developers",
Description: "Group for all application developers",
IdentityStoreId: "identitystore-1234567890"
});

Configure an IdentityStore group with additional properties such as adopting an existing resource:

const advancedGroup = await AWS.IdentityStore.Group("advancedGroup", {
DisplayName: "Admins",
Description: "Group for administrative users",
IdentityStoreId: "identitystore-1234567890",
adopt: true // Adopts the existing group if it already exists
});

Create a group specifically for a project team with a detailed description:

const projectTeamGroup = await AWS.IdentityStore.Group("projectTeamGroup", {
DisplayName: "Project Alpha Team",
Description: "Group for the Alpha project team members",
IdentityStoreId: "identitystore-1234567890"
});

Create a group and manage it dynamically through updates:

const dynamicGroup = await AWS.IdentityStore.Group("dynamicGroup", {
DisplayName: "Dynamic Group",
IdentityStoreId: "identitystore-1234567890"
});
// Later update the group description
await AWS.IdentityStore.Group("dynamicGroup", {
Description: "Updated description for dynamic group",
IdentityStoreId: "identitystore-1234567890"
});