Skip to content

GetGroupId

Source: src/AWS/IdentityCenter/GetGroupId.ts

Runtime binding for the GetGroupId operation (IAM action identitystore:GetGroupId), scoped to one Instance.

Resolves a group’s GroupId from a unique attribute (e.g. the display name) in the bound instance’s identity store. The instance’s IdentityStoreId is injected from the binding. Provide the implementation with Effect.provide(AWS.IdentityCenter.GetGroupIdHttp).

// init — bind the operation to the Identity Center instance
const getGroupId = yield* AWS.IdentityCenter.GetGroupId(instance);
// runtime
const { GroupId } = yield* getGroupId({
AlternateIdentifier: {
UniqueAttribute: {
AttributePath: "displayName",
AttributeValue: "platform-engineers",
},
},
});