Skip to content

CreateUser

Source: src/AWS/IdentityCenter/CreateUser.ts

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

Creates a user in the bound instance’s identity store — e.g. a just-in-time provisioning Lambda mirroring users from an external HR system. The instance’s IdentityStoreId is injected from the binding. Provide the implementation with Effect.provide(AWS.IdentityCenter.CreateUserHttp).

// init — bind the operation to the Identity Center instance
const createUser = yield* AWS.IdentityCenter.CreateUser(instance);
// runtime
const { UserId } = yield* createUser({
UserName: "jdoe",
DisplayName: "Jane Doe",
Name: { GivenName: "Jane", FamilyName: "Doe" },
Emails: [{ Value: "jdoe@example.com", Primary: true }],
});