UNPKG

@aws-sdk/client-cognito-identity-provider

Version:

AWS SDK for JavaScript Cognito Identity Provider Client for Node.js, Browser and React Native

280 lines (279 loc) • 16.1 kB
import { createAggregatedClient } from "@smithy/core/client"; import { CognitoIdentityProviderClient } from "./CognitoIdentityProviderClient"; import { AddCustomAttributesCommand, } from "./commands/AddCustomAttributesCommand"; import { AddUserPoolClientSecretCommand, } from "./commands/AddUserPoolClientSecretCommand"; import { AdminAddUserToGroupCommand, } from "./commands/AdminAddUserToGroupCommand"; import { AdminConfirmSignUpCommand, } from "./commands/AdminConfirmSignUpCommand"; import { AdminCreateUserCommand, } from "./commands/AdminCreateUserCommand"; import { AdminDeleteUserAttributesCommand, } from "./commands/AdminDeleteUserAttributesCommand"; import { AdminDeleteUserCommand, } from "./commands/AdminDeleteUserCommand"; import { AdminDisableProviderForUserCommand, } from "./commands/AdminDisableProviderForUserCommand"; import { AdminDisableUserCommand, } from "./commands/AdminDisableUserCommand"; import { AdminEnableUserCommand, } from "./commands/AdminEnableUserCommand"; import { AdminForgetDeviceCommand, } from "./commands/AdminForgetDeviceCommand"; import { AdminGetDeviceCommand, } from "./commands/AdminGetDeviceCommand"; import { AdminGetUserCommand, } from "./commands/AdminGetUserCommand"; import { AdminInitiateAuthCommand, } from "./commands/AdminInitiateAuthCommand"; import { AdminLinkProviderForUserCommand, } from "./commands/AdminLinkProviderForUserCommand"; import { AdminListDevicesCommand, } from "./commands/AdminListDevicesCommand"; import { AdminListGroupsForUserCommand, } from "./commands/AdminListGroupsForUserCommand"; import { AdminListUserAuthEventsCommand, } from "./commands/AdminListUserAuthEventsCommand"; import { AdminRemoveUserFromGroupCommand, } from "./commands/AdminRemoveUserFromGroupCommand"; import { AdminResetUserPasswordCommand, } from "./commands/AdminResetUserPasswordCommand"; import { AdminRespondToAuthChallengeCommand, } from "./commands/AdminRespondToAuthChallengeCommand"; import { AdminSetUserMFAPreferenceCommand, } from "./commands/AdminSetUserMFAPreferenceCommand"; import { AdminSetUserPasswordCommand, } from "./commands/AdminSetUserPasswordCommand"; import { AdminSetUserSettingsCommand, } from "./commands/AdminSetUserSettingsCommand"; import { AdminUpdateAuthEventFeedbackCommand, } from "./commands/AdminUpdateAuthEventFeedbackCommand"; import { AdminUpdateDeviceStatusCommand, } from "./commands/AdminUpdateDeviceStatusCommand"; import { AdminUpdateUserAttributesCommand, } from "./commands/AdminUpdateUserAttributesCommand"; import { AdminUserGlobalSignOutCommand, } from "./commands/AdminUserGlobalSignOutCommand"; import { AssociateSoftwareTokenCommand, } from "./commands/AssociateSoftwareTokenCommand"; import { ChangePasswordCommand, } from "./commands/ChangePasswordCommand"; import { CompleteWebAuthnRegistrationCommand, } from "./commands/CompleteWebAuthnRegistrationCommand"; import { ConfirmDeviceCommand, } from "./commands/ConfirmDeviceCommand"; import { ConfirmForgotPasswordCommand, } from "./commands/ConfirmForgotPasswordCommand"; import { ConfirmSignUpCommand, } from "./commands/ConfirmSignUpCommand"; import { CreateGroupCommand, } from "./commands/CreateGroupCommand"; import { CreateIdentityProviderCommand, } from "./commands/CreateIdentityProviderCommand"; import { CreateManagedLoginBrandingCommand, } from "./commands/CreateManagedLoginBrandingCommand"; import { CreateResourceServerCommand, } from "./commands/CreateResourceServerCommand"; import { CreateTermsCommand, } from "./commands/CreateTermsCommand"; import { CreateUserImportJobCommand, } from "./commands/CreateUserImportJobCommand"; import { CreateUserPoolClientCommand, } from "./commands/CreateUserPoolClientCommand"; import { CreateUserPoolCommand, } from "./commands/CreateUserPoolCommand"; import { CreateUserPoolDomainCommand, } from "./commands/CreateUserPoolDomainCommand"; import { CreateUserPoolReplicaCommand, } from "./commands/CreateUserPoolReplicaCommand"; import { DeleteGroupCommand, } from "./commands/DeleteGroupCommand"; import { DeleteIdentityProviderCommand, } from "./commands/DeleteIdentityProviderCommand"; import { DeleteManagedLoginBrandingCommand, } from "./commands/DeleteManagedLoginBrandingCommand"; import { DeleteResourceServerCommand, } from "./commands/DeleteResourceServerCommand"; import { DeleteTermsCommand, } from "./commands/DeleteTermsCommand"; import { DeleteUserAttributesCommand, } from "./commands/DeleteUserAttributesCommand"; import { DeleteUserCommand, } from "./commands/DeleteUserCommand"; import { DeleteUserPoolClientCommand, } from "./commands/DeleteUserPoolClientCommand"; import { DeleteUserPoolClientSecretCommand, } from "./commands/DeleteUserPoolClientSecretCommand"; import { DeleteUserPoolCommand, } from "./commands/DeleteUserPoolCommand"; import { DeleteUserPoolDomainCommand, } from "./commands/DeleteUserPoolDomainCommand"; import { DeleteUserPoolReplicaCommand, } from "./commands/DeleteUserPoolReplicaCommand"; import { DeleteWebAuthnCredentialCommand, } from "./commands/DeleteWebAuthnCredentialCommand"; import { DescribeIdentityProviderCommand, } from "./commands/DescribeIdentityProviderCommand"; import { DescribeManagedLoginBrandingByClientCommand, } from "./commands/DescribeManagedLoginBrandingByClientCommand"; import { DescribeManagedLoginBrandingCommand, } from "./commands/DescribeManagedLoginBrandingCommand"; import { DescribeResourceServerCommand, } from "./commands/DescribeResourceServerCommand"; import { DescribeRiskConfigurationCommand, } from "./commands/DescribeRiskConfigurationCommand"; import { DescribeTermsCommand, } from "./commands/DescribeTermsCommand"; import { DescribeUserImportJobCommand, } from "./commands/DescribeUserImportJobCommand"; import { DescribeUserPoolClientCommand, } from "./commands/DescribeUserPoolClientCommand"; import { DescribeUserPoolCommand, } from "./commands/DescribeUserPoolCommand"; import { DescribeUserPoolDomainCommand, } from "./commands/DescribeUserPoolDomainCommand"; import { ForgetDeviceCommand, } from "./commands/ForgetDeviceCommand"; import { ForgotPasswordCommand, } from "./commands/ForgotPasswordCommand"; import { GetCSVHeaderCommand, } from "./commands/GetCSVHeaderCommand"; import { GetDeviceCommand } from "./commands/GetDeviceCommand"; import { GetGroupCommand } from "./commands/GetGroupCommand"; import { GetIdentityProviderByIdentifierCommand, } from "./commands/GetIdentityProviderByIdentifierCommand"; import { GetLogDeliveryConfigurationCommand, } from "./commands/GetLogDeliveryConfigurationCommand"; import { GetSigningCertificateCommand, } from "./commands/GetSigningCertificateCommand"; import { GetTokensFromRefreshTokenCommand, } from "./commands/GetTokensFromRefreshTokenCommand"; import { GetUICustomizationCommand, } from "./commands/GetUICustomizationCommand"; import { GetUserAttributeVerificationCodeCommand, } from "./commands/GetUserAttributeVerificationCodeCommand"; import { GetUserAuthFactorsCommand, } from "./commands/GetUserAuthFactorsCommand"; import { GetUserCommand } from "./commands/GetUserCommand"; import { GetUserPoolMfaConfigCommand, } from "./commands/GetUserPoolMfaConfigCommand"; import { GlobalSignOutCommand, } from "./commands/GlobalSignOutCommand"; import { InitiateAuthCommand, } from "./commands/InitiateAuthCommand"; import { ListDevicesCommand, } from "./commands/ListDevicesCommand"; import { ListGroupsCommand, } from "./commands/ListGroupsCommand"; import { ListIdentityProvidersCommand, } from "./commands/ListIdentityProvidersCommand"; import { ListResourceServersCommand, } from "./commands/ListResourceServersCommand"; import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand"; import { ListTermsCommand } from "./commands/ListTermsCommand"; import { ListUserImportJobsCommand, } from "./commands/ListUserImportJobsCommand"; import { ListUserPoolClientsCommand, } from "./commands/ListUserPoolClientsCommand"; import { ListUserPoolClientSecretsCommand, } from "./commands/ListUserPoolClientSecretsCommand"; import { ListUserPoolReplicasCommand, } from "./commands/ListUserPoolReplicasCommand"; import { ListUserPoolsCommand, } from "./commands/ListUserPoolsCommand"; import { ListUsersCommand } from "./commands/ListUsersCommand"; import { ListUsersInGroupCommand, } from "./commands/ListUsersInGroupCommand"; import { ListWebAuthnCredentialsCommand, } from "./commands/ListWebAuthnCredentialsCommand"; import { ResendConfirmationCodeCommand, } from "./commands/ResendConfirmationCodeCommand"; import { RespondToAuthChallengeCommand, } from "./commands/RespondToAuthChallengeCommand"; import { RevokeTokenCommand, } from "./commands/RevokeTokenCommand"; import { SetLogDeliveryConfigurationCommand, } from "./commands/SetLogDeliveryConfigurationCommand"; import { SetRiskConfigurationCommand, } from "./commands/SetRiskConfigurationCommand"; import { SetUICustomizationCommand, } from "./commands/SetUICustomizationCommand"; import { SetUserMFAPreferenceCommand, } from "./commands/SetUserMFAPreferenceCommand"; import { SetUserPoolMfaConfigCommand, } from "./commands/SetUserPoolMfaConfigCommand"; import { SetUserSettingsCommand, } from "./commands/SetUserSettingsCommand"; import { SignUpCommand } from "./commands/SignUpCommand"; import { StartUserImportJobCommand, } from "./commands/StartUserImportJobCommand"; import { StartWebAuthnRegistrationCommand, } from "./commands/StartWebAuthnRegistrationCommand"; import { StopUserImportJobCommand, } from "./commands/StopUserImportJobCommand"; import { TagResourceCommand, } from "./commands/TagResourceCommand"; import { UntagResourceCommand, } from "./commands/UntagResourceCommand"; import { UpdateAuthEventFeedbackCommand, } from "./commands/UpdateAuthEventFeedbackCommand"; import { UpdateDeviceStatusCommand, } from "./commands/UpdateDeviceStatusCommand"; import { UpdateGroupCommand, } from "./commands/UpdateGroupCommand"; import { UpdateIdentityProviderCommand, } from "./commands/UpdateIdentityProviderCommand"; import { UpdateManagedLoginBrandingCommand, } from "./commands/UpdateManagedLoginBrandingCommand"; import { UpdateResourceServerCommand, } from "./commands/UpdateResourceServerCommand"; import { UpdateTermsCommand, } from "./commands/UpdateTermsCommand"; import { UpdateUserAttributesCommand, } from "./commands/UpdateUserAttributesCommand"; import { UpdateUserPoolClientCommand, } from "./commands/UpdateUserPoolClientCommand"; import { UpdateUserPoolCommand, } from "./commands/UpdateUserPoolCommand"; import { UpdateUserPoolDomainCommand, } from "./commands/UpdateUserPoolDomainCommand"; import { UpdateUserPoolReplicaCommand, } from "./commands/UpdateUserPoolReplicaCommand"; import { VerifySoftwareTokenCommand, } from "./commands/VerifySoftwareTokenCommand"; import { VerifyUserAttributeCommand, } from "./commands/VerifyUserAttributeCommand"; import { paginateAdminListGroupsForUser } from "./pagination/AdminListGroupsForUserPaginator"; import { paginateAdminListUserAuthEvents } from "./pagination/AdminListUserAuthEventsPaginator"; import { paginateListGroups } from "./pagination/ListGroupsPaginator"; import { paginateListIdentityProviders } from "./pagination/ListIdentityProvidersPaginator"; import { paginateListResourceServers } from "./pagination/ListResourceServersPaginator"; import { paginateListUserPoolClients } from "./pagination/ListUserPoolClientsPaginator"; import { paginateListUserPools } from "./pagination/ListUserPoolsPaginator"; import { paginateListUsersInGroup } from "./pagination/ListUsersInGroupPaginator"; import { paginateListUsers } from "./pagination/ListUsersPaginator"; const commands = { AddCustomAttributesCommand, AddUserPoolClientSecretCommand, AdminAddUserToGroupCommand, AdminConfirmSignUpCommand, AdminCreateUserCommand, AdminDeleteUserCommand, AdminDeleteUserAttributesCommand, AdminDisableProviderForUserCommand, AdminDisableUserCommand, AdminEnableUserCommand, AdminForgetDeviceCommand, AdminGetDeviceCommand, AdminGetUserCommand, AdminInitiateAuthCommand, AdminLinkProviderForUserCommand, AdminListDevicesCommand, AdminListGroupsForUserCommand, AdminListUserAuthEventsCommand, AdminRemoveUserFromGroupCommand, AdminResetUserPasswordCommand, AdminRespondToAuthChallengeCommand, AdminSetUserMFAPreferenceCommand, AdminSetUserPasswordCommand, AdminSetUserSettingsCommand, AdminUpdateAuthEventFeedbackCommand, AdminUpdateDeviceStatusCommand, AdminUpdateUserAttributesCommand, AdminUserGlobalSignOutCommand, AssociateSoftwareTokenCommand, ChangePasswordCommand, CompleteWebAuthnRegistrationCommand, ConfirmDeviceCommand, ConfirmForgotPasswordCommand, ConfirmSignUpCommand, CreateGroupCommand, CreateIdentityProviderCommand, CreateManagedLoginBrandingCommand, CreateResourceServerCommand, CreateTermsCommand, CreateUserImportJobCommand, CreateUserPoolCommand, CreateUserPoolClientCommand, CreateUserPoolDomainCommand, CreateUserPoolReplicaCommand, DeleteGroupCommand, DeleteIdentityProviderCommand, DeleteManagedLoginBrandingCommand, DeleteResourceServerCommand, DeleteTermsCommand, DeleteUserCommand, DeleteUserAttributesCommand, DeleteUserPoolCommand, DeleteUserPoolClientCommand, DeleteUserPoolClientSecretCommand, DeleteUserPoolDomainCommand, DeleteUserPoolReplicaCommand, DeleteWebAuthnCredentialCommand, DescribeIdentityProviderCommand, DescribeManagedLoginBrandingCommand, DescribeManagedLoginBrandingByClientCommand, DescribeResourceServerCommand, DescribeRiskConfigurationCommand, DescribeTermsCommand, DescribeUserImportJobCommand, DescribeUserPoolCommand, DescribeUserPoolClientCommand, DescribeUserPoolDomainCommand, ForgetDeviceCommand, ForgotPasswordCommand, GetCSVHeaderCommand, GetDeviceCommand, GetGroupCommand, GetIdentityProviderByIdentifierCommand, GetLogDeliveryConfigurationCommand, GetSigningCertificateCommand, GetTokensFromRefreshTokenCommand, GetUICustomizationCommand, GetUserCommand, GetUserAttributeVerificationCodeCommand, GetUserAuthFactorsCommand, GetUserPoolMfaConfigCommand, GlobalSignOutCommand, InitiateAuthCommand, ListDevicesCommand, ListGroupsCommand, ListIdentityProvidersCommand, ListResourceServersCommand, ListTagsForResourceCommand, ListTermsCommand, ListUserImportJobsCommand, ListUserPoolClientsCommand, ListUserPoolClientSecretsCommand, ListUserPoolReplicasCommand, ListUserPoolsCommand, ListUsersCommand, ListUsersInGroupCommand, ListWebAuthnCredentialsCommand, ResendConfirmationCodeCommand, RespondToAuthChallengeCommand, RevokeTokenCommand, SetLogDeliveryConfigurationCommand, SetRiskConfigurationCommand, SetUICustomizationCommand, SetUserMFAPreferenceCommand, SetUserPoolMfaConfigCommand, SetUserSettingsCommand, SignUpCommand, StartUserImportJobCommand, StartWebAuthnRegistrationCommand, StopUserImportJobCommand, TagResourceCommand, UntagResourceCommand, UpdateAuthEventFeedbackCommand, UpdateDeviceStatusCommand, UpdateGroupCommand, UpdateIdentityProviderCommand, UpdateManagedLoginBrandingCommand, UpdateResourceServerCommand, UpdateTermsCommand, UpdateUserAttributesCommand, UpdateUserPoolCommand, UpdateUserPoolClientCommand, UpdateUserPoolDomainCommand, UpdateUserPoolReplicaCommand, VerifySoftwareTokenCommand, VerifyUserAttributeCommand, }; const paginators = { paginateAdminListGroupsForUser, paginateAdminListUserAuthEvents, paginateListGroups, paginateListIdentityProviders, paginateListResourceServers, paginateListUserPoolClients, paginateListUserPools, paginateListUsers, paginateListUsersInGroup, }; export class CognitoIdentityProvider extends CognitoIdentityProviderClient { } createAggregatedClient(commands, CognitoIdentityProvider, { paginators });