serverless-spy 0.0.5 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.yml +1 -1
- package/.jsii +3 -2
- package/lib/ServerlessSpy.js +1 -1
- package/listener/createServerlessSpyListener.ts +12 -2
- package/listener/index.ts +1 -0
- package/node_modules/@aws-sdk/client-cognito-identity/CHANGELOG.md +4150 -0
- package/node_modules/@aws-sdk/client-cognito-identity/LICENSE +201 -0
- package/node_modules/@aws-sdk/client-cognito-identity/README.md +219 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/CognitoIdentity.js +352 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/CognitoIdentityClient.js +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/CreateIdentityPoolCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/DeleteIdentitiesCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/DeleteIdentityPoolCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/DescribeIdentityCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/DescribeIdentityPoolCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/GetCredentialsForIdentityCommand.js +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/GetIdCommand.js +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/GetIdentityPoolRolesCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/GetOpenIdTokenCommand.js +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/GetOpenIdTokenForDeveloperIdentityCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/GetPrincipalTagAttributeMapCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/ListIdentitiesCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/ListIdentityPoolsCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/ListTagsForResourceCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/LookupDeveloperIdentityCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/MergeDeveloperIdentitiesCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/SetIdentityPoolRolesCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/SetPrincipalTagAttributeMapCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/TagResourceCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/UnlinkDeveloperIdentityCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/UnlinkIdentityCommand.js +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/UntagResourceCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/UpdateIdentityPoolCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/index.js +26 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/endpoints.js +167 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/index.js +11 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/models/CognitoIdentityServiceException.js +11 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/models/index.js +4 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/models/models_0.js +354 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/pagination/Interfaces.js +2 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/pagination/ListIdentityPoolsPaginator.js +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/pagination/index.js +5 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/protocols/Aws_json1_1.js +2236 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/runtimeConfig.browser.js +45 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/runtimeConfig.js +52 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/runtimeConfig.native.js +16 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/runtimeConfig.shared.js +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/CognitoIdentity.js +355 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/CognitoIdentityClient.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/CreateIdentityPoolCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/DeleteIdentitiesCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/DeleteIdentityPoolCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/DescribeIdentityCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/DescribeIdentityPoolCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/GetCredentialsForIdentityCommand.js +39 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/GetIdCommand.js +39 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/GetIdentityPoolRolesCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/GetOpenIdTokenCommand.js +39 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/GetOpenIdTokenForDeveloperIdentityCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/GetPrincipalTagAttributeMapCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/ListIdentitiesCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/ListIdentityPoolsCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/ListTagsForResourceCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/LookupDeveloperIdentityCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/MergeDeveloperIdentitiesCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/SetIdentityPoolRolesCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/SetPrincipalTagAttributeMapCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/TagResourceCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/UnlinkDeveloperIdentityCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/UnlinkIdentityCommand.js +39 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/UntagResourceCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/UpdateIdentityPoolCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/index.js +23 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/endpoints.js +163 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/index.js +6 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/models/CognitoIdentityServiceException.js +12 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/models/index.js +1 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/models/models_0.js +202 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/pagination/Interfaces.js +1 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/pagination/ListIdentityPoolsPaginator.js +75 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/pagination/index.js +2 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/protocols/Aws_json1_1.js +2662 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/runtimeConfig.browser.js +26 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/runtimeConfig.js +30 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/runtimeConfig.native.js +8 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/runtimeConfig.shared.js +13 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/CognitoIdentity.d.ts +295 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/CognitoIdentityClient.d.ts +180 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/CreateIdentityPoolCommand.d.ts +61 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/DeleteIdentitiesCommand.d.ts +37 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/DeleteIdentityPoolCommand.d.ts +37 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/DescribeIdentityCommand.d.ts +37 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/DescribeIdentityPoolCommand.d.ts +37 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/GetCredentialsForIdentityCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/GetIdCommand.d.ts +37 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/GetIdentityPoolRolesCommand.d.ts +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/GetOpenIdTokenCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/GetOpenIdTokenForDeveloperIdentityCommand.d.ts +47 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/GetPrincipalTagAttributeMapCommand.d.ts +35 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/ListIdentitiesCommand.d.ts +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/ListIdentityPoolsCommand.d.ts +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/LookupDeveloperIdentityCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/MergeDeveloperIdentitiesCommand.d.ts +47 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/SetIdentityPoolRolesCommand.d.ts +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/SetPrincipalTagAttributeMapCommand.d.ts +35 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/TagResourceCommand.d.ts +49 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/UnlinkDeveloperIdentityCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/UnlinkIdentityCommand.d.ts +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/UntagResourceCommand.d.ts +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/UpdateIdentityPoolCommand.d.ts +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/index.d.ts +23 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/endpoints.d.ts +2 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/index.d.ts +6 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/models/CognitoIdentityServiceException.d.ts +10 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/models/models_0.d.ts +1166 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/pagination/Interfaces.d.ts +6 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/pagination/ListIdentityPoolsPaginator.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/pagination/index.d.ts +2 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/protocols/Aws_json1_1.d.ts +71 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/runtimeConfig.browser.d.ts +40 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/runtimeConfig.d.ts +40 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/runtimeConfig.native.d.ts +39 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/CognitoIdentity.d.ts +120 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/CognitoIdentityClient.d.ts +96 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/CreateIdentityPoolCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/DeleteIdentitiesCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/DeleteIdentityPoolCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/DescribeIdentityCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/DescribeIdentityPoolCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/GetCredentialsForIdentityCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/GetIdCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/GetIdentityPoolRolesCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/GetOpenIdTokenCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/GetOpenIdTokenForDeveloperIdentityCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/GetPrincipalTagAttributeMapCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/ListIdentitiesCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/ListIdentityPoolsCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/LookupDeveloperIdentityCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/MergeDeveloperIdentitiesCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/SetIdentityPoolRolesCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/SetPrincipalTagAttributeMapCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/UnlinkDeveloperIdentityCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/UnlinkIdentityCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/UpdateIdentityPoolCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/index.d.ts +23 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/index.d.ts +6 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/models/CognitoIdentityServiceException.d.ts +6 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/models/models_0.d.ts +567 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/pagination/ListIdentityPoolsPaginator.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +71 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cognito-identity/package.json +107 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/CHANGELOG.md +4874 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/LICENSE +201 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/README.md +11 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/CognitoProviderParameters.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/InMemoryStorage.js +21 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/IndexedDbStorage.js +71 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/Logins.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/Storage.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/fromCognitoIdentity.js +32 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/fromCognitoIdentityPool.js +42 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js +8 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/localStorage.js +16 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/resolveLogins.js +19 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/CognitoProviderParameters.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/InMemoryStorage.js +20 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/IndexedDbStorage.js +70 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/Logins.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/Storage.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/fromCognitoIdentity.js +50 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/fromCognitoIdentityPool.js +73 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/index.js +5 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/localStorage.js +12 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/resolveLogins.js +19 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/CognitoProviderParameters.d.ts +25 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/InMemoryStorage.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/IndexedDbStorage.d.ts +10 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/Logins.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/Storage.d.ts +14 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/fromCognitoIdentity.d.ts +23 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/fromCognitoIdentityPool.d.ts +44 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/index.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/localStorage.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/resolveLogins.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/CognitoProviderParameters.d.ts +10 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/InMemoryStorage.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/IndexedDbStorage.d.ts +10 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/Logins.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/Storage.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/fromCognitoIdentity.d.ts +13 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/fromCognitoIdentityPool.d.ts +15 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/index.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/localStorage.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/resolveLogins.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/package.json +59 -0
- package/node_modules/@aws-sdk/credential-providers/CHANGELOG.md +570 -0
- package/node_modules/@aws-sdk/credential-providers/LICENSE +201 -0
- package/node_modules/@aws-sdk/credential-providers/README.md +663 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromCognitoIdentity.js +13 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromCognitoIdentityPool.js +13 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromContainerMetadata.js +6 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromEnv.js +6 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromIni.js +14 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromInstanceMetadata.js +6 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromNodeProviderChain.js +14 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromProcess.js +6 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromSSO.js +7 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromTemporaryCredentials.js +31 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromTokenFile.js +13 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromWebToken.js +13 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/index.js +15 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/index.web.js +7 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromCognitoIdentity.js +7 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromCognitoIdentityPool.js +7 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromContainerMetadata.js +2 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromEnv.js +2 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromIni.js +8 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromInstanceMetadata.js +2 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromNodeProviderChain.js +8 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromProcess.js +2 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromSSO.js +7 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromTemporaryCredentials.js +40 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromTokenFile.js +8 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromWebToken.js +7 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/index.js +12 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/index.web.js +4 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromCognitoIdentity.d.ts +45 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromCognitoIdentityPool.d.ts +46 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromContainerMetadata.d.ts +24 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromEnv.d.ts +26 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromIni.d.ts +43 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromInstanceMetadata.d.ts +22 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromNodeProviderChain.d.ts +29 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromProcess.d.ts +28 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromSSO.d.ts +48 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromTemporaryCredentials.d.ts +48 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromTokenFile.d.ts +32 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromWebToken.d.ts +41 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/index.d.ts +12 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/index.web.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromCognitoIdentity.d.ts +9 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromCognitoIdentityPool.d.ts +7 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromContainerMetadata.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromEnv.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromIni.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromInstanceMetadata.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromNodeProviderChain.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromProcess.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromSSO.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromTemporaryCredentials.d.ts +12 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromTokenFile.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromWebToken.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/index.d.ts +12 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/index.web.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-providers/package.json +78 -0
- package/package.json +6 -3
|
@@ -0,0 +1,2662 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
|
+
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CognitoIdentityServiceException as __BaseException } from "../models/CognitoIdentityServiceException";
|
|
5
|
+
import { ConcurrentModificationException, DeveloperUserAlreadyRegisteredException, ExternalServiceException, InternalErrorException, InvalidIdentityPoolConfigurationException, InvalidParameterException, LimitExceededException, NotAuthorizedException, ResourceConflictException, ResourceNotFoundException, TooManyRequestsException, } from "../models/models_0";
|
|
6
|
+
export var serializeAws_json1_1CreateIdentityPoolCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
+
var headers, body;
|
|
8
|
+
return __generator(this, function (_a) {
|
|
9
|
+
headers = {
|
|
10
|
+
"content-type": "application/x-amz-json-1.1",
|
|
11
|
+
"x-amz-target": "AWSCognitoIdentityService.CreateIdentityPool",
|
|
12
|
+
};
|
|
13
|
+
body = JSON.stringify(serializeAws_json1_1CreateIdentityPoolInput(input, context));
|
|
14
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
15
|
+
});
|
|
16
|
+
}); };
|
|
17
|
+
export var serializeAws_json1_1DeleteIdentitiesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
18
|
+
var headers, body;
|
|
19
|
+
return __generator(this, function (_a) {
|
|
20
|
+
headers = {
|
|
21
|
+
"content-type": "application/x-amz-json-1.1",
|
|
22
|
+
"x-amz-target": "AWSCognitoIdentityService.DeleteIdentities",
|
|
23
|
+
};
|
|
24
|
+
body = JSON.stringify(serializeAws_json1_1DeleteIdentitiesInput(input, context));
|
|
25
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
26
|
+
});
|
|
27
|
+
}); };
|
|
28
|
+
export var serializeAws_json1_1DeleteIdentityPoolCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
29
|
+
var headers, body;
|
|
30
|
+
return __generator(this, function (_a) {
|
|
31
|
+
headers = {
|
|
32
|
+
"content-type": "application/x-amz-json-1.1",
|
|
33
|
+
"x-amz-target": "AWSCognitoIdentityService.DeleteIdentityPool",
|
|
34
|
+
};
|
|
35
|
+
body = JSON.stringify(serializeAws_json1_1DeleteIdentityPoolInput(input, context));
|
|
36
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
37
|
+
});
|
|
38
|
+
}); };
|
|
39
|
+
export var serializeAws_json1_1DescribeIdentityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
40
|
+
var headers, body;
|
|
41
|
+
return __generator(this, function (_a) {
|
|
42
|
+
headers = {
|
|
43
|
+
"content-type": "application/x-amz-json-1.1",
|
|
44
|
+
"x-amz-target": "AWSCognitoIdentityService.DescribeIdentity",
|
|
45
|
+
};
|
|
46
|
+
body = JSON.stringify(serializeAws_json1_1DescribeIdentityInput(input, context));
|
|
47
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
48
|
+
});
|
|
49
|
+
}); };
|
|
50
|
+
export var serializeAws_json1_1DescribeIdentityPoolCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
51
|
+
var headers, body;
|
|
52
|
+
return __generator(this, function (_a) {
|
|
53
|
+
headers = {
|
|
54
|
+
"content-type": "application/x-amz-json-1.1",
|
|
55
|
+
"x-amz-target": "AWSCognitoIdentityService.DescribeIdentityPool",
|
|
56
|
+
};
|
|
57
|
+
body = JSON.stringify(serializeAws_json1_1DescribeIdentityPoolInput(input, context));
|
|
58
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
59
|
+
});
|
|
60
|
+
}); };
|
|
61
|
+
export var serializeAws_json1_1GetCredentialsForIdentityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62
|
+
var headers, body;
|
|
63
|
+
return __generator(this, function (_a) {
|
|
64
|
+
headers = {
|
|
65
|
+
"content-type": "application/x-amz-json-1.1",
|
|
66
|
+
"x-amz-target": "AWSCognitoIdentityService.GetCredentialsForIdentity",
|
|
67
|
+
};
|
|
68
|
+
body = JSON.stringify(serializeAws_json1_1GetCredentialsForIdentityInput(input, context));
|
|
69
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
70
|
+
});
|
|
71
|
+
}); };
|
|
72
|
+
export var serializeAws_json1_1GetIdCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
73
|
+
var headers, body;
|
|
74
|
+
return __generator(this, function (_a) {
|
|
75
|
+
headers = {
|
|
76
|
+
"content-type": "application/x-amz-json-1.1",
|
|
77
|
+
"x-amz-target": "AWSCognitoIdentityService.GetId",
|
|
78
|
+
};
|
|
79
|
+
body = JSON.stringify(serializeAws_json1_1GetIdInput(input, context));
|
|
80
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
81
|
+
});
|
|
82
|
+
}); };
|
|
83
|
+
export var serializeAws_json1_1GetIdentityPoolRolesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
84
|
+
var headers, body;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
headers = {
|
|
87
|
+
"content-type": "application/x-amz-json-1.1",
|
|
88
|
+
"x-amz-target": "AWSCognitoIdentityService.GetIdentityPoolRoles",
|
|
89
|
+
};
|
|
90
|
+
body = JSON.stringify(serializeAws_json1_1GetIdentityPoolRolesInput(input, context));
|
|
91
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
92
|
+
});
|
|
93
|
+
}); };
|
|
94
|
+
export var serializeAws_json1_1GetOpenIdTokenCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
95
|
+
var headers, body;
|
|
96
|
+
return __generator(this, function (_a) {
|
|
97
|
+
headers = {
|
|
98
|
+
"content-type": "application/x-amz-json-1.1",
|
|
99
|
+
"x-amz-target": "AWSCognitoIdentityService.GetOpenIdToken",
|
|
100
|
+
};
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_1GetOpenIdTokenInput(input, context));
|
|
102
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
103
|
+
});
|
|
104
|
+
}); };
|
|
105
|
+
export var serializeAws_json1_1GetOpenIdTokenForDeveloperIdentityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
106
|
+
var headers, body;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
headers = {
|
|
109
|
+
"content-type": "application/x-amz-json-1.1",
|
|
110
|
+
"x-amz-target": "AWSCognitoIdentityService.GetOpenIdTokenForDeveloperIdentity",
|
|
111
|
+
};
|
|
112
|
+
body = JSON.stringify(serializeAws_json1_1GetOpenIdTokenForDeveloperIdentityInput(input, context));
|
|
113
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
114
|
+
});
|
|
115
|
+
}); };
|
|
116
|
+
export var serializeAws_json1_1GetPrincipalTagAttributeMapCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
117
|
+
var headers, body;
|
|
118
|
+
return __generator(this, function (_a) {
|
|
119
|
+
headers = {
|
|
120
|
+
"content-type": "application/x-amz-json-1.1",
|
|
121
|
+
"x-amz-target": "AWSCognitoIdentityService.GetPrincipalTagAttributeMap",
|
|
122
|
+
};
|
|
123
|
+
body = JSON.stringify(serializeAws_json1_1GetPrincipalTagAttributeMapInput(input, context));
|
|
124
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
125
|
+
});
|
|
126
|
+
}); };
|
|
127
|
+
export var serializeAws_json1_1ListIdentitiesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
128
|
+
var headers, body;
|
|
129
|
+
return __generator(this, function (_a) {
|
|
130
|
+
headers = {
|
|
131
|
+
"content-type": "application/x-amz-json-1.1",
|
|
132
|
+
"x-amz-target": "AWSCognitoIdentityService.ListIdentities",
|
|
133
|
+
};
|
|
134
|
+
body = JSON.stringify(serializeAws_json1_1ListIdentitiesInput(input, context));
|
|
135
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
136
|
+
});
|
|
137
|
+
}); };
|
|
138
|
+
export var serializeAws_json1_1ListIdentityPoolsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
139
|
+
var headers, body;
|
|
140
|
+
return __generator(this, function (_a) {
|
|
141
|
+
headers = {
|
|
142
|
+
"content-type": "application/x-amz-json-1.1",
|
|
143
|
+
"x-amz-target": "AWSCognitoIdentityService.ListIdentityPools",
|
|
144
|
+
};
|
|
145
|
+
body = JSON.stringify(serializeAws_json1_1ListIdentityPoolsInput(input, context));
|
|
146
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
147
|
+
});
|
|
148
|
+
}); };
|
|
149
|
+
export var serializeAws_json1_1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
150
|
+
var headers, body;
|
|
151
|
+
return __generator(this, function (_a) {
|
|
152
|
+
headers = {
|
|
153
|
+
"content-type": "application/x-amz-json-1.1",
|
|
154
|
+
"x-amz-target": "AWSCognitoIdentityService.ListTagsForResource",
|
|
155
|
+
};
|
|
156
|
+
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceInput(input, context));
|
|
157
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
158
|
+
});
|
|
159
|
+
}); };
|
|
160
|
+
export var serializeAws_json1_1LookupDeveloperIdentityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
161
|
+
var headers, body;
|
|
162
|
+
return __generator(this, function (_a) {
|
|
163
|
+
headers = {
|
|
164
|
+
"content-type": "application/x-amz-json-1.1",
|
|
165
|
+
"x-amz-target": "AWSCognitoIdentityService.LookupDeveloperIdentity",
|
|
166
|
+
};
|
|
167
|
+
body = JSON.stringify(serializeAws_json1_1LookupDeveloperIdentityInput(input, context));
|
|
168
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
169
|
+
});
|
|
170
|
+
}); };
|
|
171
|
+
export var serializeAws_json1_1MergeDeveloperIdentitiesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
172
|
+
var headers, body;
|
|
173
|
+
return __generator(this, function (_a) {
|
|
174
|
+
headers = {
|
|
175
|
+
"content-type": "application/x-amz-json-1.1",
|
|
176
|
+
"x-amz-target": "AWSCognitoIdentityService.MergeDeveloperIdentities",
|
|
177
|
+
};
|
|
178
|
+
body = JSON.stringify(serializeAws_json1_1MergeDeveloperIdentitiesInput(input, context));
|
|
179
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
180
|
+
});
|
|
181
|
+
}); };
|
|
182
|
+
export var serializeAws_json1_1SetIdentityPoolRolesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
183
|
+
var headers, body;
|
|
184
|
+
return __generator(this, function (_a) {
|
|
185
|
+
headers = {
|
|
186
|
+
"content-type": "application/x-amz-json-1.1",
|
|
187
|
+
"x-amz-target": "AWSCognitoIdentityService.SetIdentityPoolRoles",
|
|
188
|
+
};
|
|
189
|
+
body = JSON.stringify(serializeAws_json1_1SetIdentityPoolRolesInput(input, context));
|
|
190
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
191
|
+
});
|
|
192
|
+
}); };
|
|
193
|
+
export var serializeAws_json1_1SetPrincipalTagAttributeMapCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
194
|
+
var headers, body;
|
|
195
|
+
return __generator(this, function (_a) {
|
|
196
|
+
headers = {
|
|
197
|
+
"content-type": "application/x-amz-json-1.1",
|
|
198
|
+
"x-amz-target": "AWSCognitoIdentityService.SetPrincipalTagAttributeMap",
|
|
199
|
+
};
|
|
200
|
+
body = JSON.stringify(serializeAws_json1_1SetPrincipalTagAttributeMapInput(input, context));
|
|
201
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
202
|
+
});
|
|
203
|
+
}); };
|
|
204
|
+
export var serializeAws_json1_1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
205
|
+
var headers, body;
|
|
206
|
+
return __generator(this, function (_a) {
|
|
207
|
+
headers = {
|
|
208
|
+
"content-type": "application/x-amz-json-1.1",
|
|
209
|
+
"x-amz-target": "AWSCognitoIdentityService.TagResource",
|
|
210
|
+
};
|
|
211
|
+
body = JSON.stringify(serializeAws_json1_1TagResourceInput(input, context));
|
|
212
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
213
|
+
});
|
|
214
|
+
}); };
|
|
215
|
+
export var serializeAws_json1_1UnlinkDeveloperIdentityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
216
|
+
var headers, body;
|
|
217
|
+
return __generator(this, function (_a) {
|
|
218
|
+
headers = {
|
|
219
|
+
"content-type": "application/x-amz-json-1.1",
|
|
220
|
+
"x-amz-target": "AWSCognitoIdentityService.UnlinkDeveloperIdentity",
|
|
221
|
+
};
|
|
222
|
+
body = JSON.stringify(serializeAws_json1_1UnlinkDeveloperIdentityInput(input, context));
|
|
223
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
224
|
+
});
|
|
225
|
+
}); };
|
|
226
|
+
export var serializeAws_json1_1UnlinkIdentityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
227
|
+
var headers, body;
|
|
228
|
+
return __generator(this, function (_a) {
|
|
229
|
+
headers = {
|
|
230
|
+
"content-type": "application/x-amz-json-1.1",
|
|
231
|
+
"x-amz-target": "AWSCognitoIdentityService.UnlinkIdentity",
|
|
232
|
+
};
|
|
233
|
+
body = JSON.stringify(serializeAws_json1_1UnlinkIdentityInput(input, context));
|
|
234
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
235
|
+
});
|
|
236
|
+
}); };
|
|
237
|
+
export var serializeAws_json1_1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
238
|
+
var headers, body;
|
|
239
|
+
return __generator(this, function (_a) {
|
|
240
|
+
headers = {
|
|
241
|
+
"content-type": "application/x-amz-json-1.1",
|
|
242
|
+
"x-amz-target": "AWSCognitoIdentityService.UntagResource",
|
|
243
|
+
};
|
|
244
|
+
body = JSON.stringify(serializeAws_json1_1UntagResourceInput(input, context));
|
|
245
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
246
|
+
});
|
|
247
|
+
}); };
|
|
248
|
+
export var serializeAws_json1_1UpdateIdentityPoolCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
249
|
+
var headers, body;
|
|
250
|
+
return __generator(this, function (_a) {
|
|
251
|
+
headers = {
|
|
252
|
+
"content-type": "application/x-amz-json-1.1",
|
|
253
|
+
"x-amz-target": "AWSCognitoIdentityService.UpdateIdentityPool",
|
|
254
|
+
};
|
|
255
|
+
body = JSON.stringify(serializeAws_json1_1IdentityPool(input, context));
|
|
256
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
257
|
+
});
|
|
258
|
+
}); };
|
|
259
|
+
export var deserializeAws_json1_1CreateIdentityPoolCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
260
|
+
var data, contents, response;
|
|
261
|
+
return __generator(this, function (_a) {
|
|
262
|
+
switch (_a.label) {
|
|
263
|
+
case 0:
|
|
264
|
+
if (output.statusCode >= 300) {
|
|
265
|
+
return [2, deserializeAws_json1_1CreateIdentityPoolCommandError(output, context)];
|
|
266
|
+
}
|
|
267
|
+
return [4, parseBody(output.body, context)];
|
|
268
|
+
case 1:
|
|
269
|
+
data = _a.sent();
|
|
270
|
+
contents = {};
|
|
271
|
+
contents = deserializeAws_json1_1IdentityPool(data, context);
|
|
272
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
273
|
+
return [2, Promise.resolve(response)];
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
}); };
|
|
277
|
+
var deserializeAws_json1_1CreateIdentityPoolCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
278
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
279
|
+
var _c;
|
|
280
|
+
return __generator(this, function (_d) {
|
|
281
|
+
switch (_d.label) {
|
|
282
|
+
case 0:
|
|
283
|
+
_a = [__assign({}, output)];
|
|
284
|
+
_c = {};
|
|
285
|
+
return [4, parseBody(output.body, context)];
|
|
286
|
+
case 1:
|
|
287
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
288
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
289
|
+
_b = errorCode;
|
|
290
|
+
switch (_b) {
|
|
291
|
+
case "InternalErrorException": return [3, 2];
|
|
292
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 2];
|
|
293
|
+
case "InvalidParameterException": return [3, 4];
|
|
294
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 4];
|
|
295
|
+
case "LimitExceededException": return [3, 6];
|
|
296
|
+
case "com.amazonaws.cognitoidentity#LimitExceededException": return [3, 6];
|
|
297
|
+
case "NotAuthorizedException": return [3, 8];
|
|
298
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3, 8];
|
|
299
|
+
case "ResourceConflictException": return [3, 10];
|
|
300
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3, 10];
|
|
301
|
+
case "TooManyRequestsException": return [3, 12];
|
|
302
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 12];
|
|
303
|
+
}
|
|
304
|
+
return [3, 14];
|
|
305
|
+
case 2: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
306
|
+
case 3: throw _d.sent();
|
|
307
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
308
|
+
case 5: throw _d.sent();
|
|
309
|
+
case 6: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
310
|
+
case 7: throw _d.sent();
|
|
311
|
+
case 8: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
312
|
+
case 9: throw _d.sent();
|
|
313
|
+
case 10: return [4, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
314
|
+
case 11: throw _d.sent();
|
|
315
|
+
case 12: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
316
|
+
case 13: throw _d.sent();
|
|
317
|
+
case 14:
|
|
318
|
+
parsedBody = parsedOutput.body;
|
|
319
|
+
throwDefaultError({
|
|
320
|
+
output: output,
|
|
321
|
+
parsedBody: parsedBody,
|
|
322
|
+
exceptionCtor: __BaseException,
|
|
323
|
+
errorCode: errorCode,
|
|
324
|
+
});
|
|
325
|
+
_d.label = 15;
|
|
326
|
+
case 15: return [2];
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
}); };
|
|
330
|
+
export var deserializeAws_json1_1DeleteIdentitiesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
331
|
+
var data, contents, response;
|
|
332
|
+
return __generator(this, function (_a) {
|
|
333
|
+
switch (_a.label) {
|
|
334
|
+
case 0:
|
|
335
|
+
if (output.statusCode >= 300) {
|
|
336
|
+
return [2, deserializeAws_json1_1DeleteIdentitiesCommandError(output, context)];
|
|
337
|
+
}
|
|
338
|
+
return [4, parseBody(output.body, context)];
|
|
339
|
+
case 1:
|
|
340
|
+
data = _a.sent();
|
|
341
|
+
contents = {};
|
|
342
|
+
contents = deserializeAws_json1_1DeleteIdentitiesResponse(data, context);
|
|
343
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
344
|
+
return [2, Promise.resolve(response)];
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
}); };
|
|
348
|
+
var deserializeAws_json1_1DeleteIdentitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
349
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
350
|
+
var _c;
|
|
351
|
+
return __generator(this, function (_d) {
|
|
352
|
+
switch (_d.label) {
|
|
353
|
+
case 0:
|
|
354
|
+
_a = [__assign({}, output)];
|
|
355
|
+
_c = {};
|
|
356
|
+
return [4, parseBody(output.body, context)];
|
|
357
|
+
case 1:
|
|
358
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
359
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
360
|
+
_b = errorCode;
|
|
361
|
+
switch (_b) {
|
|
362
|
+
case "InternalErrorException": return [3, 2];
|
|
363
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 2];
|
|
364
|
+
case "InvalidParameterException": return [3, 4];
|
|
365
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 4];
|
|
366
|
+
case "TooManyRequestsException": return [3, 6];
|
|
367
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 6];
|
|
368
|
+
}
|
|
369
|
+
return [3, 8];
|
|
370
|
+
case 2: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
371
|
+
case 3: throw _d.sent();
|
|
372
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
373
|
+
case 5: throw _d.sent();
|
|
374
|
+
case 6: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
375
|
+
case 7: throw _d.sent();
|
|
376
|
+
case 8:
|
|
377
|
+
parsedBody = parsedOutput.body;
|
|
378
|
+
throwDefaultError({
|
|
379
|
+
output: output,
|
|
380
|
+
parsedBody: parsedBody,
|
|
381
|
+
exceptionCtor: __BaseException,
|
|
382
|
+
errorCode: errorCode,
|
|
383
|
+
});
|
|
384
|
+
_d.label = 9;
|
|
385
|
+
case 9: return [2];
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
}); };
|
|
389
|
+
export var deserializeAws_json1_1DeleteIdentityPoolCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
390
|
+
var response;
|
|
391
|
+
return __generator(this, function (_a) {
|
|
392
|
+
switch (_a.label) {
|
|
393
|
+
case 0:
|
|
394
|
+
if (output.statusCode >= 300) {
|
|
395
|
+
return [2, deserializeAws_json1_1DeleteIdentityPoolCommandError(output, context)];
|
|
396
|
+
}
|
|
397
|
+
return [4, collectBody(output.body, context)];
|
|
398
|
+
case 1:
|
|
399
|
+
_a.sent();
|
|
400
|
+
response = {
|
|
401
|
+
$metadata: deserializeMetadata(output),
|
|
402
|
+
};
|
|
403
|
+
return [2, Promise.resolve(response)];
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
}); };
|
|
407
|
+
var deserializeAws_json1_1DeleteIdentityPoolCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
408
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
409
|
+
var _c;
|
|
410
|
+
return __generator(this, function (_d) {
|
|
411
|
+
switch (_d.label) {
|
|
412
|
+
case 0:
|
|
413
|
+
_a = [__assign({}, output)];
|
|
414
|
+
_c = {};
|
|
415
|
+
return [4, parseBody(output.body, context)];
|
|
416
|
+
case 1:
|
|
417
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
418
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
419
|
+
_b = errorCode;
|
|
420
|
+
switch (_b) {
|
|
421
|
+
case "InternalErrorException": return [3, 2];
|
|
422
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 2];
|
|
423
|
+
case "InvalidParameterException": return [3, 4];
|
|
424
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 4];
|
|
425
|
+
case "NotAuthorizedException": return [3, 6];
|
|
426
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3, 6];
|
|
427
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
428
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3, 8];
|
|
429
|
+
case "TooManyRequestsException": return [3, 10];
|
|
430
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 10];
|
|
431
|
+
}
|
|
432
|
+
return [3, 12];
|
|
433
|
+
case 2: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
434
|
+
case 3: throw _d.sent();
|
|
435
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
436
|
+
case 5: throw _d.sent();
|
|
437
|
+
case 6: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
438
|
+
case 7: throw _d.sent();
|
|
439
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
440
|
+
case 9: throw _d.sent();
|
|
441
|
+
case 10: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
442
|
+
case 11: throw _d.sent();
|
|
443
|
+
case 12:
|
|
444
|
+
parsedBody = parsedOutput.body;
|
|
445
|
+
throwDefaultError({
|
|
446
|
+
output: output,
|
|
447
|
+
parsedBody: parsedBody,
|
|
448
|
+
exceptionCtor: __BaseException,
|
|
449
|
+
errorCode: errorCode,
|
|
450
|
+
});
|
|
451
|
+
_d.label = 13;
|
|
452
|
+
case 13: return [2];
|
|
453
|
+
}
|
|
454
|
+
});
|
|
455
|
+
}); };
|
|
456
|
+
export var deserializeAws_json1_1DescribeIdentityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
457
|
+
var data, contents, response;
|
|
458
|
+
return __generator(this, function (_a) {
|
|
459
|
+
switch (_a.label) {
|
|
460
|
+
case 0:
|
|
461
|
+
if (output.statusCode >= 300) {
|
|
462
|
+
return [2, deserializeAws_json1_1DescribeIdentityCommandError(output, context)];
|
|
463
|
+
}
|
|
464
|
+
return [4, parseBody(output.body, context)];
|
|
465
|
+
case 1:
|
|
466
|
+
data = _a.sent();
|
|
467
|
+
contents = {};
|
|
468
|
+
contents = deserializeAws_json1_1IdentityDescription(data, context);
|
|
469
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
470
|
+
return [2, Promise.resolve(response)];
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
}); };
|
|
474
|
+
var deserializeAws_json1_1DescribeIdentityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
475
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
476
|
+
var _c;
|
|
477
|
+
return __generator(this, function (_d) {
|
|
478
|
+
switch (_d.label) {
|
|
479
|
+
case 0:
|
|
480
|
+
_a = [__assign({}, output)];
|
|
481
|
+
_c = {};
|
|
482
|
+
return [4, parseBody(output.body, context)];
|
|
483
|
+
case 1:
|
|
484
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
485
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
486
|
+
_b = errorCode;
|
|
487
|
+
switch (_b) {
|
|
488
|
+
case "InternalErrorException": return [3, 2];
|
|
489
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 2];
|
|
490
|
+
case "InvalidParameterException": return [3, 4];
|
|
491
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 4];
|
|
492
|
+
case "NotAuthorizedException": return [3, 6];
|
|
493
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3, 6];
|
|
494
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
495
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3, 8];
|
|
496
|
+
case "TooManyRequestsException": return [3, 10];
|
|
497
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 10];
|
|
498
|
+
}
|
|
499
|
+
return [3, 12];
|
|
500
|
+
case 2: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
501
|
+
case 3: throw _d.sent();
|
|
502
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
503
|
+
case 5: throw _d.sent();
|
|
504
|
+
case 6: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
505
|
+
case 7: throw _d.sent();
|
|
506
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
507
|
+
case 9: throw _d.sent();
|
|
508
|
+
case 10: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
509
|
+
case 11: throw _d.sent();
|
|
510
|
+
case 12:
|
|
511
|
+
parsedBody = parsedOutput.body;
|
|
512
|
+
throwDefaultError({
|
|
513
|
+
output: output,
|
|
514
|
+
parsedBody: parsedBody,
|
|
515
|
+
exceptionCtor: __BaseException,
|
|
516
|
+
errorCode: errorCode,
|
|
517
|
+
});
|
|
518
|
+
_d.label = 13;
|
|
519
|
+
case 13: return [2];
|
|
520
|
+
}
|
|
521
|
+
});
|
|
522
|
+
}); };
|
|
523
|
+
export var deserializeAws_json1_1DescribeIdentityPoolCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
524
|
+
var data, contents, response;
|
|
525
|
+
return __generator(this, function (_a) {
|
|
526
|
+
switch (_a.label) {
|
|
527
|
+
case 0:
|
|
528
|
+
if (output.statusCode >= 300) {
|
|
529
|
+
return [2, deserializeAws_json1_1DescribeIdentityPoolCommandError(output, context)];
|
|
530
|
+
}
|
|
531
|
+
return [4, parseBody(output.body, context)];
|
|
532
|
+
case 1:
|
|
533
|
+
data = _a.sent();
|
|
534
|
+
contents = {};
|
|
535
|
+
contents = deserializeAws_json1_1IdentityPool(data, context);
|
|
536
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
537
|
+
return [2, Promise.resolve(response)];
|
|
538
|
+
}
|
|
539
|
+
});
|
|
540
|
+
}); };
|
|
541
|
+
var deserializeAws_json1_1DescribeIdentityPoolCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
542
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
543
|
+
var _c;
|
|
544
|
+
return __generator(this, function (_d) {
|
|
545
|
+
switch (_d.label) {
|
|
546
|
+
case 0:
|
|
547
|
+
_a = [__assign({}, output)];
|
|
548
|
+
_c = {};
|
|
549
|
+
return [4, parseBody(output.body, context)];
|
|
550
|
+
case 1:
|
|
551
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
552
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
553
|
+
_b = errorCode;
|
|
554
|
+
switch (_b) {
|
|
555
|
+
case "InternalErrorException": return [3, 2];
|
|
556
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 2];
|
|
557
|
+
case "InvalidParameterException": return [3, 4];
|
|
558
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 4];
|
|
559
|
+
case "NotAuthorizedException": return [3, 6];
|
|
560
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3, 6];
|
|
561
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
562
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3, 8];
|
|
563
|
+
case "TooManyRequestsException": return [3, 10];
|
|
564
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 10];
|
|
565
|
+
}
|
|
566
|
+
return [3, 12];
|
|
567
|
+
case 2: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
568
|
+
case 3: throw _d.sent();
|
|
569
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
570
|
+
case 5: throw _d.sent();
|
|
571
|
+
case 6: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
572
|
+
case 7: throw _d.sent();
|
|
573
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
574
|
+
case 9: throw _d.sent();
|
|
575
|
+
case 10: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
576
|
+
case 11: throw _d.sent();
|
|
577
|
+
case 12:
|
|
578
|
+
parsedBody = parsedOutput.body;
|
|
579
|
+
throwDefaultError({
|
|
580
|
+
output: output,
|
|
581
|
+
parsedBody: parsedBody,
|
|
582
|
+
exceptionCtor: __BaseException,
|
|
583
|
+
errorCode: errorCode,
|
|
584
|
+
});
|
|
585
|
+
_d.label = 13;
|
|
586
|
+
case 13: return [2];
|
|
587
|
+
}
|
|
588
|
+
});
|
|
589
|
+
}); };
|
|
590
|
+
export var deserializeAws_json1_1GetCredentialsForIdentityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
591
|
+
var data, contents, response;
|
|
592
|
+
return __generator(this, function (_a) {
|
|
593
|
+
switch (_a.label) {
|
|
594
|
+
case 0:
|
|
595
|
+
if (output.statusCode >= 300) {
|
|
596
|
+
return [2, deserializeAws_json1_1GetCredentialsForIdentityCommandError(output, context)];
|
|
597
|
+
}
|
|
598
|
+
return [4, parseBody(output.body, context)];
|
|
599
|
+
case 1:
|
|
600
|
+
data = _a.sent();
|
|
601
|
+
contents = {};
|
|
602
|
+
contents = deserializeAws_json1_1GetCredentialsForIdentityResponse(data, context);
|
|
603
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
604
|
+
return [2, Promise.resolve(response)];
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
}); };
|
|
608
|
+
var deserializeAws_json1_1GetCredentialsForIdentityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
609
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
610
|
+
var _c;
|
|
611
|
+
return __generator(this, function (_d) {
|
|
612
|
+
switch (_d.label) {
|
|
613
|
+
case 0:
|
|
614
|
+
_a = [__assign({}, output)];
|
|
615
|
+
_c = {};
|
|
616
|
+
return [4, parseBody(output.body, context)];
|
|
617
|
+
case 1:
|
|
618
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
619
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
620
|
+
_b = errorCode;
|
|
621
|
+
switch (_b) {
|
|
622
|
+
case "ExternalServiceException": return [3, 2];
|
|
623
|
+
case "com.amazonaws.cognitoidentity#ExternalServiceException": return [3, 2];
|
|
624
|
+
case "InternalErrorException": return [3, 4];
|
|
625
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 4];
|
|
626
|
+
case "InvalidIdentityPoolConfigurationException": return [3, 6];
|
|
627
|
+
case "com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException": return [3, 6];
|
|
628
|
+
case "InvalidParameterException": return [3, 8];
|
|
629
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 8];
|
|
630
|
+
case "NotAuthorizedException": return [3, 10];
|
|
631
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3, 10];
|
|
632
|
+
case "ResourceConflictException": return [3, 12];
|
|
633
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3, 12];
|
|
634
|
+
case "ResourceNotFoundException": return [3, 14];
|
|
635
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3, 14];
|
|
636
|
+
case "TooManyRequestsException": return [3, 16];
|
|
637
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 16];
|
|
638
|
+
}
|
|
639
|
+
return [3, 18];
|
|
640
|
+
case 2: return [4, deserializeAws_json1_1ExternalServiceExceptionResponse(parsedOutput, context)];
|
|
641
|
+
case 3: throw _d.sent();
|
|
642
|
+
case 4: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
643
|
+
case 5: throw _d.sent();
|
|
644
|
+
case 6: return [4, deserializeAws_json1_1InvalidIdentityPoolConfigurationExceptionResponse(parsedOutput, context)];
|
|
645
|
+
case 7: throw _d.sent();
|
|
646
|
+
case 8: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
647
|
+
case 9: throw _d.sent();
|
|
648
|
+
case 10: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
649
|
+
case 11: throw _d.sent();
|
|
650
|
+
case 12: return [4, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
651
|
+
case 13: throw _d.sent();
|
|
652
|
+
case 14: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
653
|
+
case 15: throw _d.sent();
|
|
654
|
+
case 16: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
655
|
+
case 17: throw _d.sent();
|
|
656
|
+
case 18:
|
|
657
|
+
parsedBody = parsedOutput.body;
|
|
658
|
+
throwDefaultError({
|
|
659
|
+
output: output,
|
|
660
|
+
parsedBody: parsedBody,
|
|
661
|
+
exceptionCtor: __BaseException,
|
|
662
|
+
errorCode: errorCode,
|
|
663
|
+
});
|
|
664
|
+
_d.label = 19;
|
|
665
|
+
case 19: return [2];
|
|
666
|
+
}
|
|
667
|
+
});
|
|
668
|
+
}); };
|
|
669
|
+
export var deserializeAws_json1_1GetIdCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
670
|
+
var data, contents, response;
|
|
671
|
+
return __generator(this, function (_a) {
|
|
672
|
+
switch (_a.label) {
|
|
673
|
+
case 0:
|
|
674
|
+
if (output.statusCode >= 300) {
|
|
675
|
+
return [2, deserializeAws_json1_1GetIdCommandError(output, context)];
|
|
676
|
+
}
|
|
677
|
+
return [4, parseBody(output.body, context)];
|
|
678
|
+
case 1:
|
|
679
|
+
data = _a.sent();
|
|
680
|
+
contents = {};
|
|
681
|
+
contents = deserializeAws_json1_1GetIdResponse(data, context);
|
|
682
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
683
|
+
return [2, Promise.resolve(response)];
|
|
684
|
+
}
|
|
685
|
+
});
|
|
686
|
+
}); };
|
|
687
|
+
var deserializeAws_json1_1GetIdCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
688
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
689
|
+
var _c;
|
|
690
|
+
return __generator(this, function (_d) {
|
|
691
|
+
switch (_d.label) {
|
|
692
|
+
case 0:
|
|
693
|
+
_a = [__assign({}, output)];
|
|
694
|
+
_c = {};
|
|
695
|
+
return [4, parseBody(output.body, context)];
|
|
696
|
+
case 1:
|
|
697
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
698
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
699
|
+
_b = errorCode;
|
|
700
|
+
switch (_b) {
|
|
701
|
+
case "ExternalServiceException": return [3, 2];
|
|
702
|
+
case "com.amazonaws.cognitoidentity#ExternalServiceException": return [3, 2];
|
|
703
|
+
case "InternalErrorException": return [3, 4];
|
|
704
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 4];
|
|
705
|
+
case "InvalidParameterException": return [3, 6];
|
|
706
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 6];
|
|
707
|
+
case "LimitExceededException": return [3, 8];
|
|
708
|
+
case "com.amazonaws.cognitoidentity#LimitExceededException": return [3, 8];
|
|
709
|
+
case "NotAuthorizedException": return [3, 10];
|
|
710
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3, 10];
|
|
711
|
+
case "ResourceConflictException": return [3, 12];
|
|
712
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3, 12];
|
|
713
|
+
case "ResourceNotFoundException": return [3, 14];
|
|
714
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3, 14];
|
|
715
|
+
case "TooManyRequestsException": return [3, 16];
|
|
716
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 16];
|
|
717
|
+
}
|
|
718
|
+
return [3, 18];
|
|
719
|
+
case 2: return [4, deserializeAws_json1_1ExternalServiceExceptionResponse(parsedOutput, context)];
|
|
720
|
+
case 3: throw _d.sent();
|
|
721
|
+
case 4: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
722
|
+
case 5: throw _d.sent();
|
|
723
|
+
case 6: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
724
|
+
case 7: throw _d.sent();
|
|
725
|
+
case 8: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
726
|
+
case 9: throw _d.sent();
|
|
727
|
+
case 10: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
728
|
+
case 11: throw _d.sent();
|
|
729
|
+
case 12: return [4, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
730
|
+
case 13: throw _d.sent();
|
|
731
|
+
case 14: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
732
|
+
case 15: throw _d.sent();
|
|
733
|
+
case 16: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
734
|
+
case 17: throw _d.sent();
|
|
735
|
+
case 18:
|
|
736
|
+
parsedBody = parsedOutput.body;
|
|
737
|
+
throwDefaultError({
|
|
738
|
+
output: output,
|
|
739
|
+
parsedBody: parsedBody,
|
|
740
|
+
exceptionCtor: __BaseException,
|
|
741
|
+
errorCode: errorCode,
|
|
742
|
+
});
|
|
743
|
+
_d.label = 19;
|
|
744
|
+
case 19: return [2];
|
|
745
|
+
}
|
|
746
|
+
});
|
|
747
|
+
}); };
|
|
748
|
+
export var deserializeAws_json1_1GetIdentityPoolRolesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
749
|
+
var data, contents, response;
|
|
750
|
+
return __generator(this, function (_a) {
|
|
751
|
+
switch (_a.label) {
|
|
752
|
+
case 0:
|
|
753
|
+
if (output.statusCode >= 300) {
|
|
754
|
+
return [2, deserializeAws_json1_1GetIdentityPoolRolesCommandError(output, context)];
|
|
755
|
+
}
|
|
756
|
+
return [4, parseBody(output.body, context)];
|
|
757
|
+
case 1:
|
|
758
|
+
data = _a.sent();
|
|
759
|
+
contents = {};
|
|
760
|
+
contents = deserializeAws_json1_1GetIdentityPoolRolesResponse(data, context);
|
|
761
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
762
|
+
return [2, Promise.resolve(response)];
|
|
763
|
+
}
|
|
764
|
+
});
|
|
765
|
+
}); };
|
|
766
|
+
var deserializeAws_json1_1GetIdentityPoolRolesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
767
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
768
|
+
var _c;
|
|
769
|
+
return __generator(this, function (_d) {
|
|
770
|
+
switch (_d.label) {
|
|
771
|
+
case 0:
|
|
772
|
+
_a = [__assign({}, output)];
|
|
773
|
+
_c = {};
|
|
774
|
+
return [4, parseBody(output.body, context)];
|
|
775
|
+
case 1:
|
|
776
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
777
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
778
|
+
_b = errorCode;
|
|
779
|
+
switch (_b) {
|
|
780
|
+
case "InternalErrorException": return [3, 2];
|
|
781
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 2];
|
|
782
|
+
case "InvalidParameterException": return [3, 4];
|
|
783
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 4];
|
|
784
|
+
case "NotAuthorizedException": return [3, 6];
|
|
785
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3, 6];
|
|
786
|
+
case "ResourceConflictException": return [3, 8];
|
|
787
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3, 8];
|
|
788
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
789
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3, 10];
|
|
790
|
+
case "TooManyRequestsException": return [3, 12];
|
|
791
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 12];
|
|
792
|
+
}
|
|
793
|
+
return [3, 14];
|
|
794
|
+
case 2: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
795
|
+
case 3: throw _d.sent();
|
|
796
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
797
|
+
case 5: throw _d.sent();
|
|
798
|
+
case 6: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
799
|
+
case 7: throw _d.sent();
|
|
800
|
+
case 8: return [4, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
801
|
+
case 9: throw _d.sent();
|
|
802
|
+
case 10: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
803
|
+
case 11: throw _d.sent();
|
|
804
|
+
case 12: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
805
|
+
case 13: throw _d.sent();
|
|
806
|
+
case 14:
|
|
807
|
+
parsedBody = parsedOutput.body;
|
|
808
|
+
throwDefaultError({
|
|
809
|
+
output: output,
|
|
810
|
+
parsedBody: parsedBody,
|
|
811
|
+
exceptionCtor: __BaseException,
|
|
812
|
+
errorCode: errorCode,
|
|
813
|
+
});
|
|
814
|
+
_d.label = 15;
|
|
815
|
+
case 15: return [2];
|
|
816
|
+
}
|
|
817
|
+
});
|
|
818
|
+
}); };
|
|
819
|
+
export var deserializeAws_json1_1GetOpenIdTokenCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
820
|
+
var data, contents, response;
|
|
821
|
+
return __generator(this, function (_a) {
|
|
822
|
+
switch (_a.label) {
|
|
823
|
+
case 0:
|
|
824
|
+
if (output.statusCode >= 300) {
|
|
825
|
+
return [2, deserializeAws_json1_1GetOpenIdTokenCommandError(output, context)];
|
|
826
|
+
}
|
|
827
|
+
return [4, parseBody(output.body, context)];
|
|
828
|
+
case 1:
|
|
829
|
+
data = _a.sent();
|
|
830
|
+
contents = {};
|
|
831
|
+
contents = deserializeAws_json1_1GetOpenIdTokenResponse(data, context);
|
|
832
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
833
|
+
return [2, Promise.resolve(response)];
|
|
834
|
+
}
|
|
835
|
+
});
|
|
836
|
+
}); };
|
|
837
|
+
var deserializeAws_json1_1GetOpenIdTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
838
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
839
|
+
var _c;
|
|
840
|
+
return __generator(this, function (_d) {
|
|
841
|
+
switch (_d.label) {
|
|
842
|
+
case 0:
|
|
843
|
+
_a = [__assign({}, output)];
|
|
844
|
+
_c = {};
|
|
845
|
+
return [4, parseBody(output.body, context)];
|
|
846
|
+
case 1:
|
|
847
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
848
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
849
|
+
_b = errorCode;
|
|
850
|
+
switch (_b) {
|
|
851
|
+
case "ExternalServiceException": return [3, 2];
|
|
852
|
+
case "com.amazonaws.cognitoidentity#ExternalServiceException": return [3, 2];
|
|
853
|
+
case "InternalErrorException": return [3, 4];
|
|
854
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 4];
|
|
855
|
+
case "InvalidParameterException": return [3, 6];
|
|
856
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 6];
|
|
857
|
+
case "NotAuthorizedException": return [3, 8];
|
|
858
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3, 8];
|
|
859
|
+
case "ResourceConflictException": return [3, 10];
|
|
860
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3, 10];
|
|
861
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
862
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3, 12];
|
|
863
|
+
case "TooManyRequestsException": return [3, 14];
|
|
864
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 14];
|
|
865
|
+
}
|
|
866
|
+
return [3, 16];
|
|
867
|
+
case 2: return [4, deserializeAws_json1_1ExternalServiceExceptionResponse(parsedOutput, context)];
|
|
868
|
+
case 3: throw _d.sent();
|
|
869
|
+
case 4: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
870
|
+
case 5: throw _d.sent();
|
|
871
|
+
case 6: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
872
|
+
case 7: throw _d.sent();
|
|
873
|
+
case 8: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
874
|
+
case 9: throw _d.sent();
|
|
875
|
+
case 10: return [4, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
876
|
+
case 11: throw _d.sent();
|
|
877
|
+
case 12: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
878
|
+
case 13: throw _d.sent();
|
|
879
|
+
case 14: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
880
|
+
case 15: throw _d.sent();
|
|
881
|
+
case 16:
|
|
882
|
+
parsedBody = parsedOutput.body;
|
|
883
|
+
throwDefaultError({
|
|
884
|
+
output: output,
|
|
885
|
+
parsedBody: parsedBody,
|
|
886
|
+
exceptionCtor: __BaseException,
|
|
887
|
+
errorCode: errorCode,
|
|
888
|
+
});
|
|
889
|
+
_d.label = 17;
|
|
890
|
+
case 17: return [2];
|
|
891
|
+
}
|
|
892
|
+
});
|
|
893
|
+
}); };
|
|
894
|
+
export var deserializeAws_json1_1GetOpenIdTokenForDeveloperIdentityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
895
|
+
var data, contents, response;
|
|
896
|
+
return __generator(this, function (_a) {
|
|
897
|
+
switch (_a.label) {
|
|
898
|
+
case 0:
|
|
899
|
+
if (output.statusCode >= 300) {
|
|
900
|
+
return [2, deserializeAws_json1_1GetOpenIdTokenForDeveloperIdentityCommandError(output, context)];
|
|
901
|
+
}
|
|
902
|
+
return [4, parseBody(output.body, context)];
|
|
903
|
+
case 1:
|
|
904
|
+
data = _a.sent();
|
|
905
|
+
contents = {};
|
|
906
|
+
contents = deserializeAws_json1_1GetOpenIdTokenForDeveloperIdentityResponse(data, context);
|
|
907
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
908
|
+
return [2, Promise.resolve(response)];
|
|
909
|
+
}
|
|
910
|
+
});
|
|
911
|
+
}); };
|
|
912
|
+
var deserializeAws_json1_1GetOpenIdTokenForDeveloperIdentityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
913
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
914
|
+
var _c;
|
|
915
|
+
return __generator(this, function (_d) {
|
|
916
|
+
switch (_d.label) {
|
|
917
|
+
case 0:
|
|
918
|
+
_a = [__assign({}, output)];
|
|
919
|
+
_c = {};
|
|
920
|
+
return [4, parseBody(output.body, context)];
|
|
921
|
+
case 1:
|
|
922
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
923
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
924
|
+
_b = errorCode;
|
|
925
|
+
switch (_b) {
|
|
926
|
+
case "DeveloperUserAlreadyRegisteredException": return [3, 2];
|
|
927
|
+
case "com.amazonaws.cognitoidentity#DeveloperUserAlreadyRegisteredException": return [3, 2];
|
|
928
|
+
case "InternalErrorException": return [3, 4];
|
|
929
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 4];
|
|
930
|
+
case "InvalidParameterException": return [3, 6];
|
|
931
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 6];
|
|
932
|
+
case "NotAuthorizedException": return [3, 8];
|
|
933
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3, 8];
|
|
934
|
+
case "ResourceConflictException": return [3, 10];
|
|
935
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3, 10];
|
|
936
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
937
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3, 12];
|
|
938
|
+
case "TooManyRequestsException": return [3, 14];
|
|
939
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 14];
|
|
940
|
+
}
|
|
941
|
+
return [3, 16];
|
|
942
|
+
case 2: return [4, deserializeAws_json1_1DeveloperUserAlreadyRegisteredExceptionResponse(parsedOutput, context)];
|
|
943
|
+
case 3: throw _d.sent();
|
|
944
|
+
case 4: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
945
|
+
case 5: throw _d.sent();
|
|
946
|
+
case 6: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
947
|
+
case 7: throw _d.sent();
|
|
948
|
+
case 8: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
949
|
+
case 9: throw _d.sent();
|
|
950
|
+
case 10: return [4, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
951
|
+
case 11: throw _d.sent();
|
|
952
|
+
case 12: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
953
|
+
case 13: throw _d.sent();
|
|
954
|
+
case 14: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
955
|
+
case 15: throw _d.sent();
|
|
956
|
+
case 16:
|
|
957
|
+
parsedBody = parsedOutput.body;
|
|
958
|
+
throwDefaultError({
|
|
959
|
+
output: output,
|
|
960
|
+
parsedBody: parsedBody,
|
|
961
|
+
exceptionCtor: __BaseException,
|
|
962
|
+
errorCode: errorCode,
|
|
963
|
+
});
|
|
964
|
+
_d.label = 17;
|
|
965
|
+
case 17: return [2];
|
|
966
|
+
}
|
|
967
|
+
});
|
|
968
|
+
}); };
|
|
969
|
+
export var deserializeAws_json1_1GetPrincipalTagAttributeMapCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
970
|
+
var data, contents, response;
|
|
971
|
+
return __generator(this, function (_a) {
|
|
972
|
+
switch (_a.label) {
|
|
973
|
+
case 0:
|
|
974
|
+
if (output.statusCode >= 300) {
|
|
975
|
+
return [2, deserializeAws_json1_1GetPrincipalTagAttributeMapCommandError(output, context)];
|
|
976
|
+
}
|
|
977
|
+
return [4, parseBody(output.body, context)];
|
|
978
|
+
case 1:
|
|
979
|
+
data = _a.sent();
|
|
980
|
+
contents = {};
|
|
981
|
+
contents = deserializeAws_json1_1GetPrincipalTagAttributeMapResponse(data, context);
|
|
982
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
983
|
+
return [2, Promise.resolve(response)];
|
|
984
|
+
}
|
|
985
|
+
});
|
|
986
|
+
}); };
|
|
987
|
+
var deserializeAws_json1_1GetPrincipalTagAttributeMapCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
988
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
989
|
+
var _c;
|
|
990
|
+
return __generator(this, function (_d) {
|
|
991
|
+
switch (_d.label) {
|
|
992
|
+
case 0:
|
|
993
|
+
_a = [__assign({}, output)];
|
|
994
|
+
_c = {};
|
|
995
|
+
return [4, parseBody(output.body, context)];
|
|
996
|
+
case 1:
|
|
997
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
998
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
999
|
+
_b = errorCode;
|
|
1000
|
+
switch (_b) {
|
|
1001
|
+
case "InternalErrorException": return [3, 2];
|
|
1002
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 2];
|
|
1003
|
+
case "InvalidParameterException": return [3, 4];
|
|
1004
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 4];
|
|
1005
|
+
case "NotAuthorizedException": return [3, 6];
|
|
1006
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3, 6];
|
|
1007
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1008
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3, 8];
|
|
1009
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1010
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 10];
|
|
1011
|
+
}
|
|
1012
|
+
return [3, 12];
|
|
1013
|
+
case 2: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1014
|
+
case 3: throw _d.sent();
|
|
1015
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1016
|
+
case 5: throw _d.sent();
|
|
1017
|
+
case 6: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1018
|
+
case 7: throw _d.sent();
|
|
1019
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1020
|
+
case 9: throw _d.sent();
|
|
1021
|
+
case 10: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1022
|
+
case 11: throw _d.sent();
|
|
1023
|
+
case 12:
|
|
1024
|
+
parsedBody = parsedOutput.body;
|
|
1025
|
+
throwDefaultError({
|
|
1026
|
+
output: output,
|
|
1027
|
+
parsedBody: parsedBody,
|
|
1028
|
+
exceptionCtor: __BaseException,
|
|
1029
|
+
errorCode: errorCode,
|
|
1030
|
+
});
|
|
1031
|
+
_d.label = 13;
|
|
1032
|
+
case 13: return [2];
|
|
1033
|
+
}
|
|
1034
|
+
});
|
|
1035
|
+
}); };
|
|
1036
|
+
export var deserializeAws_json1_1ListIdentitiesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1037
|
+
var data, contents, response;
|
|
1038
|
+
return __generator(this, function (_a) {
|
|
1039
|
+
switch (_a.label) {
|
|
1040
|
+
case 0:
|
|
1041
|
+
if (output.statusCode >= 300) {
|
|
1042
|
+
return [2, deserializeAws_json1_1ListIdentitiesCommandError(output, context)];
|
|
1043
|
+
}
|
|
1044
|
+
return [4, parseBody(output.body, context)];
|
|
1045
|
+
case 1:
|
|
1046
|
+
data = _a.sent();
|
|
1047
|
+
contents = {};
|
|
1048
|
+
contents = deserializeAws_json1_1ListIdentitiesResponse(data, context);
|
|
1049
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1050
|
+
return [2, Promise.resolve(response)];
|
|
1051
|
+
}
|
|
1052
|
+
});
|
|
1053
|
+
}); };
|
|
1054
|
+
var deserializeAws_json1_1ListIdentitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1055
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1056
|
+
var _c;
|
|
1057
|
+
return __generator(this, function (_d) {
|
|
1058
|
+
switch (_d.label) {
|
|
1059
|
+
case 0:
|
|
1060
|
+
_a = [__assign({}, output)];
|
|
1061
|
+
_c = {};
|
|
1062
|
+
return [4, parseBody(output.body, context)];
|
|
1063
|
+
case 1:
|
|
1064
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1065
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
|
+
_b = errorCode;
|
|
1067
|
+
switch (_b) {
|
|
1068
|
+
case "InternalErrorException": return [3, 2];
|
|
1069
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 2];
|
|
1070
|
+
case "InvalidParameterException": return [3, 4];
|
|
1071
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 4];
|
|
1072
|
+
case "NotAuthorizedException": return [3, 6];
|
|
1073
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3, 6];
|
|
1074
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1075
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3, 8];
|
|
1076
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1077
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 10];
|
|
1078
|
+
}
|
|
1079
|
+
return [3, 12];
|
|
1080
|
+
case 2: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1081
|
+
case 3: throw _d.sent();
|
|
1082
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1083
|
+
case 5: throw _d.sent();
|
|
1084
|
+
case 6: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1085
|
+
case 7: throw _d.sent();
|
|
1086
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1087
|
+
case 9: throw _d.sent();
|
|
1088
|
+
case 10: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1089
|
+
case 11: throw _d.sent();
|
|
1090
|
+
case 12:
|
|
1091
|
+
parsedBody = parsedOutput.body;
|
|
1092
|
+
throwDefaultError({
|
|
1093
|
+
output: output,
|
|
1094
|
+
parsedBody: parsedBody,
|
|
1095
|
+
exceptionCtor: __BaseException,
|
|
1096
|
+
errorCode: errorCode,
|
|
1097
|
+
});
|
|
1098
|
+
_d.label = 13;
|
|
1099
|
+
case 13: return [2];
|
|
1100
|
+
}
|
|
1101
|
+
});
|
|
1102
|
+
}); };
|
|
1103
|
+
export var deserializeAws_json1_1ListIdentityPoolsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1104
|
+
var data, contents, response;
|
|
1105
|
+
return __generator(this, function (_a) {
|
|
1106
|
+
switch (_a.label) {
|
|
1107
|
+
case 0:
|
|
1108
|
+
if (output.statusCode >= 300) {
|
|
1109
|
+
return [2, deserializeAws_json1_1ListIdentityPoolsCommandError(output, context)];
|
|
1110
|
+
}
|
|
1111
|
+
return [4, parseBody(output.body, context)];
|
|
1112
|
+
case 1:
|
|
1113
|
+
data = _a.sent();
|
|
1114
|
+
contents = {};
|
|
1115
|
+
contents = deserializeAws_json1_1ListIdentityPoolsResponse(data, context);
|
|
1116
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1117
|
+
return [2, Promise.resolve(response)];
|
|
1118
|
+
}
|
|
1119
|
+
});
|
|
1120
|
+
}); };
|
|
1121
|
+
var deserializeAws_json1_1ListIdentityPoolsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1122
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1123
|
+
var _c;
|
|
1124
|
+
return __generator(this, function (_d) {
|
|
1125
|
+
switch (_d.label) {
|
|
1126
|
+
case 0:
|
|
1127
|
+
_a = [__assign({}, output)];
|
|
1128
|
+
_c = {};
|
|
1129
|
+
return [4, parseBody(output.body, context)];
|
|
1130
|
+
case 1:
|
|
1131
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1132
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1133
|
+
_b = errorCode;
|
|
1134
|
+
switch (_b) {
|
|
1135
|
+
case "InternalErrorException": return [3, 2];
|
|
1136
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 2];
|
|
1137
|
+
case "InvalidParameterException": return [3, 4];
|
|
1138
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 4];
|
|
1139
|
+
case "NotAuthorizedException": return [3, 6];
|
|
1140
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3, 6];
|
|
1141
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1142
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3, 8];
|
|
1143
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1144
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 10];
|
|
1145
|
+
}
|
|
1146
|
+
return [3, 12];
|
|
1147
|
+
case 2: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1148
|
+
case 3: throw _d.sent();
|
|
1149
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1150
|
+
case 5: throw _d.sent();
|
|
1151
|
+
case 6: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1152
|
+
case 7: throw _d.sent();
|
|
1153
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1154
|
+
case 9: throw _d.sent();
|
|
1155
|
+
case 10: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1156
|
+
case 11: throw _d.sent();
|
|
1157
|
+
case 12:
|
|
1158
|
+
parsedBody = parsedOutput.body;
|
|
1159
|
+
throwDefaultError({
|
|
1160
|
+
output: output,
|
|
1161
|
+
parsedBody: parsedBody,
|
|
1162
|
+
exceptionCtor: __BaseException,
|
|
1163
|
+
errorCode: errorCode,
|
|
1164
|
+
});
|
|
1165
|
+
_d.label = 13;
|
|
1166
|
+
case 13: return [2];
|
|
1167
|
+
}
|
|
1168
|
+
});
|
|
1169
|
+
}); };
|
|
1170
|
+
export var deserializeAws_json1_1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1171
|
+
var data, contents, response;
|
|
1172
|
+
return __generator(this, function (_a) {
|
|
1173
|
+
switch (_a.label) {
|
|
1174
|
+
case 0:
|
|
1175
|
+
if (output.statusCode >= 300) {
|
|
1176
|
+
return [2, deserializeAws_json1_1ListTagsForResourceCommandError(output, context)];
|
|
1177
|
+
}
|
|
1178
|
+
return [4, parseBody(output.body, context)];
|
|
1179
|
+
case 1:
|
|
1180
|
+
data = _a.sent();
|
|
1181
|
+
contents = {};
|
|
1182
|
+
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
1183
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1184
|
+
return [2, Promise.resolve(response)];
|
|
1185
|
+
}
|
|
1186
|
+
});
|
|
1187
|
+
}); };
|
|
1188
|
+
var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1189
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1190
|
+
var _c;
|
|
1191
|
+
return __generator(this, function (_d) {
|
|
1192
|
+
switch (_d.label) {
|
|
1193
|
+
case 0:
|
|
1194
|
+
_a = [__assign({}, output)];
|
|
1195
|
+
_c = {};
|
|
1196
|
+
return [4, parseBody(output.body, context)];
|
|
1197
|
+
case 1:
|
|
1198
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1199
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1200
|
+
_b = errorCode;
|
|
1201
|
+
switch (_b) {
|
|
1202
|
+
case "InternalErrorException": return [3, 2];
|
|
1203
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 2];
|
|
1204
|
+
case "InvalidParameterException": return [3, 4];
|
|
1205
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 4];
|
|
1206
|
+
case "NotAuthorizedException": return [3, 6];
|
|
1207
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3, 6];
|
|
1208
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1209
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3, 8];
|
|
1210
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1211
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 10];
|
|
1212
|
+
}
|
|
1213
|
+
return [3, 12];
|
|
1214
|
+
case 2: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1215
|
+
case 3: throw _d.sent();
|
|
1216
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1217
|
+
case 5: throw _d.sent();
|
|
1218
|
+
case 6: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1219
|
+
case 7: throw _d.sent();
|
|
1220
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1221
|
+
case 9: throw _d.sent();
|
|
1222
|
+
case 10: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1223
|
+
case 11: throw _d.sent();
|
|
1224
|
+
case 12:
|
|
1225
|
+
parsedBody = parsedOutput.body;
|
|
1226
|
+
throwDefaultError({
|
|
1227
|
+
output: output,
|
|
1228
|
+
parsedBody: parsedBody,
|
|
1229
|
+
exceptionCtor: __BaseException,
|
|
1230
|
+
errorCode: errorCode,
|
|
1231
|
+
});
|
|
1232
|
+
_d.label = 13;
|
|
1233
|
+
case 13: return [2];
|
|
1234
|
+
}
|
|
1235
|
+
});
|
|
1236
|
+
}); };
|
|
1237
|
+
export var deserializeAws_json1_1LookupDeveloperIdentityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1238
|
+
var data, contents, response;
|
|
1239
|
+
return __generator(this, function (_a) {
|
|
1240
|
+
switch (_a.label) {
|
|
1241
|
+
case 0:
|
|
1242
|
+
if (output.statusCode >= 300) {
|
|
1243
|
+
return [2, deserializeAws_json1_1LookupDeveloperIdentityCommandError(output, context)];
|
|
1244
|
+
}
|
|
1245
|
+
return [4, parseBody(output.body, context)];
|
|
1246
|
+
case 1:
|
|
1247
|
+
data = _a.sent();
|
|
1248
|
+
contents = {};
|
|
1249
|
+
contents = deserializeAws_json1_1LookupDeveloperIdentityResponse(data, context);
|
|
1250
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1251
|
+
return [2, Promise.resolve(response)];
|
|
1252
|
+
}
|
|
1253
|
+
});
|
|
1254
|
+
}); };
|
|
1255
|
+
var deserializeAws_json1_1LookupDeveloperIdentityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1256
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1257
|
+
var _c;
|
|
1258
|
+
return __generator(this, function (_d) {
|
|
1259
|
+
switch (_d.label) {
|
|
1260
|
+
case 0:
|
|
1261
|
+
_a = [__assign({}, output)];
|
|
1262
|
+
_c = {};
|
|
1263
|
+
return [4, parseBody(output.body, context)];
|
|
1264
|
+
case 1:
|
|
1265
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1266
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1267
|
+
_b = errorCode;
|
|
1268
|
+
switch (_b) {
|
|
1269
|
+
case "InternalErrorException": return [3, 2];
|
|
1270
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 2];
|
|
1271
|
+
case "InvalidParameterException": return [3, 4];
|
|
1272
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 4];
|
|
1273
|
+
case "NotAuthorizedException": return [3, 6];
|
|
1274
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3, 6];
|
|
1275
|
+
case "ResourceConflictException": return [3, 8];
|
|
1276
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3, 8];
|
|
1277
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1278
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3, 10];
|
|
1279
|
+
case "TooManyRequestsException": return [3, 12];
|
|
1280
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 12];
|
|
1281
|
+
}
|
|
1282
|
+
return [3, 14];
|
|
1283
|
+
case 2: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1284
|
+
case 3: throw _d.sent();
|
|
1285
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1286
|
+
case 5: throw _d.sent();
|
|
1287
|
+
case 6: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1288
|
+
case 7: throw _d.sent();
|
|
1289
|
+
case 8: return [4, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
1290
|
+
case 9: throw _d.sent();
|
|
1291
|
+
case 10: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1292
|
+
case 11: throw _d.sent();
|
|
1293
|
+
case 12: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1294
|
+
case 13: throw _d.sent();
|
|
1295
|
+
case 14:
|
|
1296
|
+
parsedBody = parsedOutput.body;
|
|
1297
|
+
throwDefaultError({
|
|
1298
|
+
output: output,
|
|
1299
|
+
parsedBody: parsedBody,
|
|
1300
|
+
exceptionCtor: __BaseException,
|
|
1301
|
+
errorCode: errorCode,
|
|
1302
|
+
});
|
|
1303
|
+
_d.label = 15;
|
|
1304
|
+
case 15: return [2];
|
|
1305
|
+
}
|
|
1306
|
+
});
|
|
1307
|
+
}); };
|
|
1308
|
+
export var deserializeAws_json1_1MergeDeveloperIdentitiesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1309
|
+
var data, contents, response;
|
|
1310
|
+
return __generator(this, function (_a) {
|
|
1311
|
+
switch (_a.label) {
|
|
1312
|
+
case 0:
|
|
1313
|
+
if (output.statusCode >= 300) {
|
|
1314
|
+
return [2, deserializeAws_json1_1MergeDeveloperIdentitiesCommandError(output, context)];
|
|
1315
|
+
}
|
|
1316
|
+
return [4, parseBody(output.body, context)];
|
|
1317
|
+
case 1:
|
|
1318
|
+
data = _a.sent();
|
|
1319
|
+
contents = {};
|
|
1320
|
+
contents = deserializeAws_json1_1MergeDeveloperIdentitiesResponse(data, context);
|
|
1321
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1322
|
+
return [2, Promise.resolve(response)];
|
|
1323
|
+
}
|
|
1324
|
+
});
|
|
1325
|
+
}); };
|
|
1326
|
+
var deserializeAws_json1_1MergeDeveloperIdentitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1327
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1328
|
+
var _c;
|
|
1329
|
+
return __generator(this, function (_d) {
|
|
1330
|
+
switch (_d.label) {
|
|
1331
|
+
case 0:
|
|
1332
|
+
_a = [__assign({}, output)];
|
|
1333
|
+
_c = {};
|
|
1334
|
+
return [4, parseBody(output.body, context)];
|
|
1335
|
+
case 1:
|
|
1336
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1337
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1338
|
+
_b = errorCode;
|
|
1339
|
+
switch (_b) {
|
|
1340
|
+
case "InternalErrorException": return [3, 2];
|
|
1341
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 2];
|
|
1342
|
+
case "InvalidParameterException": return [3, 4];
|
|
1343
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 4];
|
|
1344
|
+
case "NotAuthorizedException": return [3, 6];
|
|
1345
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3, 6];
|
|
1346
|
+
case "ResourceConflictException": return [3, 8];
|
|
1347
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3, 8];
|
|
1348
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1349
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3, 10];
|
|
1350
|
+
case "TooManyRequestsException": return [3, 12];
|
|
1351
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 12];
|
|
1352
|
+
}
|
|
1353
|
+
return [3, 14];
|
|
1354
|
+
case 2: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1355
|
+
case 3: throw _d.sent();
|
|
1356
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1357
|
+
case 5: throw _d.sent();
|
|
1358
|
+
case 6: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1359
|
+
case 7: throw _d.sent();
|
|
1360
|
+
case 8: return [4, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
1361
|
+
case 9: throw _d.sent();
|
|
1362
|
+
case 10: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1363
|
+
case 11: throw _d.sent();
|
|
1364
|
+
case 12: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1365
|
+
case 13: throw _d.sent();
|
|
1366
|
+
case 14:
|
|
1367
|
+
parsedBody = parsedOutput.body;
|
|
1368
|
+
throwDefaultError({
|
|
1369
|
+
output: output,
|
|
1370
|
+
parsedBody: parsedBody,
|
|
1371
|
+
exceptionCtor: __BaseException,
|
|
1372
|
+
errorCode: errorCode,
|
|
1373
|
+
});
|
|
1374
|
+
_d.label = 15;
|
|
1375
|
+
case 15: return [2];
|
|
1376
|
+
}
|
|
1377
|
+
});
|
|
1378
|
+
}); };
|
|
1379
|
+
export var deserializeAws_json1_1SetIdentityPoolRolesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1380
|
+
var response;
|
|
1381
|
+
return __generator(this, function (_a) {
|
|
1382
|
+
switch (_a.label) {
|
|
1383
|
+
case 0:
|
|
1384
|
+
if (output.statusCode >= 300) {
|
|
1385
|
+
return [2, deserializeAws_json1_1SetIdentityPoolRolesCommandError(output, context)];
|
|
1386
|
+
}
|
|
1387
|
+
return [4, collectBody(output.body, context)];
|
|
1388
|
+
case 1:
|
|
1389
|
+
_a.sent();
|
|
1390
|
+
response = {
|
|
1391
|
+
$metadata: deserializeMetadata(output),
|
|
1392
|
+
};
|
|
1393
|
+
return [2, Promise.resolve(response)];
|
|
1394
|
+
}
|
|
1395
|
+
});
|
|
1396
|
+
}); };
|
|
1397
|
+
var deserializeAws_json1_1SetIdentityPoolRolesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1398
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1399
|
+
var _c;
|
|
1400
|
+
return __generator(this, function (_d) {
|
|
1401
|
+
switch (_d.label) {
|
|
1402
|
+
case 0:
|
|
1403
|
+
_a = [__assign({}, output)];
|
|
1404
|
+
_c = {};
|
|
1405
|
+
return [4, parseBody(output.body, context)];
|
|
1406
|
+
case 1:
|
|
1407
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1408
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
|
+
_b = errorCode;
|
|
1410
|
+
switch (_b) {
|
|
1411
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
1412
|
+
case "com.amazonaws.cognitoidentity#ConcurrentModificationException": return [3, 2];
|
|
1413
|
+
case "InternalErrorException": return [3, 4];
|
|
1414
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 4];
|
|
1415
|
+
case "InvalidParameterException": return [3, 6];
|
|
1416
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 6];
|
|
1417
|
+
case "NotAuthorizedException": return [3, 8];
|
|
1418
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3, 8];
|
|
1419
|
+
case "ResourceConflictException": return [3, 10];
|
|
1420
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3, 10];
|
|
1421
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
1422
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3, 12];
|
|
1423
|
+
case "TooManyRequestsException": return [3, 14];
|
|
1424
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 14];
|
|
1425
|
+
}
|
|
1426
|
+
return [3, 16];
|
|
1427
|
+
case 2: return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1428
|
+
case 3: throw _d.sent();
|
|
1429
|
+
case 4: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1430
|
+
case 5: throw _d.sent();
|
|
1431
|
+
case 6: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1432
|
+
case 7: throw _d.sent();
|
|
1433
|
+
case 8: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1434
|
+
case 9: throw _d.sent();
|
|
1435
|
+
case 10: return [4, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
1436
|
+
case 11: throw _d.sent();
|
|
1437
|
+
case 12: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1438
|
+
case 13: throw _d.sent();
|
|
1439
|
+
case 14: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1440
|
+
case 15: throw _d.sent();
|
|
1441
|
+
case 16:
|
|
1442
|
+
parsedBody = parsedOutput.body;
|
|
1443
|
+
throwDefaultError({
|
|
1444
|
+
output: output,
|
|
1445
|
+
parsedBody: parsedBody,
|
|
1446
|
+
exceptionCtor: __BaseException,
|
|
1447
|
+
errorCode: errorCode,
|
|
1448
|
+
});
|
|
1449
|
+
_d.label = 17;
|
|
1450
|
+
case 17: return [2];
|
|
1451
|
+
}
|
|
1452
|
+
});
|
|
1453
|
+
}); };
|
|
1454
|
+
export var deserializeAws_json1_1SetPrincipalTagAttributeMapCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1455
|
+
var data, contents, response;
|
|
1456
|
+
return __generator(this, function (_a) {
|
|
1457
|
+
switch (_a.label) {
|
|
1458
|
+
case 0:
|
|
1459
|
+
if (output.statusCode >= 300) {
|
|
1460
|
+
return [2, deserializeAws_json1_1SetPrincipalTagAttributeMapCommandError(output, context)];
|
|
1461
|
+
}
|
|
1462
|
+
return [4, parseBody(output.body, context)];
|
|
1463
|
+
case 1:
|
|
1464
|
+
data = _a.sent();
|
|
1465
|
+
contents = {};
|
|
1466
|
+
contents = deserializeAws_json1_1SetPrincipalTagAttributeMapResponse(data, context);
|
|
1467
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1468
|
+
return [2, Promise.resolve(response)];
|
|
1469
|
+
}
|
|
1470
|
+
});
|
|
1471
|
+
}); };
|
|
1472
|
+
var deserializeAws_json1_1SetPrincipalTagAttributeMapCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1473
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1474
|
+
var _c;
|
|
1475
|
+
return __generator(this, function (_d) {
|
|
1476
|
+
switch (_d.label) {
|
|
1477
|
+
case 0:
|
|
1478
|
+
_a = [__assign({}, output)];
|
|
1479
|
+
_c = {};
|
|
1480
|
+
return [4, parseBody(output.body, context)];
|
|
1481
|
+
case 1:
|
|
1482
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1483
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1484
|
+
_b = errorCode;
|
|
1485
|
+
switch (_b) {
|
|
1486
|
+
case "InternalErrorException": return [3, 2];
|
|
1487
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 2];
|
|
1488
|
+
case "InvalidParameterException": return [3, 4];
|
|
1489
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 4];
|
|
1490
|
+
case "NotAuthorizedException": return [3, 6];
|
|
1491
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3, 6];
|
|
1492
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1493
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3, 8];
|
|
1494
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1495
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 10];
|
|
1496
|
+
}
|
|
1497
|
+
return [3, 12];
|
|
1498
|
+
case 2: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1499
|
+
case 3: throw _d.sent();
|
|
1500
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1501
|
+
case 5: throw _d.sent();
|
|
1502
|
+
case 6: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1503
|
+
case 7: throw _d.sent();
|
|
1504
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1505
|
+
case 9: throw _d.sent();
|
|
1506
|
+
case 10: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1507
|
+
case 11: throw _d.sent();
|
|
1508
|
+
case 12:
|
|
1509
|
+
parsedBody = parsedOutput.body;
|
|
1510
|
+
throwDefaultError({
|
|
1511
|
+
output: output,
|
|
1512
|
+
parsedBody: parsedBody,
|
|
1513
|
+
exceptionCtor: __BaseException,
|
|
1514
|
+
errorCode: errorCode,
|
|
1515
|
+
});
|
|
1516
|
+
_d.label = 13;
|
|
1517
|
+
case 13: return [2];
|
|
1518
|
+
}
|
|
1519
|
+
});
|
|
1520
|
+
}); };
|
|
1521
|
+
export var deserializeAws_json1_1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1522
|
+
var data, contents, response;
|
|
1523
|
+
return __generator(this, function (_a) {
|
|
1524
|
+
switch (_a.label) {
|
|
1525
|
+
case 0:
|
|
1526
|
+
if (output.statusCode >= 300) {
|
|
1527
|
+
return [2, deserializeAws_json1_1TagResourceCommandError(output, context)];
|
|
1528
|
+
}
|
|
1529
|
+
return [4, parseBody(output.body, context)];
|
|
1530
|
+
case 1:
|
|
1531
|
+
data = _a.sent();
|
|
1532
|
+
contents = {};
|
|
1533
|
+
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
1534
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1535
|
+
return [2, Promise.resolve(response)];
|
|
1536
|
+
}
|
|
1537
|
+
});
|
|
1538
|
+
}); };
|
|
1539
|
+
var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1540
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1541
|
+
var _c;
|
|
1542
|
+
return __generator(this, function (_d) {
|
|
1543
|
+
switch (_d.label) {
|
|
1544
|
+
case 0:
|
|
1545
|
+
_a = [__assign({}, output)];
|
|
1546
|
+
_c = {};
|
|
1547
|
+
return [4, parseBody(output.body, context)];
|
|
1548
|
+
case 1:
|
|
1549
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1550
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1551
|
+
_b = errorCode;
|
|
1552
|
+
switch (_b) {
|
|
1553
|
+
case "InternalErrorException": return [3, 2];
|
|
1554
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 2];
|
|
1555
|
+
case "InvalidParameterException": return [3, 4];
|
|
1556
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 4];
|
|
1557
|
+
case "NotAuthorizedException": return [3, 6];
|
|
1558
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3, 6];
|
|
1559
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1560
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3, 8];
|
|
1561
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1562
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 10];
|
|
1563
|
+
}
|
|
1564
|
+
return [3, 12];
|
|
1565
|
+
case 2: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1566
|
+
case 3: throw _d.sent();
|
|
1567
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1568
|
+
case 5: throw _d.sent();
|
|
1569
|
+
case 6: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1570
|
+
case 7: throw _d.sent();
|
|
1571
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1572
|
+
case 9: throw _d.sent();
|
|
1573
|
+
case 10: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1574
|
+
case 11: throw _d.sent();
|
|
1575
|
+
case 12:
|
|
1576
|
+
parsedBody = parsedOutput.body;
|
|
1577
|
+
throwDefaultError({
|
|
1578
|
+
output: output,
|
|
1579
|
+
parsedBody: parsedBody,
|
|
1580
|
+
exceptionCtor: __BaseException,
|
|
1581
|
+
errorCode: errorCode,
|
|
1582
|
+
});
|
|
1583
|
+
_d.label = 13;
|
|
1584
|
+
case 13: return [2];
|
|
1585
|
+
}
|
|
1586
|
+
});
|
|
1587
|
+
}); };
|
|
1588
|
+
export var deserializeAws_json1_1UnlinkDeveloperIdentityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1589
|
+
var response;
|
|
1590
|
+
return __generator(this, function (_a) {
|
|
1591
|
+
switch (_a.label) {
|
|
1592
|
+
case 0:
|
|
1593
|
+
if (output.statusCode >= 300) {
|
|
1594
|
+
return [2, deserializeAws_json1_1UnlinkDeveloperIdentityCommandError(output, context)];
|
|
1595
|
+
}
|
|
1596
|
+
return [4, collectBody(output.body, context)];
|
|
1597
|
+
case 1:
|
|
1598
|
+
_a.sent();
|
|
1599
|
+
response = {
|
|
1600
|
+
$metadata: deserializeMetadata(output),
|
|
1601
|
+
};
|
|
1602
|
+
return [2, Promise.resolve(response)];
|
|
1603
|
+
}
|
|
1604
|
+
});
|
|
1605
|
+
}); };
|
|
1606
|
+
var deserializeAws_json1_1UnlinkDeveloperIdentityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1607
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1608
|
+
var _c;
|
|
1609
|
+
return __generator(this, function (_d) {
|
|
1610
|
+
switch (_d.label) {
|
|
1611
|
+
case 0:
|
|
1612
|
+
_a = [__assign({}, output)];
|
|
1613
|
+
_c = {};
|
|
1614
|
+
return [4, parseBody(output.body, context)];
|
|
1615
|
+
case 1:
|
|
1616
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1617
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1618
|
+
_b = errorCode;
|
|
1619
|
+
switch (_b) {
|
|
1620
|
+
case "InternalErrorException": return [3, 2];
|
|
1621
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 2];
|
|
1622
|
+
case "InvalidParameterException": return [3, 4];
|
|
1623
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 4];
|
|
1624
|
+
case "NotAuthorizedException": return [3, 6];
|
|
1625
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3, 6];
|
|
1626
|
+
case "ResourceConflictException": return [3, 8];
|
|
1627
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3, 8];
|
|
1628
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1629
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3, 10];
|
|
1630
|
+
case "TooManyRequestsException": return [3, 12];
|
|
1631
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 12];
|
|
1632
|
+
}
|
|
1633
|
+
return [3, 14];
|
|
1634
|
+
case 2: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1635
|
+
case 3: throw _d.sent();
|
|
1636
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1637
|
+
case 5: throw _d.sent();
|
|
1638
|
+
case 6: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1639
|
+
case 7: throw _d.sent();
|
|
1640
|
+
case 8: return [4, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
1641
|
+
case 9: throw _d.sent();
|
|
1642
|
+
case 10: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1643
|
+
case 11: throw _d.sent();
|
|
1644
|
+
case 12: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1645
|
+
case 13: throw _d.sent();
|
|
1646
|
+
case 14:
|
|
1647
|
+
parsedBody = parsedOutput.body;
|
|
1648
|
+
throwDefaultError({
|
|
1649
|
+
output: output,
|
|
1650
|
+
parsedBody: parsedBody,
|
|
1651
|
+
exceptionCtor: __BaseException,
|
|
1652
|
+
errorCode: errorCode,
|
|
1653
|
+
});
|
|
1654
|
+
_d.label = 15;
|
|
1655
|
+
case 15: return [2];
|
|
1656
|
+
}
|
|
1657
|
+
});
|
|
1658
|
+
}); };
|
|
1659
|
+
export var deserializeAws_json1_1UnlinkIdentityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1660
|
+
var response;
|
|
1661
|
+
return __generator(this, function (_a) {
|
|
1662
|
+
switch (_a.label) {
|
|
1663
|
+
case 0:
|
|
1664
|
+
if (output.statusCode >= 300) {
|
|
1665
|
+
return [2, deserializeAws_json1_1UnlinkIdentityCommandError(output, context)];
|
|
1666
|
+
}
|
|
1667
|
+
return [4, collectBody(output.body, context)];
|
|
1668
|
+
case 1:
|
|
1669
|
+
_a.sent();
|
|
1670
|
+
response = {
|
|
1671
|
+
$metadata: deserializeMetadata(output),
|
|
1672
|
+
};
|
|
1673
|
+
return [2, Promise.resolve(response)];
|
|
1674
|
+
}
|
|
1675
|
+
});
|
|
1676
|
+
}); };
|
|
1677
|
+
var deserializeAws_json1_1UnlinkIdentityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1678
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1679
|
+
var _c;
|
|
1680
|
+
return __generator(this, function (_d) {
|
|
1681
|
+
switch (_d.label) {
|
|
1682
|
+
case 0:
|
|
1683
|
+
_a = [__assign({}, output)];
|
|
1684
|
+
_c = {};
|
|
1685
|
+
return [4, parseBody(output.body, context)];
|
|
1686
|
+
case 1:
|
|
1687
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1688
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1689
|
+
_b = errorCode;
|
|
1690
|
+
switch (_b) {
|
|
1691
|
+
case "ExternalServiceException": return [3, 2];
|
|
1692
|
+
case "com.amazonaws.cognitoidentity#ExternalServiceException": return [3, 2];
|
|
1693
|
+
case "InternalErrorException": return [3, 4];
|
|
1694
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 4];
|
|
1695
|
+
case "InvalidParameterException": return [3, 6];
|
|
1696
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 6];
|
|
1697
|
+
case "NotAuthorizedException": return [3, 8];
|
|
1698
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3, 8];
|
|
1699
|
+
case "ResourceConflictException": return [3, 10];
|
|
1700
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3, 10];
|
|
1701
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
1702
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3, 12];
|
|
1703
|
+
case "TooManyRequestsException": return [3, 14];
|
|
1704
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 14];
|
|
1705
|
+
}
|
|
1706
|
+
return [3, 16];
|
|
1707
|
+
case 2: return [4, deserializeAws_json1_1ExternalServiceExceptionResponse(parsedOutput, context)];
|
|
1708
|
+
case 3: throw _d.sent();
|
|
1709
|
+
case 4: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1710
|
+
case 5: throw _d.sent();
|
|
1711
|
+
case 6: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1712
|
+
case 7: throw _d.sent();
|
|
1713
|
+
case 8: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1714
|
+
case 9: throw _d.sent();
|
|
1715
|
+
case 10: return [4, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
1716
|
+
case 11: throw _d.sent();
|
|
1717
|
+
case 12: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1718
|
+
case 13: throw _d.sent();
|
|
1719
|
+
case 14: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1720
|
+
case 15: throw _d.sent();
|
|
1721
|
+
case 16:
|
|
1722
|
+
parsedBody = parsedOutput.body;
|
|
1723
|
+
throwDefaultError({
|
|
1724
|
+
output: output,
|
|
1725
|
+
parsedBody: parsedBody,
|
|
1726
|
+
exceptionCtor: __BaseException,
|
|
1727
|
+
errorCode: errorCode,
|
|
1728
|
+
});
|
|
1729
|
+
_d.label = 17;
|
|
1730
|
+
case 17: return [2];
|
|
1731
|
+
}
|
|
1732
|
+
});
|
|
1733
|
+
}); };
|
|
1734
|
+
export var deserializeAws_json1_1UntagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1735
|
+
var data, contents, response;
|
|
1736
|
+
return __generator(this, function (_a) {
|
|
1737
|
+
switch (_a.label) {
|
|
1738
|
+
case 0:
|
|
1739
|
+
if (output.statusCode >= 300) {
|
|
1740
|
+
return [2, deserializeAws_json1_1UntagResourceCommandError(output, context)];
|
|
1741
|
+
}
|
|
1742
|
+
return [4, parseBody(output.body, context)];
|
|
1743
|
+
case 1:
|
|
1744
|
+
data = _a.sent();
|
|
1745
|
+
contents = {};
|
|
1746
|
+
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
1747
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1748
|
+
return [2, Promise.resolve(response)];
|
|
1749
|
+
}
|
|
1750
|
+
});
|
|
1751
|
+
}); };
|
|
1752
|
+
var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1753
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1754
|
+
var _c;
|
|
1755
|
+
return __generator(this, function (_d) {
|
|
1756
|
+
switch (_d.label) {
|
|
1757
|
+
case 0:
|
|
1758
|
+
_a = [__assign({}, output)];
|
|
1759
|
+
_c = {};
|
|
1760
|
+
return [4, parseBody(output.body, context)];
|
|
1761
|
+
case 1:
|
|
1762
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1763
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1764
|
+
_b = errorCode;
|
|
1765
|
+
switch (_b) {
|
|
1766
|
+
case "InternalErrorException": return [3, 2];
|
|
1767
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 2];
|
|
1768
|
+
case "InvalidParameterException": return [3, 4];
|
|
1769
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 4];
|
|
1770
|
+
case "NotAuthorizedException": return [3, 6];
|
|
1771
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3, 6];
|
|
1772
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1773
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3, 8];
|
|
1774
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1775
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 10];
|
|
1776
|
+
}
|
|
1777
|
+
return [3, 12];
|
|
1778
|
+
case 2: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1779
|
+
case 3: throw _d.sent();
|
|
1780
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1781
|
+
case 5: throw _d.sent();
|
|
1782
|
+
case 6: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1783
|
+
case 7: throw _d.sent();
|
|
1784
|
+
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1785
|
+
case 9: throw _d.sent();
|
|
1786
|
+
case 10: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1787
|
+
case 11: throw _d.sent();
|
|
1788
|
+
case 12:
|
|
1789
|
+
parsedBody = parsedOutput.body;
|
|
1790
|
+
throwDefaultError({
|
|
1791
|
+
output: output,
|
|
1792
|
+
parsedBody: parsedBody,
|
|
1793
|
+
exceptionCtor: __BaseException,
|
|
1794
|
+
errorCode: errorCode,
|
|
1795
|
+
});
|
|
1796
|
+
_d.label = 13;
|
|
1797
|
+
case 13: return [2];
|
|
1798
|
+
}
|
|
1799
|
+
});
|
|
1800
|
+
}); };
|
|
1801
|
+
export var deserializeAws_json1_1UpdateIdentityPoolCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1802
|
+
var data, contents, response;
|
|
1803
|
+
return __generator(this, function (_a) {
|
|
1804
|
+
switch (_a.label) {
|
|
1805
|
+
case 0:
|
|
1806
|
+
if (output.statusCode >= 300) {
|
|
1807
|
+
return [2, deserializeAws_json1_1UpdateIdentityPoolCommandError(output, context)];
|
|
1808
|
+
}
|
|
1809
|
+
return [4, parseBody(output.body, context)];
|
|
1810
|
+
case 1:
|
|
1811
|
+
data = _a.sent();
|
|
1812
|
+
contents = {};
|
|
1813
|
+
contents = deserializeAws_json1_1IdentityPool(data, context);
|
|
1814
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1815
|
+
return [2, Promise.resolve(response)];
|
|
1816
|
+
}
|
|
1817
|
+
});
|
|
1818
|
+
}); };
|
|
1819
|
+
var deserializeAws_json1_1UpdateIdentityPoolCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1820
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1821
|
+
var _c;
|
|
1822
|
+
return __generator(this, function (_d) {
|
|
1823
|
+
switch (_d.label) {
|
|
1824
|
+
case 0:
|
|
1825
|
+
_a = [__assign({}, output)];
|
|
1826
|
+
_c = {};
|
|
1827
|
+
return [4, parseBody(output.body, context)];
|
|
1828
|
+
case 1:
|
|
1829
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1830
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1831
|
+
_b = errorCode;
|
|
1832
|
+
switch (_b) {
|
|
1833
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
1834
|
+
case "com.amazonaws.cognitoidentity#ConcurrentModificationException": return [3, 2];
|
|
1835
|
+
case "InternalErrorException": return [3, 4];
|
|
1836
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException": return [3, 4];
|
|
1837
|
+
case "InvalidParameterException": return [3, 6];
|
|
1838
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException": return [3, 6];
|
|
1839
|
+
case "LimitExceededException": return [3, 8];
|
|
1840
|
+
case "com.amazonaws.cognitoidentity#LimitExceededException": return [3, 8];
|
|
1841
|
+
case "NotAuthorizedException": return [3, 10];
|
|
1842
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException": return [3, 10];
|
|
1843
|
+
case "ResourceConflictException": return [3, 12];
|
|
1844
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException": return [3, 12];
|
|
1845
|
+
case "ResourceNotFoundException": return [3, 14];
|
|
1846
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException": return [3, 14];
|
|
1847
|
+
case "TooManyRequestsException": return [3, 16];
|
|
1848
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException": return [3, 16];
|
|
1849
|
+
}
|
|
1850
|
+
return [3, 18];
|
|
1851
|
+
case 2: return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1852
|
+
case 3: throw _d.sent();
|
|
1853
|
+
case 4: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1854
|
+
case 5: throw _d.sent();
|
|
1855
|
+
case 6: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1856
|
+
case 7: throw _d.sent();
|
|
1857
|
+
case 8: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1858
|
+
case 9: throw _d.sent();
|
|
1859
|
+
case 10: return [4, deserializeAws_json1_1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1860
|
+
case 11: throw _d.sent();
|
|
1861
|
+
case 12: return [4, deserializeAws_json1_1ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
1862
|
+
case 13: throw _d.sent();
|
|
1863
|
+
case 14: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1864
|
+
case 15: throw _d.sent();
|
|
1865
|
+
case 16: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1866
|
+
case 17: throw _d.sent();
|
|
1867
|
+
case 18:
|
|
1868
|
+
parsedBody = parsedOutput.body;
|
|
1869
|
+
throwDefaultError({
|
|
1870
|
+
output: output,
|
|
1871
|
+
parsedBody: parsedBody,
|
|
1872
|
+
exceptionCtor: __BaseException,
|
|
1873
|
+
errorCode: errorCode,
|
|
1874
|
+
});
|
|
1875
|
+
_d.label = 19;
|
|
1876
|
+
case 19: return [2];
|
|
1877
|
+
}
|
|
1878
|
+
});
|
|
1879
|
+
}); };
|
|
1880
|
+
var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1881
|
+
var body, deserialized, exception;
|
|
1882
|
+
return __generator(this, function (_a) {
|
|
1883
|
+
body = parsedOutput.body;
|
|
1884
|
+
deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
1885
|
+
exception = new ConcurrentModificationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1886
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1887
|
+
});
|
|
1888
|
+
}); };
|
|
1889
|
+
var deserializeAws_json1_1DeveloperUserAlreadyRegisteredExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1890
|
+
var body, deserialized, exception;
|
|
1891
|
+
return __generator(this, function (_a) {
|
|
1892
|
+
body = parsedOutput.body;
|
|
1893
|
+
deserialized = deserializeAws_json1_1DeveloperUserAlreadyRegisteredException(body, context);
|
|
1894
|
+
exception = new DeveloperUserAlreadyRegisteredException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1895
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1896
|
+
});
|
|
1897
|
+
}); };
|
|
1898
|
+
var deserializeAws_json1_1ExternalServiceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1899
|
+
var body, deserialized, exception;
|
|
1900
|
+
return __generator(this, function (_a) {
|
|
1901
|
+
body = parsedOutput.body;
|
|
1902
|
+
deserialized = deserializeAws_json1_1ExternalServiceException(body, context);
|
|
1903
|
+
exception = new ExternalServiceException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1904
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1905
|
+
});
|
|
1906
|
+
}); };
|
|
1907
|
+
var deserializeAws_json1_1InternalErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1908
|
+
var body, deserialized, exception;
|
|
1909
|
+
return __generator(this, function (_a) {
|
|
1910
|
+
body = parsedOutput.body;
|
|
1911
|
+
deserialized = deserializeAws_json1_1InternalErrorException(body, context);
|
|
1912
|
+
exception = new InternalErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1913
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1914
|
+
});
|
|
1915
|
+
}); };
|
|
1916
|
+
var deserializeAws_json1_1InvalidIdentityPoolConfigurationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1917
|
+
var body, deserialized, exception;
|
|
1918
|
+
return __generator(this, function (_a) {
|
|
1919
|
+
body = parsedOutput.body;
|
|
1920
|
+
deserialized = deserializeAws_json1_1InvalidIdentityPoolConfigurationException(body, context);
|
|
1921
|
+
exception = new InvalidIdentityPoolConfigurationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1922
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1923
|
+
});
|
|
1924
|
+
}); };
|
|
1925
|
+
var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1926
|
+
var body, deserialized, exception;
|
|
1927
|
+
return __generator(this, function (_a) {
|
|
1928
|
+
body = parsedOutput.body;
|
|
1929
|
+
deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
1930
|
+
exception = new InvalidParameterException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1931
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1932
|
+
});
|
|
1933
|
+
}); };
|
|
1934
|
+
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1935
|
+
var body, deserialized, exception;
|
|
1936
|
+
return __generator(this, function (_a) {
|
|
1937
|
+
body = parsedOutput.body;
|
|
1938
|
+
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
1939
|
+
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1940
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1941
|
+
});
|
|
1942
|
+
}); };
|
|
1943
|
+
var deserializeAws_json1_1NotAuthorizedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1944
|
+
var body, deserialized, exception;
|
|
1945
|
+
return __generator(this, function (_a) {
|
|
1946
|
+
body = parsedOutput.body;
|
|
1947
|
+
deserialized = deserializeAws_json1_1NotAuthorizedException(body, context);
|
|
1948
|
+
exception = new NotAuthorizedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1949
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1950
|
+
});
|
|
1951
|
+
}); };
|
|
1952
|
+
var deserializeAws_json1_1ResourceConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1953
|
+
var body, deserialized, exception;
|
|
1954
|
+
return __generator(this, function (_a) {
|
|
1955
|
+
body = parsedOutput.body;
|
|
1956
|
+
deserialized = deserializeAws_json1_1ResourceConflictException(body, context);
|
|
1957
|
+
exception = new ResourceConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1958
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1959
|
+
});
|
|
1960
|
+
}); };
|
|
1961
|
+
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1962
|
+
var body, deserialized, exception;
|
|
1963
|
+
return __generator(this, function (_a) {
|
|
1964
|
+
body = parsedOutput.body;
|
|
1965
|
+
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
1966
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1967
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1968
|
+
});
|
|
1969
|
+
}); };
|
|
1970
|
+
var deserializeAws_json1_1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1971
|
+
var body, deserialized, exception;
|
|
1972
|
+
return __generator(this, function (_a) {
|
|
1973
|
+
body = parsedOutput.body;
|
|
1974
|
+
deserialized = deserializeAws_json1_1TooManyRequestsException(body, context);
|
|
1975
|
+
exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1976
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1977
|
+
});
|
|
1978
|
+
}); };
|
|
1979
|
+
var serializeAws_json1_1CognitoIdentityProvider = function (input, context) {
|
|
1980
|
+
return __assign(__assign(__assign({}, (input.ClientId != null && { ClientId: input.ClientId })), (input.ProviderName != null && { ProviderName: input.ProviderName })), (input.ServerSideTokenCheck != null && { ServerSideTokenCheck: input.ServerSideTokenCheck }));
|
|
1981
|
+
};
|
|
1982
|
+
var serializeAws_json1_1CognitoIdentityProviderList = function (input, context) {
|
|
1983
|
+
return input
|
|
1984
|
+
.filter(function (e) { return e != null; })
|
|
1985
|
+
.map(function (entry) {
|
|
1986
|
+
return serializeAws_json1_1CognitoIdentityProvider(entry, context);
|
|
1987
|
+
});
|
|
1988
|
+
};
|
|
1989
|
+
var serializeAws_json1_1CreateIdentityPoolInput = function (input, context) {
|
|
1990
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllowClassicFlow != null && { AllowClassicFlow: input.AllowClassicFlow })), (input.AllowUnauthenticatedIdentities != null && {
|
|
1991
|
+
AllowUnauthenticatedIdentities: input.AllowUnauthenticatedIdentities,
|
|
1992
|
+
})), (input.CognitoIdentityProviders != null && {
|
|
1993
|
+
CognitoIdentityProviders: serializeAws_json1_1CognitoIdentityProviderList(input.CognitoIdentityProviders, context),
|
|
1994
|
+
})), (input.DeveloperProviderName != null && { DeveloperProviderName: input.DeveloperProviderName })), (input.IdentityPoolName != null && { IdentityPoolName: input.IdentityPoolName })), (input.IdentityPoolTags != null && {
|
|
1995
|
+
IdentityPoolTags: serializeAws_json1_1IdentityPoolTagsType(input.IdentityPoolTags, context),
|
|
1996
|
+
})), (input.OpenIdConnectProviderARNs != null && {
|
|
1997
|
+
OpenIdConnectProviderARNs: serializeAws_json1_1OIDCProviderList(input.OpenIdConnectProviderARNs, context),
|
|
1998
|
+
})), (input.SamlProviderARNs != null && {
|
|
1999
|
+
SamlProviderARNs: serializeAws_json1_1SAMLProviderList(input.SamlProviderARNs, context),
|
|
2000
|
+
})), (input.SupportedLoginProviders != null && {
|
|
2001
|
+
SupportedLoginProviders: serializeAws_json1_1IdentityProviders(input.SupportedLoginProviders, context),
|
|
2002
|
+
}));
|
|
2003
|
+
};
|
|
2004
|
+
var serializeAws_json1_1DeleteIdentitiesInput = function (input, context) {
|
|
2005
|
+
return __assign({}, (input.IdentityIdsToDelete != null && {
|
|
2006
|
+
IdentityIdsToDelete: serializeAws_json1_1IdentityIdList(input.IdentityIdsToDelete, context),
|
|
2007
|
+
}));
|
|
2008
|
+
};
|
|
2009
|
+
var serializeAws_json1_1DeleteIdentityPoolInput = function (input, context) {
|
|
2010
|
+
return __assign({}, (input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }));
|
|
2011
|
+
};
|
|
2012
|
+
var serializeAws_json1_1DescribeIdentityInput = function (input, context) {
|
|
2013
|
+
return __assign({}, (input.IdentityId != null && { IdentityId: input.IdentityId }));
|
|
2014
|
+
};
|
|
2015
|
+
var serializeAws_json1_1DescribeIdentityPoolInput = function (input, context) {
|
|
2016
|
+
return __assign({}, (input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }));
|
|
2017
|
+
};
|
|
2018
|
+
var serializeAws_json1_1GetCredentialsForIdentityInput = function (input, context) {
|
|
2019
|
+
return __assign(__assign(__assign({}, (input.CustomRoleArn != null && { CustomRoleArn: input.CustomRoleArn })), (input.IdentityId != null && { IdentityId: input.IdentityId })), (input.Logins != null && { Logins: serializeAws_json1_1LoginsMap(input.Logins, context) }));
|
|
2020
|
+
};
|
|
2021
|
+
var serializeAws_json1_1GetIdentityPoolRolesInput = function (input, context) {
|
|
2022
|
+
return __assign({}, (input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }));
|
|
2023
|
+
};
|
|
2024
|
+
var serializeAws_json1_1GetIdInput = function (input, context) {
|
|
2025
|
+
return __assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId })), (input.Logins != null && { Logins: serializeAws_json1_1LoginsMap(input.Logins, context) }));
|
|
2026
|
+
};
|
|
2027
|
+
var serializeAws_json1_1GetOpenIdTokenForDeveloperIdentityInput = function (input, context) {
|
|
2028
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.IdentityId != null && { IdentityId: input.IdentityId })), (input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId })), (input.Logins != null && { Logins: serializeAws_json1_1LoginsMap(input.Logins, context) })), (input.PrincipalTags != null && {
|
|
2029
|
+
PrincipalTags: serializeAws_json1_1PrincipalTags(input.PrincipalTags, context),
|
|
2030
|
+
})), (input.TokenDuration != null && { TokenDuration: input.TokenDuration }));
|
|
2031
|
+
};
|
|
2032
|
+
var serializeAws_json1_1GetOpenIdTokenInput = function (input, context) {
|
|
2033
|
+
return __assign(__assign({}, (input.IdentityId != null && { IdentityId: input.IdentityId })), (input.Logins != null && { Logins: serializeAws_json1_1LoginsMap(input.Logins, context) }));
|
|
2034
|
+
};
|
|
2035
|
+
var serializeAws_json1_1GetPrincipalTagAttributeMapInput = function (input, context) {
|
|
2036
|
+
return __assign(__assign({}, (input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId })), (input.IdentityProviderName != null && { IdentityProviderName: input.IdentityProviderName }));
|
|
2037
|
+
};
|
|
2038
|
+
var serializeAws_json1_1IdentityIdList = function (input, context) {
|
|
2039
|
+
return input
|
|
2040
|
+
.filter(function (e) { return e != null; })
|
|
2041
|
+
.map(function (entry) {
|
|
2042
|
+
return entry;
|
|
2043
|
+
});
|
|
2044
|
+
};
|
|
2045
|
+
var serializeAws_json1_1IdentityPool = function (input, context) {
|
|
2046
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllowClassicFlow != null && { AllowClassicFlow: input.AllowClassicFlow })), (input.AllowUnauthenticatedIdentities != null && {
|
|
2047
|
+
AllowUnauthenticatedIdentities: input.AllowUnauthenticatedIdentities,
|
|
2048
|
+
})), (input.CognitoIdentityProviders != null && {
|
|
2049
|
+
CognitoIdentityProviders: serializeAws_json1_1CognitoIdentityProviderList(input.CognitoIdentityProviders, context),
|
|
2050
|
+
})), (input.DeveloperProviderName != null && { DeveloperProviderName: input.DeveloperProviderName })), (input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId })), (input.IdentityPoolName != null && { IdentityPoolName: input.IdentityPoolName })), (input.IdentityPoolTags != null && {
|
|
2051
|
+
IdentityPoolTags: serializeAws_json1_1IdentityPoolTagsType(input.IdentityPoolTags, context),
|
|
2052
|
+
})), (input.OpenIdConnectProviderARNs != null && {
|
|
2053
|
+
OpenIdConnectProviderARNs: serializeAws_json1_1OIDCProviderList(input.OpenIdConnectProviderARNs, context),
|
|
2054
|
+
})), (input.SamlProviderARNs != null && {
|
|
2055
|
+
SamlProviderARNs: serializeAws_json1_1SAMLProviderList(input.SamlProviderARNs, context),
|
|
2056
|
+
})), (input.SupportedLoginProviders != null && {
|
|
2057
|
+
SupportedLoginProviders: serializeAws_json1_1IdentityProviders(input.SupportedLoginProviders, context),
|
|
2058
|
+
}));
|
|
2059
|
+
};
|
|
2060
|
+
var serializeAws_json1_1IdentityPoolTagsListType = function (input, context) {
|
|
2061
|
+
return input
|
|
2062
|
+
.filter(function (e) { return e != null; })
|
|
2063
|
+
.map(function (entry) {
|
|
2064
|
+
return entry;
|
|
2065
|
+
});
|
|
2066
|
+
};
|
|
2067
|
+
var serializeAws_json1_1IdentityPoolTagsType = function (input, context) {
|
|
2068
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
2069
|
+
var _b;
|
|
2070
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2071
|
+
if (value === null) {
|
|
2072
|
+
return acc;
|
|
2073
|
+
}
|
|
2074
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
2075
|
+
}, {});
|
|
2076
|
+
};
|
|
2077
|
+
var serializeAws_json1_1IdentityProviders = function (input, context) {
|
|
2078
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
2079
|
+
var _b;
|
|
2080
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2081
|
+
if (value === null) {
|
|
2082
|
+
return acc;
|
|
2083
|
+
}
|
|
2084
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
2085
|
+
}, {});
|
|
2086
|
+
};
|
|
2087
|
+
var serializeAws_json1_1ListIdentitiesInput = function (input, context) {
|
|
2088
|
+
return __assign(__assign(__assign(__assign({}, (input.HideDisabled != null && { HideDisabled: input.HideDisabled })), (input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
2089
|
+
};
|
|
2090
|
+
var serializeAws_json1_1ListIdentityPoolsInput = function (input, context) {
|
|
2091
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
2092
|
+
};
|
|
2093
|
+
var serializeAws_json1_1ListTagsForResourceInput = function (input, context) {
|
|
2094
|
+
return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
2095
|
+
};
|
|
2096
|
+
var serializeAws_json1_1LoginsList = function (input, context) {
|
|
2097
|
+
return input
|
|
2098
|
+
.filter(function (e) { return e != null; })
|
|
2099
|
+
.map(function (entry) {
|
|
2100
|
+
return entry;
|
|
2101
|
+
});
|
|
2102
|
+
};
|
|
2103
|
+
var serializeAws_json1_1LoginsMap = function (input, context) {
|
|
2104
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
2105
|
+
var _b;
|
|
2106
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2107
|
+
if (value === null) {
|
|
2108
|
+
return acc;
|
|
2109
|
+
}
|
|
2110
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
2111
|
+
}, {});
|
|
2112
|
+
};
|
|
2113
|
+
var serializeAws_json1_1LookupDeveloperIdentityInput = function (input, context) {
|
|
2114
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.DeveloperUserIdentifier != null && { DeveloperUserIdentifier: input.DeveloperUserIdentifier })), (input.IdentityId != null && { IdentityId: input.IdentityId })), (input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
2115
|
+
};
|
|
2116
|
+
var serializeAws_json1_1MappingRule = function (input, context) {
|
|
2117
|
+
return __assign(__assign(__assign(__assign({}, (input.Claim != null && { Claim: input.Claim })), (input.MatchType != null && { MatchType: input.MatchType })), (input.RoleARN != null && { RoleARN: input.RoleARN })), (input.Value != null && { Value: input.Value }));
|
|
2118
|
+
};
|
|
2119
|
+
var serializeAws_json1_1MappingRulesList = function (input, context) {
|
|
2120
|
+
return input
|
|
2121
|
+
.filter(function (e) { return e != null; })
|
|
2122
|
+
.map(function (entry) {
|
|
2123
|
+
return serializeAws_json1_1MappingRule(entry, context);
|
|
2124
|
+
});
|
|
2125
|
+
};
|
|
2126
|
+
var serializeAws_json1_1MergeDeveloperIdentitiesInput = function (input, context) {
|
|
2127
|
+
return __assign(__assign(__assign(__assign({}, (input.DestinationUserIdentifier != null && { DestinationUserIdentifier: input.DestinationUserIdentifier })), (input.DeveloperProviderName != null && { DeveloperProviderName: input.DeveloperProviderName })), (input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId })), (input.SourceUserIdentifier != null && { SourceUserIdentifier: input.SourceUserIdentifier }));
|
|
2128
|
+
};
|
|
2129
|
+
var serializeAws_json1_1OIDCProviderList = function (input, context) {
|
|
2130
|
+
return input
|
|
2131
|
+
.filter(function (e) { return e != null; })
|
|
2132
|
+
.map(function (entry) {
|
|
2133
|
+
return entry;
|
|
2134
|
+
});
|
|
2135
|
+
};
|
|
2136
|
+
var serializeAws_json1_1PrincipalTags = function (input, context) {
|
|
2137
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
2138
|
+
var _b;
|
|
2139
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2140
|
+
if (value === null) {
|
|
2141
|
+
return acc;
|
|
2142
|
+
}
|
|
2143
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
2144
|
+
}, {});
|
|
2145
|
+
};
|
|
2146
|
+
var serializeAws_json1_1RoleMapping = function (input, context) {
|
|
2147
|
+
return __assign(__assign(__assign({}, (input.AmbiguousRoleResolution != null && { AmbiguousRoleResolution: input.AmbiguousRoleResolution })), (input.RulesConfiguration != null && {
|
|
2148
|
+
RulesConfiguration: serializeAws_json1_1RulesConfigurationType(input.RulesConfiguration, context),
|
|
2149
|
+
})), (input.Type != null && { Type: input.Type }));
|
|
2150
|
+
};
|
|
2151
|
+
var serializeAws_json1_1RoleMappingMap = function (input, context) {
|
|
2152
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
2153
|
+
var _b;
|
|
2154
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2155
|
+
if (value === null) {
|
|
2156
|
+
return acc;
|
|
2157
|
+
}
|
|
2158
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = serializeAws_json1_1RoleMapping(value, context), _b));
|
|
2159
|
+
}, {});
|
|
2160
|
+
};
|
|
2161
|
+
var serializeAws_json1_1RolesMap = function (input, context) {
|
|
2162
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
2163
|
+
var _b;
|
|
2164
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2165
|
+
if (value === null) {
|
|
2166
|
+
return acc;
|
|
2167
|
+
}
|
|
2168
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
2169
|
+
}, {});
|
|
2170
|
+
};
|
|
2171
|
+
var serializeAws_json1_1RulesConfigurationType = function (input, context) {
|
|
2172
|
+
return __assign({}, (input.Rules != null && { Rules: serializeAws_json1_1MappingRulesList(input.Rules, context) }));
|
|
2173
|
+
};
|
|
2174
|
+
var serializeAws_json1_1SAMLProviderList = function (input, context) {
|
|
2175
|
+
return input
|
|
2176
|
+
.filter(function (e) { return e != null; })
|
|
2177
|
+
.map(function (entry) {
|
|
2178
|
+
return entry;
|
|
2179
|
+
});
|
|
2180
|
+
};
|
|
2181
|
+
var serializeAws_json1_1SetIdentityPoolRolesInput = function (input, context) {
|
|
2182
|
+
return __assign(__assign(__assign({}, (input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId })), (input.RoleMappings != null && {
|
|
2183
|
+
RoleMappings: serializeAws_json1_1RoleMappingMap(input.RoleMappings, context),
|
|
2184
|
+
})), (input.Roles != null && { Roles: serializeAws_json1_1RolesMap(input.Roles, context) }));
|
|
2185
|
+
};
|
|
2186
|
+
var serializeAws_json1_1SetPrincipalTagAttributeMapInput = function (input, context) {
|
|
2187
|
+
return __assign(__assign(__assign(__assign({}, (input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId })), (input.IdentityProviderName != null && { IdentityProviderName: input.IdentityProviderName })), (input.PrincipalTags != null && {
|
|
2188
|
+
PrincipalTags: serializeAws_json1_1PrincipalTags(input.PrincipalTags, context),
|
|
2189
|
+
})), (input.UseDefaults != null && { UseDefaults: input.UseDefaults }));
|
|
2190
|
+
};
|
|
2191
|
+
var serializeAws_json1_1TagResourceInput = function (input, context) {
|
|
2192
|
+
return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.Tags != null && { Tags: serializeAws_json1_1IdentityPoolTagsType(input.Tags, context) }));
|
|
2193
|
+
};
|
|
2194
|
+
var serializeAws_json1_1UnlinkDeveloperIdentityInput = function (input, context) {
|
|
2195
|
+
return __assign(__assign(__assign(__assign({}, (input.DeveloperProviderName != null && { DeveloperProviderName: input.DeveloperProviderName })), (input.DeveloperUserIdentifier != null && { DeveloperUserIdentifier: input.DeveloperUserIdentifier })), (input.IdentityId != null && { IdentityId: input.IdentityId })), (input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }));
|
|
2196
|
+
};
|
|
2197
|
+
var serializeAws_json1_1UnlinkIdentityInput = function (input, context) {
|
|
2198
|
+
return __assign(__assign(__assign({}, (input.IdentityId != null && { IdentityId: input.IdentityId })), (input.Logins != null && { Logins: serializeAws_json1_1LoginsMap(input.Logins, context) })), (input.LoginsToRemove != null && {
|
|
2199
|
+
LoginsToRemove: serializeAws_json1_1LoginsList(input.LoginsToRemove, context),
|
|
2200
|
+
}));
|
|
2201
|
+
};
|
|
2202
|
+
var serializeAws_json1_1UntagResourceInput = function (input, context) {
|
|
2203
|
+
return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1IdentityPoolTagsListType(input.TagKeys, context) }));
|
|
2204
|
+
};
|
|
2205
|
+
var deserializeAws_json1_1CognitoIdentityProvider = function (output, context) {
|
|
2206
|
+
return {
|
|
2207
|
+
ClientId: __expectString(output.ClientId),
|
|
2208
|
+
ProviderName: __expectString(output.ProviderName),
|
|
2209
|
+
ServerSideTokenCheck: __expectBoolean(output.ServerSideTokenCheck),
|
|
2210
|
+
};
|
|
2211
|
+
};
|
|
2212
|
+
var deserializeAws_json1_1CognitoIdentityProviderList = function (output, context) {
|
|
2213
|
+
var retVal = (output || [])
|
|
2214
|
+
.filter(function (e) { return e != null; })
|
|
2215
|
+
.map(function (entry) {
|
|
2216
|
+
if (entry === null) {
|
|
2217
|
+
return null;
|
|
2218
|
+
}
|
|
2219
|
+
return deserializeAws_json1_1CognitoIdentityProvider(entry, context);
|
|
2220
|
+
});
|
|
2221
|
+
return retVal;
|
|
2222
|
+
};
|
|
2223
|
+
var deserializeAws_json1_1ConcurrentModificationException = function (output, context) {
|
|
2224
|
+
return {
|
|
2225
|
+
message: __expectString(output.message),
|
|
2226
|
+
};
|
|
2227
|
+
};
|
|
2228
|
+
var deserializeAws_json1_1Credentials = function (output, context) {
|
|
2229
|
+
return {
|
|
2230
|
+
AccessKeyId: __expectString(output.AccessKeyId),
|
|
2231
|
+
Expiration: output.Expiration != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Expiration))) : undefined,
|
|
2232
|
+
SecretKey: __expectString(output.SecretKey),
|
|
2233
|
+
SessionToken: __expectString(output.SessionToken),
|
|
2234
|
+
};
|
|
2235
|
+
};
|
|
2236
|
+
var deserializeAws_json1_1DeleteIdentitiesResponse = function (output, context) {
|
|
2237
|
+
return {
|
|
2238
|
+
UnprocessedIdentityIds: output.UnprocessedIdentityIds != null
|
|
2239
|
+
? deserializeAws_json1_1UnprocessedIdentityIdList(output.UnprocessedIdentityIds, context)
|
|
2240
|
+
: undefined,
|
|
2241
|
+
};
|
|
2242
|
+
};
|
|
2243
|
+
var deserializeAws_json1_1DeveloperUserAlreadyRegisteredException = function (output, context) {
|
|
2244
|
+
return {
|
|
2245
|
+
message: __expectString(output.message),
|
|
2246
|
+
};
|
|
2247
|
+
};
|
|
2248
|
+
var deserializeAws_json1_1DeveloperUserIdentifierList = function (output, context) {
|
|
2249
|
+
var retVal = (output || [])
|
|
2250
|
+
.filter(function (e) { return e != null; })
|
|
2251
|
+
.map(function (entry) {
|
|
2252
|
+
if (entry === null) {
|
|
2253
|
+
return null;
|
|
2254
|
+
}
|
|
2255
|
+
return __expectString(entry);
|
|
2256
|
+
});
|
|
2257
|
+
return retVal;
|
|
2258
|
+
};
|
|
2259
|
+
var deserializeAws_json1_1ExternalServiceException = function (output, context) {
|
|
2260
|
+
return {
|
|
2261
|
+
message: __expectString(output.message),
|
|
2262
|
+
};
|
|
2263
|
+
};
|
|
2264
|
+
var deserializeAws_json1_1GetCredentialsForIdentityResponse = function (output, context) {
|
|
2265
|
+
return {
|
|
2266
|
+
Credentials: output.Credentials != null ? deserializeAws_json1_1Credentials(output.Credentials, context) : undefined,
|
|
2267
|
+
IdentityId: __expectString(output.IdentityId),
|
|
2268
|
+
};
|
|
2269
|
+
};
|
|
2270
|
+
var deserializeAws_json1_1GetIdentityPoolRolesResponse = function (output, context) {
|
|
2271
|
+
return {
|
|
2272
|
+
IdentityPoolId: __expectString(output.IdentityPoolId),
|
|
2273
|
+
RoleMappings: output.RoleMappings != null ? deserializeAws_json1_1RoleMappingMap(output.RoleMappings, context) : undefined,
|
|
2274
|
+
Roles: output.Roles != null ? deserializeAws_json1_1RolesMap(output.Roles, context) : undefined,
|
|
2275
|
+
};
|
|
2276
|
+
};
|
|
2277
|
+
var deserializeAws_json1_1GetIdResponse = function (output, context) {
|
|
2278
|
+
return {
|
|
2279
|
+
IdentityId: __expectString(output.IdentityId),
|
|
2280
|
+
};
|
|
2281
|
+
};
|
|
2282
|
+
var deserializeAws_json1_1GetOpenIdTokenForDeveloperIdentityResponse = function (output, context) {
|
|
2283
|
+
return {
|
|
2284
|
+
IdentityId: __expectString(output.IdentityId),
|
|
2285
|
+
Token: __expectString(output.Token),
|
|
2286
|
+
};
|
|
2287
|
+
};
|
|
2288
|
+
var deserializeAws_json1_1GetOpenIdTokenResponse = function (output, context) {
|
|
2289
|
+
return {
|
|
2290
|
+
IdentityId: __expectString(output.IdentityId),
|
|
2291
|
+
Token: __expectString(output.Token),
|
|
2292
|
+
};
|
|
2293
|
+
};
|
|
2294
|
+
var deserializeAws_json1_1GetPrincipalTagAttributeMapResponse = function (output, context) {
|
|
2295
|
+
return {
|
|
2296
|
+
IdentityPoolId: __expectString(output.IdentityPoolId),
|
|
2297
|
+
IdentityProviderName: __expectString(output.IdentityProviderName),
|
|
2298
|
+
PrincipalTags: output.PrincipalTags != null ? deserializeAws_json1_1PrincipalTags(output.PrincipalTags, context) : undefined,
|
|
2299
|
+
UseDefaults: __expectBoolean(output.UseDefaults),
|
|
2300
|
+
};
|
|
2301
|
+
};
|
|
2302
|
+
var deserializeAws_json1_1IdentitiesList = function (output, context) {
|
|
2303
|
+
var retVal = (output || [])
|
|
2304
|
+
.filter(function (e) { return e != null; })
|
|
2305
|
+
.map(function (entry) {
|
|
2306
|
+
if (entry === null) {
|
|
2307
|
+
return null;
|
|
2308
|
+
}
|
|
2309
|
+
return deserializeAws_json1_1IdentityDescription(entry, context);
|
|
2310
|
+
});
|
|
2311
|
+
return retVal;
|
|
2312
|
+
};
|
|
2313
|
+
var deserializeAws_json1_1IdentityDescription = function (output, context) {
|
|
2314
|
+
return {
|
|
2315
|
+
CreationDate: output.CreationDate != null
|
|
2316
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
|
|
2317
|
+
: undefined,
|
|
2318
|
+
IdentityId: __expectString(output.IdentityId),
|
|
2319
|
+
LastModifiedDate: output.LastModifiedDate != null
|
|
2320
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
|
|
2321
|
+
: undefined,
|
|
2322
|
+
Logins: output.Logins != null ? deserializeAws_json1_1LoginsList(output.Logins, context) : undefined,
|
|
2323
|
+
};
|
|
2324
|
+
};
|
|
2325
|
+
var deserializeAws_json1_1IdentityPool = function (output, context) {
|
|
2326
|
+
return {
|
|
2327
|
+
AllowClassicFlow: __expectBoolean(output.AllowClassicFlow),
|
|
2328
|
+
AllowUnauthenticatedIdentities: __expectBoolean(output.AllowUnauthenticatedIdentities),
|
|
2329
|
+
CognitoIdentityProviders: output.CognitoIdentityProviders != null
|
|
2330
|
+
? deserializeAws_json1_1CognitoIdentityProviderList(output.CognitoIdentityProviders, context)
|
|
2331
|
+
: undefined,
|
|
2332
|
+
DeveloperProviderName: __expectString(output.DeveloperProviderName),
|
|
2333
|
+
IdentityPoolId: __expectString(output.IdentityPoolId),
|
|
2334
|
+
IdentityPoolName: __expectString(output.IdentityPoolName),
|
|
2335
|
+
IdentityPoolTags: output.IdentityPoolTags != null
|
|
2336
|
+
? deserializeAws_json1_1IdentityPoolTagsType(output.IdentityPoolTags, context)
|
|
2337
|
+
: undefined,
|
|
2338
|
+
OpenIdConnectProviderARNs: output.OpenIdConnectProviderARNs != null
|
|
2339
|
+
? deserializeAws_json1_1OIDCProviderList(output.OpenIdConnectProviderARNs, context)
|
|
2340
|
+
: undefined,
|
|
2341
|
+
SamlProviderARNs: output.SamlProviderARNs != null
|
|
2342
|
+
? deserializeAws_json1_1SAMLProviderList(output.SamlProviderARNs, context)
|
|
2343
|
+
: undefined,
|
|
2344
|
+
SupportedLoginProviders: output.SupportedLoginProviders != null
|
|
2345
|
+
? deserializeAws_json1_1IdentityProviders(output.SupportedLoginProviders, context)
|
|
2346
|
+
: undefined,
|
|
2347
|
+
};
|
|
2348
|
+
};
|
|
2349
|
+
var deserializeAws_json1_1IdentityPoolShortDescription = function (output, context) {
|
|
2350
|
+
return {
|
|
2351
|
+
IdentityPoolId: __expectString(output.IdentityPoolId),
|
|
2352
|
+
IdentityPoolName: __expectString(output.IdentityPoolName),
|
|
2353
|
+
};
|
|
2354
|
+
};
|
|
2355
|
+
var deserializeAws_json1_1IdentityPoolsList = function (output, context) {
|
|
2356
|
+
var retVal = (output || [])
|
|
2357
|
+
.filter(function (e) { return e != null; })
|
|
2358
|
+
.map(function (entry) {
|
|
2359
|
+
if (entry === null) {
|
|
2360
|
+
return null;
|
|
2361
|
+
}
|
|
2362
|
+
return deserializeAws_json1_1IdentityPoolShortDescription(entry, context);
|
|
2363
|
+
});
|
|
2364
|
+
return retVal;
|
|
2365
|
+
};
|
|
2366
|
+
var deserializeAws_json1_1IdentityPoolTagsType = function (output, context) {
|
|
2367
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2368
|
+
var _b;
|
|
2369
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2370
|
+
if (value === null) {
|
|
2371
|
+
return acc;
|
|
2372
|
+
}
|
|
2373
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
2374
|
+
}, {});
|
|
2375
|
+
};
|
|
2376
|
+
var deserializeAws_json1_1IdentityProviders = function (output, context) {
|
|
2377
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2378
|
+
var _b;
|
|
2379
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2380
|
+
if (value === null) {
|
|
2381
|
+
return acc;
|
|
2382
|
+
}
|
|
2383
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
2384
|
+
}, {});
|
|
2385
|
+
};
|
|
2386
|
+
var deserializeAws_json1_1InternalErrorException = function (output, context) {
|
|
2387
|
+
return {
|
|
2388
|
+
message: __expectString(output.message),
|
|
2389
|
+
};
|
|
2390
|
+
};
|
|
2391
|
+
var deserializeAws_json1_1InvalidIdentityPoolConfigurationException = function (output, context) {
|
|
2392
|
+
return {
|
|
2393
|
+
message: __expectString(output.message),
|
|
2394
|
+
};
|
|
2395
|
+
};
|
|
2396
|
+
var deserializeAws_json1_1InvalidParameterException = function (output, context) {
|
|
2397
|
+
return {
|
|
2398
|
+
message: __expectString(output.message),
|
|
2399
|
+
};
|
|
2400
|
+
};
|
|
2401
|
+
var deserializeAws_json1_1LimitExceededException = function (output, context) {
|
|
2402
|
+
return {
|
|
2403
|
+
message: __expectString(output.message),
|
|
2404
|
+
};
|
|
2405
|
+
};
|
|
2406
|
+
var deserializeAws_json1_1ListIdentitiesResponse = function (output, context) {
|
|
2407
|
+
return {
|
|
2408
|
+
Identities: output.Identities != null ? deserializeAws_json1_1IdentitiesList(output.Identities, context) : undefined,
|
|
2409
|
+
IdentityPoolId: __expectString(output.IdentityPoolId),
|
|
2410
|
+
NextToken: __expectString(output.NextToken),
|
|
2411
|
+
};
|
|
2412
|
+
};
|
|
2413
|
+
var deserializeAws_json1_1ListIdentityPoolsResponse = function (output, context) {
|
|
2414
|
+
return {
|
|
2415
|
+
IdentityPools: output.IdentityPools != null ? deserializeAws_json1_1IdentityPoolsList(output.IdentityPools, context) : undefined,
|
|
2416
|
+
NextToken: __expectString(output.NextToken),
|
|
2417
|
+
};
|
|
2418
|
+
};
|
|
2419
|
+
var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
|
|
2420
|
+
return {
|
|
2421
|
+
Tags: output.Tags != null ? deserializeAws_json1_1IdentityPoolTagsType(output.Tags, context) : undefined,
|
|
2422
|
+
};
|
|
2423
|
+
};
|
|
2424
|
+
var deserializeAws_json1_1LoginsList = function (output, context) {
|
|
2425
|
+
var retVal = (output || [])
|
|
2426
|
+
.filter(function (e) { return e != null; })
|
|
2427
|
+
.map(function (entry) {
|
|
2428
|
+
if (entry === null) {
|
|
2429
|
+
return null;
|
|
2430
|
+
}
|
|
2431
|
+
return __expectString(entry);
|
|
2432
|
+
});
|
|
2433
|
+
return retVal;
|
|
2434
|
+
};
|
|
2435
|
+
var deserializeAws_json1_1LookupDeveloperIdentityResponse = function (output, context) {
|
|
2436
|
+
return {
|
|
2437
|
+
DeveloperUserIdentifierList: output.DeveloperUserIdentifierList != null
|
|
2438
|
+
? deserializeAws_json1_1DeveloperUserIdentifierList(output.DeveloperUserIdentifierList, context)
|
|
2439
|
+
: undefined,
|
|
2440
|
+
IdentityId: __expectString(output.IdentityId),
|
|
2441
|
+
NextToken: __expectString(output.NextToken),
|
|
2442
|
+
};
|
|
2443
|
+
};
|
|
2444
|
+
var deserializeAws_json1_1MappingRule = function (output, context) {
|
|
2445
|
+
return {
|
|
2446
|
+
Claim: __expectString(output.Claim),
|
|
2447
|
+
MatchType: __expectString(output.MatchType),
|
|
2448
|
+
RoleARN: __expectString(output.RoleARN),
|
|
2449
|
+
Value: __expectString(output.Value),
|
|
2450
|
+
};
|
|
2451
|
+
};
|
|
2452
|
+
var deserializeAws_json1_1MappingRulesList = function (output, context) {
|
|
2453
|
+
var retVal = (output || [])
|
|
2454
|
+
.filter(function (e) { return e != null; })
|
|
2455
|
+
.map(function (entry) {
|
|
2456
|
+
if (entry === null) {
|
|
2457
|
+
return null;
|
|
2458
|
+
}
|
|
2459
|
+
return deserializeAws_json1_1MappingRule(entry, context);
|
|
2460
|
+
});
|
|
2461
|
+
return retVal;
|
|
2462
|
+
};
|
|
2463
|
+
var deserializeAws_json1_1MergeDeveloperIdentitiesResponse = function (output, context) {
|
|
2464
|
+
return {
|
|
2465
|
+
IdentityId: __expectString(output.IdentityId),
|
|
2466
|
+
};
|
|
2467
|
+
};
|
|
2468
|
+
var deserializeAws_json1_1NotAuthorizedException = function (output, context) {
|
|
2469
|
+
return {
|
|
2470
|
+
message: __expectString(output.message),
|
|
2471
|
+
};
|
|
2472
|
+
};
|
|
2473
|
+
var deserializeAws_json1_1OIDCProviderList = function (output, context) {
|
|
2474
|
+
var retVal = (output || [])
|
|
2475
|
+
.filter(function (e) { return e != null; })
|
|
2476
|
+
.map(function (entry) {
|
|
2477
|
+
if (entry === null) {
|
|
2478
|
+
return null;
|
|
2479
|
+
}
|
|
2480
|
+
return __expectString(entry);
|
|
2481
|
+
});
|
|
2482
|
+
return retVal;
|
|
2483
|
+
};
|
|
2484
|
+
var deserializeAws_json1_1PrincipalTags = function (output, context) {
|
|
2485
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2486
|
+
var _b;
|
|
2487
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2488
|
+
if (value === null) {
|
|
2489
|
+
return acc;
|
|
2490
|
+
}
|
|
2491
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
2492
|
+
}, {});
|
|
2493
|
+
};
|
|
2494
|
+
var deserializeAws_json1_1ResourceConflictException = function (output, context) {
|
|
2495
|
+
return {
|
|
2496
|
+
message: __expectString(output.message),
|
|
2497
|
+
};
|
|
2498
|
+
};
|
|
2499
|
+
var deserializeAws_json1_1ResourceNotFoundException = function (output, context) {
|
|
2500
|
+
return {
|
|
2501
|
+
message: __expectString(output.message),
|
|
2502
|
+
};
|
|
2503
|
+
};
|
|
2504
|
+
var deserializeAws_json1_1RoleMapping = function (output, context) {
|
|
2505
|
+
return {
|
|
2506
|
+
AmbiguousRoleResolution: __expectString(output.AmbiguousRoleResolution),
|
|
2507
|
+
RulesConfiguration: output.RulesConfiguration != null
|
|
2508
|
+
? deserializeAws_json1_1RulesConfigurationType(output.RulesConfiguration, context)
|
|
2509
|
+
: undefined,
|
|
2510
|
+
Type: __expectString(output.Type),
|
|
2511
|
+
};
|
|
2512
|
+
};
|
|
2513
|
+
var deserializeAws_json1_1RoleMappingMap = function (output, context) {
|
|
2514
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2515
|
+
var _b;
|
|
2516
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2517
|
+
if (value === null) {
|
|
2518
|
+
return acc;
|
|
2519
|
+
}
|
|
2520
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_json1_1RoleMapping(value, context), _b));
|
|
2521
|
+
}, {});
|
|
2522
|
+
};
|
|
2523
|
+
var deserializeAws_json1_1RolesMap = function (output, context) {
|
|
2524
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2525
|
+
var _b;
|
|
2526
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2527
|
+
if (value === null) {
|
|
2528
|
+
return acc;
|
|
2529
|
+
}
|
|
2530
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
2531
|
+
}, {});
|
|
2532
|
+
};
|
|
2533
|
+
var deserializeAws_json1_1RulesConfigurationType = function (output, context) {
|
|
2534
|
+
return {
|
|
2535
|
+
Rules: output.Rules != null ? deserializeAws_json1_1MappingRulesList(output.Rules, context) : undefined,
|
|
2536
|
+
};
|
|
2537
|
+
};
|
|
2538
|
+
var deserializeAws_json1_1SAMLProviderList = function (output, context) {
|
|
2539
|
+
var retVal = (output || [])
|
|
2540
|
+
.filter(function (e) { return e != null; })
|
|
2541
|
+
.map(function (entry) {
|
|
2542
|
+
if (entry === null) {
|
|
2543
|
+
return null;
|
|
2544
|
+
}
|
|
2545
|
+
return __expectString(entry);
|
|
2546
|
+
});
|
|
2547
|
+
return retVal;
|
|
2548
|
+
};
|
|
2549
|
+
var deserializeAws_json1_1SetPrincipalTagAttributeMapResponse = function (output, context) {
|
|
2550
|
+
return {
|
|
2551
|
+
IdentityPoolId: __expectString(output.IdentityPoolId),
|
|
2552
|
+
IdentityProviderName: __expectString(output.IdentityProviderName),
|
|
2553
|
+
PrincipalTags: output.PrincipalTags != null ? deserializeAws_json1_1PrincipalTags(output.PrincipalTags, context) : undefined,
|
|
2554
|
+
UseDefaults: __expectBoolean(output.UseDefaults),
|
|
2555
|
+
};
|
|
2556
|
+
};
|
|
2557
|
+
var deserializeAws_json1_1TagResourceResponse = function (output, context) {
|
|
2558
|
+
return {};
|
|
2559
|
+
};
|
|
2560
|
+
var deserializeAws_json1_1TooManyRequestsException = function (output, context) {
|
|
2561
|
+
return {
|
|
2562
|
+
message: __expectString(output.message),
|
|
2563
|
+
};
|
|
2564
|
+
};
|
|
2565
|
+
var deserializeAws_json1_1UnprocessedIdentityId = function (output, context) {
|
|
2566
|
+
return {
|
|
2567
|
+
ErrorCode: __expectString(output.ErrorCode),
|
|
2568
|
+
IdentityId: __expectString(output.IdentityId),
|
|
2569
|
+
};
|
|
2570
|
+
};
|
|
2571
|
+
var deserializeAws_json1_1UnprocessedIdentityIdList = function (output, context) {
|
|
2572
|
+
var retVal = (output || [])
|
|
2573
|
+
.filter(function (e) { return e != null; })
|
|
2574
|
+
.map(function (entry) {
|
|
2575
|
+
if (entry === null) {
|
|
2576
|
+
return null;
|
|
2577
|
+
}
|
|
2578
|
+
return deserializeAws_json1_1UnprocessedIdentityId(entry, context);
|
|
2579
|
+
});
|
|
2580
|
+
return retVal;
|
|
2581
|
+
};
|
|
2582
|
+
var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
|
|
2583
|
+
return {};
|
|
2584
|
+
};
|
|
2585
|
+
var deserializeMetadata = function (output) {
|
|
2586
|
+
var _a;
|
|
2587
|
+
return ({
|
|
2588
|
+
httpStatusCode: output.statusCode,
|
|
2589
|
+
requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
|
|
2590
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2591
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2592
|
+
});
|
|
2593
|
+
};
|
|
2594
|
+
var collectBody = function (streamBody, context) {
|
|
2595
|
+
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2596
|
+
if (streamBody instanceof Uint8Array) {
|
|
2597
|
+
return Promise.resolve(streamBody);
|
|
2598
|
+
}
|
|
2599
|
+
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2600
|
+
};
|
|
2601
|
+
var collectBodyString = function (streamBody, context) {
|
|
2602
|
+
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
2603
|
+
};
|
|
2604
|
+
var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2605
|
+
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
2606
|
+
return __generator(this, function (_c) {
|
|
2607
|
+
switch (_c.label) {
|
|
2608
|
+
case 0: return [4, context.endpoint()];
|
|
2609
|
+
case 1:
|
|
2610
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2611
|
+
contents = {
|
|
2612
|
+
protocol: protocol,
|
|
2613
|
+
hostname: hostname,
|
|
2614
|
+
port: port,
|
|
2615
|
+
method: "POST",
|
|
2616
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2617
|
+
headers: headers,
|
|
2618
|
+
};
|
|
2619
|
+
if (resolvedHostname !== undefined) {
|
|
2620
|
+
contents.hostname = resolvedHostname;
|
|
2621
|
+
}
|
|
2622
|
+
if (body !== undefined) {
|
|
2623
|
+
contents.body = body;
|
|
2624
|
+
}
|
|
2625
|
+
return [2, new __HttpRequest(contents)];
|
|
2626
|
+
}
|
|
2627
|
+
});
|
|
2628
|
+
}); };
|
|
2629
|
+
var parseBody = function (streamBody, context) {
|
|
2630
|
+
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
2631
|
+
if (encoded.length) {
|
|
2632
|
+
return JSON.parse(encoded);
|
|
2633
|
+
}
|
|
2634
|
+
return {};
|
|
2635
|
+
});
|
|
2636
|
+
};
|
|
2637
|
+
var loadRestJsonErrorCode = function (output, data) {
|
|
2638
|
+
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2639
|
+
var sanitizeErrorCode = function (rawValue) {
|
|
2640
|
+
var cleanValue = rawValue;
|
|
2641
|
+
if (typeof cleanValue === "number") {
|
|
2642
|
+
cleanValue = cleanValue.toString();
|
|
2643
|
+
}
|
|
2644
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
2645
|
+
cleanValue = cleanValue.split(":")[0];
|
|
2646
|
+
}
|
|
2647
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
2648
|
+
cleanValue = cleanValue.split("#")[1];
|
|
2649
|
+
}
|
|
2650
|
+
return cleanValue;
|
|
2651
|
+
};
|
|
2652
|
+
var headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2653
|
+
if (headerKey !== undefined) {
|
|
2654
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2655
|
+
}
|
|
2656
|
+
if (data.code !== undefined) {
|
|
2657
|
+
return sanitizeErrorCode(data.code);
|
|
2658
|
+
}
|
|
2659
|
+
if (data["__type"] !== undefined) {
|
|
2660
|
+
return sanitizeErrorCode(data["__type"]);
|
|
2661
|
+
}
|
|
2662
|
+
};
|