amazon-cognito-identity-js-typescript
Version:
Amazon Cognito Identity Provider JavaScript SDK
2,388 lines (2,387 loc) • 510 kB
JavaScript
// AWS SDK for JavaScript v2.6.4
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
module.exports={
"version": "2.0",
"metadata": {
"apiVersion": "2014-06-30",
"endpointPrefix": "cognito-identity",
"jsonVersion": "1.1",
"protocol": "json",
"serviceFullName": "Amazon Cognito Identity",
"signatureVersion": "v4",
"targetPrefix": "AWSCognitoIdentityService"
},
"operations": {
"CreateIdentityPool": {
"input": {
"type": "structure",
"required": [
"IdentityPoolName",
"AllowUnauthenticatedIdentities"
],
"members": {
"IdentityPoolName": {},
"AllowUnauthenticatedIdentities": {
"type": "boolean"
},
"SupportedLoginProviders": {
"shape": "S4"
},
"DeveloperProviderName": {},
"OpenIdConnectProviderARNs": {
"shape": "S8"
},
"CognitoIdentityProviders": {
"shape": "Sa"
},
"SamlProviderARNs": {
"shape": "Se"
}
}
},
"output": {
"shape": "Sf"
}
},
"DeleteIdentities": {
"input": {
"type": "structure",
"required": [
"IdentityIdsToDelete"
],
"members": {
"IdentityIdsToDelete": {
"type": "list",
"member": {}
}
}
},
"output": {
"type": "structure",
"members": {
"UnprocessedIdentityIds": {
"type": "list",
"member": {
"type": "structure",
"members": {
"IdentityId": {},
"ErrorCode": {}
}
}
}
}
}
},
"DeleteIdentityPool": {
"input": {
"type": "structure",
"required": [
"IdentityPoolId"
],
"members": {
"IdentityPoolId": {}
}
}
},
"DescribeIdentity": {
"input": {
"type": "structure",
"required": [
"IdentityId"
],
"members": {
"IdentityId": {}
}
},
"output": {
"shape": "Sq"
}
},
"DescribeIdentityPool": {
"input": {
"type": "structure",
"required": [
"IdentityPoolId"
],
"members": {
"IdentityPoolId": {}
}
},
"output": {
"shape": "Sf"
}
},
"GetCredentialsForIdentity": {
"input": {
"type": "structure",
"required": [
"IdentityId"
],
"members": {
"IdentityId": {},
"Logins": {
"shape": "Sv"
},
"CustomRoleArn": {}
}
},
"output": {
"type": "structure",
"members": {
"IdentityId": {},
"Credentials": {
"type": "structure",
"members": {
"AccessKeyId": {},
"SecretKey": {},
"SessionToken": {},
"Expiration": {
"type": "timestamp"
}
}
}
}
}
},
"GetId": {
"input": {
"type": "structure",
"required": [
"IdentityPoolId"
],
"members": {
"AccountId": {},
"IdentityPoolId": {},
"Logins": {
"shape": "Sv"
}
}
},
"output": {
"type": "structure",
"members": {
"IdentityId": {}
}
}
},
"GetIdentityPoolRoles": {
"input": {
"type": "structure",
"required": [
"IdentityPoolId"
],
"members": {
"IdentityPoolId": {}
}
},
"output": {
"type": "structure",
"members": {
"IdentityPoolId": {},
"Roles": {
"shape": "S17"
}
}
}
},
"GetOpenIdToken": {
"input": {
"type": "structure",
"required": [
"IdentityId"
],
"members": {
"IdentityId": {},
"Logins": {
"shape": "Sv"
}
}
},
"output": {
"type": "structure",
"members": {
"IdentityId": {},
"Token": {}
}
}
},
"GetOpenIdTokenForDeveloperIdentity": {
"input": {
"type": "structure",
"required": [
"IdentityPoolId",
"Logins"
],
"members": {
"IdentityPoolId": {},
"IdentityId": {},
"Logins": {
"shape": "Sv"
},
"TokenDuration": {
"type": "long"
}
}
},
"output": {
"type": "structure",
"members": {
"IdentityId": {},
"Token": {}
}
}
},
"ListIdentities": {
"input": {
"type": "structure",
"required": [
"IdentityPoolId",
"MaxResults"
],
"members": {
"IdentityPoolId": {},
"MaxResults": {
"type": "integer"
},
"NextToken": {},
"HideDisabled": {
"type": "boolean"
}
}
},
"output": {
"type": "structure",
"members": {
"IdentityPoolId": {},
"Identities": {
"type": "list",
"member": {
"shape": "Sq"
}
},
"NextToken": {}
}
}
},
"ListIdentityPools": {
"input": {
"type": "structure",
"required": [
"MaxResults"
],
"members": {
"MaxResults": {
"type": "integer"
},
"NextToken": {}
}
},
"output": {
"type": "structure",
"members": {
"IdentityPools": {
"type": "list",
"member": {
"type": "structure",
"members": {
"IdentityPoolId": {},
"IdentityPoolName": {}
}
}
},
"NextToken": {}
}
}
},
"LookupDeveloperIdentity": {
"input": {
"type": "structure",
"required": [
"IdentityPoolId"
],
"members": {
"IdentityPoolId": {},
"IdentityId": {},
"DeveloperUserIdentifier": {},
"MaxResults": {
"type": "integer"
},
"NextToken": {}
}
},
"output": {
"type": "structure",
"members": {
"IdentityId": {},
"DeveloperUserIdentifierList": {
"type": "list",
"member": {}
},
"NextToken": {}
}
}
},
"MergeDeveloperIdentities": {
"input": {
"type": "structure",
"required": [
"SourceUserIdentifier",
"DestinationUserIdentifier",
"DeveloperProviderName",
"IdentityPoolId"
],
"members": {
"SourceUserIdentifier": {},
"DestinationUserIdentifier": {},
"DeveloperProviderName": {},
"IdentityPoolId": {}
}
},
"output": {
"type": "structure",
"members": {
"IdentityId": {}
}
}
},
"SetIdentityPoolRoles": {
"input": {
"type": "structure",
"required": [
"IdentityPoolId",
"Roles"
],
"members": {
"IdentityPoolId": {},
"Roles": {
"shape": "S17"
}
}
}
},
"UnlinkDeveloperIdentity": {
"input": {
"type": "structure",
"required": [
"IdentityId",
"IdentityPoolId",
"DeveloperProviderName",
"DeveloperUserIdentifier"
],
"members": {
"IdentityId": {},
"IdentityPoolId": {},
"DeveloperProviderName": {},
"DeveloperUserIdentifier": {}
}
}
},
"UnlinkIdentity": {
"input": {
"type": "structure",
"required": [
"IdentityId",
"Logins",
"LoginsToRemove"
],
"members": {
"IdentityId": {},
"Logins": {
"shape": "Sv"
},
"LoginsToRemove": {
"shape": "Sr"
}
}
}
},
"UpdateIdentityPool": {
"input": {
"shape": "Sf"
},
"output": {
"shape": "Sf"
}
}
},
"shapes": {
"S4": {
"type": "map",
"key": {},
"value": {}
},
"S8": {
"type": "list",
"member": {}
},
"Sa": {
"type": "list",
"member": {
"type": "structure",
"members": {
"ProviderName": {},
"ClientId": {}
}
}
},
"Se": {
"type": "list",
"member": {}
},
"Sf": {
"type": "structure",
"required": [
"IdentityPoolId",
"IdentityPoolName",
"AllowUnauthenticatedIdentities"
],
"members": {
"IdentityPoolId": {},
"IdentityPoolName": {},
"AllowUnauthenticatedIdentities": {
"type": "boolean"
},
"SupportedLoginProviders": {
"shape": "S4"
},
"DeveloperProviderName": {},
"OpenIdConnectProviderARNs": {
"shape": "S8"
},
"CognitoIdentityProviders": {
"shape": "Sa"
},
"SamlProviderARNs": {
"shape": "Se"
}
}
},
"Sq": {
"type": "structure",
"members": {
"IdentityId": {},
"Logins": {
"shape": "Sr"
},
"CreationDate": {
"type": "timestamp"
},
"LastModifiedDate": {
"type": "timestamp"
}
}
},
"Sr": {
"type": "list",
"member": {}
},
"Sv": {
"type": "map",
"key": {},
"value": {}
},
"S17": {
"type": "map",
"key": {},
"value": {}
}
}
}
},{}],2:[function(require,module,exports){
module.exports={
"version": "2.0",
"metadata": {
"apiVersion": "2016-04-18",
"endpointPrefix": "cognito-idp",
"jsonVersion": "1.1",
"protocol": "json",
"serviceFullName": "Amazon Cognito Identity Provider",
"signatureVersion": "v4",
"targetPrefix": "AWSCognitoIdentityProviderService"
},
"operations": {
"AddCustomAttributes": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"CustomAttributes"
],
"members": {
"UserPoolId": {},
"CustomAttributes": {
"type": "list",
"member": {
"shape": "S4"
}
}
}
},
"output": {
"type": "structure",
"members": {}
}
},
"AdminConfirmSignUp": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"Username"
],
"members": {
"UserPoolId": {},
"Username": {
"shape": "Sd"
}
}
},
"output": {
"type": "structure",
"members": {}
}
},
"AdminDeleteUser": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"Username"
],
"members": {
"UserPoolId": {},
"Username": {
"shape": "Sd"
}
}
}
},
"AdminDeleteUserAttributes": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"Username",
"UserAttributeNames"
],
"members": {
"UserPoolId": {},
"Username": {
"shape": "Sd"
},
"UserAttributeNames": {
"shape": "Sh"
}
}
},
"output": {
"type": "structure",
"members": {}
}
},
"AdminDisableUser": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"Username"
],
"members": {
"UserPoolId": {},
"Username": {
"shape": "Sd"
}
}
},
"output": {
"type": "structure",
"members": {}
}
},
"AdminEnableUser": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"Username"
],
"members": {
"UserPoolId": {},
"Username": {
"shape": "Sd"
}
}
},
"output": {
"type": "structure",
"members": {}
}
},
"AdminForgetDevice": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"Username",
"DeviceKey"
],
"members": {
"UserPoolId": {},
"Username": {
"shape": "Sd"
},
"DeviceKey": {}
}
}
},
"AdminGetDevice": {
"input": {
"type": "structure",
"required": [
"DeviceKey",
"UserPoolId",
"Username"
],
"members": {
"DeviceKey": {},
"UserPoolId": {},
"Username": {
"shape": "Sd"
}
}
},
"output": {
"type": "structure",
"required": [
"Device"
],
"members": {
"Device": {
"shape": "Ss"
}
}
}
},
"AdminGetUser": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"Username"
],
"members": {
"UserPoolId": {},
"Username": {
"shape": "Sd"
}
}
},
"output": {
"type": "structure",
"required": [
"Username"
],
"members": {
"Username": {
"shape": "Sd"
},
"UserAttributes": {
"shape": "St"
},
"UserCreateDate": {
"type": "timestamp"
},
"UserLastModifiedDate": {
"type": "timestamp"
},
"Enabled": {
"type": "boolean"
},
"UserStatus": {},
"MFAOptions": {
"shape": "S10"
}
}
}
},
"AdminInitiateAuth": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"ClientId",
"AuthFlow"
],
"members": {
"UserPoolId": {},
"ClientId": {
"shape": "S14"
},
"AuthFlow": {},
"AuthParameters": {
"shape": "S16"
},
"ClientMetadata": {
"shape": "S17"
}
}
},
"output": {
"type": "structure",
"members": {
"ChallengeName": {},
"Session": {},
"ChallengeParameters": {
"shape": "S1b"
},
"AuthenticationResult": {
"shape": "S1c"
}
}
}
},
"AdminListDevices": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"Username"
],
"members": {
"UserPoolId": {},
"Username": {
"shape": "Sd"
},
"Limit": {
"type": "integer"
},
"PaginationToken": {}
}
},
"output": {
"type": "structure",
"members": {
"Devices": {
"shape": "S1k"
},
"PaginationToken": {}
}
}
},
"AdminResetUserPassword": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"Username"
],
"members": {
"UserPoolId": {},
"Username": {
"shape": "Sd"
}
}
},
"output": {
"type": "structure",
"members": {}
}
},
"AdminRespondToAuthChallenge": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"ClientId",
"ChallengeName"
],
"members": {
"UserPoolId": {},
"ClientId": {
"shape": "S14"
},
"ChallengeName": {},
"ChallengeResponses": {
"shape": "S1o"
},
"Session": {}
}
},
"output": {
"type": "structure",
"members": {
"ChallengeName": {},
"Session": {},
"ChallengeParameters": {
"shape": "S1b"
},
"AuthenticationResult": {
"shape": "S1c"
}
}
}
},
"AdminSetUserSettings": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"Username",
"MFAOptions"
],
"members": {
"UserPoolId": {},
"Username": {
"shape": "Sd"
},
"MFAOptions": {
"shape": "S10"
}
}
},
"output": {
"type": "structure",
"members": {}
}
},
"AdminUpdateDeviceStatus": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"Username",
"DeviceKey"
],
"members": {
"UserPoolId": {},
"Username": {
"shape": "Sd"
},
"DeviceKey": {},
"DeviceRememberedStatus": {}
}
},
"output": {
"type": "structure",
"members": {}
}
},
"AdminUpdateUserAttributes": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"Username",
"UserAttributes"
],
"members": {
"UserPoolId": {},
"Username": {
"shape": "Sd"
},
"UserAttributes": {
"shape": "St"
}
}
},
"output": {
"type": "structure",
"members": {}
}
},
"AdminUserGlobalSignOut": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"Username"
],
"members": {
"UserPoolId": {},
"Username": {
"shape": "Sd"
}
}
},
"output": {
"type": "structure",
"members": {}
}
},
"ChangePassword": {
"input": {
"type": "structure",
"required": [
"PreviousPassword",
"ProposedPassword"
],
"members": {
"PreviousPassword": {
"shape": "S20"
},
"ProposedPassword": {
"shape": "S20"
},
"AccessToken": {
"shape": "S1d"
}
}
},
"output": {
"type": "structure",
"members": {}
},
"authtype": "none"
},
"ConfirmDevice": {
"input": {
"type": "structure",
"required": [
"AccessToken",
"DeviceKey"
],
"members": {
"AccessToken": {
"shape": "S1d"
},
"DeviceKey": {},
"DeviceSecretVerifierConfig": {
"type": "structure",
"members": {
"PasswordVerifier": {},
"Salt": {}
}
},
"DeviceName": {}
}
},
"output": {
"type": "structure",
"members": {
"UserConfirmationNecessary": {
"type": "boolean"
}
}
}
},
"ConfirmForgotPassword": {
"input": {
"type": "structure",
"required": [
"ClientId",
"Username",
"ConfirmationCode",
"Password"
],
"members": {
"ClientId": {
"shape": "S14"
},
"SecretHash": {
"shape": "S27"
},
"Username": {
"shape": "Sd"
},
"ConfirmationCode": {},
"Password": {
"shape": "S20"
}
}
},
"output": {
"type": "structure",
"members": {}
},
"authtype": "none"
},
"ConfirmSignUp": {
"input": {
"type": "structure",
"required": [
"ClientId",
"Username",
"ConfirmationCode"
],
"members": {
"ClientId": {
"shape": "S14"
},
"SecretHash": {
"shape": "S27"
},
"Username": {
"shape": "Sd"
},
"ConfirmationCode": {},
"ForceAliasCreation": {
"type": "boolean"
}
}
},
"output": {
"type": "structure",
"members": {}
},
"authtype": "none"
},
"CreateUserImportJob": {
"input": {
"type": "structure",
"required": [
"JobName",
"UserPoolId",
"CloudWatchLogsRoleArn"
],
"members": {
"JobName": {},
"UserPoolId": {},
"CloudWatchLogsRoleArn": {}
}
},
"output": {
"type": "structure",
"members": {
"UserImportJob": {
"shape": "S2h"
}
}
}
},
"CreateUserPool": {
"input": {
"type": "structure",
"required": [
"PoolName"
],
"members": {
"PoolName": {},
"Policies": {
"shape": "S2p"
},
"LambdaConfig": {
"shape": "S2s"
},
"AutoVerifiedAttributes": {
"shape": "S2t"
},
"AliasAttributes": {
"shape": "S2v"
},
"SmsVerificationMessage": {},
"EmailVerificationMessage": {},
"EmailVerificationSubject": {},
"SmsAuthenticationMessage": {},
"MfaConfiguration": {},
"DeviceConfiguration": {
"shape": "S31"
},
"EmailConfiguration": {
"shape": "S32"
},
"SmsConfiguration": {
"shape": "S34"
}
}
},
"output": {
"type": "structure",
"members": {
"UserPool": {
"shape": "S36"
}
}
}
},
"CreateUserPoolClient": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"ClientName"
],
"members": {
"UserPoolId": {},
"ClientName": {},
"GenerateSecret": {
"type": "boolean"
},
"RefreshTokenValidity": {
"type": "integer"
},
"ReadAttributes": {
"shape": "S3d"
},
"WriteAttributes": {
"shape": "S3d"
},
"ExplicitAuthFlows": {
"shape": "S3f"
}
}
},
"output": {
"type": "structure",
"members": {
"UserPoolClient": {
"shape": "S3i"
}
}
}
},
"DeleteUser": {
"input": {
"type": "structure",
"members": {
"AccessToken": {
"shape": "S1d"
}
}
},
"authtype": "none"
},
"DeleteUserAttributes": {
"input": {
"type": "structure",
"required": [
"UserAttributeNames"
],
"members": {
"UserAttributeNames": {
"shape": "Sh"
},
"AccessToken": {
"shape": "S1d"
}
}
},
"output": {
"type": "structure",
"members": {}
},
"authtype": "none"
},
"DeleteUserPool": {
"input": {
"type": "structure",
"required": [
"UserPoolId"
],
"members": {
"UserPoolId": {}
}
}
},
"DeleteUserPoolClient": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"ClientId"
],
"members": {
"UserPoolId": {},
"ClientId": {
"shape": "S14"
}
}
}
},
"DescribeUserImportJob": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"JobId"
],
"members": {
"UserPoolId": {},
"JobId": {}
}
},
"output": {
"type": "structure",
"members": {
"UserImportJob": {
"shape": "S2h"
}
}
}
},
"DescribeUserPool": {
"input": {
"type": "structure",
"required": [
"UserPoolId"
],
"members": {
"UserPoolId": {}
}
},
"output": {
"type": "structure",
"members": {
"UserPool": {
"shape": "S36"
}
}
}
},
"DescribeUserPoolClient": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"ClientId"
],
"members": {
"UserPoolId": {},
"ClientId": {
"shape": "S14"
}
}
},
"output": {
"type": "structure",
"members": {
"UserPoolClient": {
"shape": "S3i"
}
}
}
},
"ForgetDevice": {
"input": {
"type": "structure",
"required": [
"DeviceKey"
],
"members": {
"AccessToken": {
"shape": "S1d"
},
"DeviceKey": {}
}
}
},
"ForgotPassword": {
"input": {
"type": "structure",
"required": [
"ClientId",
"Username"
],
"members": {
"ClientId": {
"shape": "S14"
},
"SecretHash": {
"shape": "S27"
},
"Username": {
"shape": "Sd"
}
}
},
"output": {
"type": "structure",
"members": {
"CodeDeliveryDetails": {
"shape": "S3y"
}
}
},
"authtype": "none"
},
"GetCSVHeader": {
"input": {
"type": "structure",
"required": [
"UserPoolId"
],
"members": {
"UserPoolId": {}
}
},
"output": {
"type": "structure",
"members": {
"UserPoolId": {},
"CSVHeader": {
"type": "list",
"member": {}
}
}
}
},
"GetDevice": {
"input": {
"type": "structure",
"required": [
"DeviceKey"
],
"members": {
"DeviceKey": {},
"AccessToken": {
"shape": "S1d"
}
}
},
"output": {
"type": "structure",
"required": [
"Device"
],
"members": {
"Device": {
"shape": "Ss"
}
}
}
},
"GetUser": {
"input": {
"type": "structure",
"members": {
"AccessToken": {
"shape": "S1d"
}
}
},
"output": {
"type": "structure",
"required": [
"Username",
"UserAttributes"
],
"members": {
"Username": {
"shape": "Sd"
},
"UserAttributes": {
"shape": "St"
},
"MFAOptions": {
"shape": "S10"
}
}
},
"authtype": "none"
},
"GetUserAttributeVerificationCode": {
"input": {
"type": "structure",
"required": [
"AttributeName"
],
"members": {
"AccessToken": {
"shape": "S1d"
},
"AttributeName": {}
}
},
"output": {
"type": "structure",
"members": {
"CodeDeliveryDetails": {
"shape": "S3y"
}
}
},
"authtype": "none"
},
"GlobalSignOut": {
"input": {
"type": "structure",
"members": {
"AccessToken": {
"shape": "S1d"
}
}
},
"output": {
"type": "structure",
"members": {}
}
},
"InitiateAuth": {
"input": {
"type": "structure",
"required": [
"AuthFlow",
"ClientId"
],
"members": {
"AuthFlow": {},
"AuthParameters": {
"shape": "S16"
},
"ClientMetadata": {
"shape": "S17"
},
"ClientId": {
"shape": "S14"
}
}
},
"output": {
"type": "structure",
"members": {
"ChallengeName": {},
"Session": {},
"ChallengeParameters": {
"shape": "S1b"
},
"AuthenticationResult": {
"shape": "S1c"
}
}
}
},
"ListDevices": {
"input": {
"type": "structure",
"required": [
"AccessToken"
],
"members": {
"AccessToken": {
"shape": "S1d"
},
"Limit": {
"type": "integer"
},
"PaginationToken": {}
}
},
"output": {
"type": "structure",
"members": {
"Devices": {
"shape": "S1k"
},
"PaginationToken": {}
}
}
},
"ListUserImportJobs": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"MaxResults"
],
"members": {
"UserPoolId": {},
"MaxResults": {
"type": "integer"
},
"PaginationToken": {}
}
},
"output": {
"type": "structure",
"members": {
"UserImportJobs": {
"type": "list",
"member": {
"shape": "S2h"
}
},
"PaginationToken": {}
}
}
},
"ListUserPoolClients": {
"input": {
"type": "structure",
"required": [
"UserPoolId"
],
"members": {
"UserPoolId": {},
"MaxResults": {
"type": "integer"
},
"NextToken": {}
}
},
"output": {
"type": "structure",
"members": {
"UserPoolClients": {
"type": "list",
"member": {
"type": "structure",
"members": {
"ClientId": {
"shape": "S14"
},
"UserPoolId": {},
"ClientName": {}
}
}
},
"NextToken": {}
}
}
},
"ListUserPools": {
"input": {
"type": "structure",
"required": [
"MaxResults"
],
"members": {
"NextToken": {},
"MaxResults": {
"type": "integer"
}
}
},
"output": {
"type": "structure",
"members": {
"UserPools": {
"type": "list",
"member": {
"type": "structure",
"members": {
"Id": {},
"Name": {},
"LambdaConfig": {
"shape": "S2s"
},
"Status": {},
"LastModifiedDate": {
"type": "timestamp"
},
"CreationDate": {
"type": "timestamp"
}
}
}
},
"NextToken": {}
}
}
},
"ListUsers": {
"input": {
"type": "structure",
"required": [
"UserPoolId"
],
"members": {
"UserPoolId": {},
"AttributesToGet": {
"type": "list",
"member": {}
},
"Limit": {
"type": "integer"
},
"PaginationToken": {},
"Filter": {}
}
},
"output": {
"type": "structure",
"members": {
"Users": {
"type": "list",
"member": {
"type": "structure",
"members": {
"Username": {
"shape": "Sd"
},
"Attributes": {
"shape": "St"
},
"UserCreateDate": {
"type": "timestamp"
},
"UserLastModifiedDate": {
"type": "timestamp"
},
"Enabled": {
"type": "boolean"
},
"UserStatus": {}
}
}
},
"PaginationToken": {}
}
}
},
"ResendConfirmationCode": {
"input": {
"type": "structure",
"required": [
"ClientId",
"Username"
],
"members": {
"ClientId": {
"shape": "S14"
},
"SecretHash": {
"shape": "S27"
},
"Username": {
"shape": "Sd"
}
}
},
"output": {
"type": "structure",
"members": {
"CodeDeliveryDetails": {
"shape": "S3y"
}
}
},
"authtype": "none"
},
"RespondToAuthChallenge": {
"input": {
"type": "structure",
"required": [
"ClientId",
"ChallengeName"
],
"members": {
"ClientId": {
"shape": "S14"
},
"ChallengeName": {},
"Session": {},
"ChallengeResponses": {
"shape": "S1o"
}
}
},
"output": {
"type": "structure",
"members": {
"ChallengeName": {},
"Session": {},
"ChallengeParameters": {
"shape": "S1b"
},
"AuthenticationResult": {
"shape": "S1c"
}
}
}
},
"SetUserSettings": {
"input": {
"type": "structure",
"required": [
"AccessToken",
"MFAOptions"
],
"members": {
"AccessToken": {
"shape": "S1d"
},
"MFAOptions": {
"shape": "S10"
}
}
},
"output": {
"type": "structure",
"members": {}
},
"authtype": "none"
},
"SignUp": {
"input": {
"type": "structure",
"required": [
"ClientId",
"Username",
"Password"
],
"members": {
"ClientId": {
"shape": "S14"
},
"SecretHash": {
"shape": "S27"
},
"Username": {
"shape": "Sd"
},
"Password": {
"shape": "S20"
},
"UserAttributes": {
"shape": "St"
},
"ValidationData": {
"shape": "St"
}
}
},
"output": {
"type": "structure",
"members": {
"UserConfirmed": {
"type": "boolean"
},
"CodeDeliveryDetails": {
"shape": "S3y"
},
"UserSub": {}
}
},
"authtype": "none"
},
"StartUserImportJob": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"JobId"
],
"members": {
"UserPoolId": {},
"JobId": {}
}
},
"output": {
"type": "structure",
"members": {
"UserImportJob": {
"shape": "S2h"
}
}
}
},
"StopUserImportJob": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"JobId"
],
"members": {
"UserPoolId": {},
"JobId": {}
}
},
"output": {
"type": "structure",
"members": {
"UserImportJob": {
"shape": "S2h"
}
}
}
},
"UpdateDeviceStatus": {
"input": {
"type": "structure",
"required": [
"AccessToken",
"DeviceKey"
],
"members": {
"AccessToken": {
"shape": "S1d"
},
"DeviceKey": {},
"DeviceRememberedStatus": {}
}
},
"output": {
"type": "structure",
"members": {}
}
},
"UpdateUserAttributes": {
"input": {
"type": "structure",
"required": [
"UserAttributes"
],
"members": {
"UserAttributes": {
"shape": "St"
},
"AccessToken": {
"shape": "S1d"
}
}
},
"output": {
"type": "structure",
"members": {
"CodeDeliveryDetailsList": {
"type": "list",
"member": {
"shape": "S3y"
}
}
}
},
"authtype": "none"
},
"UpdateUserPool": {
"input": {
"type": "structure",
"required": [
"UserPoolId"
],
"members": {
"UserPoolId": {},
"Policies": {
"shape": "S2p"
},
"LambdaConfig": {
"shape": "S2s"
},
"AutoVerifiedAttributes": {
"shape": "S2t"
},
"SmsVerificationMessage": {},
"EmailVerificationMessage": {},
"EmailVerificationSubject": {},
"SmsAuthenticationMessage": {},
"MfaConfiguration": {},
"DeviceConfiguration": {
"shape": "S31"
},
"EmailConfiguration": {
"shape": "S32"
},
"SmsConfiguration": {
"shape": "S34"
}
}
},
"output": {
"type": "structure",
"members": {}
}
},
"UpdateUserPoolClient": {
"input": {
"type": "structure",
"required": [
"UserPoolId",
"ClientId"
],
"members": {
"UserPoolId": {},
"ClientId": {
"shape": "S14"
},
"ClientName": {},
"RefreshTokenValidity": {
"type": "integer"
},
"ReadAttributes": {
"shape": "S3d"
},
"WriteAttributes": {
"shape": "S3d"
},
"ExplicitAuthFlows": {
"shape": "S3f"
}
}
},
"output": {
"type": "structure",
"members": {
"UserPoolClient": {
"shape": "S3i"
}
}
}
},
"VerifyUserAttribute": {
"input": {
"type": "structure",
"required": [
"AttributeName",
"Code"
],
"members": {
"AccessToken": {
"shape": "S1d"
},
"AttributeName": {},
"Code": {}
}
},
"output": {
"type": "structure",
"members": {}
},
"authtype": "none"
}
},
"shapes": {
"S4": {
"type": "structure",
"members": {
"Name": {},
"AttributeDataType": {},
"DeveloperOnlyAttribute": {
"type": "boolean"
},
"Mutable": {
"type": "boolean"
},
"Required": {
"type": "boolean"
},
"NumberAttributeConstraints": {
"type": "structure",
"members": {
"MinValue": {},
"MaxValue": {}
}
},
"StringAttributeConstraints": {
"type": "structure",
"members": {
"MinLength": {},
"MaxLength": {}
}
}
}
},
"Sd": {
"type": "string",
"sensitive": true
},
"Sh": {
"type": "list",
"member": {}
},
"Ss": {
"type": "structure",
"members": {
"DeviceKey": {},
"DeviceAttributes": {
"shape": "St"
},
"DeviceCreateDate": {
"type": "timestamp"
},
"DeviceLastModifiedDate": {
"type": "timestamp"
},
"DeviceLastAuthenticatedDate": {
"type": "timestamp"
}
}
},
"St": {
"type": "list",
"member": {
"type": "structure",
"required": [
"Name"
],
"members": {
"Name": {},
"Value": {
"type": "string",
"sensitive": true
}
}
}
},
"S10": {
"type": "list",
"member": {
"type": "structure",
"members": {
"DeliveryMedium": {},
"AttributeName": {}
}
}
},
"S14": {
"type": "string",
"sensitive": true
},
"S16": {
"type": "map",
"key": {},
"value": {}
},
"S17": {
"type": "map",
"key": {},
"value": {}
},
"S1b": {
"type": "map",
"key": {},
"value": {}
},
"S1c": {
"type": "structure",
"members": {
"AccessToken": {
"shape": "S1d"
},
"ExpiresIn": {
"type": "integer"
},
"TokenType": {},
"RefreshToken": {
"shape": "S1d"
},
"IdToken": {
"shape": "S1d"
},
"NewDeviceMetadata": {
"type": "structure",
"members": {
"DeviceKey": {},
"DeviceGroupKey": {}
}
}
}
},
"S1d": {
"type": "string",
"sensitive": true
},
"S1k": {
"type": "list",
"member": {
"shape": "Ss"
}
},
"S1o": {
"type": "map",
"key": {},
"value": {}
},
"S20": {
"type": "string",
"sensitive": true
},
"S27": {
"type": "string",
"sensitive": true
},
"S2h": {
"type": "structure",
"members": {
"JobName": {},
"JobId": {},
"UserPoolId": {},
"PreSignedUrl": {},
"CreationDate": {
"type": "timestamp"
},
"StartDate": {
"type": "timestamp"
},
"CompletionDate": {
"type": "timestamp"
},
"Status": {},
"CloudWatchLogsRoleArn": {},
"ImportedUsers": {
"type": "long"
},
"SkippedUsers": {
"type": "long"
},
"FailedUsers": {
"type": "long"
},
"CompletionMessage": {}
}
},
"S2p": {
"type": "structure",
"members": {
"PasswordPolicy": {
"type": "structure",
"members": {
"MinimumLength": {
"type": "integer"
},
"RequireUppercase": {
"type": "boolean"
},
"RequireLowercase": {
"type": "boolean"
},
"RequireNumbers": {
"type": "boolean"
},
"RequireSymbols": {
"type": "boolean"
}
}
}
}
},
"S2s": {
"type": "structure",
"members": {
"PreSignUp": {},
"CustomMessage": {},
"PostConfirmation": {},
"PreAuthentication": {},
"PostAuthentication": {},
"DefineAuthChallenge": {},
"CreateAuthChallenge": {},
"VerifyAuthChallengeResponse": {}
}
},
"S2t": {
"type": "list",
"member": {}
},
"S2v": {
"type": "list",
"member": {}
},
"S31": {
"type": "structure",
"members": {
"ChallengeRequiredOnNewDevice": {
"type": "boolean"
},
"DeviceOnlyRememberedOnUserPrompt": {
"type": "boolean"
}
}
},
"S32": {
"type": "structure",
"members": {
"SourceArn": {},
"ReplyToEmailAddress": {}
}
},
"S34": {
"type": "structure",
"members": {
"SnsCallerArn": {},
"ExternalId": {}
}
},
"S36": {
"type": "structure",
"members": {
"Id": {},
"Name": {},
"Policies": {
"shape": "S2p"
},
"LambdaConfig": {
"shape": "S2s"
},
"Status": {},
"LastModifiedDate": {
"type": "timestamp"
},
"CreationDate": {
"type": "timestamp"
},
"SchemaAttributes": {
"type": "list",
"member": {
"shape": "S4"
}
},
"AutoVerifiedAttributes": {
"shape": "S2t"
},
"AliasAttributes": {
"shape": "S2v"
},
"SmsVerificationMessage": {},
"EmailVerificationMessage": {},
"EmailVerificationSubject": {},
"SmsAuthenticationMessage": {},
"MfaConfiguration": {},
"DeviceConfiguration": {
"shape": "S31"
},
"EstimatedNumberOfUsers": {
"type": "integer"
},
"EmailConfiguration": {
"shape": "S32"
},
"SmsConfiguration": {
"shape": "S34"
},
"SmsConfigurationFailure": {},
"EmailConfigurationFailure": {}
}
},
"S3d": {
"type": "list",
"member": {}
},
"S3f": {
"type": "list",
"member": {}
},
"S3i": {
"type": "structure",
"members": {
"UserPoolId": {},
"ClientName": {},
"ClientId": {
"shape": "S14"
},
"ClientSecret": {
"type": "string",
"sensitive": true
},
"LastModifiedDate": {
"type": "timestamp"
},
"CreationDate": {
"type": "timestamp"
},
"RefreshTokenValidity": {
"type": "integer"
},
"ReadAttributes": {
"shape": "S3d"
},
"WriteAttributes": {
"shape": "S3d"
},
"ExplicitAuthFlows": {
"shape": "S3f"
}
}
},
"S3y": {
"type": "structure",
"members": {
"Destination": {},
"DeliveryMedium": {},
"AttributeName": {}
}
}
}
}
},{}],3:[function(require,module,exports){
module.exports={
"acm": {
"name": "ACM",
"cors": true
},
"apigateway": {
"name": "APIGateway",
"cors": true
},
"applicationautoscaling": {
"prefix": "application-autoscaling",
"name": "ApplicationAutoScaling",
"cors": true
},
"autoscaling": {
"name": "AutoScaling",
"cors": true
},
"cloudformation": {
"name": "CloudFormation",
"cors": true
},
"cloudfront": {
"name": "CloudFront",
"versions": ["2013-05-12*", "2013-11-11*", "2014-05-31*", "2014-10-21*", "2014-11-06*", "2015-04-17*", "2015-07-27*", "2015-09-17*", "2016-01-13*", "2016-01-28*", "2016-08-01*", "2016-08-20*"],
"cors": true
},
"cloudhsm": {
"name": "CloudHSM",
"cors": true
},
"cloudsearch": {
"name": "CloudSearch"
},
"cloudsearchdomain": {
"name": "CloudSearchDomain"
},
"cloudtrail": {
"name": "CloudTrail",
"cors": true
},
"cloudwatch": {
"prefix": "monitoring",
"name": "CloudWatch",
"cors": true
},
"cloudwatchevents": {
"prefix": "events",
"name": "CloudWatchEvents",
"versions": ["2014-02-03*"],
"cors": true
},
"cloudwatchlogs": {
"prefix": "logs",
"name": "CloudWatchLogs",
"cors": true
},
"codecommit": {
"name": "CodeCommit",
"cors": true
},
"codedeploy": {
"name": "CodeDeploy",
"cors": true
},
"codepipeline": {
"name": "CodePipeline",
"cors": true
},
"cognitoidentity": {
"prefix": "cognito-identity",
"name": "CognitoIdentity",
"cors": true
},
"cognitoidentityserviceprovider": {
"prefix": "cognito-idp",
"name": "CognitoIdentityServiceProvider",
"cors": true
},
"cognitosync": {
"prefix": "cognito-sync",
"name": "CognitoSync",
"cors": true
},
"configservice": {
"prefix": "config",
"name": "ConfigService",
"cors": true
},
"datapipeline": {
"name": "DataPipeline"
},
"devicefarm": {
"name": "DeviceFarm",
"cors": true
},
"directconnect": {
"name": "DirectConnect",
"cors": true
},
"directoryservice": {