@aws-sdk/client-amplifybackend 3.31.0 → 3.35.0
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/CHANGELOG.md +39 -0
- package/{dist/cjs → dist-cjs}/AmplifyBackend.js +0 -0
- package/dist-cjs/AmplifyBackend.js.map +1 -0
- package/{dist/cjs → dist-cjs}/AmplifyBackendClient.js +14 -14
- package/dist-cjs/AmplifyBackendClient.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CloneBackendCommand.js +5 -5
- package/dist-cjs/commands/CloneBackendCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateBackendAPICommand.js +5 -5
- package/dist-cjs/commands/CreateBackendAPICommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateBackendAuthCommand.js +5 -5
- package/dist-cjs/commands/CreateBackendAuthCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateBackendCommand.js +5 -5
- package/dist-cjs/commands/CreateBackendCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateBackendConfigCommand.js +5 -5
- package/dist-cjs/commands/CreateBackendConfigCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateTokenCommand.js +5 -5
- package/dist-cjs/commands/CreateTokenCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteBackendAPICommand.js +5 -5
- package/dist-cjs/commands/DeleteBackendAPICommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteBackendAuthCommand.js +5 -5
- package/dist-cjs/commands/DeleteBackendAuthCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteBackendCommand.js +5 -5
- package/dist-cjs/commands/DeleteBackendCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteTokenCommand.js +5 -5
- package/dist-cjs/commands/DeleteTokenCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GenerateBackendAPIModelsCommand.js +5 -5
- package/dist-cjs/commands/GenerateBackendAPIModelsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetBackendAPICommand.js +5 -5
- package/dist-cjs/commands/GetBackendAPICommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetBackendAPIModelsCommand.js +5 -5
- package/dist-cjs/commands/GetBackendAPIModelsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetBackendAuthCommand.js +5 -5
- package/dist-cjs/commands/GetBackendAuthCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetBackendCommand.js +5 -5
- package/dist-cjs/commands/GetBackendCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetBackendJobCommand.js +5 -5
- package/dist-cjs/commands/GetBackendJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetTokenCommand.js +5 -5
- package/dist-cjs/commands/GetTokenCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ImportBackendAuthCommand.js +5 -5
- package/dist-cjs/commands/ImportBackendAuthCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListBackendJobsCommand.js +5 -5
- package/dist-cjs/commands/ListBackendJobsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/RemoveAllBackendsCommand.js +5 -5
- package/dist-cjs/commands/RemoveAllBackendsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/RemoveBackendConfigCommand.js +5 -5
- package/dist-cjs/commands/RemoveBackendConfigCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateBackendAPICommand.js +5 -5
- package/dist-cjs/commands/UpdateBackendAPICommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateBackendAuthCommand.js +5 -5
- package/dist-cjs/commands/UpdateBackendAuthCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateBackendConfigCommand.js +5 -5
- package/dist-cjs/commands/UpdateBackendConfigCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateBackendJobCommand.js +5 -5
- package/dist-cjs/commands/UpdateBackendJobCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
- package/dist-cjs/endpoints.js.map +1 -0
- package/dist-cjs/index.js +32 -0
- package/dist-cjs/index.js.map +1 -0
- package/{dist/cjs → dist-cjs}/models/index.js +1 -1
- package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
- package/dist-cjs/models/models_0.js.map +1 -0
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +248 -248
- package/dist-cjs/protocols/Aws_restJson1.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
- package/dist-cjs/runtimeConfig.browser.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
- package/dist-cjs/runtimeConfig.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
- package/dist-cjs/runtimeConfig.native.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
- package/dist-cjs/runtimeConfig.shared.js.map +1 -0
- package/{dist/es → dist-es}/AmplifyBackend.js +1 -4
- package/dist-es/AmplifyBackend.js.map +1 -0
- package/{dist/es → dist-es}/AmplifyBackendClient.js +2 -10
- package/dist-es/AmplifyBackendClient.js.map +1 -0
- package/{dist/es → dist-es}/commands/CloneBackendCommand.js +4 -29
- package/dist-es/commands/CloneBackendCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateBackendAPICommand.js +4 -29
- package/dist-es/commands/CreateBackendAPICommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateBackendAuthCommand.js +4 -29
- package/dist-es/commands/CreateBackendAuthCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateBackendCommand.js +4 -29
- package/dist-es/commands/CreateBackendCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateBackendConfigCommand.js +4 -29
- package/dist-es/commands/CreateBackendConfigCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateTokenCommand.js +4 -29
- package/dist-es/commands/CreateTokenCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteBackendAPICommand.js +4 -29
- package/dist-es/commands/DeleteBackendAPICommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteBackendAuthCommand.js +4 -29
- package/dist-es/commands/DeleteBackendAuthCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteBackendCommand.js +4 -29
- package/dist-es/commands/DeleteBackendCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteTokenCommand.js +4 -29
- package/dist-es/commands/DeleteTokenCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GenerateBackendAPIModelsCommand.js +4 -29
- package/dist-es/commands/GenerateBackendAPIModelsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetBackendAPICommand.js +4 -29
- package/dist-es/commands/GetBackendAPICommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetBackendAPIModelsCommand.js +4 -29
- package/dist-es/commands/GetBackendAPIModelsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetBackendAuthCommand.js +4 -29
- package/dist-es/commands/GetBackendAuthCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetBackendCommand.js +4 -29
- package/dist-es/commands/GetBackendCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetBackendJobCommand.js +4 -29
- package/dist-es/commands/GetBackendJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetTokenCommand.js +4 -29
- package/dist-es/commands/GetTokenCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ImportBackendAuthCommand.js +4 -29
- package/dist-es/commands/ImportBackendAuthCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListBackendJobsCommand.js +4 -29
- package/dist-es/commands/ListBackendJobsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/RemoveAllBackendsCommand.js +4 -29
- package/dist-es/commands/RemoveAllBackendsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/RemoveBackendConfigCommand.js +4 -29
- package/dist-es/commands/RemoveBackendConfigCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateBackendAPICommand.js +4 -29
- package/dist-es/commands/UpdateBackendAPICommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateBackendAuthCommand.js +4 -29
- package/dist-es/commands/UpdateBackendAuthCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateBackendConfigCommand.js +4 -29
- package/dist-es/commands/UpdateBackendConfigCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateBackendJobCommand.js +4 -29
- package/dist-es/commands/UpdateBackendJobCommand.js.map +1 -0
- package/{dist/es → dist-es}/endpoints.js +1 -1
- package/dist-es/endpoints.js.map +1 -0
- package/{dist/es → dist-es}/index.js +0 -0
- package/dist-es/index.js.map +1 -0
- package/{dist/es → dist-es}/models/index.js +0 -0
- package/dist-es/models/index.js.map +1 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -243
- package/dist-es/models/models_0.js.map +1 -0
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +629 -634
- package/dist-es/protocols/Aws_restJson1.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
- package/dist-es/runtimeConfig.browser.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.js +2 -5
- package/dist-es/runtimeConfig.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
- package/dist-es/runtimeConfig.native.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
- package/dist-es/runtimeConfig.shared.js.map +1 -0
- package/{dist/types → dist-types}/AmplifyBackend.d.ts +1 -1
- package/{dist/types → dist-types}/AmplifyBackendClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/CloneBackendCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateBackendAPICommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateBackendAuthCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateBackendCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateBackendConfigCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateTokenCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteBackendAPICommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteBackendAuthCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteBackendCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteTokenCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GenerateBackendAPIModelsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetBackendAPICommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetBackendAPIModelsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetBackendAuthCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetBackendCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetBackendJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetTokenCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ImportBackendAuthCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListBackendJobsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/RemoveAllBackendsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/RemoveBackendConfigCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateBackendAPICommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateBackendAuthCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateBackendConfigCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateBackendJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +2 -1
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/AmplifyBackend.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/AmplifyBackendClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/CloneBackendCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateBackendAPICommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateBackendAuthCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateBackendCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateBackendConfigCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateTokenCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteBackendAPICommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteBackendAuthCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteBackendCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteTokenCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GenerateBackendAPIModelsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetBackendAPICommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetBackendAPIModelsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetBackendAuthCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetBackendCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetBackendJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetTokenCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ImportBackendAuthCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListBackendJobsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/RemoveAllBackendsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/RemoveBackendConfigCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateBackendAPICommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateBackendAuthCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateBackendConfigCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateBackendJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -1
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +50 -50
- package/{AmplifyBackend.ts → src/AmplifyBackend.ts} +2 -1
- package/{AmplifyBackendClient.ts → src/AmplifyBackendClient.ts} +55 -54
- package/{commands → src/commands}/CloneBackendCommand.ts +8 -7
- package/{commands → src/commands}/CreateBackendAPICommand.ts +8 -7
- package/{commands → src/commands}/CreateBackendAuthCommand.ts +8 -7
- package/{commands → src/commands}/CreateBackendCommand.ts +8 -7
- package/{commands → src/commands}/CreateBackendConfigCommand.ts +8 -7
- package/{commands → src/commands}/CreateTokenCommand.ts +8 -7
- package/{commands → src/commands}/DeleteBackendAPICommand.ts +8 -7
- package/{commands → src/commands}/DeleteBackendAuthCommand.ts +8 -7
- package/{commands → src/commands}/DeleteBackendCommand.ts +8 -7
- package/{commands → src/commands}/DeleteTokenCommand.ts +8 -7
- package/{commands → src/commands}/GenerateBackendAPIModelsCommand.ts +8 -7
- package/{commands → src/commands}/GetBackendAPICommand.ts +8 -7
- package/{commands → src/commands}/GetBackendAPIModelsCommand.ts +8 -7
- package/{commands → src/commands}/GetBackendAuthCommand.ts +8 -7
- package/{commands → src/commands}/GetBackendCommand.ts +8 -7
- package/{commands → src/commands}/GetBackendJobCommand.ts +8 -7
- package/{commands → src/commands}/GetTokenCommand.ts +8 -7
- package/{commands → src/commands}/ImportBackendAuthCommand.ts +8 -7
- package/{commands → src/commands}/ListBackendJobsCommand.ts +8 -7
- package/{commands → src/commands}/RemoveAllBackendsCommand.ts +8 -7
- package/{commands → src/commands}/RemoveBackendConfigCommand.ts +8 -7
- package/{commands → src/commands}/UpdateBackendAPICommand.ts +8 -7
- package/{commands → src/commands}/UpdateBackendAuthCommand.ts +8 -7
- package/{commands → src/commands}/UpdateBackendConfigCommand.ts +8 -7
- package/{commands → src/commands}/UpdateBackendJobCommand.ts +8 -7
- package/{endpoints.ts → src/endpoints.ts} +1 -1
- package/{index.ts → src/index.ts} +0 -0
- package/{models → src/models}/index.ts +0 -0
- package/{models → src/models}/models_0.ts +0 -0
- package/{protocols → src/protocols}/Aws_restJson1.ts +44 -43
- package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +3 -2
- package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +1 -0
- package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
- package/{runtimeConfig.ts → src/runtimeConfig.ts} +4 -3
- package/tsconfig.es.json +1 -3
- package/tsconfig.json +7 -7
- package/tsconfig.types.json +9 -0
- package/dist/cjs/AmplifyBackend.js.map +0 -1
- package/dist/cjs/AmplifyBackendClient.js.map +0 -1
- package/dist/cjs/commands/CloneBackendCommand.js.map +0 -1
- package/dist/cjs/commands/CreateBackendAPICommand.js.map +0 -1
- package/dist/cjs/commands/CreateBackendAuthCommand.js.map +0 -1
- package/dist/cjs/commands/CreateBackendCommand.js.map +0 -1
- package/dist/cjs/commands/CreateBackendConfigCommand.js.map +0 -1
- package/dist/cjs/commands/CreateTokenCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteBackendAPICommand.js.map +0 -1
- package/dist/cjs/commands/DeleteBackendAuthCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteBackendCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteTokenCommand.js.map +0 -1
- package/dist/cjs/commands/GenerateBackendAPIModelsCommand.js.map +0 -1
- package/dist/cjs/commands/GetBackendAPICommand.js.map +0 -1
- package/dist/cjs/commands/GetBackendAPIModelsCommand.js.map +0 -1
- package/dist/cjs/commands/GetBackendAuthCommand.js.map +0 -1
- package/dist/cjs/commands/GetBackendCommand.js.map +0 -1
- package/dist/cjs/commands/GetBackendJobCommand.js.map +0 -1
- package/dist/cjs/commands/GetTokenCommand.js.map +0 -1
- package/dist/cjs/commands/ImportBackendAuthCommand.js.map +0 -1
- package/dist/cjs/commands/ListBackendJobsCommand.js.map +0 -1
- package/dist/cjs/commands/RemoveAllBackendsCommand.js.map +0 -1
- package/dist/cjs/commands/RemoveBackendConfigCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateBackendAPICommand.js.map +0 -1
- package/dist/cjs/commands/UpdateBackendAuthCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateBackendConfigCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateBackendJobCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js +0 -32
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/AmplifyBackend.js.map +0 -1
- package/dist/es/AmplifyBackendClient.js.map +0 -1
- package/dist/es/commands/CloneBackendCommand.js.map +0 -1
- package/dist/es/commands/CreateBackendAPICommand.js.map +0 -1
- package/dist/es/commands/CreateBackendAuthCommand.js.map +0 -1
- package/dist/es/commands/CreateBackendCommand.js.map +0 -1
- package/dist/es/commands/CreateBackendConfigCommand.js.map +0 -1
- package/dist/es/commands/CreateTokenCommand.js.map +0 -1
- package/dist/es/commands/DeleteBackendAPICommand.js.map +0 -1
- package/dist/es/commands/DeleteBackendAuthCommand.js.map +0 -1
- package/dist/es/commands/DeleteBackendCommand.js.map +0 -1
- package/dist/es/commands/DeleteTokenCommand.js.map +0 -1
- package/dist/es/commands/GenerateBackendAPIModelsCommand.js.map +0 -1
- package/dist/es/commands/GetBackendAPICommand.js.map +0 -1
- package/dist/es/commands/GetBackendAPIModelsCommand.js.map +0 -1
- package/dist/es/commands/GetBackendAuthCommand.js.map +0 -1
- package/dist/es/commands/GetBackendCommand.js.map +0 -1
- package/dist/es/commands/GetBackendJobCommand.js.map +0 -1
- package/dist/es/commands/GetTokenCommand.js.map +0 -1
- package/dist/es/commands/ImportBackendAuthCommand.js.map +0 -1
- package/dist/es/commands/ListBackendJobsCommand.js.map +0 -1
- package/dist/es/commands/RemoveAllBackendsCommand.js.map +0 -1
- package/dist/es/commands/RemoveBackendConfigCommand.js.map +0 -1
- package/dist/es/commands/UpdateBackendAPICommand.js.map +0 -1
- package/dist/es/commands/UpdateBackendAuthCommand.js.map +0 -1
- package/dist/es/commands/UpdateBackendConfigCommand.js.map +0 -1
- package/dist/es/commands/UpdateBackendJobCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
|
@@ -5,7 +5,7 @@ export var serializeAws_restJson1CloneBackendCommand = function (input, context)
|
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
7
7
|
switch (_c.label) {
|
|
8
|
-
case 0: return [4
|
|
8
|
+
case 0: return [4, context.endpoint()];
|
|
9
9
|
case 1:
|
|
10
10
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
11
11
|
headers = {
|
|
@@ -35,7 +35,7 @@ export var serializeAws_restJson1CloneBackendCommand = function (input, context)
|
|
|
35
35
|
}
|
|
36
36
|
body = JSON.stringify(__assign({}, (input.TargetEnvironmentName !== undefined &&
|
|
37
37
|
input.TargetEnvironmentName !== null && { targetEnvironmentName: input.TargetEnvironmentName })));
|
|
38
|
-
return [2
|
|
38
|
+
return [2, new __HttpRequest({
|
|
39
39
|
protocol: protocol,
|
|
40
40
|
hostname: hostname,
|
|
41
41
|
port: port,
|
|
@@ -51,7 +51,7 @@ export var serializeAws_restJson1CreateBackendCommand = function (input, context
|
|
|
51
51
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
52
52
|
return __generator(this, function (_c) {
|
|
53
53
|
switch (_c.label) {
|
|
54
|
-
case 0: return [4
|
|
54
|
+
case 0: return [4, context.endpoint()];
|
|
55
55
|
case 1:
|
|
56
56
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
57
57
|
headers = {
|
|
@@ -63,7 +63,7 @@ export var serializeAws_restJson1CreateBackendCommand = function (input, context
|
|
|
63
63
|
input.ResourceConfig !== null && {
|
|
64
64
|
resourceConfig: serializeAws_restJson1ResourceConfig(input.ResourceConfig, context),
|
|
65
65
|
})), (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
|
|
66
|
-
return [2
|
|
66
|
+
return [2, new __HttpRequest({
|
|
67
67
|
protocol: protocol,
|
|
68
68
|
hostname: hostname,
|
|
69
69
|
port: port,
|
|
@@ -79,7 +79,7 @@ export var serializeAws_restJson1CreateBackendAPICommand = function (input, cont
|
|
|
79
79
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
80
80
|
return __generator(this, function (_c) {
|
|
81
81
|
switch (_c.label) {
|
|
82
|
-
case 0: return [4
|
|
82
|
+
case 0: return [4, context.endpoint()];
|
|
83
83
|
case 1:
|
|
84
84
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
85
85
|
headers = {
|
|
@@ -101,7 +101,7 @@ export var serializeAws_restJson1CreateBackendAPICommand = function (input, cont
|
|
|
101
101
|
input.ResourceConfig !== null && {
|
|
102
102
|
resourceConfig: serializeAws_restJson1BackendAPIResourceConfig(input.ResourceConfig, context),
|
|
103
103
|
})), (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
|
|
104
|
-
return [2
|
|
104
|
+
return [2, new __HttpRequest({
|
|
105
105
|
protocol: protocol,
|
|
106
106
|
hostname: hostname,
|
|
107
107
|
port: port,
|
|
@@ -117,7 +117,7 @@ export var serializeAws_restJson1CreateBackendAuthCommand = function (input, con
|
|
|
117
117
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
118
118
|
return __generator(this, function (_c) {
|
|
119
119
|
switch (_c.label) {
|
|
120
|
-
case 0: return [4
|
|
120
|
+
case 0: return [4, context.endpoint()];
|
|
121
121
|
case 1:
|
|
122
122
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
123
123
|
headers = {
|
|
@@ -139,7 +139,7 @@ export var serializeAws_restJson1CreateBackendAuthCommand = function (input, con
|
|
|
139
139
|
input.ResourceConfig !== null && {
|
|
140
140
|
resourceConfig: serializeAws_restJson1CreateBackendAuthResourceConfig(input.ResourceConfig, context),
|
|
141
141
|
})), (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
|
|
142
|
-
return [2
|
|
142
|
+
return [2, new __HttpRequest({
|
|
143
143
|
protocol: protocol,
|
|
144
144
|
hostname: hostname,
|
|
145
145
|
port: port,
|
|
@@ -155,7 +155,7 @@ export var serializeAws_restJson1CreateBackendConfigCommand = function (input, c
|
|
|
155
155
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
156
156
|
return __generator(this, function (_c) {
|
|
157
157
|
switch (_c.label) {
|
|
158
|
-
case 0: return [4
|
|
158
|
+
case 0: return [4, context.endpoint()];
|
|
159
159
|
case 1:
|
|
160
160
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
161
161
|
headers = {
|
|
@@ -174,7 +174,7 @@ export var serializeAws_restJson1CreateBackendConfigCommand = function (input, c
|
|
|
174
174
|
}
|
|
175
175
|
body = JSON.stringify(__assign({}, (input.BackendManagerAppId !== undefined &&
|
|
176
176
|
input.BackendManagerAppId !== null && { backendManagerAppId: input.BackendManagerAppId })));
|
|
177
|
-
return [2
|
|
177
|
+
return [2, new __HttpRequest({
|
|
178
178
|
protocol: protocol,
|
|
179
179
|
hostname: hostname,
|
|
180
180
|
port: port,
|
|
@@ -190,7 +190,7 @@ export var serializeAws_restJson1CreateTokenCommand = function (input, context)
|
|
|
190
190
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
191
191
|
return __generator(this, function (_c) {
|
|
192
192
|
switch (_c.label) {
|
|
193
|
-
case 0: return [4
|
|
193
|
+
case 0: return [4, context.endpoint()];
|
|
194
194
|
case 1:
|
|
195
195
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
196
196
|
headers = {};
|
|
@@ -205,7 +205,7 @@ export var serializeAws_restJson1CreateTokenCommand = function (input, context)
|
|
|
205
205
|
else {
|
|
206
206
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
207
207
|
}
|
|
208
|
-
return [2
|
|
208
|
+
return [2, new __HttpRequest({
|
|
209
209
|
protocol: protocol,
|
|
210
210
|
hostname: hostname,
|
|
211
211
|
port: port,
|
|
@@ -221,7 +221,7 @@ export var serializeAws_restJson1DeleteBackendCommand = function (input, context
|
|
|
221
221
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
222
222
|
return __generator(this, function (_c) {
|
|
223
223
|
switch (_c.label) {
|
|
224
|
-
case 0: return [4
|
|
224
|
+
case 0: return [4, context.endpoint()];
|
|
225
225
|
case 1:
|
|
226
226
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
227
227
|
headers = {};
|
|
@@ -247,7 +247,7 @@ export var serializeAws_restJson1DeleteBackendCommand = function (input, context
|
|
|
247
247
|
else {
|
|
248
248
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
249
249
|
}
|
|
250
|
-
return [2
|
|
250
|
+
return [2, new __HttpRequest({
|
|
251
251
|
protocol: protocol,
|
|
252
252
|
hostname: hostname,
|
|
253
253
|
port: port,
|
|
@@ -263,7 +263,7 @@ export var serializeAws_restJson1DeleteBackendAPICommand = function (input, cont
|
|
|
263
263
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
264
264
|
return __generator(this, function (_c) {
|
|
265
265
|
switch (_c.label) {
|
|
266
|
-
case 0: return [4
|
|
266
|
+
case 0: return [4, context.endpoint()];
|
|
267
267
|
case 1:
|
|
268
268
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
269
269
|
headers = {
|
|
@@ -295,7 +295,7 @@ export var serializeAws_restJson1DeleteBackendAPICommand = function (input, cont
|
|
|
295
295
|
input.ResourceConfig !== null && {
|
|
296
296
|
resourceConfig: serializeAws_restJson1BackendAPIResourceConfig(input.ResourceConfig, context),
|
|
297
297
|
})), (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
|
|
298
|
-
return [2
|
|
298
|
+
return [2, new __HttpRequest({
|
|
299
299
|
protocol: protocol,
|
|
300
300
|
hostname: hostname,
|
|
301
301
|
port: port,
|
|
@@ -311,7 +311,7 @@ export var serializeAws_restJson1DeleteBackendAuthCommand = function (input, con
|
|
|
311
311
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
312
312
|
return __generator(this, function (_c) {
|
|
313
313
|
switch (_c.label) {
|
|
314
|
-
case 0: return [4
|
|
314
|
+
case 0: return [4, context.endpoint()];
|
|
315
315
|
case 1:
|
|
316
316
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
317
317
|
headers = {
|
|
@@ -340,7 +340,7 @@ export var serializeAws_restJson1DeleteBackendAuthCommand = function (input, con
|
|
|
340
340
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
341
341
|
}
|
|
342
342
|
body = JSON.stringify(__assign({}, (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
|
|
343
|
-
return [2
|
|
343
|
+
return [2, new __HttpRequest({
|
|
344
344
|
protocol: protocol,
|
|
345
345
|
hostname: hostname,
|
|
346
346
|
port: port,
|
|
@@ -356,7 +356,7 @@ export var serializeAws_restJson1DeleteTokenCommand = function (input, context)
|
|
|
356
356
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
357
357
|
return __generator(this, function (_c) {
|
|
358
358
|
switch (_c.label) {
|
|
359
|
-
case 0: return [4
|
|
359
|
+
case 0: return [4, context.endpoint()];
|
|
360
360
|
case 1:
|
|
361
361
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
362
362
|
headers = {};
|
|
@@ -382,7 +382,7 @@ export var serializeAws_restJson1DeleteTokenCommand = function (input, context)
|
|
|
382
382
|
else {
|
|
383
383
|
throw new Error("No value provided for input HTTP label: SessionId.");
|
|
384
384
|
}
|
|
385
|
-
return [2
|
|
385
|
+
return [2, new __HttpRequest({
|
|
386
386
|
protocol: protocol,
|
|
387
387
|
hostname: hostname,
|
|
388
388
|
port: port,
|
|
@@ -398,7 +398,7 @@ export var serializeAws_restJson1GenerateBackendAPIModelsCommand = function (inp
|
|
|
398
398
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
399
399
|
return __generator(this, function (_c) {
|
|
400
400
|
switch (_c.label) {
|
|
401
|
-
case 0: return [4
|
|
401
|
+
case 0: return [4, context.endpoint()];
|
|
402
402
|
case 1:
|
|
403
403
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
404
404
|
headers = {
|
|
@@ -427,7 +427,7 @@ export var serializeAws_restJson1GenerateBackendAPIModelsCommand = function (inp
|
|
|
427
427
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
428
428
|
}
|
|
429
429
|
body = JSON.stringify(__assign({}, (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
|
|
430
|
-
return [2
|
|
430
|
+
return [2, new __HttpRequest({
|
|
431
431
|
protocol: protocol,
|
|
432
432
|
hostname: hostname,
|
|
433
433
|
port: port,
|
|
@@ -443,7 +443,7 @@ export var serializeAws_restJson1GetBackendCommand = function (input, context) {
|
|
|
443
443
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
444
444
|
return __generator(this, function (_c) {
|
|
445
445
|
switch (_c.label) {
|
|
446
|
-
case 0: return [4
|
|
446
|
+
case 0: return [4, context.endpoint()];
|
|
447
447
|
case 1:
|
|
448
448
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
449
449
|
headers = {
|
|
@@ -462,7 +462,7 @@ export var serializeAws_restJson1GetBackendCommand = function (input, context) {
|
|
|
462
462
|
}
|
|
463
463
|
body = JSON.stringify(__assign({}, (input.BackendEnvironmentName !== undefined &&
|
|
464
464
|
input.BackendEnvironmentName !== null && { backendEnvironmentName: input.BackendEnvironmentName })));
|
|
465
|
-
return [2
|
|
465
|
+
return [2, new __HttpRequest({
|
|
466
466
|
protocol: protocol,
|
|
467
467
|
hostname: hostname,
|
|
468
468
|
port: port,
|
|
@@ -478,7 +478,7 @@ export var serializeAws_restJson1GetBackendAPICommand = function (input, context
|
|
|
478
478
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
479
479
|
return __generator(this, function (_c) {
|
|
480
480
|
switch (_c.label) {
|
|
481
|
-
case 0: return [4
|
|
481
|
+
case 0: return [4, context.endpoint()];
|
|
482
482
|
case 1:
|
|
483
483
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
484
484
|
headers = {
|
|
@@ -510,7 +510,7 @@ export var serializeAws_restJson1GetBackendAPICommand = function (input, context
|
|
|
510
510
|
input.ResourceConfig !== null && {
|
|
511
511
|
resourceConfig: serializeAws_restJson1BackendAPIResourceConfig(input.ResourceConfig, context),
|
|
512
512
|
})), (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
|
|
513
|
-
return [2
|
|
513
|
+
return [2, new __HttpRequest({
|
|
514
514
|
protocol: protocol,
|
|
515
515
|
hostname: hostname,
|
|
516
516
|
port: port,
|
|
@@ -526,7 +526,7 @@ export var serializeAws_restJson1GetBackendAPIModelsCommand = function (input, c
|
|
|
526
526
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
527
527
|
return __generator(this, function (_c) {
|
|
528
528
|
switch (_c.label) {
|
|
529
|
-
case 0: return [4
|
|
529
|
+
case 0: return [4, context.endpoint()];
|
|
530
530
|
case 1:
|
|
531
531
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
532
532
|
headers = {
|
|
@@ -555,7 +555,7 @@ export var serializeAws_restJson1GetBackendAPIModelsCommand = function (input, c
|
|
|
555
555
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
556
556
|
}
|
|
557
557
|
body = JSON.stringify(__assign({}, (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
|
|
558
|
-
return [2
|
|
558
|
+
return [2, new __HttpRequest({
|
|
559
559
|
protocol: protocol,
|
|
560
560
|
hostname: hostname,
|
|
561
561
|
port: port,
|
|
@@ -571,7 +571,7 @@ export var serializeAws_restJson1GetBackendAuthCommand = function (input, contex
|
|
|
571
571
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
572
572
|
return __generator(this, function (_c) {
|
|
573
573
|
switch (_c.label) {
|
|
574
|
-
case 0: return [4
|
|
574
|
+
case 0: return [4, context.endpoint()];
|
|
575
575
|
case 1:
|
|
576
576
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
577
577
|
headers = {
|
|
@@ -600,7 +600,7 @@ export var serializeAws_restJson1GetBackendAuthCommand = function (input, contex
|
|
|
600
600
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
601
601
|
}
|
|
602
602
|
body = JSON.stringify(__assign({}, (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
|
|
603
|
-
return [2
|
|
603
|
+
return [2, new __HttpRequest({
|
|
604
604
|
protocol: protocol,
|
|
605
605
|
hostname: hostname,
|
|
606
606
|
port: port,
|
|
@@ -616,7 +616,7 @@ export var serializeAws_restJson1GetBackendJobCommand = function (input, context
|
|
|
616
616
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, body;
|
|
617
617
|
return __generator(this, function (_c) {
|
|
618
618
|
switch (_c.label) {
|
|
619
|
-
case 0: return [4
|
|
619
|
+
case 0: return [4, context.endpoint()];
|
|
620
620
|
case 1:
|
|
621
621
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
622
622
|
headers = {};
|
|
@@ -652,7 +652,7 @@ export var serializeAws_restJson1GetBackendJobCommand = function (input, context
|
|
|
652
652
|
else {
|
|
653
653
|
throw new Error("No value provided for input HTTP label: JobId.");
|
|
654
654
|
}
|
|
655
|
-
return [2
|
|
655
|
+
return [2, new __HttpRequest({
|
|
656
656
|
protocol: protocol,
|
|
657
657
|
hostname: hostname,
|
|
658
658
|
port: port,
|
|
@@ -668,7 +668,7 @@ export var serializeAws_restJson1GetTokenCommand = function (input, context) { r
|
|
|
668
668
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
669
669
|
return __generator(this, function (_c) {
|
|
670
670
|
switch (_c.label) {
|
|
671
|
-
case 0: return [4
|
|
671
|
+
case 0: return [4, context.endpoint()];
|
|
672
672
|
case 1:
|
|
673
673
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
674
674
|
headers = {};
|
|
@@ -693,7 +693,7 @@ export var serializeAws_restJson1GetTokenCommand = function (input, context) { r
|
|
|
693
693
|
else {
|
|
694
694
|
throw new Error("No value provided for input HTTP label: SessionId.");
|
|
695
695
|
}
|
|
696
|
-
return [2
|
|
696
|
+
return [2, new __HttpRequest({
|
|
697
697
|
protocol: protocol,
|
|
698
698
|
hostname: hostname,
|
|
699
699
|
port: port,
|
|
@@ -709,7 +709,7 @@ export var serializeAws_restJson1ImportBackendAuthCommand = function (input, con
|
|
|
709
709
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
710
710
|
return __generator(this, function (_c) {
|
|
711
711
|
switch (_c.label) {
|
|
712
|
-
case 0: return [4
|
|
712
|
+
case 0: return [4, context.endpoint()];
|
|
713
713
|
case 1:
|
|
714
714
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
715
715
|
headers = {
|
|
@@ -740,7 +740,7 @@ export var serializeAws_restJson1ImportBackendAuthCommand = function (input, con
|
|
|
740
740
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.IdentityPoolId !== undefined &&
|
|
741
741
|
input.IdentityPoolId !== null && { identityPoolId: input.IdentityPoolId })), (input.NativeClientId !== undefined &&
|
|
742
742
|
input.NativeClientId !== null && { nativeClientId: input.NativeClientId })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { userPoolId: input.UserPoolId })), (input.WebClientId !== undefined && input.WebClientId !== null && { webClientId: input.WebClientId })));
|
|
743
|
-
return [2
|
|
743
|
+
return [2, new __HttpRequest({
|
|
744
744
|
protocol: protocol,
|
|
745
745
|
hostname: hostname,
|
|
746
746
|
port: port,
|
|
@@ -756,7 +756,7 @@ export var serializeAws_restJson1ListBackendJobsCommand = function (input, conte
|
|
|
756
756
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
757
757
|
return __generator(this, function (_c) {
|
|
758
758
|
switch (_c.label) {
|
|
759
|
-
case 0: return [4
|
|
759
|
+
case 0: return [4, context.endpoint()];
|
|
760
760
|
case 1:
|
|
761
761
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
762
762
|
headers = {
|
|
@@ -785,7 +785,7 @@ export var serializeAws_restJson1ListBackendJobsCommand = function (input, conte
|
|
|
785
785
|
throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
|
|
786
786
|
}
|
|
787
787
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.JobId !== undefined && input.JobId !== null && { jobId: input.JobId })), (input.MaxResults !== undefined && input.MaxResults !== null && { maxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { nextToken: input.NextToken })), (input.Operation !== undefined && input.Operation !== null && { operation: input.Operation })), (input.Status !== undefined && input.Status !== null && { status: input.Status })));
|
|
788
|
-
return [2
|
|
788
|
+
return [2, new __HttpRequest({
|
|
789
789
|
protocol: protocol,
|
|
790
790
|
hostname: hostname,
|
|
791
791
|
port: port,
|
|
@@ -801,7 +801,7 @@ export var serializeAws_restJson1RemoveAllBackendsCommand = function (input, con
|
|
|
801
801
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
802
802
|
return __generator(this, function (_c) {
|
|
803
803
|
switch (_c.label) {
|
|
804
|
-
case 0: return [4
|
|
804
|
+
case 0: return [4, context.endpoint()];
|
|
805
805
|
case 1:
|
|
806
806
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
807
807
|
headers = {
|
|
@@ -820,7 +820,7 @@ export var serializeAws_restJson1RemoveAllBackendsCommand = function (input, con
|
|
|
820
820
|
}
|
|
821
821
|
body = JSON.stringify(__assign({}, (input.CleanAmplifyApp !== undefined &&
|
|
822
822
|
input.CleanAmplifyApp !== null && { cleanAmplifyApp: input.CleanAmplifyApp })));
|
|
823
|
-
return [2
|
|
823
|
+
return [2, new __HttpRequest({
|
|
824
824
|
protocol: protocol,
|
|
825
825
|
hostname: hostname,
|
|
826
826
|
port: port,
|
|
@@ -836,7 +836,7 @@ export var serializeAws_restJson1RemoveBackendConfigCommand = function (input, c
|
|
|
836
836
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
837
837
|
return __generator(this, function (_c) {
|
|
838
838
|
switch (_c.label) {
|
|
839
|
-
case 0: return [4
|
|
839
|
+
case 0: return [4, context.endpoint()];
|
|
840
840
|
case 1:
|
|
841
841
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
842
842
|
headers = {};
|
|
@@ -851,7 +851,7 @@ export var serializeAws_restJson1RemoveBackendConfigCommand = function (input, c
|
|
|
851
851
|
else {
|
|
852
852
|
throw new Error("No value provided for input HTTP label: AppId.");
|
|
853
853
|
}
|
|
854
|
-
return [2
|
|
854
|
+
return [2, new __HttpRequest({
|
|
855
855
|
protocol: protocol,
|
|
856
856
|
hostname: hostname,
|
|
857
857
|
port: port,
|
|
@@ -867,7 +867,7 @@ export var serializeAws_restJson1UpdateBackendAPICommand = function (input, cont
|
|
|
867
867
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
868
868
|
return __generator(this, function (_c) {
|
|
869
869
|
switch (_c.label) {
|
|
870
|
-
case 0: return [4
|
|
870
|
+
case 0: return [4, context.endpoint()];
|
|
871
871
|
case 1:
|
|
872
872
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
873
873
|
headers = {
|
|
@@ -899,7 +899,7 @@ export var serializeAws_restJson1UpdateBackendAPICommand = function (input, cont
|
|
|
899
899
|
input.ResourceConfig !== null && {
|
|
900
900
|
resourceConfig: serializeAws_restJson1BackendAPIResourceConfig(input.ResourceConfig, context),
|
|
901
901
|
})), (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
|
|
902
|
-
return [2
|
|
902
|
+
return [2, new __HttpRequest({
|
|
903
903
|
protocol: protocol,
|
|
904
904
|
hostname: hostname,
|
|
905
905
|
port: port,
|
|
@@ -915,7 +915,7 @@ export var serializeAws_restJson1UpdateBackendAuthCommand = function (input, con
|
|
|
915
915
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
916
916
|
return __generator(this, function (_c) {
|
|
917
917
|
switch (_c.label) {
|
|
918
|
-
case 0: return [4
|
|
918
|
+
case 0: return [4, context.endpoint()];
|
|
919
919
|
case 1:
|
|
920
920
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
921
921
|
headers = {
|
|
@@ -947,7 +947,7 @@ export var serializeAws_restJson1UpdateBackendAuthCommand = function (input, con
|
|
|
947
947
|
input.ResourceConfig !== null && {
|
|
948
948
|
resourceConfig: serializeAws_restJson1UpdateBackendAuthResourceConfig(input.ResourceConfig, context),
|
|
949
949
|
})), (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
|
|
950
|
-
return [2
|
|
950
|
+
return [2, new __HttpRequest({
|
|
951
951
|
protocol: protocol,
|
|
952
952
|
hostname: hostname,
|
|
953
953
|
port: port,
|
|
@@ -963,7 +963,7 @@ export var serializeAws_restJson1UpdateBackendConfigCommand = function (input, c
|
|
|
963
963
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
964
964
|
return __generator(this, function (_c) {
|
|
965
965
|
switch (_c.label) {
|
|
966
|
-
case 0: return [4
|
|
966
|
+
case 0: return [4, context.endpoint()];
|
|
967
967
|
case 1:
|
|
968
968
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
969
969
|
headers = {
|
|
@@ -984,7 +984,7 @@ export var serializeAws_restJson1UpdateBackendConfigCommand = function (input, c
|
|
|
984
984
|
input.LoginAuthConfig !== null && {
|
|
985
985
|
loginAuthConfig: serializeAws_restJson1LoginAuthConfigReqObj(input.LoginAuthConfig, context),
|
|
986
986
|
})));
|
|
987
|
-
return [2
|
|
987
|
+
return [2, new __HttpRequest({
|
|
988
988
|
protocol: protocol,
|
|
989
989
|
hostname: hostname,
|
|
990
990
|
port: port,
|
|
@@ -1000,7 +1000,7 @@ export var serializeAws_restJson1UpdateBackendJobCommand = function (input, cont
|
|
|
1000
1000
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, body;
|
|
1001
1001
|
return __generator(this, function (_c) {
|
|
1002
1002
|
switch (_c.label) {
|
|
1003
|
-
case 0: return [4
|
|
1003
|
+
case 0: return [4, context.endpoint()];
|
|
1004
1004
|
case 1:
|
|
1005
1005
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1006
1006
|
headers = {
|
|
@@ -1039,7 +1039,7 @@ export var serializeAws_restJson1UpdateBackendJobCommand = function (input, cont
|
|
|
1039
1039
|
throw new Error("No value provided for input HTTP label: JobId.");
|
|
1040
1040
|
}
|
|
1041
1041
|
body = JSON.stringify(__assign(__assign({}, (input.Operation !== undefined && input.Operation !== null && { operation: input.Operation })), (input.Status !== undefined && input.Status !== null && { status: input.Status })));
|
|
1042
|
-
return [2
|
|
1042
|
+
return [2, new __HttpRequest({
|
|
1043
1043
|
protocol: protocol,
|
|
1044
1044
|
hostname: hostname,
|
|
1045
1045
|
port: port,
|
|
@@ -1057,7 +1057,7 @@ export var deserializeAws_restJson1CloneBackendCommand = function (output, conte
|
|
|
1057
1057
|
switch (_c.label) {
|
|
1058
1058
|
case 0:
|
|
1059
1059
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1060
|
-
return [2
|
|
1060
|
+
return [2, deserializeAws_restJson1CloneBackendCommandError(output, context)];
|
|
1061
1061
|
}
|
|
1062
1062
|
contents = {
|
|
1063
1063
|
$metadata: deserializeMetadata(output),
|
|
@@ -1070,7 +1070,7 @@ export var deserializeAws_restJson1CloneBackendCommand = function (output, conte
|
|
|
1070
1070
|
};
|
|
1071
1071
|
_a = __expectNonNull;
|
|
1072
1072
|
_b = __expectObject;
|
|
1073
|
-
return [4
|
|
1073
|
+
return [4, parseBody(output.body, context)];
|
|
1074
1074
|
case 1:
|
|
1075
1075
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1076
1076
|
if (data.appId !== undefined && data.appId !== null) {
|
|
@@ -1091,7 +1091,7 @@ export var deserializeAws_restJson1CloneBackendCommand = function (output, conte
|
|
|
1091
1091
|
if (data.status !== undefined && data.status !== null) {
|
|
1092
1092
|
contents.Status = __expectString(data.status);
|
|
1093
1093
|
}
|
|
1094
|
-
return [2
|
|
1094
|
+
return [2, Promise.resolve(contents)];
|
|
1095
1095
|
}
|
|
1096
1096
|
});
|
|
1097
1097
|
}); };
|
|
@@ -1103,47 +1103,47 @@ var deserializeAws_restJson1CloneBackendCommandError = function (output, context
|
|
|
1103
1103
|
case 0:
|
|
1104
1104
|
_a = [__assign({}, output)];
|
|
1105
1105
|
_g = {};
|
|
1106
|
-
return [4
|
|
1106
|
+
return [4, parseBody(output.body, context)];
|
|
1107
1107
|
case 1:
|
|
1108
1108
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1109
1109
|
errorCode = "UnknownError";
|
|
1110
1110
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1111
1111
|
_b = errorCode;
|
|
1112
1112
|
switch (_b) {
|
|
1113
|
-
case "BadRequestException": return [3
|
|
1114
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
1115
|
-
case "GatewayTimeoutException": return [3
|
|
1116
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
1117
|
-
case "NotFoundException": return [3
|
|
1118
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
1119
|
-
case "TooManyRequestsException": return [3
|
|
1120
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
1121
|
-
}
|
|
1122
|
-
return [3
|
|
1113
|
+
case "BadRequestException": return [3, 2];
|
|
1114
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
1115
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
1116
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
1117
|
+
case "NotFoundException": return [3, 6];
|
|
1118
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
1119
|
+
case "TooManyRequestsException": return [3, 8];
|
|
1120
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
1121
|
+
}
|
|
1122
|
+
return [3, 10];
|
|
1123
1123
|
case 2:
|
|
1124
1124
|
_c = [{}];
|
|
1125
|
-
return [4
|
|
1125
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1126
1126
|
case 3:
|
|
1127
1127
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1128
|
-
return [3
|
|
1128
|
+
return [3, 11];
|
|
1129
1129
|
case 4:
|
|
1130
1130
|
_d = [{}];
|
|
1131
|
-
return [4
|
|
1131
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1132
1132
|
case 5:
|
|
1133
1133
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1134
|
-
return [3
|
|
1134
|
+
return [3, 11];
|
|
1135
1135
|
case 6:
|
|
1136
1136
|
_e = [{}];
|
|
1137
|
-
return [4
|
|
1137
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1138
1138
|
case 7:
|
|
1139
1139
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1140
|
-
return [3
|
|
1140
|
+
return [3, 11];
|
|
1141
1141
|
case 8:
|
|
1142
1142
|
_f = [{}];
|
|
1143
|
-
return [4
|
|
1143
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1144
1144
|
case 9:
|
|
1145
1145
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1146
|
-
return [3
|
|
1146
|
+
return [3, 11];
|
|
1147
1147
|
case 10:
|
|
1148
1148
|
parsedBody = parsedOutput.body;
|
|
1149
1149
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1153,7 +1153,7 @@ var deserializeAws_restJson1CloneBackendCommandError = function (output, context
|
|
|
1153
1153
|
message = response.message || response.Message || errorCode;
|
|
1154
1154
|
response.message = message;
|
|
1155
1155
|
delete response.Message;
|
|
1156
|
-
return [2
|
|
1156
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1157
1157
|
}
|
|
1158
1158
|
});
|
|
1159
1159
|
}); };
|
|
@@ -1163,7 +1163,7 @@ export var deserializeAws_restJson1CreateBackendCommand = function (output, cont
|
|
|
1163
1163
|
switch (_c.label) {
|
|
1164
1164
|
case 0:
|
|
1165
1165
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1166
|
-
return [2
|
|
1166
|
+
return [2, deserializeAws_restJson1CreateBackendCommandError(output, context)];
|
|
1167
1167
|
}
|
|
1168
1168
|
contents = {
|
|
1169
1169
|
$metadata: deserializeMetadata(output),
|
|
@@ -1176,7 +1176,7 @@ export var deserializeAws_restJson1CreateBackendCommand = function (output, cont
|
|
|
1176
1176
|
};
|
|
1177
1177
|
_a = __expectNonNull;
|
|
1178
1178
|
_b = __expectObject;
|
|
1179
|
-
return [4
|
|
1179
|
+
return [4, parseBody(output.body, context)];
|
|
1180
1180
|
case 1:
|
|
1181
1181
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1182
1182
|
if (data.appId !== undefined && data.appId !== null) {
|
|
@@ -1197,7 +1197,7 @@ export var deserializeAws_restJson1CreateBackendCommand = function (output, cont
|
|
|
1197
1197
|
if (data.status !== undefined && data.status !== null) {
|
|
1198
1198
|
contents.Status = __expectString(data.status);
|
|
1199
1199
|
}
|
|
1200
|
-
return [2
|
|
1200
|
+
return [2, Promise.resolve(contents)];
|
|
1201
1201
|
}
|
|
1202
1202
|
});
|
|
1203
1203
|
}); };
|
|
@@ -1209,47 +1209,47 @@ var deserializeAws_restJson1CreateBackendCommandError = function (output, contex
|
|
|
1209
1209
|
case 0:
|
|
1210
1210
|
_a = [__assign({}, output)];
|
|
1211
1211
|
_g = {};
|
|
1212
|
-
return [4
|
|
1212
|
+
return [4, parseBody(output.body, context)];
|
|
1213
1213
|
case 1:
|
|
1214
1214
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1215
1215
|
errorCode = "UnknownError";
|
|
1216
1216
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1217
1217
|
_b = errorCode;
|
|
1218
1218
|
switch (_b) {
|
|
1219
|
-
case "BadRequestException": return [3
|
|
1220
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
1221
|
-
case "GatewayTimeoutException": return [3
|
|
1222
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
1223
|
-
case "NotFoundException": return [3
|
|
1224
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
1225
|
-
case "TooManyRequestsException": return [3
|
|
1226
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
1227
|
-
}
|
|
1228
|
-
return [3
|
|
1219
|
+
case "BadRequestException": return [3, 2];
|
|
1220
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
1221
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
1222
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
1223
|
+
case "NotFoundException": return [3, 6];
|
|
1224
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
1225
|
+
case "TooManyRequestsException": return [3, 8];
|
|
1226
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
1227
|
+
}
|
|
1228
|
+
return [3, 10];
|
|
1229
1229
|
case 2:
|
|
1230
1230
|
_c = [{}];
|
|
1231
|
-
return [4
|
|
1231
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1232
1232
|
case 3:
|
|
1233
1233
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1234
|
-
return [3
|
|
1234
|
+
return [3, 11];
|
|
1235
1235
|
case 4:
|
|
1236
1236
|
_d = [{}];
|
|
1237
|
-
return [4
|
|
1237
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1238
1238
|
case 5:
|
|
1239
1239
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1240
|
-
return [3
|
|
1240
|
+
return [3, 11];
|
|
1241
1241
|
case 6:
|
|
1242
1242
|
_e = [{}];
|
|
1243
|
-
return [4
|
|
1243
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1244
1244
|
case 7:
|
|
1245
1245
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1246
|
-
return [3
|
|
1246
|
+
return [3, 11];
|
|
1247
1247
|
case 8:
|
|
1248
1248
|
_f = [{}];
|
|
1249
|
-
return [4
|
|
1249
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1250
1250
|
case 9:
|
|
1251
1251
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1252
|
-
return [3
|
|
1252
|
+
return [3, 11];
|
|
1253
1253
|
case 10:
|
|
1254
1254
|
parsedBody = parsedOutput.body;
|
|
1255
1255
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1259,7 +1259,7 @@ var deserializeAws_restJson1CreateBackendCommandError = function (output, contex
|
|
|
1259
1259
|
message = response.message || response.Message || errorCode;
|
|
1260
1260
|
response.message = message;
|
|
1261
1261
|
delete response.Message;
|
|
1262
|
-
return [2
|
|
1262
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1263
1263
|
}
|
|
1264
1264
|
});
|
|
1265
1265
|
}); };
|
|
@@ -1269,7 +1269,7 @@ export var deserializeAws_restJson1CreateBackendAPICommand = function (output, c
|
|
|
1269
1269
|
switch (_c.label) {
|
|
1270
1270
|
case 0:
|
|
1271
1271
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1272
|
-
return [2
|
|
1272
|
+
return [2, deserializeAws_restJson1CreateBackendAPICommandError(output, context)];
|
|
1273
1273
|
}
|
|
1274
1274
|
contents = {
|
|
1275
1275
|
$metadata: deserializeMetadata(output),
|
|
@@ -1282,7 +1282,7 @@ export var deserializeAws_restJson1CreateBackendAPICommand = function (output, c
|
|
|
1282
1282
|
};
|
|
1283
1283
|
_a = __expectNonNull;
|
|
1284
1284
|
_b = __expectObject;
|
|
1285
|
-
return [4
|
|
1285
|
+
return [4, parseBody(output.body, context)];
|
|
1286
1286
|
case 1:
|
|
1287
1287
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1288
1288
|
if (data.appId !== undefined && data.appId !== null) {
|
|
@@ -1303,7 +1303,7 @@ export var deserializeAws_restJson1CreateBackendAPICommand = function (output, c
|
|
|
1303
1303
|
if (data.status !== undefined && data.status !== null) {
|
|
1304
1304
|
contents.Status = __expectString(data.status);
|
|
1305
1305
|
}
|
|
1306
|
-
return [2
|
|
1306
|
+
return [2, Promise.resolve(contents)];
|
|
1307
1307
|
}
|
|
1308
1308
|
});
|
|
1309
1309
|
}); };
|
|
@@ -1315,47 +1315,47 @@ var deserializeAws_restJson1CreateBackendAPICommandError = function (output, con
|
|
|
1315
1315
|
case 0:
|
|
1316
1316
|
_a = [__assign({}, output)];
|
|
1317
1317
|
_g = {};
|
|
1318
|
-
return [4
|
|
1318
|
+
return [4, parseBody(output.body, context)];
|
|
1319
1319
|
case 1:
|
|
1320
1320
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1321
1321
|
errorCode = "UnknownError";
|
|
1322
1322
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1323
1323
|
_b = errorCode;
|
|
1324
1324
|
switch (_b) {
|
|
1325
|
-
case "BadRequestException": return [3
|
|
1326
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
1327
|
-
case "GatewayTimeoutException": return [3
|
|
1328
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
1329
|
-
case "NotFoundException": return [3
|
|
1330
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
1331
|
-
case "TooManyRequestsException": return [3
|
|
1332
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
1333
|
-
}
|
|
1334
|
-
return [3
|
|
1325
|
+
case "BadRequestException": return [3, 2];
|
|
1326
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
1327
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
1328
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
1329
|
+
case "NotFoundException": return [3, 6];
|
|
1330
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
1331
|
+
case "TooManyRequestsException": return [3, 8];
|
|
1332
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
1333
|
+
}
|
|
1334
|
+
return [3, 10];
|
|
1335
1335
|
case 2:
|
|
1336
1336
|
_c = [{}];
|
|
1337
|
-
return [4
|
|
1337
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1338
1338
|
case 3:
|
|
1339
1339
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1340
|
-
return [3
|
|
1340
|
+
return [3, 11];
|
|
1341
1341
|
case 4:
|
|
1342
1342
|
_d = [{}];
|
|
1343
|
-
return [4
|
|
1343
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1344
1344
|
case 5:
|
|
1345
1345
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1346
|
-
return [3
|
|
1346
|
+
return [3, 11];
|
|
1347
1347
|
case 6:
|
|
1348
1348
|
_e = [{}];
|
|
1349
|
-
return [4
|
|
1349
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1350
1350
|
case 7:
|
|
1351
1351
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1352
|
-
return [3
|
|
1352
|
+
return [3, 11];
|
|
1353
1353
|
case 8:
|
|
1354
1354
|
_f = [{}];
|
|
1355
|
-
return [4
|
|
1355
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1356
1356
|
case 9:
|
|
1357
1357
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1358
|
-
return [3
|
|
1358
|
+
return [3, 11];
|
|
1359
1359
|
case 10:
|
|
1360
1360
|
parsedBody = parsedOutput.body;
|
|
1361
1361
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1365,7 +1365,7 @@ var deserializeAws_restJson1CreateBackendAPICommandError = function (output, con
|
|
|
1365
1365
|
message = response.message || response.Message || errorCode;
|
|
1366
1366
|
response.message = message;
|
|
1367
1367
|
delete response.Message;
|
|
1368
|
-
return [2
|
|
1368
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1369
1369
|
}
|
|
1370
1370
|
});
|
|
1371
1371
|
}); };
|
|
@@ -1375,7 +1375,7 @@ export var deserializeAws_restJson1CreateBackendAuthCommand = function (output,
|
|
|
1375
1375
|
switch (_c.label) {
|
|
1376
1376
|
case 0:
|
|
1377
1377
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1378
|
-
return [2
|
|
1378
|
+
return [2, deserializeAws_restJson1CreateBackendAuthCommandError(output, context)];
|
|
1379
1379
|
}
|
|
1380
1380
|
contents = {
|
|
1381
1381
|
$metadata: deserializeMetadata(output),
|
|
@@ -1388,7 +1388,7 @@ export var deserializeAws_restJson1CreateBackendAuthCommand = function (output,
|
|
|
1388
1388
|
};
|
|
1389
1389
|
_a = __expectNonNull;
|
|
1390
1390
|
_b = __expectObject;
|
|
1391
|
-
return [4
|
|
1391
|
+
return [4, parseBody(output.body, context)];
|
|
1392
1392
|
case 1:
|
|
1393
1393
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1394
1394
|
if (data.appId !== undefined && data.appId !== null) {
|
|
@@ -1409,7 +1409,7 @@ export var deserializeAws_restJson1CreateBackendAuthCommand = function (output,
|
|
|
1409
1409
|
if (data.status !== undefined && data.status !== null) {
|
|
1410
1410
|
contents.Status = __expectString(data.status);
|
|
1411
1411
|
}
|
|
1412
|
-
return [2
|
|
1412
|
+
return [2, Promise.resolve(contents)];
|
|
1413
1413
|
}
|
|
1414
1414
|
});
|
|
1415
1415
|
}); };
|
|
@@ -1421,47 +1421,47 @@ var deserializeAws_restJson1CreateBackendAuthCommandError = function (output, co
|
|
|
1421
1421
|
case 0:
|
|
1422
1422
|
_a = [__assign({}, output)];
|
|
1423
1423
|
_g = {};
|
|
1424
|
-
return [4
|
|
1424
|
+
return [4, parseBody(output.body, context)];
|
|
1425
1425
|
case 1:
|
|
1426
1426
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1427
1427
|
errorCode = "UnknownError";
|
|
1428
1428
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1429
1429
|
_b = errorCode;
|
|
1430
1430
|
switch (_b) {
|
|
1431
|
-
case "BadRequestException": return [3
|
|
1432
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
1433
|
-
case "GatewayTimeoutException": return [3
|
|
1434
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
1435
|
-
case "NotFoundException": return [3
|
|
1436
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
1437
|
-
case "TooManyRequestsException": return [3
|
|
1438
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
1439
|
-
}
|
|
1440
|
-
return [3
|
|
1431
|
+
case "BadRequestException": return [3, 2];
|
|
1432
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
1433
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
1434
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
1435
|
+
case "NotFoundException": return [3, 6];
|
|
1436
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
1437
|
+
case "TooManyRequestsException": return [3, 8];
|
|
1438
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
1439
|
+
}
|
|
1440
|
+
return [3, 10];
|
|
1441
1441
|
case 2:
|
|
1442
1442
|
_c = [{}];
|
|
1443
|
-
return [4
|
|
1443
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1444
1444
|
case 3:
|
|
1445
1445
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1446
|
-
return [3
|
|
1446
|
+
return [3, 11];
|
|
1447
1447
|
case 4:
|
|
1448
1448
|
_d = [{}];
|
|
1449
|
-
return [4
|
|
1449
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1450
1450
|
case 5:
|
|
1451
1451
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1452
|
-
return [3
|
|
1452
|
+
return [3, 11];
|
|
1453
1453
|
case 6:
|
|
1454
1454
|
_e = [{}];
|
|
1455
|
-
return [4
|
|
1455
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1456
1456
|
case 7:
|
|
1457
1457
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1458
|
-
return [3
|
|
1458
|
+
return [3, 11];
|
|
1459
1459
|
case 8:
|
|
1460
1460
|
_f = [{}];
|
|
1461
|
-
return [4
|
|
1461
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1462
1462
|
case 9:
|
|
1463
1463
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1464
|
-
return [3
|
|
1464
|
+
return [3, 11];
|
|
1465
1465
|
case 10:
|
|
1466
1466
|
parsedBody = parsedOutput.body;
|
|
1467
1467
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1471,7 +1471,7 @@ var deserializeAws_restJson1CreateBackendAuthCommandError = function (output, co
|
|
|
1471
1471
|
message = response.message || response.Message || errorCode;
|
|
1472
1472
|
response.message = message;
|
|
1473
1473
|
delete response.Message;
|
|
1474
|
-
return [2
|
|
1474
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1475
1475
|
}
|
|
1476
1476
|
});
|
|
1477
1477
|
}); };
|
|
@@ -1481,7 +1481,7 @@ export var deserializeAws_restJson1CreateBackendConfigCommand = function (output
|
|
|
1481
1481
|
switch (_c.label) {
|
|
1482
1482
|
case 0:
|
|
1483
1483
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1484
|
-
return [2
|
|
1484
|
+
return [2, deserializeAws_restJson1CreateBackendConfigCommandError(output, context)];
|
|
1485
1485
|
}
|
|
1486
1486
|
contents = {
|
|
1487
1487
|
$metadata: deserializeMetadata(output),
|
|
@@ -1492,7 +1492,7 @@ export var deserializeAws_restJson1CreateBackendConfigCommand = function (output
|
|
|
1492
1492
|
};
|
|
1493
1493
|
_a = __expectNonNull;
|
|
1494
1494
|
_b = __expectObject;
|
|
1495
|
-
return [4
|
|
1495
|
+
return [4, parseBody(output.body, context)];
|
|
1496
1496
|
case 1:
|
|
1497
1497
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1498
1498
|
if (data.appId !== undefined && data.appId !== null) {
|
|
@@ -1507,7 +1507,7 @@ export var deserializeAws_restJson1CreateBackendConfigCommand = function (output
|
|
|
1507
1507
|
if (data.status !== undefined && data.status !== null) {
|
|
1508
1508
|
contents.Status = __expectString(data.status);
|
|
1509
1509
|
}
|
|
1510
|
-
return [2
|
|
1510
|
+
return [2, Promise.resolve(contents)];
|
|
1511
1511
|
}
|
|
1512
1512
|
});
|
|
1513
1513
|
}); };
|
|
@@ -1519,47 +1519,47 @@ var deserializeAws_restJson1CreateBackendConfigCommandError = function (output,
|
|
|
1519
1519
|
case 0:
|
|
1520
1520
|
_a = [__assign({}, output)];
|
|
1521
1521
|
_g = {};
|
|
1522
|
-
return [4
|
|
1522
|
+
return [4, parseBody(output.body, context)];
|
|
1523
1523
|
case 1:
|
|
1524
1524
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1525
1525
|
errorCode = "UnknownError";
|
|
1526
1526
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1527
1527
|
_b = errorCode;
|
|
1528
1528
|
switch (_b) {
|
|
1529
|
-
case "BadRequestException": return [3
|
|
1530
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
1531
|
-
case "GatewayTimeoutException": return [3
|
|
1532
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
1533
|
-
case "NotFoundException": return [3
|
|
1534
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
1535
|
-
case "TooManyRequestsException": return [3
|
|
1536
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
1537
|
-
}
|
|
1538
|
-
return [3
|
|
1529
|
+
case "BadRequestException": return [3, 2];
|
|
1530
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
1531
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
1532
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
1533
|
+
case "NotFoundException": return [3, 6];
|
|
1534
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
1535
|
+
case "TooManyRequestsException": return [3, 8];
|
|
1536
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
1537
|
+
}
|
|
1538
|
+
return [3, 10];
|
|
1539
1539
|
case 2:
|
|
1540
1540
|
_c = [{}];
|
|
1541
|
-
return [4
|
|
1541
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1542
1542
|
case 3:
|
|
1543
1543
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1544
|
-
return [3
|
|
1544
|
+
return [3, 11];
|
|
1545
1545
|
case 4:
|
|
1546
1546
|
_d = [{}];
|
|
1547
|
-
return [4
|
|
1547
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1548
1548
|
case 5:
|
|
1549
1549
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1550
|
-
return [3
|
|
1550
|
+
return [3, 11];
|
|
1551
1551
|
case 6:
|
|
1552
1552
|
_e = [{}];
|
|
1553
|
-
return [4
|
|
1553
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1554
1554
|
case 7:
|
|
1555
1555
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1556
|
-
return [3
|
|
1556
|
+
return [3, 11];
|
|
1557
1557
|
case 8:
|
|
1558
1558
|
_f = [{}];
|
|
1559
|
-
return [4
|
|
1559
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1560
1560
|
case 9:
|
|
1561
1561
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1562
|
-
return [3
|
|
1562
|
+
return [3, 11];
|
|
1563
1563
|
case 10:
|
|
1564
1564
|
parsedBody = parsedOutput.body;
|
|
1565
1565
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1569,7 +1569,7 @@ var deserializeAws_restJson1CreateBackendConfigCommandError = function (output,
|
|
|
1569
1569
|
message = response.message || response.Message || errorCode;
|
|
1570
1570
|
response.message = message;
|
|
1571
1571
|
delete response.Message;
|
|
1572
|
-
return [2
|
|
1572
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1573
1573
|
}
|
|
1574
1574
|
});
|
|
1575
1575
|
}); };
|
|
@@ -1579,7 +1579,7 @@ export var deserializeAws_restJson1CreateTokenCommand = function (output, contex
|
|
|
1579
1579
|
switch (_c.label) {
|
|
1580
1580
|
case 0:
|
|
1581
1581
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1582
|
-
return [2
|
|
1582
|
+
return [2, deserializeAws_restJson1CreateTokenCommandError(output, context)];
|
|
1583
1583
|
}
|
|
1584
1584
|
contents = {
|
|
1585
1585
|
$metadata: deserializeMetadata(output),
|
|
@@ -1590,7 +1590,7 @@ export var deserializeAws_restJson1CreateTokenCommand = function (output, contex
|
|
|
1590
1590
|
};
|
|
1591
1591
|
_a = __expectNonNull;
|
|
1592
1592
|
_b = __expectObject;
|
|
1593
|
-
return [4
|
|
1593
|
+
return [4, parseBody(output.body, context)];
|
|
1594
1594
|
case 1:
|
|
1595
1595
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1596
1596
|
if (data.appId !== undefined && data.appId !== null) {
|
|
@@ -1605,7 +1605,7 @@ export var deserializeAws_restJson1CreateTokenCommand = function (output, contex
|
|
|
1605
1605
|
if (data.ttl !== undefined && data.ttl !== null) {
|
|
1606
1606
|
contents.Ttl = __expectString(data.ttl);
|
|
1607
1607
|
}
|
|
1608
|
-
return [2
|
|
1608
|
+
return [2, Promise.resolve(contents)];
|
|
1609
1609
|
}
|
|
1610
1610
|
});
|
|
1611
1611
|
}); };
|
|
@@ -1617,47 +1617,47 @@ var deserializeAws_restJson1CreateTokenCommandError = function (output, context)
|
|
|
1617
1617
|
case 0:
|
|
1618
1618
|
_a = [__assign({}, output)];
|
|
1619
1619
|
_g = {};
|
|
1620
|
-
return [4
|
|
1620
|
+
return [4, parseBody(output.body, context)];
|
|
1621
1621
|
case 1:
|
|
1622
1622
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1623
1623
|
errorCode = "UnknownError";
|
|
1624
1624
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1625
1625
|
_b = errorCode;
|
|
1626
1626
|
switch (_b) {
|
|
1627
|
-
case "BadRequestException": return [3
|
|
1628
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
1629
|
-
case "GatewayTimeoutException": return [3
|
|
1630
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
1631
|
-
case "NotFoundException": return [3
|
|
1632
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
1633
|
-
case "TooManyRequestsException": return [3
|
|
1634
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
1635
|
-
}
|
|
1636
|
-
return [3
|
|
1627
|
+
case "BadRequestException": return [3, 2];
|
|
1628
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
1629
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
1630
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
1631
|
+
case "NotFoundException": return [3, 6];
|
|
1632
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
1633
|
+
case "TooManyRequestsException": return [3, 8];
|
|
1634
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
1635
|
+
}
|
|
1636
|
+
return [3, 10];
|
|
1637
1637
|
case 2:
|
|
1638
1638
|
_c = [{}];
|
|
1639
|
-
return [4
|
|
1639
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1640
1640
|
case 3:
|
|
1641
1641
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1642
|
-
return [3
|
|
1642
|
+
return [3, 11];
|
|
1643
1643
|
case 4:
|
|
1644
1644
|
_d = [{}];
|
|
1645
|
-
return [4
|
|
1645
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1646
1646
|
case 5:
|
|
1647
1647
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1648
|
-
return [3
|
|
1648
|
+
return [3, 11];
|
|
1649
1649
|
case 6:
|
|
1650
1650
|
_e = [{}];
|
|
1651
|
-
return [4
|
|
1651
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1652
1652
|
case 7:
|
|
1653
1653
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1654
|
-
return [3
|
|
1654
|
+
return [3, 11];
|
|
1655
1655
|
case 8:
|
|
1656
1656
|
_f = [{}];
|
|
1657
|
-
return [4
|
|
1657
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1658
1658
|
case 9:
|
|
1659
1659
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1660
|
-
return [3
|
|
1660
|
+
return [3, 11];
|
|
1661
1661
|
case 10:
|
|
1662
1662
|
parsedBody = parsedOutput.body;
|
|
1663
1663
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1667,7 +1667,7 @@ var deserializeAws_restJson1CreateTokenCommandError = function (output, context)
|
|
|
1667
1667
|
message = response.message || response.Message || errorCode;
|
|
1668
1668
|
response.message = message;
|
|
1669
1669
|
delete response.Message;
|
|
1670
|
-
return [2
|
|
1670
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1671
1671
|
}
|
|
1672
1672
|
});
|
|
1673
1673
|
}); };
|
|
@@ -1677,7 +1677,7 @@ export var deserializeAws_restJson1DeleteBackendCommand = function (output, cont
|
|
|
1677
1677
|
switch (_c.label) {
|
|
1678
1678
|
case 0:
|
|
1679
1679
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1680
|
-
return [2
|
|
1680
|
+
return [2, deserializeAws_restJson1DeleteBackendCommandError(output, context)];
|
|
1681
1681
|
}
|
|
1682
1682
|
contents = {
|
|
1683
1683
|
$metadata: deserializeMetadata(output),
|
|
@@ -1690,7 +1690,7 @@ export var deserializeAws_restJson1DeleteBackendCommand = function (output, cont
|
|
|
1690
1690
|
};
|
|
1691
1691
|
_a = __expectNonNull;
|
|
1692
1692
|
_b = __expectObject;
|
|
1693
|
-
return [4
|
|
1693
|
+
return [4, parseBody(output.body, context)];
|
|
1694
1694
|
case 1:
|
|
1695
1695
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1696
1696
|
if (data.appId !== undefined && data.appId !== null) {
|
|
@@ -1711,7 +1711,7 @@ export var deserializeAws_restJson1DeleteBackendCommand = function (output, cont
|
|
|
1711
1711
|
if (data.status !== undefined && data.status !== null) {
|
|
1712
1712
|
contents.Status = __expectString(data.status);
|
|
1713
1713
|
}
|
|
1714
|
-
return [2
|
|
1714
|
+
return [2, Promise.resolve(contents)];
|
|
1715
1715
|
}
|
|
1716
1716
|
});
|
|
1717
1717
|
}); };
|
|
@@ -1723,47 +1723,47 @@ var deserializeAws_restJson1DeleteBackendCommandError = function (output, contex
|
|
|
1723
1723
|
case 0:
|
|
1724
1724
|
_a = [__assign({}, output)];
|
|
1725
1725
|
_g = {};
|
|
1726
|
-
return [4
|
|
1726
|
+
return [4, parseBody(output.body, context)];
|
|
1727
1727
|
case 1:
|
|
1728
1728
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1729
1729
|
errorCode = "UnknownError";
|
|
1730
1730
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1731
1731
|
_b = errorCode;
|
|
1732
1732
|
switch (_b) {
|
|
1733
|
-
case "BadRequestException": return [3
|
|
1734
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
1735
|
-
case "GatewayTimeoutException": return [3
|
|
1736
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
1737
|
-
case "NotFoundException": return [3
|
|
1738
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
1739
|
-
case "TooManyRequestsException": return [3
|
|
1740
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
1741
|
-
}
|
|
1742
|
-
return [3
|
|
1733
|
+
case "BadRequestException": return [3, 2];
|
|
1734
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
1735
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
1736
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
1737
|
+
case "NotFoundException": return [3, 6];
|
|
1738
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
1739
|
+
case "TooManyRequestsException": return [3, 8];
|
|
1740
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
1741
|
+
}
|
|
1742
|
+
return [3, 10];
|
|
1743
1743
|
case 2:
|
|
1744
1744
|
_c = [{}];
|
|
1745
|
-
return [4
|
|
1745
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1746
1746
|
case 3:
|
|
1747
1747
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1748
|
-
return [3
|
|
1748
|
+
return [3, 11];
|
|
1749
1749
|
case 4:
|
|
1750
1750
|
_d = [{}];
|
|
1751
|
-
return [4
|
|
1751
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1752
1752
|
case 5:
|
|
1753
1753
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1754
|
-
return [3
|
|
1754
|
+
return [3, 11];
|
|
1755
1755
|
case 6:
|
|
1756
1756
|
_e = [{}];
|
|
1757
|
-
return [4
|
|
1757
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1758
1758
|
case 7:
|
|
1759
1759
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1760
|
-
return [3
|
|
1760
|
+
return [3, 11];
|
|
1761
1761
|
case 8:
|
|
1762
1762
|
_f = [{}];
|
|
1763
|
-
return [4
|
|
1763
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1764
1764
|
case 9:
|
|
1765
1765
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1766
|
-
return [3
|
|
1766
|
+
return [3, 11];
|
|
1767
1767
|
case 10:
|
|
1768
1768
|
parsedBody = parsedOutput.body;
|
|
1769
1769
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1773,7 +1773,7 @@ var deserializeAws_restJson1DeleteBackendCommandError = function (output, contex
|
|
|
1773
1773
|
message = response.message || response.Message || errorCode;
|
|
1774
1774
|
response.message = message;
|
|
1775
1775
|
delete response.Message;
|
|
1776
|
-
return [2
|
|
1776
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1777
1777
|
}
|
|
1778
1778
|
});
|
|
1779
1779
|
}); };
|
|
@@ -1783,7 +1783,7 @@ export var deserializeAws_restJson1DeleteBackendAPICommand = function (output, c
|
|
|
1783
1783
|
switch (_c.label) {
|
|
1784
1784
|
case 0:
|
|
1785
1785
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1786
|
-
return [2
|
|
1786
|
+
return [2, deserializeAws_restJson1DeleteBackendAPICommandError(output, context)];
|
|
1787
1787
|
}
|
|
1788
1788
|
contents = {
|
|
1789
1789
|
$metadata: deserializeMetadata(output),
|
|
@@ -1796,7 +1796,7 @@ export var deserializeAws_restJson1DeleteBackendAPICommand = function (output, c
|
|
|
1796
1796
|
};
|
|
1797
1797
|
_a = __expectNonNull;
|
|
1798
1798
|
_b = __expectObject;
|
|
1799
|
-
return [4
|
|
1799
|
+
return [4, parseBody(output.body, context)];
|
|
1800
1800
|
case 1:
|
|
1801
1801
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1802
1802
|
if (data.appId !== undefined && data.appId !== null) {
|
|
@@ -1817,7 +1817,7 @@ export var deserializeAws_restJson1DeleteBackendAPICommand = function (output, c
|
|
|
1817
1817
|
if (data.status !== undefined && data.status !== null) {
|
|
1818
1818
|
contents.Status = __expectString(data.status);
|
|
1819
1819
|
}
|
|
1820
|
-
return [2
|
|
1820
|
+
return [2, Promise.resolve(contents)];
|
|
1821
1821
|
}
|
|
1822
1822
|
});
|
|
1823
1823
|
}); };
|
|
@@ -1829,47 +1829,47 @@ var deserializeAws_restJson1DeleteBackendAPICommandError = function (output, con
|
|
|
1829
1829
|
case 0:
|
|
1830
1830
|
_a = [__assign({}, output)];
|
|
1831
1831
|
_g = {};
|
|
1832
|
-
return [4
|
|
1832
|
+
return [4, parseBody(output.body, context)];
|
|
1833
1833
|
case 1:
|
|
1834
1834
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1835
1835
|
errorCode = "UnknownError";
|
|
1836
1836
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1837
1837
|
_b = errorCode;
|
|
1838
1838
|
switch (_b) {
|
|
1839
|
-
case "BadRequestException": return [3
|
|
1840
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
1841
|
-
case "GatewayTimeoutException": return [3
|
|
1842
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
1843
|
-
case "NotFoundException": return [3
|
|
1844
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
1845
|
-
case "TooManyRequestsException": return [3
|
|
1846
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
1847
|
-
}
|
|
1848
|
-
return [3
|
|
1839
|
+
case "BadRequestException": return [3, 2];
|
|
1840
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
1841
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
1842
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
1843
|
+
case "NotFoundException": return [3, 6];
|
|
1844
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
1845
|
+
case "TooManyRequestsException": return [3, 8];
|
|
1846
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
1847
|
+
}
|
|
1848
|
+
return [3, 10];
|
|
1849
1849
|
case 2:
|
|
1850
1850
|
_c = [{}];
|
|
1851
|
-
return [4
|
|
1851
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1852
1852
|
case 3:
|
|
1853
1853
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1854
|
-
return [3
|
|
1854
|
+
return [3, 11];
|
|
1855
1855
|
case 4:
|
|
1856
1856
|
_d = [{}];
|
|
1857
|
-
return [4
|
|
1857
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1858
1858
|
case 5:
|
|
1859
1859
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1860
|
-
return [3
|
|
1860
|
+
return [3, 11];
|
|
1861
1861
|
case 6:
|
|
1862
1862
|
_e = [{}];
|
|
1863
|
-
return [4
|
|
1863
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1864
1864
|
case 7:
|
|
1865
1865
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1866
|
-
return [3
|
|
1866
|
+
return [3, 11];
|
|
1867
1867
|
case 8:
|
|
1868
1868
|
_f = [{}];
|
|
1869
|
-
return [4
|
|
1869
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1870
1870
|
case 9:
|
|
1871
1871
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1872
|
-
return [3
|
|
1872
|
+
return [3, 11];
|
|
1873
1873
|
case 10:
|
|
1874
1874
|
parsedBody = parsedOutput.body;
|
|
1875
1875
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1879,7 +1879,7 @@ var deserializeAws_restJson1DeleteBackendAPICommandError = function (output, con
|
|
|
1879
1879
|
message = response.message || response.Message || errorCode;
|
|
1880
1880
|
response.message = message;
|
|
1881
1881
|
delete response.Message;
|
|
1882
|
-
return [2
|
|
1882
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1883
1883
|
}
|
|
1884
1884
|
});
|
|
1885
1885
|
}); };
|
|
@@ -1889,7 +1889,7 @@ export var deserializeAws_restJson1DeleteBackendAuthCommand = function (output,
|
|
|
1889
1889
|
switch (_c.label) {
|
|
1890
1890
|
case 0:
|
|
1891
1891
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1892
|
-
return [2
|
|
1892
|
+
return [2, deserializeAws_restJson1DeleteBackendAuthCommandError(output, context)];
|
|
1893
1893
|
}
|
|
1894
1894
|
contents = {
|
|
1895
1895
|
$metadata: deserializeMetadata(output),
|
|
@@ -1902,7 +1902,7 @@ export var deserializeAws_restJson1DeleteBackendAuthCommand = function (output,
|
|
|
1902
1902
|
};
|
|
1903
1903
|
_a = __expectNonNull;
|
|
1904
1904
|
_b = __expectObject;
|
|
1905
|
-
return [4
|
|
1905
|
+
return [4, parseBody(output.body, context)];
|
|
1906
1906
|
case 1:
|
|
1907
1907
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1908
1908
|
if (data.appId !== undefined && data.appId !== null) {
|
|
@@ -1923,7 +1923,7 @@ export var deserializeAws_restJson1DeleteBackendAuthCommand = function (output,
|
|
|
1923
1923
|
if (data.status !== undefined && data.status !== null) {
|
|
1924
1924
|
contents.Status = __expectString(data.status);
|
|
1925
1925
|
}
|
|
1926
|
-
return [2
|
|
1926
|
+
return [2, Promise.resolve(contents)];
|
|
1927
1927
|
}
|
|
1928
1928
|
});
|
|
1929
1929
|
}); };
|
|
@@ -1935,47 +1935,47 @@ var deserializeAws_restJson1DeleteBackendAuthCommandError = function (output, co
|
|
|
1935
1935
|
case 0:
|
|
1936
1936
|
_a = [__assign({}, output)];
|
|
1937
1937
|
_g = {};
|
|
1938
|
-
return [4
|
|
1938
|
+
return [4, parseBody(output.body, context)];
|
|
1939
1939
|
case 1:
|
|
1940
1940
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1941
1941
|
errorCode = "UnknownError";
|
|
1942
1942
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1943
1943
|
_b = errorCode;
|
|
1944
1944
|
switch (_b) {
|
|
1945
|
-
case "BadRequestException": return [3
|
|
1946
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
1947
|
-
case "GatewayTimeoutException": return [3
|
|
1948
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
1949
|
-
case "NotFoundException": return [3
|
|
1950
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
1951
|
-
case "TooManyRequestsException": return [3
|
|
1952
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
1953
|
-
}
|
|
1954
|
-
return [3
|
|
1945
|
+
case "BadRequestException": return [3, 2];
|
|
1946
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
1947
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
1948
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
1949
|
+
case "NotFoundException": return [3, 6];
|
|
1950
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
1951
|
+
case "TooManyRequestsException": return [3, 8];
|
|
1952
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
1953
|
+
}
|
|
1954
|
+
return [3, 10];
|
|
1955
1955
|
case 2:
|
|
1956
1956
|
_c = [{}];
|
|
1957
|
-
return [4
|
|
1957
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1958
1958
|
case 3:
|
|
1959
1959
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1960
|
-
return [3
|
|
1960
|
+
return [3, 11];
|
|
1961
1961
|
case 4:
|
|
1962
1962
|
_d = [{}];
|
|
1963
|
-
return [4
|
|
1963
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1964
1964
|
case 5:
|
|
1965
1965
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1966
|
-
return [3
|
|
1966
|
+
return [3, 11];
|
|
1967
1967
|
case 6:
|
|
1968
1968
|
_e = [{}];
|
|
1969
|
-
return [4
|
|
1969
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1970
1970
|
case 7:
|
|
1971
1971
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1972
|
-
return [3
|
|
1972
|
+
return [3, 11];
|
|
1973
1973
|
case 8:
|
|
1974
1974
|
_f = [{}];
|
|
1975
|
-
return [4
|
|
1975
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1976
1976
|
case 9:
|
|
1977
1977
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1978
|
-
return [3
|
|
1978
|
+
return [3, 11];
|
|
1979
1979
|
case 10:
|
|
1980
1980
|
parsedBody = parsedOutput.body;
|
|
1981
1981
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1985,7 +1985,7 @@ var deserializeAws_restJson1DeleteBackendAuthCommandError = function (output, co
|
|
|
1985
1985
|
message = response.message || response.Message || errorCode;
|
|
1986
1986
|
response.message = message;
|
|
1987
1987
|
delete response.Message;
|
|
1988
|
-
return [2
|
|
1988
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1989
1989
|
}
|
|
1990
1990
|
});
|
|
1991
1991
|
}); };
|
|
@@ -1995,7 +1995,7 @@ export var deserializeAws_restJson1DeleteTokenCommand = function (output, contex
|
|
|
1995
1995
|
switch (_c.label) {
|
|
1996
1996
|
case 0:
|
|
1997
1997
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1998
|
-
return [2
|
|
1998
|
+
return [2, deserializeAws_restJson1DeleteTokenCommandError(output, context)];
|
|
1999
1999
|
}
|
|
2000
2000
|
contents = {
|
|
2001
2001
|
$metadata: deserializeMetadata(output),
|
|
@@ -2003,13 +2003,13 @@ export var deserializeAws_restJson1DeleteTokenCommand = function (output, contex
|
|
|
2003
2003
|
};
|
|
2004
2004
|
_a = __expectNonNull;
|
|
2005
2005
|
_b = __expectObject;
|
|
2006
|
-
return [4
|
|
2006
|
+
return [4, parseBody(output.body, context)];
|
|
2007
2007
|
case 1:
|
|
2008
2008
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2009
2009
|
if (data.isSuccess !== undefined && data.isSuccess !== null) {
|
|
2010
2010
|
contents.IsSuccess = __expectBoolean(data.isSuccess);
|
|
2011
2011
|
}
|
|
2012
|
-
return [2
|
|
2012
|
+
return [2, Promise.resolve(contents)];
|
|
2013
2013
|
}
|
|
2014
2014
|
});
|
|
2015
2015
|
}); };
|
|
@@ -2021,47 +2021,47 @@ var deserializeAws_restJson1DeleteTokenCommandError = function (output, context)
|
|
|
2021
2021
|
case 0:
|
|
2022
2022
|
_a = [__assign({}, output)];
|
|
2023
2023
|
_g = {};
|
|
2024
|
-
return [4
|
|
2024
|
+
return [4, parseBody(output.body, context)];
|
|
2025
2025
|
case 1:
|
|
2026
2026
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2027
2027
|
errorCode = "UnknownError";
|
|
2028
2028
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2029
2029
|
_b = errorCode;
|
|
2030
2030
|
switch (_b) {
|
|
2031
|
-
case "BadRequestException": return [3
|
|
2032
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
2033
|
-
case "GatewayTimeoutException": return [3
|
|
2034
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
2035
|
-
case "NotFoundException": return [3
|
|
2036
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
2037
|
-
case "TooManyRequestsException": return [3
|
|
2038
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
2039
|
-
}
|
|
2040
|
-
return [3
|
|
2031
|
+
case "BadRequestException": return [3, 2];
|
|
2032
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
2033
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
2034
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
2035
|
+
case "NotFoundException": return [3, 6];
|
|
2036
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
2037
|
+
case "TooManyRequestsException": return [3, 8];
|
|
2038
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
2039
|
+
}
|
|
2040
|
+
return [3, 10];
|
|
2041
2041
|
case 2:
|
|
2042
2042
|
_c = [{}];
|
|
2043
|
-
return [4
|
|
2043
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2044
2044
|
case 3:
|
|
2045
2045
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2046
|
-
return [3
|
|
2046
|
+
return [3, 11];
|
|
2047
2047
|
case 4:
|
|
2048
2048
|
_d = [{}];
|
|
2049
|
-
return [4
|
|
2049
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2050
2050
|
case 5:
|
|
2051
2051
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2052
|
-
return [3
|
|
2052
|
+
return [3, 11];
|
|
2053
2053
|
case 6:
|
|
2054
2054
|
_e = [{}];
|
|
2055
|
-
return [4
|
|
2055
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2056
2056
|
case 7:
|
|
2057
2057
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2058
|
-
return [3
|
|
2058
|
+
return [3, 11];
|
|
2059
2059
|
case 8:
|
|
2060
2060
|
_f = [{}];
|
|
2061
|
-
return [4
|
|
2061
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2062
2062
|
case 9:
|
|
2063
2063
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2064
|
-
return [3
|
|
2064
|
+
return [3, 11];
|
|
2065
2065
|
case 10:
|
|
2066
2066
|
parsedBody = parsedOutput.body;
|
|
2067
2067
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2071,7 +2071,7 @@ var deserializeAws_restJson1DeleteTokenCommandError = function (output, context)
|
|
|
2071
2071
|
message = response.message || response.Message || errorCode;
|
|
2072
2072
|
response.message = message;
|
|
2073
2073
|
delete response.Message;
|
|
2074
|
-
return [2
|
|
2074
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2075
2075
|
}
|
|
2076
2076
|
});
|
|
2077
2077
|
}); };
|
|
@@ -2081,7 +2081,7 @@ export var deserializeAws_restJson1GenerateBackendAPIModelsCommand = function (o
|
|
|
2081
2081
|
switch (_c.label) {
|
|
2082
2082
|
case 0:
|
|
2083
2083
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2084
|
-
return [2
|
|
2084
|
+
return [2, deserializeAws_restJson1GenerateBackendAPIModelsCommandError(output, context)];
|
|
2085
2085
|
}
|
|
2086
2086
|
contents = {
|
|
2087
2087
|
$metadata: deserializeMetadata(output),
|
|
@@ -2094,7 +2094,7 @@ export var deserializeAws_restJson1GenerateBackendAPIModelsCommand = function (o
|
|
|
2094
2094
|
};
|
|
2095
2095
|
_a = __expectNonNull;
|
|
2096
2096
|
_b = __expectObject;
|
|
2097
|
-
return [4
|
|
2097
|
+
return [4, parseBody(output.body, context)];
|
|
2098
2098
|
case 1:
|
|
2099
2099
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2100
2100
|
if (data.appId !== undefined && data.appId !== null) {
|
|
@@ -2115,7 +2115,7 @@ export var deserializeAws_restJson1GenerateBackendAPIModelsCommand = function (o
|
|
|
2115
2115
|
if (data.status !== undefined && data.status !== null) {
|
|
2116
2116
|
contents.Status = __expectString(data.status);
|
|
2117
2117
|
}
|
|
2118
|
-
return [2
|
|
2118
|
+
return [2, Promise.resolve(contents)];
|
|
2119
2119
|
}
|
|
2120
2120
|
});
|
|
2121
2121
|
}); };
|
|
@@ -2127,47 +2127,47 @@ var deserializeAws_restJson1GenerateBackendAPIModelsCommandError = function (out
|
|
|
2127
2127
|
case 0:
|
|
2128
2128
|
_a = [__assign({}, output)];
|
|
2129
2129
|
_g = {};
|
|
2130
|
-
return [4
|
|
2130
|
+
return [4, parseBody(output.body, context)];
|
|
2131
2131
|
case 1:
|
|
2132
2132
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2133
2133
|
errorCode = "UnknownError";
|
|
2134
2134
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2135
2135
|
_b = errorCode;
|
|
2136
2136
|
switch (_b) {
|
|
2137
|
-
case "BadRequestException": return [3
|
|
2138
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
2139
|
-
case "GatewayTimeoutException": return [3
|
|
2140
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
2141
|
-
case "NotFoundException": return [3
|
|
2142
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
2143
|
-
case "TooManyRequestsException": return [3
|
|
2144
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
2145
|
-
}
|
|
2146
|
-
return [3
|
|
2137
|
+
case "BadRequestException": return [3, 2];
|
|
2138
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
2139
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
2140
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
2141
|
+
case "NotFoundException": return [3, 6];
|
|
2142
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
2143
|
+
case "TooManyRequestsException": return [3, 8];
|
|
2144
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
2145
|
+
}
|
|
2146
|
+
return [3, 10];
|
|
2147
2147
|
case 2:
|
|
2148
2148
|
_c = [{}];
|
|
2149
|
-
return [4
|
|
2149
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2150
2150
|
case 3:
|
|
2151
2151
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2152
|
-
return [3
|
|
2152
|
+
return [3, 11];
|
|
2153
2153
|
case 4:
|
|
2154
2154
|
_d = [{}];
|
|
2155
|
-
return [4
|
|
2155
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2156
2156
|
case 5:
|
|
2157
2157
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2158
|
-
return [3
|
|
2158
|
+
return [3, 11];
|
|
2159
2159
|
case 6:
|
|
2160
2160
|
_e = [{}];
|
|
2161
|
-
return [4
|
|
2161
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2162
2162
|
case 7:
|
|
2163
2163
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2164
|
-
return [3
|
|
2164
|
+
return [3, 11];
|
|
2165
2165
|
case 8:
|
|
2166
2166
|
_f = [{}];
|
|
2167
|
-
return [4
|
|
2167
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2168
2168
|
case 9:
|
|
2169
2169
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2170
|
-
return [3
|
|
2170
|
+
return [3, 11];
|
|
2171
2171
|
case 10:
|
|
2172
2172
|
parsedBody = parsedOutput.body;
|
|
2173
2173
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2177,7 +2177,7 @@ var deserializeAws_restJson1GenerateBackendAPIModelsCommandError = function (out
|
|
|
2177
2177
|
message = response.message || response.Message || errorCode;
|
|
2178
2178
|
response.message = message;
|
|
2179
2179
|
delete response.Message;
|
|
2180
|
-
return [2
|
|
2180
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2181
2181
|
}
|
|
2182
2182
|
});
|
|
2183
2183
|
}); };
|
|
@@ -2187,7 +2187,7 @@ export var deserializeAws_restJson1GetBackendCommand = function (output, context
|
|
|
2187
2187
|
switch (_c.label) {
|
|
2188
2188
|
case 0:
|
|
2189
2189
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2190
|
-
return [2
|
|
2190
|
+
return [2, deserializeAws_restJson1GetBackendCommandError(output, context)];
|
|
2191
2191
|
}
|
|
2192
2192
|
contents = {
|
|
2193
2193
|
$metadata: deserializeMetadata(output),
|
|
@@ -2200,7 +2200,7 @@ export var deserializeAws_restJson1GetBackendCommand = function (output, context
|
|
|
2200
2200
|
};
|
|
2201
2201
|
_a = __expectNonNull;
|
|
2202
2202
|
_b = __expectObject;
|
|
2203
|
-
return [4
|
|
2203
|
+
return [4, parseBody(output.body, context)];
|
|
2204
2204
|
case 1:
|
|
2205
2205
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2206
2206
|
if (data.amplifyMetaConfig !== undefined && data.amplifyMetaConfig !== null) {
|
|
@@ -2221,7 +2221,7 @@ export var deserializeAws_restJson1GetBackendCommand = function (output, context
|
|
|
2221
2221
|
if (data.error !== undefined && data.error !== null) {
|
|
2222
2222
|
contents.Error = __expectString(data.error);
|
|
2223
2223
|
}
|
|
2224
|
-
return [2
|
|
2224
|
+
return [2, Promise.resolve(contents)];
|
|
2225
2225
|
}
|
|
2226
2226
|
});
|
|
2227
2227
|
}); };
|
|
@@ -2233,47 +2233,47 @@ var deserializeAws_restJson1GetBackendCommandError = function (output, context)
|
|
|
2233
2233
|
case 0:
|
|
2234
2234
|
_a = [__assign({}, output)];
|
|
2235
2235
|
_g = {};
|
|
2236
|
-
return [4
|
|
2236
|
+
return [4, parseBody(output.body, context)];
|
|
2237
2237
|
case 1:
|
|
2238
2238
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2239
2239
|
errorCode = "UnknownError";
|
|
2240
2240
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2241
2241
|
_b = errorCode;
|
|
2242
2242
|
switch (_b) {
|
|
2243
|
-
case "BadRequestException": return [3
|
|
2244
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
2245
|
-
case "GatewayTimeoutException": return [3
|
|
2246
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
2247
|
-
case "NotFoundException": return [3
|
|
2248
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
2249
|
-
case "TooManyRequestsException": return [3
|
|
2250
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
2251
|
-
}
|
|
2252
|
-
return [3
|
|
2243
|
+
case "BadRequestException": return [3, 2];
|
|
2244
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
2245
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
2246
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
2247
|
+
case "NotFoundException": return [3, 6];
|
|
2248
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
2249
|
+
case "TooManyRequestsException": return [3, 8];
|
|
2250
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
2251
|
+
}
|
|
2252
|
+
return [3, 10];
|
|
2253
2253
|
case 2:
|
|
2254
2254
|
_c = [{}];
|
|
2255
|
-
return [4
|
|
2255
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2256
2256
|
case 3:
|
|
2257
2257
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2258
|
-
return [3
|
|
2258
|
+
return [3, 11];
|
|
2259
2259
|
case 4:
|
|
2260
2260
|
_d = [{}];
|
|
2261
|
-
return [4
|
|
2261
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2262
2262
|
case 5:
|
|
2263
2263
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2264
|
-
return [3
|
|
2264
|
+
return [3, 11];
|
|
2265
2265
|
case 6:
|
|
2266
2266
|
_e = [{}];
|
|
2267
|
-
return [4
|
|
2267
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2268
2268
|
case 7:
|
|
2269
2269
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2270
|
-
return [3
|
|
2270
|
+
return [3, 11];
|
|
2271
2271
|
case 8:
|
|
2272
2272
|
_f = [{}];
|
|
2273
|
-
return [4
|
|
2273
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2274
2274
|
case 9:
|
|
2275
2275
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2276
|
-
return [3
|
|
2276
|
+
return [3, 11];
|
|
2277
2277
|
case 10:
|
|
2278
2278
|
parsedBody = parsedOutput.body;
|
|
2279
2279
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2283,7 +2283,7 @@ var deserializeAws_restJson1GetBackendCommandError = function (output, context)
|
|
|
2283
2283
|
message = response.message || response.Message || errorCode;
|
|
2284
2284
|
response.message = message;
|
|
2285
2285
|
delete response.Message;
|
|
2286
|
-
return [2
|
|
2286
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2287
2287
|
}
|
|
2288
2288
|
});
|
|
2289
2289
|
}); };
|
|
@@ -2293,7 +2293,7 @@ export var deserializeAws_restJson1GetBackendAPICommand = function (output, cont
|
|
|
2293
2293
|
switch (_c.label) {
|
|
2294
2294
|
case 0:
|
|
2295
2295
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2296
|
-
return [2
|
|
2296
|
+
return [2, deserializeAws_restJson1GetBackendAPICommandError(output, context)];
|
|
2297
2297
|
}
|
|
2298
2298
|
contents = {
|
|
2299
2299
|
$metadata: deserializeMetadata(output),
|
|
@@ -2305,7 +2305,7 @@ export var deserializeAws_restJson1GetBackendAPICommand = function (output, cont
|
|
|
2305
2305
|
};
|
|
2306
2306
|
_a = __expectNonNull;
|
|
2307
2307
|
_b = __expectObject;
|
|
2308
|
-
return [4
|
|
2308
|
+
return [4, parseBody(output.body, context)];
|
|
2309
2309
|
case 1:
|
|
2310
2310
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2311
2311
|
if (data.appId !== undefined && data.appId !== null) {
|
|
@@ -2323,7 +2323,7 @@ export var deserializeAws_restJson1GetBackendAPICommand = function (output, cont
|
|
|
2323
2323
|
if (data.resourceName !== undefined && data.resourceName !== null) {
|
|
2324
2324
|
contents.ResourceName = __expectString(data.resourceName);
|
|
2325
2325
|
}
|
|
2326
|
-
return [2
|
|
2326
|
+
return [2, Promise.resolve(contents)];
|
|
2327
2327
|
}
|
|
2328
2328
|
});
|
|
2329
2329
|
}); };
|
|
@@ -2335,47 +2335,47 @@ var deserializeAws_restJson1GetBackendAPICommandError = function (output, contex
|
|
|
2335
2335
|
case 0:
|
|
2336
2336
|
_a = [__assign({}, output)];
|
|
2337
2337
|
_g = {};
|
|
2338
|
-
return [4
|
|
2338
|
+
return [4, parseBody(output.body, context)];
|
|
2339
2339
|
case 1:
|
|
2340
2340
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2341
2341
|
errorCode = "UnknownError";
|
|
2342
2342
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2343
2343
|
_b = errorCode;
|
|
2344
2344
|
switch (_b) {
|
|
2345
|
-
case "BadRequestException": return [3
|
|
2346
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
2347
|
-
case "GatewayTimeoutException": return [3
|
|
2348
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
2349
|
-
case "NotFoundException": return [3
|
|
2350
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
2351
|
-
case "TooManyRequestsException": return [3
|
|
2352
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
2353
|
-
}
|
|
2354
|
-
return [3
|
|
2345
|
+
case "BadRequestException": return [3, 2];
|
|
2346
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
2347
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
2348
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
2349
|
+
case "NotFoundException": return [3, 6];
|
|
2350
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
2351
|
+
case "TooManyRequestsException": return [3, 8];
|
|
2352
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
2353
|
+
}
|
|
2354
|
+
return [3, 10];
|
|
2355
2355
|
case 2:
|
|
2356
2356
|
_c = [{}];
|
|
2357
|
-
return [4
|
|
2357
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2358
2358
|
case 3:
|
|
2359
2359
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2360
|
-
return [3
|
|
2360
|
+
return [3, 11];
|
|
2361
2361
|
case 4:
|
|
2362
2362
|
_d = [{}];
|
|
2363
|
-
return [4
|
|
2363
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2364
2364
|
case 5:
|
|
2365
2365
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2366
|
-
return [3
|
|
2366
|
+
return [3, 11];
|
|
2367
2367
|
case 6:
|
|
2368
2368
|
_e = [{}];
|
|
2369
|
-
return [4
|
|
2369
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2370
2370
|
case 7:
|
|
2371
2371
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2372
|
-
return [3
|
|
2372
|
+
return [3, 11];
|
|
2373
2373
|
case 8:
|
|
2374
2374
|
_f = [{}];
|
|
2375
|
-
return [4
|
|
2375
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2376
2376
|
case 9:
|
|
2377
2377
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2378
|
-
return [3
|
|
2378
|
+
return [3, 11];
|
|
2379
2379
|
case 10:
|
|
2380
2380
|
parsedBody = parsedOutput.body;
|
|
2381
2381
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2385,7 +2385,7 @@ var deserializeAws_restJson1GetBackendAPICommandError = function (output, contex
|
|
|
2385
2385
|
message = response.message || response.Message || errorCode;
|
|
2386
2386
|
response.message = message;
|
|
2387
2387
|
delete response.Message;
|
|
2388
|
-
return [2
|
|
2388
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2389
2389
|
}
|
|
2390
2390
|
});
|
|
2391
2391
|
}); };
|
|
@@ -2395,7 +2395,7 @@ export var deserializeAws_restJson1GetBackendAPIModelsCommand = function (output
|
|
|
2395
2395
|
switch (_c.label) {
|
|
2396
2396
|
case 0:
|
|
2397
2397
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2398
|
-
return [2
|
|
2398
|
+
return [2, deserializeAws_restJson1GetBackendAPIModelsCommandError(output, context)];
|
|
2399
2399
|
}
|
|
2400
2400
|
contents = {
|
|
2401
2401
|
$metadata: deserializeMetadata(output),
|
|
@@ -2404,7 +2404,7 @@ export var deserializeAws_restJson1GetBackendAPIModelsCommand = function (output
|
|
|
2404
2404
|
};
|
|
2405
2405
|
_a = __expectNonNull;
|
|
2406
2406
|
_b = __expectObject;
|
|
2407
|
-
return [4
|
|
2407
|
+
return [4, parseBody(output.body, context)];
|
|
2408
2408
|
case 1:
|
|
2409
2409
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2410
2410
|
if (data.models !== undefined && data.models !== null) {
|
|
@@ -2413,7 +2413,7 @@ export var deserializeAws_restJson1GetBackendAPIModelsCommand = function (output
|
|
|
2413
2413
|
if (data.status !== undefined && data.status !== null) {
|
|
2414
2414
|
contents.Status = __expectString(data.status);
|
|
2415
2415
|
}
|
|
2416
|
-
return [2
|
|
2416
|
+
return [2, Promise.resolve(contents)];
|
|
2417
2417
|
}
|
|
2418
2418
|
});
|
|
2419
2419
|
}); };
|
|
@@ -2425,47 +2425,47 @@ var deserializeAws_restJson1GetBackendAPIModelsCommandError = function (output,
|
|
|
2425
2425
|
case 0:
|
|
2426
2426
|
_a = [__assign({}, output)];
|
|
2427
2427
|
_g = {};
|
|
2428
|
-
return [4
|
|
2428
|
+
return [4, parseBody(output.body, context)];
|
|
2429
2429
|
case 1:
|
|
2430
2430
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2431
2431
|
errorCode = "UnknownError";
|
|
2432
2432
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2433
2433
|
_b = errorCode;
|
|
2434
2434
|
switch (_b) {
|
|
2435
|
-
case "BadRequestException": return [3
|
|
2436
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
2437
|
-
case "GatewayTimeoutException": return [3
|
|
2438
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
2439
|
-
case "NotFoundException": return [3
|
|
2440
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
2441
|
-
case "TooManyRequestsException": return [3
|
|
2442
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
2443
|
-
}
|
|
2444
|
-
return [3
|
|
2435
|
+
case "BadRequestException": return [3, 2];
|
|
2436
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
2437
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
2438
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
2439
|
+
case "NotFoundException": return [3, 6];
|
|
2440
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
2441
|
+
case "TooManyRequestsException": return [3, 8];
|
|
2442
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
2443
|
+
}
|
|
2444
|
+
return [3, 10];
|
|
2445
2445
|
case 2:
|
|
2446
2446
|
_c = [{}];
|
|
2447
|
-
return [4
|
|
2447
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2448
2448
|
case 3:
|
|
2449
2449
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2450
|
-
return [3
|
|
2450
|
+
return [3, 11];
|
|
2451
2451
|
case 4:
|
|
2452
2452
|
_d = [{}];
|
|
2453
|
-
return [4
|
|
2453
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2454
2454
|
case 5:
|
|
2455
2455
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2456
|
-
return [3
|
|
2456
|
+
return [3, 11];
|
|
2457
2457
|
case 6:
|
|
2458
2458
|
_e = [{}];
|
|
2459
|
-
return [4
|
|
2459
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2460
2460
|
case 7:
|
|
2461
2461
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2462
|
-
return [3
|
|
2462
|
+
return [3, 11];
|
|
2463
2463
|
case 8:
|
|
2464
2464
|
_f = [{}];
|
|
2465
|
-
return [4
|
|
2465
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2466
2466
|
case 9:
|
|
2467
2467
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2468
|
-
return [3
|
|
2468
|
+
return [3, 11];
|
|
2469
2469
|
case 10:
|
|
2470
2470
|
parsedBody = parsedOutput.body;
|
|
2471
2471
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2475,7 +2475,7 @@ var deserializeAws_restJson1GetBackendAPIModelsCommandError = function (output,
|
|
|
2475
2475
|
message = response.message || response.Message || errorCode;
|
|
2476
2476
|
response.message = message;
|
|
2477
2477
|
delete response.Message;
|
|
2478
|
-
return [2
|
|
2478
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2479
2479
|
}
|
|
2480
2480
|
});
|
|
2481
2481
|
}); };
|
|
@@ -2485,7 +2485,7 @@ export var deserializeAws_restJson1GetBackendAuthCommand = function (output, con
|
|
|
2485
2485
|
switch (_c.label) {
|
|
2486
2486
|
case 0:
|
|
2487
2487
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2488
|
-
return [2
|
|
2488
|
+
return [2, deserializeAws_restJson1GetBackendAuthCommandError(output, context)];
|
|
2489
2489
|
}
|
|
2490
2490
|
contents = {
|
|
2491
2491
|
$metadata: deserializeMetadata(output),
|
|
@@ -2497,7 +2497,7 @@ export var deserializeAws_restJson1GetBackendAuthCommand = function (output, con
|
|
|
2497
2497
|
};
|
|
2498
2498
|
_a = __expectNonNull;
|
|
2499
2499
|
_b = __expectObject;
|
|
2500
|
-
return [4
|
|
2500
|
+
return [4, parseBody(output.body, context)];
|
|
2501
2501
|
case 1:
|
|
2502
2502
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2503
2503
|
if (data.appId !== undefined && data.appId !== null) {
|
|
@@ -2515,7 +2515,7 @@ export var deserializeAws_restJson1GetBackendAuthCommand = function (output, con
|
|
|
2515
2515
|
if (data.resourceName !== undefined && data.resourceName !== null) {
|
|
2516
2516
|
contents.ResourceName = __expectString(data.resourceName);
|
|
2517
2517
|
}
|
|
2518
|
-
return [2
|
|
2518
|
+
return [2, Promise.resolve(contents)];
|
|
2519
2519
|
}
|
|
2520
2520
|
});
|
|
2521
2521
|
}); };
|
|
@@ -2527,47 +2527,47 @@ var deserializeAws_restJson1GetBackendAuthCommandError = function (output, conte
|
|
|
2527
2527
|
case 0:
|
|
2528
2528
|
_a = [__assign({}, output)];
|
|
2529
2529
|
_g = {};
|
|
2530
|
-
return [4
|
|
2530
|
+
return [4, parseBody(output.body, context)];
|
|
2531
2531
|
case 1:
|
|
2532
2532
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2533
2533
|
errorCode = "UnknownError";
|
|
2534
2534
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2535
2535
|
_b = errorCode;
|
|
2536
2536
|
switch (_b) {
|
|
2537
|
-
case "BadRequestException": return [3
|
|
2538
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
2539
|
-
case "GatewayTimeoutException": return [3
|
|
2540
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
2541
|
-
case "NotFoundException": return [3
|
|
2542
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
2543
|
-
case "TooManyRequestsException": return [3
|
|
2544
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
2545
|
-
}
|
|
2546
|
-
return [3
|
|
2537
|
+
case "BadRequestException": return [3, 2];
|
|
2538
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
2539
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
2540
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
2541
|
+
case "NotFoundException": return [3, 6];
|
|
2542
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
2543
|
+
case "TooManyRequestsException": return [3, 8];
|
|
2544
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
2545
|
+
}
|
|
2546
|
+
return [3, 10];
|
|
2547
2547
|
case 2:
|
|
2548
2548
|
_c = [{}];
|
|
2549
|
-
return [4
|
|
2549
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2550
2550
|
case 3:
|
|
2551
2551
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2552
|
-
return [3
|
|
2552
|
+
return [3, 11];
|
|
2553
2553
|
case 4:
|
|
2554
2554
|
_d = [{}];
|
|
2555
|
-
return [4
|
|
2555
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2556
2556
|
case 5:
|
|
2557
2557
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2558
|
-
return [3
|
|
2558
|
+
return [3, 11];
|
|
2559
2559
|
case 6:
|
|
2560
2560
|
_e = [{}];
|
|
2561
|
-
return [4
|
|
2561
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2562
2562
|
case 7:
|
|
2563
2563
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2564
|
-
return [3
|
|
2564
|
+
return [3, 11];
|
|
2565
2565
|
case 8:
|
|
2566
2566
|
_f = [{}];
|
|
2567
|
-
return [4
|
|
2567
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2568
2568
|
case 9:
|
|
2569
2569
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2570
|
-
return [3
|
|
2570
|
+
return [3, 11];
|
|
2571
2571
|
case 10:
|
|
2572
2572
|
parsedBody = parsedOutput.body;
|
|
2573
2573
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2577,7 +2577,7 @@ var deserializeAws_restJson1GetBackendAuthCommandError = function (output, conte
|
|
|
2577
2577
|
message = response.message || response.Message || errorCode;
|
|
2578
2578
|
response.message = message;
|
|
2579
2579
|
delete response.Message;
|
|
2580
|
-
return [2
|
|
2580
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2581
2581
|
}
|
|
2582
2582
|
});
|
|
2583
2583
|
}); };
|
|
@@ -2587,7 +2587,7 @@ export var deserializeAws_restJson1GetBackendJobCommand = function (output, cont
|
|
|
2587
2587
|
switch (_c.label) {
|
|
2588
2588
|
case 0:
|
|
2589
2589
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2590
|
-
return [2
|
|
2590
|
+
return [2, deserializeAws_restJson1GetBackendJobCommandError(output, context)];
|
|
2591
2591
|
}
|
|
2592
2592
|
contents = {
|
|
2593
2593
|
$metadata: deserializeMetadata(output),
|
|
@@ -2602,7 +2602,7 @@ export var deserializeAws_restJson1GetBackendJobCommand = function (output, cont
|
|
|
2602
2602
|
};
|
|
2603
2603
|
_a = __expectNonNull;
|
|
2604
2604
|
_b = __expectObject;
|
|
2605
|
-
return [4
|
|
2605
|
+
return [4, parseBody(output.body, context)];
|
|
2606
2606
|
case 1:
|
|
2607
2607
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2608
2608
|
if (data.appId !== undefined && data.appId !== null) {
|
|
@@ -2629,7 +2629,7 @@ export var deserializeAws_restJson1GetBackendJobCommand = function (output, cont
|
|
|
2629
2629
|
if (data.updateTime !== undefined && data.updateTime !== null) {
|
|
2630
2630
|
contents.UpdateTime = __expectString(data.updateTime);
|
|
2631
2631
|
}
|
|
2632
|
-
return [2
|
|
2632
|
+
return [2, Promise.resolve(contents)];
|
|
2633
2633
|
}
|
|
2634
2634
|
});
|
|
2635
2635
|
}); };
|
|
@@ -2641,47 +2641,47 @@ var deserializeAws_restJson1GetBackendJobCommandError = function (output, contex
|
|
|
2641
2641
|
case 0:
|
|
2642
2642
|
_a = [__assign({}, output)];
|
|
2643
2643
|
_g = {};
|
|
2644
|
-
return [4
|
|
2644
|
+
return [4, parseBody(output.body, context)];
|
|
2645
2645
|
case 1:
|
|
2646
2646
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2647
2647
|
errorCode = "UnknownError";
|
|
2648
2648
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2649
2649
|
_b = errorCode;
|
|
2650
2650
|
switch (_b) {
|
|
2651
|
-
case "BadRequestException": return [3
|
|
2652
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
2653
|
-
case "GatewayTimeoutException": return [3
|
|
2654
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
2655
|
-
case "NotFoundException": return [3
|
|
2656
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
2657
|
-
case "TooManyRequestsException": return [3
|
|
2658
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
2659
|
-
}
|
|
2660
|
-
return [3
|
|
2651
|
+
case "BadRequestException": return [3, 2];
|
|
2652
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
2653
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
2654
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
2655
|
+
case "NotFoundException": return [3, 6];
|
|
2656
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
2657
|
+
case "TooManyRequestsException": return [3, 8];
|
|
2658
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
2659
|
+
}
|
|
2660
|
+
return [3, 10];
|
|
2661
2661
|
case 2:
|
|
2662
2662
|
_c = [{}];
|
|
2663
|
-
return [4
|
|
2663
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2664
2664
|
case 3:
|
|
2665
2665
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2666
|
-
return [3
|
|
2666
|
+
return [3, 11];
|
|
2667
2667
|
case 4:
|
|
2668
2668
|
_d = [{}];
|
|
2669
|
-
return [4
|
|
2669
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2670
2670
|
case 5:
|
|
2671
2671
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2672
|
-
return [3
|
|
2672
|
+
return [3, 11];
|
|
2673
2673
|
case 6:
|
|
2674
2674
|
_e = [{}];
|
|
2675
|
-
return [4
|
|
2675
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2676
2676
|
case 7:
|
|
2677
2677
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2678
|
-
return [3
|
|
2678
|
+
return [3, 11];
|
|
2679
2679
|
case 8:
|
|
2680
2680
|
_f = [{}];
|
|
2681
|
-
return [4
|
|
2681
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2682
2682
|
case 9:
|
|
2683
2683
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2684
|
-
return [3
|
|
2684
|
+
return [3, 11];
|
|
2685
2685
|
case 10:
|
|
2686
2686
|
parsedBody = parsedOutput.body;
|
|
2687
2687
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2691,7 +2691,7 @@ var deserializeAws_restJson1GetBackendJobCommandError = function (output, contex
|
|
|
2691
2691
|
message = response.message || response.Message || errorCode;
|
|
2692
2692
|
response.message = message;
|
|
2693
2693
|
delete response.Message;
|
|
2694
|
-
return [2
|
|
2694
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2695
2695
|
}
|
|
2696
2696
|
});
|
|
2697
2697
|
}); };
|
|
@@ -2701,7 +2701,7 @@ export var deserializeAws_restJson1GetTokenCommand = function (output, context)
|
|
|
2701
2701
|
switch (_c.label) {
|
|
2702
2702
|
case 0:
|
|
2703
2703
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2704
|
-
return [2
|
|
2704
|
+
return [2, deserializeAws_restJson1GetTokenCommandError(output, context)];
|
|
2705
2705
|
}
|
|
2706
2706
|
contents = {
|
|
2707
2707
|
$metadata: deserializeMetadata(output),
|
|
@@ -2712,7 +2712,7 @@ export var deserializeAws_restJson1GetTokenCommand = function (output, context)
|
|
|
2712
2712
|
};
|
|
2713
2713
|
_a = __expectNonNull;
|
|
2714
2714
|
_b = __expectObject;
|
|
2715
|
-
return [4
|
|
2715
|
+
return [4, parseBody(output.body, context)];
|
|
2716
2716
|
case 1:
|
|
2717
2717
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2718
2718
|
if (data.appId !== undefined && data.appId !== null) {
|
|
@@ -2727,7 +2727,7 @@ export var deserializeAws_restJson1GetTokenCommand = function (output, context)
|
|
|
2727
2727
|
if (data.ttl !== undefined && data.ttl !== null) {
|
|
2728
2728
|
contents.Ttl = __expectString(data.ttl);
|
|
2729
2729
|
}
|
|
2730
|
-
return [2
|
|
2730
|
+
return [2, Promise.resolve(contents)];
|
|
2731
2731
|
}
|
|
2732
2732
|
});
|
|
2733
2733
|
}); };
|
|
@@ -2739,47 +2739,47 @@ var deserializeAws_restJson1GetTokenCommandError = function (output, context) {
|
|
|
2739
2739
|
case 0:
|
|
2740
2740
|
_a = [__assign({}, output)];
|
|
2741
2741
|
_g = {};
|
|
2742
|
-
return [4
|
|
2742
|
+
return [4, parseBody(output.body, context)];
|
|
2743
2743
|
case 1:
|
|
2744
2744
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2745
2745
|
errorCode = "UnknownError";
|
|
2746
2746
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2747
2747
|
_b = errorCode;
|
|
2748
2748
|
switch (_b) {
|
|
2749
|
-
case "BadRequestException": return [3
|
|
2750
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
2751
|
-
case "GatewayTimeoutException": return [3
|
|
2752
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
2753
|
-
case "NotFoundException": return [3
|
|
2754
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
2755
|
-
case "TooManyRequestsException": return [3
|
|
2756
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
2757
|
-
}
|
|
2758
|
-
return [3
|
|
2749
|
+
case "BadRequestException": return [3, 2];
|
|
2750
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
2751
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
2752
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
2753
|
+
case "NotFoundException": return [3, 6];
|
|
2754
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
2755
|
+
case "TooManyRequestsException": return [3, 8];
|
|
2756
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
2757
|
+
}
|
|
2758
|
+
return [3, 10];
|
|
2759
2759
|
case 2:
|
|
2760
2760
|
_c = [{}];
|
|
2761
|
-
return [4
|
|
2761
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2762
2762
|
case 3:
|
|
2763
2763
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2764
|
-
return [3
|
|
2764
|
+
return [3, 11];
|
|
2765
2765
|
case 4:
|
|
2766
2766
|
_d = [{}];
|
|
2767
|
-
return [4
|
|
2767
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2768
2768
|
case 5:
|
|
2769
2769
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2770
|
-
return [3
|
|
2770
|
+
return [3, 11];
|
|
2771
2771
|
case 6:
|
|
2772
2772
|
_e = [{}];
|
|
2773
|
-
return [4
|
|
2773
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2774
2774
|
case 7:
|
|
2775
2775
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2776
|
-
return [3
|
|
2776
|
+
return [3, 11];
|
|
2777
2777
|
case 8:
|
|
2778
2778
|
_f = [{}];
|
|
2779
|
-
return [4
|
|
2779
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2780
2780
|
case 9:
|
|
2781
2781
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2782
|
-
return [3
|
|
2782
|
+
return [3, 11];
|
|
2783
2783
|
case 10:
|
|
2784
2784
|
parsedBody = parsedOutput.body;
|
|
2785
2785
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2789,7 +2789,7 @@ var deserializeAws_restJson1GetTokenCommandError = function (output, context) {
|
|
|
2789
2789
|
message = response.message || response.Message || errorCode;
|
|
2790
2790
|
response.message = message;
|
|
2791
2791
|
delete response.Message;
|
|
2792
|
-
return [2
|
|
2792
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2793
2793
|
}
|
|
2794
2794
|
});
|
|
2795
2795
|
}); };
|
|
@@ -2799,7 +2799,7 @@ export var deserializeAws_restJson1ImportBackendAuthCommand = function (output,
|
|
|
2799
2799
|
switch (_c.label) {
|
|
2800
2800
|
case 0:
|
|
2801
2801
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2802
|
-
return [2
|
|
2802
|
+
return [2, deserializeAws_restJson1ImportBackendAuthCommandError(output, context)];
|
|
2803
2803
|
}
|
|
2804
2804
|
contents = {
|
|
2805
2805
|
$metadata: deserializeMetadata(output),
|
|
@@ -2812,7 +2812,7 @@ export var deserializeAws_restJson1ImportBackendAuthCommand = function (output,
|
|
|
2812
2812
|
};
|
|
2813
2813
|
_a = __expectNonNull;
|
|
2814
2814
|
_b = __expectObject;
|
|
2815
|
-
return [4
|
|
2815
|
+
return [4, parseBody(output.body, context)];
|
|
2816
2816
|
case 1:
|
|
2817
2817
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2818
2818
|
if (data.appId !== undefined && data.appId !== null) {
|
|
@@ -2833,7 +2833,7 @@ export var deserializeAws_restJson1ImportBackendAuthCommand = function (output,
|
|
|
2833
2833
|
if (data.status !== undefined && data.status !== null) {
|
|
2834
2834
|
contents.Status = __expectString(data.status);
|
|
2835
2835
|
}
|
|
2836
|
-
return [2
|
|
2836
|
+
return [2, Promise.resolve(contents)];
|
|
2837
2837
|
}
|
|
2838
2838
|
});
|
|
2839
2839
|
}); };
|
|
@@ -2845,47 +2845,47 @@ var deserializeAws_restJson1ImportBackendAuthCommandError = function (output, co
|
|
|
2845
2845
|
case 0:
|
|
2846
2846
|
_a = [__assign({}, output)];
|
|
2847
2847
|
_g = {};
|
|
2848
|
-
return [4
|
|
2848
|
+
return [4, parseBody(output.body, context)];
|
|
2849
2849
|
case 1:
|
|
2850
2850
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2851
2851
|
errorCode = "UnknownError";
|
|
2852
2852
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2853
2853
|
_b = errorCode;
|
|
2854
2854
|
switch (_b) {
|
|
2855
|
-
case "BadRequestException": return [3
|
|
2856
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
2857
|
-
case "GatewayTimeoutException": return [3
|
|
2858
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
2859
|
-
case "NotFoundException": return [3
|
|
2860
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
2861
|
-
case "TooManyRequestsException": return [3
|
|
2862
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
2863
|
-
}
|
|
2864
|
-
return [3
|
|
2855
|
+
case "BadRequestException": return [3, 2];
|
|
2856
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
2857
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
2858
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
2859
|
+
case "NotFoundException": return [3, 6];
|
|
2860
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
2861
|
+
case "TooManyRequestsException": return [3, 8];
|
|
2862
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
2863
|
+
}
|
|
2864
|
+
return [3, 10];
|
|
2865
2865
|
case 2:
|
|
2866
2866
|
_c = [{}];
|
|
2867
|
-
return [4
|
|
2867
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2868
2868
|
case 3:
|
|
2869
2869
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2870
|
-
return [3
|
|
2870
|
+
return [3, 11];
|
|
2871
2871
|
case 4:
|
|
2872
2872
|
_d = [{}];
|
|
2873
|
-
return [4
|
|
2873
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2874
2874
|
case 5:
|
|
2875
2875
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2876
|
-
return [3
|
|
2876
|
+
return [3, 11];
|
|
2877
2877
|
case 6:
|
|
2878
2878
|
_e = [{}];
|
|
2879
|
-
return [4
|
|
2879
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2880
2880
|
case 7:
|
|
2881
2881
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2882
|
-
return [3
|
|
2882
|
+
return [3, 11];
|
|
2883
2883
|
case 8:
|
|
2884
2884
|
_f = [{}];
|
|
2885
|
-
return [4
|
|
2885
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2886
2886
|
case 9:
|
|
2887
2887
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2888
|
-
return [3
|
|
2888
|
+
return [3, 11];
|
|
2889
2889
|
case 10:
|
|
2890
2890
|
parsedBody = parsedOutput.body;
|
|
2891
2891
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2895,7 +2895,7 @@ var deserializeAws_restJson1ImportBackendAuthCommandError = function (output, co
|
|
|
2895
2895
|
message = response.message || response.Message || errorCode;
|
|
2896
2896
|
response.message = message;
|
|
2897
2897
|
delete response.Message;
|
|
2898
|
-
return [2
|
|
2898
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2899
2899
|
}
|
|
2900
2900
|
});
|
|
2901
2901
|
}); };
|
|
@@ -2905,7 +2905,7 @@ export var deserializeAws_restJson1ListBackendJobsCommand = function (output, co
|
|
|
2905
2905
|
switch (_c.label) {
|
|
2906
2906
|
case 0:
|
|
2907
2907
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2908
|
-
return [2
|
|
2908
|
+
return [2, deserializeAws_restJson1ListBackendJobsCommandError(output, context)];
|
|
2909
2909
|
}
|
|
2910
2910
|
contents = {
|
|
2911
2911
|
$metadata: deserializeMetadata(output),
|
|
@@ -2914,7 +2914,7 @@ export var deserializeAws_restJson1ListBackendJobsCommand = function (output, co
|
|
|
2914
2914
|
};
|
|
2915
2915
|
_a = __expectNonNull;
|
|
2916
2916
|
_b = __expectObject;
|
|
2917
|
-
return [4
|
|
2917
|
+
return [4, parseBody(output.body, context)];
|
|
2918
2918
|
case 1:
|
|
2919
2919
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2920
2920
|
if (data.jobs !== undefined && data.jobs !== null) {
|
|
@@ -2923,7 +2923,7 @@ export var deserializeAws_restJson1ListBackendJobsCommand = function (output, co
|
|
|
2923
2923
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2924
2924
|
contents.NextToken = __expectString(data.nextToken);
|
|
2925
2925
|
}
|
|
2926
|
-
return [2
|
|
2926
|
+
return [2, Promise.resolve(contents)];
|
|
2927
2927
|
}
|
|
2928
2928
|
});
|
|
2929
2929
|
}); };
|
|
@@ -2935,47 +2935,47 @@ var deserializeAws_restJson1ListBackendJobsCommandError = function (output, cont
|
|
|
2935
2935
|
case 0:
|
|
2936
2936
|
_a = [__assign({}, output)];
|
|
2937
2937
|
_g = {};
|
|
2938
|
-
return [4
|
|
2938
|
+
return [4, parseBody(output.body, context)];
|
|
2939
2939
|
case 1:
|
|
2940
2940
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2941
2941
|
errorCode = "UnknownError";
|
|
2942
2942
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2943
2943
|
_b = errorCode;
|
|
2944
2944
|
switch (_b) {
|
|
2945
|
-
case "BadRequestException": return [3
|
|
2946
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
2947
|
-
case "GatewayTimeoutException": return [3
|
|
2948
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
2949
|
-
case "NotFoundException": return [3
|
|
2950
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
2951
|
-
case "TooManyRequestsException": return [3
|
|
2952
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
2953
|
-
}
|
|
2954
|
-
return [3
|
|
2945
|
+
case "BadRequestException": return [3, 2];
|
|
2946
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
2947
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
2948
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
2949
|
+
case "NotFoundException": return [3, 6];
|
|
2950
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
2951
|
+
case "TooManyRequestsException": return [3, 8];
|
|
2952
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
2953
|
+
}
|
|
2954
|
+
return [3, 10];
|
|
2955
2955
|
case 2:
|
|
2956
2956
|
_c = [{}];
|
|
2957
|
-
return [4
|
|
2957
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2958
2958
|
case 3:
|
|
2959
2959
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2960
|
-
return [3
|
|
2960
|
+
return [3, 11];
|
|
2961
2961
|
case 4:
|
|
2962
2962
|
_d = [{}];
|
|
2963
|
-
return [4
|
|
2963
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2964
2964
|
case 5:
|
|
2965
2965
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2966
|
-
return [3
|
|
2966
|
+
return [3, 11];
|
|
2967
2967
|
case 6:
|
|
2968
2968
|
_e = [{}];
|
|
2969
|
-
return [4
|
|
2969
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2970
2970
|
case 7:
|
|
2971
2971
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2972
|
-
return [3
|
|
2972
|
+
return [3, 11];
|
|
2973
2973
|
case 8:
|
|
2974
2974
|
_f = [{}];
|
|
2975
|
-
return [4
|
|
2975
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2976
2976
|
case 9:
|
|
2977
2977
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2978
|
-
return [3
|
|
2978
|
+
return [3, 11];
|
|
2979
2979
|
case 10:
|
|
2980
2980
|
parsedBody = parsedOutput.body;
|
|
2981
2981
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2985,7 +2985,7 @@ var deserializeAws_restJson1ListBackendJobsCommandError = function (output, cont
|
|
|
2985
2985
|
message = response.message || response.Message || errorCode;
|
|
2986
2986
|
response.message = message;
|
|
2987
2987
|
delete response.Message;
|
|
2988
|
-
return [2
|
|
2988
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2989
2989
|
}
|
|
2990
2990
|
});
|
|
2991
2991
|
}); };
|
|
@@ -2995,7 +2995,7 @@ export var deserializeAws_restJson1RemoveAllBackendsCommand = function (output,
|
|
|
2995
2995
|
switch (_c.label) {
|
|
2996
2996
|
case 0:
|
|
2997
2997
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2998
|
-
return [2
|
|
2998
|
+
return [2, deserializeAws_restJson1RemoveAllBackendsCommandError(output, context)];
|
|
2999
2999
|
}
|
|
3000
3000
|
contents = {
|
|
3001
3001
|
$metadata: deserializeMetadata(output),
|
|
@@ -3007,7 +3007,7 @@ export var deserializeAws_restJson1RemoveAllBackendsCommand = function (output,
|
|
|
3007
3007
|
};
|
|
3008
3008
|
_a = __expectNonNull;
|
|
3009
3009
|
_b = __expectObject;
|
|
3010
|
-
return [4
|
|
3010
|
+
return [4, parseBody(output.body, context)];
|
|
3011
3011
|
case 1:
|
|
3012
3012
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3013
3013
|
if (data.appId !== undefined && data.appId !== null) {
|
|
@@ -3025,7 +3025,7 @@ export var deserializeAws_restJson1RemoveAllBackendsCommand = function (output,
|
|
|
3025
3025
|
if (data.status !== undefined && data.status !== null) {
|
|
3026
3026
|
contents.Status = __expectString(data.status);
|
|
3027
3027
|
}
|
|
3028
|
-
return [2
|
|
3028
|
+
return [2, Promise.resolve(contents)];
|
|
3029
3029
|
}
|
|
3030
3030
|
});
|
|
3031
3031
|
}); };
|
|
@@ -3037,47 +3037,47 @@ var deserializeAws_restJson1RemoveAllBackendsCommandError = function (output, co
|
|
|
3037
3037
|
case 0:
|
|
3038
3038
|
_a = [__assign({}, output)];
|
|
3039
3039
|
_g = {};
|
|
3040
|
-
return [4
|
|
3040
|
+
return [4, parseBody(output.body, context)];
|
|
3041
3041
|
case 1:
|
|
3042
3042
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
3043
3043
|
errorCode = "UnknownError";
|
|
3044
3044
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3045
3045
|
_b = errorCode;
|
|
3046
3046
|
switch (_b) {
|
|
3047
|
-
case "BadRequestException": return [3
|
|
3048
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
3049
|
-
case "GatewayTimeoutException": return [3
|
|
3050
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
3051
|
-
case "NotFoundException": return [3
|
|
3052
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
3053
|
-
case "TooManyRequestsException": return [3
|
|
3054
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
3055
|
-
}
|
|
3056
|
-
return [3
|
|
3047
|
+
case "BadRequestException": return [3, 2];
|
|
3048
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
3049
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
3050
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
3051
|
+
case "NotFoundException": return [3, 6];
|
|
3052
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
3053
|
+
case "TooManyRequestsException": return [3, 8];
|
|
3054
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
3055
|
+
}
|
|
3056
|
+
return [3, 10];
|
|
3057
3057
|
case 2:
|
|
3058
3058
|
_c = [{}];
|
|
3059
|
-
return [4
|
|
3059
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3060
3060
|
case 3:
|
|
3061
3061
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3062
|
-
return [3
|
|
3062
|
+
return [3, 11];
|
|
3063
3063
|
case 4:
|
|
3064
3064
|
_d = [{}];
|
|
3065
|
-
return [4
|
|
3065
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3066
3066
|
case 5:
|
|
3067
3067
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3068
|
-
return [3
|
|
3068
|
+
return [3, 11];
|
|
3069
3069
|
case 6:
|
|
3070
3070
|
_e = [{}];
|
|
3071
|
-
return [4
|
|
3071
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3072
3072
|
case 7:
|
|
3073
3073
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3074
|
-
return [3
|
|
3074
|
+
return [3, 11];
|
|
3075
3075
|
case 8:
|
|
3076
3076
|
_f = [{}];
|
|
3077
|
-
return [4
|
|
3077
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3078
3078
|
case 9:
|
|
3079
3079
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3080
|
-
return [3
|
|
3080
|
+
return [3, 11];
|
|
3081
3081
|
case 10:
|
|
3082
3082
|
parsedBody = parsedOutput.body;
|
|
3083
3083
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3087,7 +3087,7 @@ var deserializeAws_restJson1RemoveAllBackendsCommandError = function (output, co
|
|
|
3087
3087
|
message = response.message || response.Message || errorCode;
|
|
3088
3088
|
response.message = message;
|
|
3089
3089
|
delete response.Message;
|
|
3090
|
-
return [2
|
|
3090
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3091
3091
|
}
|
|
3092
3092
|
});
|
|
3093
3093
|
}); };
|
|
@@ -3097,7 +3097,7 @@ export var deserializeAws_restJson1RemoveBackendConfigCommand = function (output
|
|
|
3097
3097
|
switch (_c.label) {
|
|
3098
3098
|
case 0:
|
|
3099
3099
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3100
|
-
return [2
|
|
3100
|
+
return [2, deserializeAws_restJson1RemoveBackendConfigCommandError(output, context)];
|
|
3101
3101
|
}
|
|
3102
3102
|
contents = {
|
|
3103
3103
|
$metadata: deserializeMetadata(output),
|
|
@@ -3105,13 +3105,13 @@ export var deserializeAws_restJson1RemoveBackendConfigCommand = function (output
|
|
|
3105
3105
|
};
|
|
3106
3106
|
_a = __expectNonNull;
|
|
3107
3107
|
_b = __expectObject;
|
|
3108
|
-
return [4
|
|
3108
|
+
return [4, parseBody(output.body, context)];
|
|
3109
3109
|
case 1:
|
|
3110
3110
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3111
3111
|
if (data.error !== undefined && data.error !== null) {
|
|
3112
3112
|
contents.Error = __expectString(data.error);
|
|
3113
3113
|
}
|
|
3114
|
-
return [2
|
|
3114
|
+
return [2, Promise.resolve(contents)];
|
|
3115
3115
|
}
|
|
3116
3116
|
});
|
|
3117
3117
|
}); };
|
|
@@ -3123,47 +3123,47 @@ var deserializeAws_restJson1RemoveBackendConfigCommandError = function (output,
|
|
|
3123
3123
|
case 0:
|
|
3124
3124
|
_a = [__assign({}, output)];
|
|
3125
3125
|
_g = {};
|
|
3126
|
-
return [4
|
|
3126
|
+
return [4, parseBody(output.body, context)];
|
|
3127
3127
|
case 1:
|
|
3128
3128
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
3129
3129
|
errorCode = "UnknownError";
|
|
3130
3130
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3131
3131
|
_b = errorCode;
|
|
3132
3132
|
switch (_b) {
|
|
3133
|
-
case "BadRequestException": return [3
|
|
3134
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
3135
|
-
case "GatewayTimeoutException": return [3
|
|
3136
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
3137
|
-
case "NotFoundException": return [3
|
|
3138
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
3139
|
-
case "TooManyRequestsException": return [3
|
|
3140
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
3141
|
-
}
|
|
3142
|
-
return [3
|
|
3133
|
+
case "BadRequestException": return [3, 2];
|
|
3134
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
3135
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
3136
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
3137
|
+
case "NotFoundException": return [3, 6];
|
|
3138
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
3139
|
+
case "TooManyRequestsException": return [3, 8];
|
|
3140
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
3141
|
+
}
|
|
3142
|
+
return [3, 10];
|
|
3143
3143
|
case 2:
|
|
3144
3144
|
_c = [{}];
|
|
3145
|
-
return [4
|
|
3145
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3146
3146
|
case 3:
|
|
3147
3147
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3148
|
-
return [3
|
|
3148
|
+
return [3, 11];
|
|
3149
3149
|
case 4:
|
|
3150
3150
|
_d = [{}];
|
|
3151
|
-
return [4
|
|
3151
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3152
3152
|
case 5:
|
|
3153
3153
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3154
|
-
return [3
|
|
3154
|
+
return [3, 11];
|
|
3155
3155
|
case 6:
|
|
3156
3156
|
_e = [{}];
|
|
3157
|
-
return [4
|
|
3157
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3158
3158
|
case 7:
|
|
3159
3159
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3160
|
-
return [3
|
|
3160
|
+
return [3, 11];
|
|
3161
3161
|
case 8:
|
|
3162
3162
|
_f = [{}];
|
|
3163
|
-
return [4
|
|
3163
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3164
3164
|
case 9:
|
|
3165
3165
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3166
|
-
return [3
|
|
3166
|
+
return [3, 11];
|
|
3167
3167
|
case 10:
|
|
3168
3168
|
parsedBody = parsedOutput.body;
|
|
3169
3169
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3173,7 +3173,7 @@ var deserializeAws_restJson1RemoveBackendConfigCommandError = function (output,
|
|
|
3173
3173
|
message = response.message || response.Message || errorCode;
|
|
3174
3174
|
response.message = message;
|
|
3175
3175
|
delete response.Message;
|
|
3176
|
-
return [2
|
|
3176
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3177
3177
|
}
|
|
3178
3178
|
});
|
|
3179
3179
|
}); };
|
|
@@ -3183,7 +3183,7 @@ export var deserializeAws_restJson1UpdateBackendAPICommand = function (output, c
|
|
|
3183
3183
|
switch (_c.label) {
|
|
3184
3184
|
case 0:
|
|
3185
3185
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3186
|
-
return [2
|
|
3186
|
+
return [2, deserializeAws_restJson1UpdateBackendAPICommandError(output, context)];
|
|
3187
3187
|
}
|
|
3188
3188
|
contents = {
|
|
3189
3189
|
$metadata: deserializeMetadata(output),
|
|
@@ -3196,7 +3196,7 @@ export var deserializeAws_restJson1UpdateBackendAPICommand = function (output, c
|
|
|
3196
3196
|
};
|
|
3197
3197
|
_a = __expectNonNull;
|
|
3198
3198
|
_b = __expectObject;
|
|
3199
|
-
return [4
|
|
3199
|
+
return [4, parseBody(output.body, context)];
|
|
3200
3200
|
case 1:
|
|
3201
3201
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3202
3202
|
if (data.appId !== undefined && data.appId !== null) {
|
|
@@ -3217,7 +3217,7 @@ export var deserializeAws_restJson1UpdateBackendAPICommand = function (output, c
|
|
|
3217
3217
|
if (data.status !== undefined && data.status !== null) {
|
|
3218
3218
|
contents.Status = __expectString(data.status);
|
|
3219
3219
|
}
|
|
3220
|
-
return [2
|
|
3220
|
+
return [2, Promise.resolve(contents)];
|
|
3221
3221
|
}
|
|
3222
3222
|
});
|
|
3223
3223
|
}); };
|
|
@@ -3229,47 +3229,47 @@ var deserializeAws_restJson1UpdateBackendAPICommandError = function (output, con
|
|
|
3229
3229
|
case 0:
|
|
3230
3230
|
_a = [__assign({}, output)];
|
|
3231
3231
|
_g = {};
|
|
3232
|
-
return [4
|
|
3232
|
+
return [4, parseBody(output.body, context)];
|
|
3233
3233
|
case 1:
|
|
3234
3234
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
3235
3235
|
errorCode = "UnknownError";
|
|
3236
3236
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3237
3237
|
_b = errorCode;
|
|
3238
3238
|
switch (_b) {
|
|
3239
|
-
case "BadRequestException": return [3
|
|
3240
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
3241
|
-
case "GatewayTimeoutException": return [3
|
|
3242
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
3243
|
-
case "NotFoundException": return [3
|
|
3244
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
3245
|
-
case "TooManyRequestsException": return [3
|
|
3246
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
3247
|
-
}
|
|
3248
|
-
return [3
|
|
3239
|
+
case "BadRequestException": return [3, 2];
|
|
3240
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
3241
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
3242
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
3243
|
+
case "NotFoundException": return [3, 6];
|
|
3244
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
3245
|
+
case "TooManyRequestsException": return [3, 8];
|
|
3246
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
3247
|
+
}
|
|
3248
|
+
return [3, 10];
|
|
3249
3249
|
case 2:
|
|
3250
3250
|
_c = [{}];
|
|
3251
|
-
return [4
|
|
3251
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3252
3252
|
case 3:
|
|
3253
3253
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3254
|
-
return [3
|
|
3254
|
+
return [3, 11];
|
|
3255
3255
|
case 4:
|
|
3256
3256
|
_d = [{}];
|
|
3257
|
-
return [4
|
|
3257
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3258
3258
|
case 5:
|
|
3259
3259
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3260
|
-
return [3
|
|
3260
|
+
return [3, 11];
|
|
3261
3261
|
case 6:
|
|
3262
3262
|
_e = [{}];
|
|
3263
|
-
return [4
|
|
3263
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3264
3264
|
case 7:
|
|
3265
3265
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3266
|
-
return [3
|
|
3266
|
+
return [3, 11];
|
|
3267
3267
|
case 8:
|
|
3268
3268
|
_f = [{}];
|
|
3269
|
-
return [4
|
|
3269
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3270
3270
|
case 9:
|
|
3271
3271
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3272
|
-
return [3
|
|
3272
|
+
return [3, 11];
|
|
3273
3273
|
case 10:
|
|
3274
3274
|
parsedBody = parsedOutput.body;
|
|
3275
3275
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3279,7 +3279,7 @@ var deserializeAws_restJson1UpdateBackendAPICommandError = function (output, con
|
|
|
3279
3279
|
message = response.message || response.Message || errorCode;
|
|
3280
3280
|
response.message = message;
|
|
3281
3281
|
delete response.Message;
|
|
3282
|
-
return [2
|
|
3282
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3283
3283
|
}
|
|
3284
3284
|
});
|
|
3285
3285
|
}); };
|
|
@@ -3289,7 +3289,7 @@ export var deserializeAws_restJson1UpdateBackendAuthCommand = function (output,
|
|
|
3289
3289
|
switch (_c.label) {
|
|
3290
3290
|
case 0:
|
|
3291
3291
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3292
|
-
return [2
|
|
3292
|
+
return [2, deserializeAws_restJson1UpdateBackendAuthCommandError(output, context)];
|
|
3293
3293
|
}
|
|
3294
3294
|
contents = {
|
|
3295
3295
|
$metadata: deserializeMetadata(output),
|
|
@@ -3302,7 +3302,7 @@ export var deserializeAws_restJson1UpdateBackendAuthCommand = function (output,
|
|
|
3302
3302
|
};
|
|
3303
3303
|
_a = __expectNonNull;
|
|
3304
3304
|
_b = __expectObject;
|
|
3305
|
-
return [4
|
|
3305
|
+
return [4, parseBody(output.body, context)];
|
|
3306
3306
|
case 1:
|
|
3307
3307
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3308
3308
|
if (data.appId !== undefined && data.appId !== null) {
|
|
@@ -3323,7 +3323,7 @@ export var deserializeAws_restJson1UpdateBackendAuthCommand = function (output,
|
|
|
3323
3323
|
if (data.status !== undefined && data.status !== null) {
|
|
3324
3324
|
contents.Status = __expectString(data.status);
|
|
3325
3325
|
}
|
|
3326
|
-
return [2
|
|
3326
|
+
return [2, Promise.resolve(contents)];
|
|
3327
3327
|
}
|
|
3328
3328
|
});
|
|
3329
3329
|
}); };
|
|
@@ -3335,47 +3335,47 @@ var deserializeAws_restJson1UpdateBackendAuthCommandError = function (output, co
|
|
|
3335
3335
|
case 0:
|
|
3336
3336
|
_a = [__assign({}, output)];
|
|
3337
3337
|
_g = {};
|
|
3338
|
-
return [4
|
|
3338
|
+
return [4, parseBody(output.body, context)];
|
|
3339
3339
|
case 1:
|
|
3340
3340
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
3341
3341
|
errorCode = "UnknownError";
|
|
3342
3342
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3343
3343
|
_b = errorCode;
|
|
3344
3344
|
switch (_b) {
|
|
3345
|
-
case "BadRequestException": return [3
|
|
3346
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
3347
|
-
case "GatewayTimeoutException": return [3
|
|
3348
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
3349
|
-
case "NotFoundException": return [3
|
|
3350
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
3351
|
-
case "TooManyRequestsException": return [3
|
|
3352
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
3353
|
-
}
|
|
3354
|
-
return [3
|
|
3345
|
+
case "BadRequestException": return [3, 2];
|
|
3346
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
3347
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
3348
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
3349
|
+
case "NotFoundException": return [3, 6];
|
|
3350
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
3351
|
+
case "TooManyRequestsException": return [3, 8];
|
|
3352
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
3353
|
+
}
|
|
3354
|
+
return [3, 10];
|
|
3355
3355
|
case 2:
|
|
3356
3356
|
_c = [{}];
|
|
3357
|
-
return [4
|
|
3357
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3358
3358
|
case 3:
|
|
3359
3359
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3360
|
-
return [3
|
|
3360
|
+
return [3, 11];
|
|
3361
3361
|
case 4:
|
|
3362
3362
|
_d = [{}];
|
|
3363
|
-
return [4
|
|
3363
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3364
3364
|
case 5:
|
|
3365
3365
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3366
|
-
return [3
|
|
3366
|
+
return [3, 11];
|
|
3367
3367
|
case 6:
|
|
3368
3368
|
_e = [{}];
|
|
3369
|
-
return [4
|
|
3369
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3370
3370
|
case 7:
|
|
3371
3371
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3372
|
-
return [3
|
|
3372
|
+
return [3, 11];
|
|
3373
3373
|
case 8:
|
|
3374
3374
|
_f = [{}];
|
|
3375
|
-
return [4
|
|
3375
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3376
3376
|
case 9:
|
|
3377
3377
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3378
|
-
return [3
|
|
3378
|
+
return [3, 11];
|
|
3379
3379
|
case 10:
|
|
3380
3380
|
parsedBody = parsedOutput.body;
|
|
3381
3381
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3385,7 +3385,7 @@ var deserializeAws_restJson1UpdateBackendAuthCommandError = function (output, co
|
|
|
3385
3385
|
message = response.message || response.Message || errorCode;
|
|
3386
3386
|
response.message = message;
|
|
3387
3387
|
delete response.Message;
|
|
3388
|
-
return [2
|
|
3388
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3389
3389
|
}
|
|
3390
3390
|
});
|
|
3391
3391
|
}); };
|
|
@@ -3395,7 +3395,7 @@ export var deserializeAws_restJson1UpdateBackendConfigCommand = function (output
|
|
|
3395
3395
|
switch (_c.label) {
|
|
3396
3396
|
case 0:
|
|
3397
3397
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3398
|
-
return [2
|
|
3398
|
+
return [2, deserializeAws_restJson1UpdateBackendConfigCommandError(output, context)];
|
|
3399
3399
|
}
|
|
3400
3400
|
contents = {
|
|
3401
3401
|
$metadata: deserializeMetadata(output),
|
|
@@ -3406,7 +3406,7 @@ export var deserializeAws_restJson1UpdateBackendConfigCommand = function (output
|
|
|
3406
3406
|
};
|
|
3407
3407
|
_a = __expectNonNull;
|
|
3408
3408
|
_b = __expectObject;
|
|
3409
|
-
return [4
|
|
3409
|
+
return [4, parseBody(output.body, context)];
|
|
3410
3410
|
case 1:
|
|
3411
3411
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3412
3412
|
if (data.appId !== undefined && data.appId !== null) {
|
|
@@ -3421,7 +3421,7 @@ export var deserializeAws_restJson1UpdateBackendConfigCommand = function (output
|
|
|
3421
3421
|
if (data.loginAuthConfig !== undefined && data.loginAuthConfig !== null) {
|
|
3422
3422
|
contents.LoginAuthConfig = deserializeAws_restJson1LoginAuthConfigReqObj(data.loginAuthConfig, context);
|
|
3423
3423
|
}
|
|
3424
|
-
return [2
|
|
3424
|
+
return [2, Promise.resolve(contents)];
|
|
3425
3425
|
}
|
|
3426
3426
|
});
|
|
3427
3427
|
}); };
|
|
@@ -3433,47 +3433,47 @@ var deserializeAws_restJson1UpdateBackendConfigCommandError = function (output,
|
|
|
3433
3433
|
case 0:
|
|
3434
3434
|
_a = [__assign({}, output)];
|
|
3435
3435
|
_g = {};
|
|
3436
|
-
return [4
|
|
3436
|
+
return [4, parseBody(output.body, context)];
|
|
3437
3437
|
case 1:
|
|
3438
3438
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
3439
3439
|
errorCode = "UnknownError";
|
|
3440
3440
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3441
3441
|
_b = errorCode;
|
|
3442
3442
|
switch (_b) {
|
|
3443
|
-
case "BadRequestException": return [3
|
|
3444
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
3445
|
-
case "GatewayTimeoutException": return [3
|
|
3446
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
3447
|
-
case "NotFoundException": return [3
|
|
3448
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
3449
|
-
case "TooManyRequestsException": return [3
|
|
3450
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
3451
|
-
}
|
|
3452
|
-
return [3
|
|
3443
|
+
case "BadRequestException": return [3, 2];
|
|
3444
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
3445
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
3446
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
3447
|
+
case "NotFoundException": return [3, 6];
|
|
3448
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
3449
|
+
case "TooManyRequestsException": return [3, 8];
|
|
3450
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
3451
|
+
}
|
|
3452
|
+
return [3, 10];
|
|
3453
3453
|
case 2:
|
|
3454
3454
|
_c = [{}];
|
|
3455
|
-
return [4
|
|
3455
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3456
3456
|
case 3:
|
|
3457
3457
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3458
|
-
return [3
|
|
3458
|
+
return [3, 11];
|
|
3459
3459
|
case 4:
|
|
3460
3460
|
_d = [{}];
|
|
3461
|
-
return [4
|
|
3461
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3462
3462
|
case 5:
|
|
3463
3463
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3464
|
-
return [3
|
|
3464
|
+
return [3, 11];
|
|
3465
3465
|
case 6:
|
|
3466
3466
|
_e = [{}];
|
|
3467
|
-
return [4
|
|
3467
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3468
3468
|
case 7:
|
|
3469
3469
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3470
|
-
return [3
|
|
3470
|
+
return [3, 11];
|
|
3471
3471
|
case 8:
|
|
3472
3472
|
_f = [{}];
|
|
3473
|
-
return [4
|
|
3473
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3474
3474
|
case 9:
|
|
3475
3475
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3476
|
-
return [3
|
|
3476
|
+
return [3, 11];
|
|
3477
3477
|
case 10:
|
|
3478
3478
|
parsedBody = parsedOutput.body;
|
|
3479
3479
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3483,7 +3483,7 @@ var deserializeAws_restJson1UpdateBackendConfigCommandError = function (output,
|
|
|
3483
3483
|
message = response.message || response.Message || errorCode;
|
|
3484
3484
|
response.message = message;
|
|
3485
3485
|
delete response.Message;
|
|
3486
|
-
return [2
|
|
3486
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3487
3487
|
}
|
|
3488
3488
|
});
|
|
3489
3489
|
}); };
|
|
@@ -3493,7 +3493,7 @@ export var deserializeAws_restJson1UpdateBackendJobCommand = function (output, c
|
|
|
3493
3493
|
switch (_c.label) {
|
|
3494
3494
|
case 0:
|
|
3495
3495
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3496
|
-
return [2
|
|
3496
|
+
return [2, deserializeAws_restJson1UpdateBackendJobCommandError(output, context)];
|
|
3497
3497
|
}
|
|
3498
3498
|
contents = {
|
|
3499
3499
|
$metadata: deserializeMetadata(output),
|
|
@@ -3508,7 +3508,7 @@ export var deserializeAws_restJson1UpdateBackendJobCommand = function (output, c
|
|
|
3508
3508
|
};
|
|
3509
3509
|
_a = __expectNonNull;
|
|
3510
3510
|
_b = __expectObject;
|
|
3511
|
-
return [4
|
|
3511
|
+
return [4, parseBody(output.body, context)];
|
|
3512
3512
|
case 1:
|
|
3513
3513
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3514
3514
|
if (data.appId !== undefined && data.appId !== null) {
|
|
@@ -3535,7 +3535,7 @@ export var deserializeAws_restJson1UpdateBackendJobCommand = function (output, c
|
|
|
3535
3535
|
if (data.updateTime !== undefined && data.updateTime !== null) {
|
|
3536
3536
|
contents.UpdateTime = __expectString(data.updateTime);
|
|
3537
3537
|
}
|
|
3538
|
-
return [2
|
|
3538
|
+
return [2, Promise.resolve(contents)];
|
|
3539
3539
|
}
|
|
3540
3540
|
});
|
|
3541
3541
|
}); };
|
|
@@ -3547,47 +3547,47 @@ var deserializeAws_restJson1UpdateBackendJobCommandError = function (output, con
|
|
|
3547
3547
|
case 0:
|
|
3548
3548
|
_a = [__assign({}, output)];
|
|
3549
3549
|
_g = {};
|
|
3550
|
-
return [4
|
|
3550
|
+
return [4, parseBody(output.body, context)];
|
|
3551
3551
|
case 1:
|
|
3552
3552
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
3553
3553
|
errorCode = "UnknownError";
|
|
3554
3554
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3555
3555
|
_b = errorCode;
|
|
3556
3556
|
switch (_b) {
|
|
3557
|
-
case "BadRequestException": return [3
|
|
3558
|
-
case "com.amazonaws.amplifybackend#BadRequestException": return [3
|
|
3559
|
-
case "GatewayTimeoutException": return [3
|
|
3560
|
-
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3
|
|
3561
|
-
case "NotFoundException": return [3
|
|
3562
|
-
case "com.amazonaws.amplifybackend#NotFoundException": return [3
|
|
3563
|
-
case "TooManyRequestsException": return [3
|
|
3564
|
-
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3
|
|
3565
|
-
}
|
|
3566
|
-
return [3
|
|
3557
|
+
case "BadRequestException": return [3, 2];
|
|
3558
|
+
case "com.amazonaws.amplifybackend#BadRequestException": return [3, 2];
|
|
3559
|
+
case "GatewayTimeoutException": return [3, 4];
|
|
3560
|
+
case "com.amazonaws.amplifybackend#GatewayTimeoutException": return [3, 4];
|
|
3561
|
+
case "NotFoundException": return [3, 6];
|
|
3562
|
+
case "com.amazonaws.amplifybackend#NotFoundException": return [3, 6];
|
|
3563
|
+
case "TooManyRequestsException": return [3, 8];
|
|
3564
|
+
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
3565
|
+
}
|
|
3566
|
+
return [3, 10];
|
|
3567
3567
|
case 2:
|
|
3568
3568
|
_c = [{}];
|
|
3569
|
-
return [4
|
|
3569
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3570
3570
|
case 3:
|
|
3571
3571
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3572
|
-
return [3
|
|
3572
|
+
return [3, 11];
|
|
3573
3573
|
case 4:
|
|
3574
3574
|
_d = [{}];
|
|
3575
|
-
return [4
|
|
3575
|
+
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3576
3576
|
case 5:
|
|
3577
3577
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3578
|
-
return [3
|
|
3578
|
+
return [3, 11];
|
|
3579
3579
|
case 6:
|
|
3580
3580
|
_e = [{}];
|
|
3581
|
-
return [4
|
|
3581
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3582
3582
|
case 7:
|
|
3583
3583
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3584
|
-
return [3
|
|
3584
|
+
return [3, 11];
|
|
3585
3585
|
case 8:
|
|
3586
3586
|
_f = [{}];
|
|
3587
|
-
return [4
|
|
3587
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3588
3588
|
case 9:
|
|
3589
3589
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3590
|
-
return [3
|
|
3590
|
+
return [3, 11];
|
|
3591
3591
|
case 10:
|
|
3592
3592
|
parsedBody = parsedOutput.body;
|
|
3593
3593
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3597,7 +3597,7 @@ var deserializeAws_restJson1UpdateBackendJobCommandError = function (output, con
|
|
|
3597
3597
|
message = response.message || response.Message || errorCode;
|
|
3598
3598
|
response.message = message;
|
|
3599
3599
|
delete response.Message;
|
|
3600
|
-
return [2
|
|
3600
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3601
3601
|
}
|
|
3602
3602
|
});
|
|
3603
3603
|
}); };
|
|
@@ -3614,7 +3614,7 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
3614
3614
|
if (data.message !== undefined && data.message !== null) {
|
|
3615
3615
|
contents.Message = __expectString(data.message);
|
|
3616
3616
|
}
|
|
3617
|
-
return [2
|
|
3617
|
+
return [2, contents];
|
|
3618
3618
|
});
|
|
3619
3619
|
}); };
|
|
3620
3620
|
var deserializeAws_restJson1GatewayTimeoutExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3630,7 +3630,7 @@ var deserializeAws_restJson1GatewayTimeoutExceptionResponse = function (parsedOu
|
|
|
3630
3630
|
if (data.message !== undefined && data.message !== null) {
|
|
3631
3631
|
contents.Message = __expectString(data.message);
|
|
3632
3632
|
}
|
|
3633
|
-
return [2
|
|
3633
|
+
return [2, contents];
|
|
3634
3634
|
});
|
|
3635
3635
|
}); };
|
|
3636
3636
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3650,7 +3650,7 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
3650
3650
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
3651
3651
|
contents.ResourceType = __expectString(data.resourceType);
|
|
3652
3652
|
}
|
|
3653
|
-
return [2
|
|
3653
|
+
return [2, contents];
|
|
3654
3654
|
});
|
|
3655
3655
|
}); };
|
|
3656
3656
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3670,7 +3670,7 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
|
|
|
3670
3670
|
if (data.message !== undefined && data.message !== null) {
|
|
3671
3671
|
contents.Message = __expectString(data.message);
|
|
3672
3672
|
}
|
|
3673
|
-
return [2
|
|
3673
|
+
return [2, contents];
|
|
3674
3674
|
});
|
|
3675
3675
|
}); };
|
|
3676
3676
|
var serializeAws_restJson1BackendAPIAppSyncAuthSettings = function (input, context) {
|
|
@@ -4200,7 +4200,6 @@ var deserializeMetadata = function (output) {
|
|
|
4200
4200
|
cfId: output.headers["x-amz-cf-id"],
|
|
4201
4201
|
});
|
|
4202
4202
|
};
|
|
4203
|
-
// Collect low-level response body stream to Uint8Array.
|
|
4204
4203
|
var collectBody = function (streamBody, context) {
|
|
4205
4204
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
4206
4205
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -4208,7 +4207,6 @@ var collectBody = function (streamBody, context) {
|
|
|
4208
4207
|
}
|
|
4209
4208
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4210
4209
|
};
|
|
4211
|
-
// Encode Uint8Array data into string with utf-8.
|
|
4212
4210
|
var collectBodyString = function (streamBody, context) {
|
|
4213
4211
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
4214
4212
|
};
|
|
@@ -4227,9 +4225,6 @@ var parseBody = function (streamBody, context) {
|
|
|
4227
4225
|
return {};
|
|
4228
4226
|
});
|
|
4229
4227
|
};
|
|
4230
|
-
/**
|
|
4231
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
4232
|
-
*/
|
|
4233
4228
|
var loadRestJsonErrorCode = function (output, data) {
|
|
4234
4229
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4235
4230
|
var sanitizeErrorCode = function (rawValue) {
|