API Reference
    Preparing search index...
    MigrateUserTriggerSchema: ZodObject<
        extendShape<
            {
                callerContext: ZodObject<
                    { awsSdkVersion: ZodString; clientId: ZodString },
                    "strip",
                    ZodTypeAny,
                    { awsSdkVersion: string; clientId: string },
                    { awsSdkVersion: string; clientId: string },
                >;
                region: ZodString;
                request: ZodObject<{}, "strip", ZodTypeAny, {}, {}>;
                response: ZodObject<{}, "strip", ZodTypeAny, {}, {}>;
                triggerSource: ZodString;
                userName: ZodOptional<ZodString>;
                userPoolId: ZodString;
                version: ZodString;
            },
            {
                request: ZodObject<
                    {
                        clientMetadata: ZodOptional<ZodRecord<ZodString, ZodString>>;
                        password: ZodString;
                        validationData: ZodOptional<ZodRecord<ZodString, ZodString>>;
                    },
                    "strip",
                    ZodTypeAny,
                    {
                        clientMetadata?: Record<string, string>;
                        password: string;
                        validationData?: Record<string, string>;
                    },
                    {
                        clientMetadata?: Record<string, string>;
                        password: string;
                        validationData?: Record<string, string>;
                    },
                >;
                response: ZodObject<
                    {
                        desiredDeliveryMediums: ZodNullable<ZodArray<ZodString, "many">>;
                        enableSMSMFA: ZodNullable<ZodBoolean>;
                        finalUserStatus: ZodNullable<ZodString>;
                        forceAliasCreation: ZodNullable<ZodBoolean>;
                        messageAction: ZodNullable<ZodString>;
                        userAttributes: ZodNullable<ZodRecord<ZodString, ZodString>>;
                    },
                    "strip",
                    ZodTypeAny,
                    {
                        desiredDeliveryMediums: null
                        | string[];
                        enableSMSMFA: null | boolean;
                        finalUserStatus: null | string;
                        forceAliasCreation: null | boolean;
                        messageAction: null | string;
                        userAttributes: null | Record<string, string>;
                    },
                    {
                        desiredDeliveryMediums: null
                        | string[];
                        enableSMSMFA: null | boolean;
                        finalUserStatus: null | string;
                        forceAliasCreation: null | boolean;
                        messageAction: null | string;
                        userAttributes: null | Record<string, string>;
                    },
                >;
                userName: ZodString;
            },
        >,
        "strip",
        ZodTypeAny,
        {
            callerContext: { awsSdkVersion: string; clientId: string };
            region: string;
            request: {
                clientMetadata?: Record<string, string>;
                password: string;
                validationData?: Record<string, string>;
            };
            response: {
                desiredDeliveryMediums: null
                | string[];
                enableSMSMFA: null | boolean;
                finalUserStatus: null | string;
                forceAliasCreation: null | boolean;
                messageAction: null | string;
                userAttributes: null | Record<string, string>;
            };
            triggerSource: string;
            userName: string;
            userPoolId: string;
            version: string;
        },
        {
            callerContext: { awsSdkVersion: string; clientId: string };
            region: string;
            request: {
                clientMetadata?: Record<string, string>;
                password: string;
                validationData?: Record<string, string>;
            };
            response: {
                desiredDeliveryMediums: null
                | string[];
                enableSMSMFA: null | boolean;
                finalUserStatus: null | string;
                forceAliasCreation: null | boolean;
                messageAction: null | string;
                userAttributes: null | Record<string, string>;
            };
            triggerSource: string;
            userName: string;
            userPoolId: string;
            version: string;
        },
    > = ...

    A zod schema for a Cognito Migrate User trigger event.

    {
    "version": "1",
    "triggerSource": "UserMigration_Authentication",
    "region": "us-east-1",
    "userPoolId": "us-east-1_ABC123",
    "userName": "johndoe",
    "callerContext": {
    "awsSdkVersion": "2.814.0",
    "clientId": "client123"
    },
    "request": {
    "password": "string",
    "validationData": { "key": "value" },
    "clientMetadata": { "key": "value" }
    },
    "response": {
    "userAttributes": null,
    "finalUserStatus": null,
    "messageAction": null,
    "desiredDeliveryMediums": null,
    "forceAliasCreation": null,
    "enableSMSMFA": null
    }
    }