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