@aws-sdk/client-chime-sdk-identity 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}/ChimeSDKIdentity.js +1 -1
- package/dist-cjs/ChimeSDKIdentity.js.map +1 -0
- package/{dist/cjs → dist-cjs}/ChimeSDKIdentityClient.js +14 -14
- package/dist-cjs/ChimeSDKIdentityClient.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateAppInstanceAdminCommand.js +5 -5
- package/dist-cjs/commands/CreateAppInstanceAdminCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateAppInstanceCommand.js +5 -5
- package/dist-cjs/commands/CreateAppInstanceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateAppInstanceUserCommand.js +5 -5
- package/dist-cjs/commands/CreateAppInstanceUserCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteAppInstanceAdminCommand.js +5 -5
- package/dist-cjs/commands/DeleteAppInstanceAdminCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteAppInstanceCommand.js +5 -5
- package/dist-cjs/commands/DeleteAppInstanceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteAppInstanceUserCommand.js +5 -5
- package/dist-cjs/commands/DeleteAppInstanceUserCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeAppInstanceAdminCommand.js +5 -5
- package/dist-cjs/commands/DescribeAppInstanceAdminCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeAppInstanceCommand.js +5 -5
- package/dist-cjs/commands/DescribeAppInstanceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeAppInstanceUserCommand.js +5 -5
- package/dist-cjs/commands/DescribeAppInstanceUserCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetAppInstanceRetentionSettingsCommand.js +5 -5
- package/dist-cjs/commands/GetAppInstanceRetentionSettingsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListAppInstanceAdminsCommand.js +5 -5
- package/dist-cjs/commands/ListAppInstanceAdminsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListAppInstanceUsersCommand.js +5 -5
- package/dist-cjs/commands/ListAppInstanceUsersCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListAppInstancesCommand.js +5 -5
- package/dist-cjs/commands/ListAppInstancesCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/PutAppInstanceRetentionSettingsCommand.js +5 -5
- package/dist-cjs/commands/PutAppInstanceRetentionSettingsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateAppInstanceCommand.js +5 -5
- package/dist-cjs/commands/UpdateAppInstanceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateAppInstanceUserCommand.js +5 -5
- package/dist-cjs/commands/UpdateAppInstanceUserCommand.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 +27 -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}/pagination/Interfaces.js +0 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js.map +1 -1
- package/{dist/cjs → dist-cjs}/pagination/ListAppInstanceAdminsPaginator.js +0 -0
- package/dist-cjs/pagination/ListAppInstanceAdminsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListAppInstanceUsersPaginator.js +0 -0
- package/dist-cjs/pagination/ListAppInstanceUsersPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListAppInstancesPaginator.js +0 -0
- package/dist-cjs/pagination/ListAppInstancesPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +82 -82
- 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}/ChimeSDKIdentity.js +2 -8
- package/dist-es/ChimeSDKIdentity.js.map +1 -0
- package/{dist/es → dist-es}/ChimeSDKIdentityClient.js +2 -13
- package/dist-es/ChimeSDKIdentityClient.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateAppInstanceAdminCommand.js +4 -45
- package/dist-es/commands/CreateAppInstanceAdminCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateAppInstanceCommand.js +4 -32
- package/dist-es/commands/CreateAppInstanceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateAppInstanceUserCommand.js +4 -30
- package/dist-es/commands/CreateAppInstanceUserCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteAppInstanceAdminCommand.js +4 -30
- package/dist-es/commands/DeleteAppInstanceAdminCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteAppInstanceCommand.js +4 -29
- package/dist-es/commands/DeleteAppInstanceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteAppInstanceUserCommand.js +4 -29
- package/dist-es/commands/DeleteAppInstanceUserCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeAppInstanceAdminCommand.js +4 -29
- package/dist-es/commands/DescribeAppInstanceAdminCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeAppInstanceCommand.js +4 -29
- package/dist-es/commands/DescribeAppInstanceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeAppInstanceUserCommand.js +4 -29
- package/dist-es/commands/DescribeAppInstanceUserCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetAppInstanceRetentionSettingsCommand.js +4 -29
- package/dist-es/commands/GetAppInstanceRetentionSettingsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListAppInstanceAdminsCommand.js +4 -29
- package/dist-es/commands/ListAppInstanceAdminsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListAppInstanceUsersCommand.js +4 -30
- package/dist-es/commands/ListAppInstanceUsersCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListAppInstancesCommand.js +4 -30
- package/dist-es/commands/ListAppInstancesCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/PutAppInstanceRetentionSettingsCommand.js +4 -30
- package/dist-es/commands/PutAppInstanceRetentionSettingsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateAppInstanceCommand.js +4 -29
- package/dist-es/commands/UpdateAppInstanceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateAppInstanceUserCommand.js +4 -30
- package/dist-es/commands/UpdateAppInstanceUserCommand.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 -141
- package/dist-es/models/models_0.js.map +1 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js.map +1 -1
- package/{dist/es → dist-es}/pagination/ListAppInstanceAdminsPaginator.js +16 -28
- package/dist-es/pagination/ListAppInstanceAdminsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListAppInstanceUsersPaginator.js +16 -28
- package/dist-es/pagination/ListAppInstanceUsersPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListAppInstancesPaginator.js +16 -28
- package/dist-es/pagination/ListAppInstancesPaginator.js.map +1 -0
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +596 -601
- 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}/ChimeSDKIdentity.d.ts +2 -2
- package/{dist/types → dist-types}/ChimeSDKIdentityClient.d.ts +9 -9
- package/{dist/types → dist-types}/commands/CreateAppInstanceAdminCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateAppInstanceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateAppInstanceUserCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteAppInstanceAdminCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteAppInstanceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteAppInstanceUserCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeAppInstanceAdminCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeAppInstanceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeAppInstanceUserCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetAppInstanceRetentionSettingsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListAppInstanceAdminsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListAppInstanceUsersCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListAppInstancesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutAppInstanceRetentionSettingsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateAppInstanceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateAppInstanceUserCommand.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}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAppInstanceAdminsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAppInstanceUsersPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAppInstancesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +3 -3
- 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/ChimeSDKIdentity.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/ChimeSDKIdentityClient.d.ts +9 -9
- package/{dist/types → dist-types}/ts3.4/commands/CreateAppInstanceAdminCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateAppInstanceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateAppInstanceUserCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteAppInstanceAdminCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteAppInstanceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteAppInstanceUserCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeAppInstanceAdminCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeAppInstanceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeAppInstanceUserCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetAppInstanceRetentionSettingsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListAppInstanceAdminsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListAppInstanceUsersCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListAppInstancesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PutAppInstanceRetentionSettingsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateAppInstanceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateAppInstanceUserCommand.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/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListAppInstanceAdminsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListAppInstanceUsersPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListAppInstancesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +3 -3
- 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/{ChimeSDKIdentity.ts → src/ChimeSDKIdentity.ts} +7 -6
- package/{ChimeSDKIdentityClient.ts → src/ChimeSDKIdentityClient.ts} +59 -58
- package/{commands → src/commands}/CreateAppInstanceAdminCommand.ts +8 -7
- package/{commands → src/commands}/CreateAppInstanceCommand.ts +8 -7
- package/{commands → src/commands}/CreateAppInstanceUserCommand.ts +8 -7
- package/{commands → src/commands}/DeleteAppInstanceAdminCommand.ts +8 -7
- package/{commands → src/commands}/DeleteAppInstanceCommand.ts +8 -7
- package/{commands → src/commands}/DeleteAppInstanceUserCommand.ts +8 -7
- package/{commands → src/commands}/DescribeAppInstanceAdminCommand.ts +8 -7
- package/{commands → src/commands}/DescribeAppInstanceCommand.ts +8 -7
- package/{commands → src/commands}/DescribeAppInstanceUserCommand.ts +8 -7
- package/{commands → src/commands}/GetAppInstanceRetentionSettingsCommand.ts +8 -7
- package/{commands → src/commands}/ListAppInstanceAdminsCommand.ts +8 -7
- package/{commands → src/commands}/ListAppInstanceUsersCommand.ts +8 -7
- package/{commands → src/commands}/ListAppInstancesCommand.ts +8 -7
- package/{commands → src/commands}/PutAppInstanceRetentionSettingsCommand.ts +8 -7
- package/{commands → src/commands}/UpdateAppInstanceCommand.ts +8 -7
- package/{commands → src/commands}/UpdateAppInstanceUserCommand.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/{pagination → src/pagination}/Interfaces.ts +2 -1
- package/{pagination → src/pagination}/ListAppInstanceAdminsPaginator.ts +2 -1
- package/{pagination → src/pagination}/ListAppInstanceUsersPaginator.ts +2 -1
- package/{pagination → src/pagination}/ListAppInstancesPaginator.ts +2 -1
- package/{protocols → src/protocols}/Aws_restJson1.ts +40 -39
- 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/ChimeSDKIdentity.js.map +0 -1
- package/dist/cjs/ChimeSDKIdentityClient.js.map +0 -1
- package/dist/cjs/commands/CreateAppInstanceAdminCommand.js.map +0 -1
- package/dist/cjs/commands/CreateAppInstanceCommand.js.map +0 -1
- package/dist/cjs/commands/CreateAppInstanceUserCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteAppInstanceAdminCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteAppInstanceCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteAppInstanceUserCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeAppInstanceAdminCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeAppInstanceCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeAppInstanceUserCommand.js.map +0 -1
- package/dist/cjs/commands/GetAppInstanceRetentionSettingsCommand.js.map +0 -1
- package/dist/cjs/commands/ListAppInstanceAdminsCommand.js.map +0 -1
- package/dist/cjs/commands/ListAppInstanceUsersCommand.js.map +0 -1
- package/dist/cjs/commands/ListAppInstancesCommand.js.map +0 -1
- package/dist/cjs/commands/PutAppInstanceRetentionSettingsCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateAppInstanceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateAppInstanceUserCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js +0 -27
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -93
- package/dist/cjs/pagination/ListAppInstanceAdminsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListAppInstanceUsersPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListAppInstancesPaginator.js.map +0 -1
- 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/ChimeSDKIdentity.js.map +0 -1
- package/dist/es/ChimeSDKIdentityClient.js.map +0 -1
- package/dist/es/commands/CreateAppInstanceAdminCommand.js.map +0 -1
- package/dist/es/commands/CreateAppInstanceCommand.js.map +0 -1
- package/dist/es/commands/CreateAppInstanceUserCommand.js.map +0 -1
- package/dist/es/commands/DeleteAppInstanceAdminCommand.js.map +0 -1
- package/dist/es/commands/DeleteAppInstanceCommand.js.map +0 -1
- package/dist/es/commands/DeleteAppInstanceUserCommand.js.map +0 -1
- package/dist/es/commands/DescribeAppInstanceAdminCommand.js.map +0 -1
- package/dist/es/commands/DescribeAppInstanceCommand.js.map +0 -1
- package/dist/es/commands/DescribeAppInstanceUserCommand.js.map +0 -1
- package/dist/es/commands/GetAppInstanceRetentionSettingsCommand.js.map +0 -1
- package/dist/es/commands/ListAppInstanceAdminsCommand.js.map +0 -1
- package/dist/es/commands/ListAppInstanceUsersCommand.js.map +0 -1
- package/dist/es/commands/ListAppInstancesCommand.js.map +0 -1
- package/dist/es/commands/PutAppInstanceRetentionSettingsCommand.js.map +0 -1
- package/dist/es/commands/UpdateAppInstanceCommand.js.map +0 -1
- package/dist/es/commands/UpdateAppInstanceUserCommand.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 -93
- package/dist/es/pagination/ListAppInstanceAdminsPaginator.js.map +0 -1
- package/dist/es/pagination/ListAppInstanceUsersPaginator.js.map +0 -1
- package/dist/es/pagination/ListAppInstancesPaginator.js.map +0 -1
- 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
|
@@ -7,7 +7,7 @@ export var serializeAws_restJson1CreateAppInstanceCommand = function (input, con
|
|
|
7
7
|
var _c;
|
|
8
8
|
return __generator(this, function (_d) {
|
|
9
9
|
switch (_d.label) {
|
|
10
|
-
case 0: return [4
|
|
10
|
+
case 0: return [4, context.endpoint()];
|
|
11
11
|
case 1:
|
|
12
12
|
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
13
13
|
headers = {
|
|
@@ -16,7 +16,7 @@ export var serializeAws_restJson1CreateAppInstanceCommand = function (input, con
|
|
|
16
16
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instances";
|
|
17
17
|
body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
|
|
18
18
|
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
19
|
-
return [2
|
|
19
|
+
return [2, new __HttpRequest({
|
|
20
20
|
protocol: protocol,
|
|
21
21
|
hostname: hostname,
|
|
22
22
|
port: port,
|
|
@@ -32,7 +32,7 @@ export var serializeAws_restJson1CreateAppInstanceAdminCommand = function (input
|
|
|
32
32
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
33
33
|
return __generator(this, function (_c) {
|
|
34
34
|
switch (_c.label) {
|
|
35
|
-
case 0: return [4
|
|
35
|
+
case 0: return [4, context.endpoint()];
|
|
36
36
|
case 1:
|
|
37
37
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
38
38
|
headers = {
|
|
@@ -51,7 +51,7 @@ export var serializeAws_restJson1CreateAppInstanceAdminCommand = function (input
|
|
|
51
51
|
}
|
|
52
52
|
body = JSON.stringify(__assign({}, (input.AppInstanceAdminArn !== undefined &&
|
|
53
53
|
input.AppInstanceAdminArn !== null && { AppInstanceAdminArn: input.AppInstanceAdminArn })));
|
|
54
|
-
return [2
|
|
54
|
+
return [2, new __HttpRequest({
|
|
55
55
|
protocol: protocol,
|
|
56
56
|
hostname: hostname,
|
|
57
57
|
port: port,
|
|
@@ -68,7 +68,7 @@ export var serializeAws_restJson1CreateAppInstanceUserCommand = function (input,
|
|
|
68
68
|
var _c;
|
|
69
69
|
return __generator(this, function (_d) {
|
|
70
70
|
switch (_d.label) {
|
|
71
|
-
case 0: return [4
|
|
71
|
+
case 0: return [4, context.endpoint()];
|
|
72
72
|
case 1:
|
|
73
73
|
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
74
74
|
headers = {
|
|
@@ -79,7 +79,7 @@ export var serializeAws_restJson1CreateAppInstanceUserCommand = function (input,
|
|
|
79
79
|
input.AppInstanceArn !== null && { AppInstanceArn: input.AppInstanceArn })), (input.AppInstanceUserId !== undefined &&
|
|
80
80
|
input.AppInstanceUserId !== null && { AppInstanceUserId: input.AppInstanceUserId })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
|
|
81
81
|
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
82
|
-
return [2
|
|
82
|
+
return [2, new __HttpRequest({
|
|
83
83
|
protocol: protocol,
|
|
84
84
|
hostname: hostname,
|
|
85
85
|
port: port,
|
|
@@ -95,7 +95,7 @@ export var serializeAws_restJson1DeleteAppInstanceCommand = function (input, con
|
|
|
95
95
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
96
96
|
return __generator(this, function (_c) {
|
|
97
97
|
switch (_c.label) {
|
|
98
|
-
case 0: return [4
|
|
98
|
+
case 0: return [4, context.endpoint()];
|
|
99
99
|
case 1:
|
|
100
100
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
101
101
|
headers = {};
|
|
@@ -110,7 +110,7 @@ export var serializeAws_restJson1DeleteAppInstanceCommand = function (input, con
|
|
|
110
110
|
else {
|
|
111
111
|
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
112
112
|
}
|
|
113
|
-
return [2
|
|
113
|
+
return [2, new __HttpRequest({
|
|
114
114
|
protocol: protocol,
|
|
115
115
|
hostname: hostname,
|
|
116
116
|
port: port,
|
|
@@ -126,7 +126,7 @@ export var serializeAws_restJson1DeleteAppInstanceAdminCommand = function (input
|
|
|
126
126
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
127
127
|
return __generator(this, function (_c) {
|
|
128
128
|
switch (_c.label) {
|
|
129
|
-
case 0: return [4
|
|
129
|
+
case 0: return [4, context.endpoint()];
|
|
130
130
|
case 1:
|
|
131
131
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
132
132
|
headers = {};
|
|
@@ -152,7 +152,7 @@ export var serializeAws_restJson1DeleteAppInstanceAdminCommand = function (input
|
|
|
152
152
|
else {
|
|
153
153
|
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
154
154
|
}
|
|
155
|
-
return [2
|
|
155
|
+
return [2, new __HttpRequest({
|
|
156
156
|
protocol: protocol,
|
|
157
157
|
hostname: hostname,
|
|
158
158
|
port: port,
|
|
@@ -168,7 +168,7 @@ export var serializeAws_restJson1DeleteAppInstanceUserCommand = function (input,
|
|
|
168
168
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
169
169
|
return __generator(this, function (_c) {
|
|
170
170
|
switch (_c.label) {
|
|
171
|
-
case 0: return [4
|
|
171
|
+
case 0: return [4, context.endpoint()];
|
|
172
172
|
case 1:
|
|
173
173
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
174
174
|
headers = {};
|
|
@@ -183,7 +183,7 @@ export var serializeAws_restJson1DeleteAppInstanceUserCommand = function (input,
|
|
|
183
183
|
else {
|
|
184
184
|
throw new Error("No value provided for input HTTP label: AppInstanceUserArn.");
|
|
185
185
|
}
|
|
186
|
-
return [2
|
|
186
|
+
return [2, new __HttpRequest({
|
|
187
187
|
protocol: protocol,
|
|
188
188
|
hostname: hostname,
|
|
189
189
|
port: port,
|
|
@@ -199,7 +199,7 @@ export var serializeAws_restJson1DescribeAppInstanceCommand = function (input, c
|
|
|
199
199
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
200
200
|
return __generator(this, function (_c) {
|
|
201
201
|
switch (_c.label) {
|
|
202
|
-
case 0: return [4
|
|
202
|
+
case 0: return [4, context.endpoint()];
|
|
203
203
|
case 1:
|
|
204
204
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
205
205
|
headers = {};
|
|
@@ -214,7 +214,7 @@ export var serializeAws_restJson1DescribeAppInstanceCommand = function (input, c
|
|
|
214
214
|
else {
|
|
215
215
|
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
216
216
|
}
|
|
217
|
-
return [2
|
|
217
|
+
return [2, new __HttpRequest({
|
|
218
218
|
protocol: protocol,
|
|
219
219
|
hostname: hostname,
|
|
220
220
|
port: port,
|
|
@@ -230,7 +230,7 @@ export var serializeAws_restJson1DescribeAppInstanceAdminCommand = function (inp
|
|
|
230
230
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
231
231
|
return __generator(this, function (_c) {
|
|
232
232
|
switch (_c.label) {
|
|
233
|
-
case 0: return [4
|
|
233
|
+
case 0: return [4, context.endpoint()];
|
|
234
234
|
case 1:
|
|
235
235
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
236
236
|
headers = {};
|
|
@@ -256,7 +256,7 @@ export var serializeAws_restJson1DescribeAppInstanceAdminCommand = function (inp
|
|
|
256
256
|
else {
|
|
257
257
|
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
258
258
|
}
|
|
259
|
-
return [2
|
|
259
|
+
return [2, new __HttpRequest({
|
|
260
260
|
protocol: protocol,
|
|
261
261
|
hostname: hostname,
|
|
262
262
|
port: port,
|
|
@@ -272,7 +272,7 @@ export var serializeAws_restJson1DescribeAppInstanceUserCommand = function (inpu
|
|
|
272
272
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
273
273
|
return __generator(this, function (_c) {
|
|
274
274
|
switch (_c.label) {
|
|
275
|
-
case 0: return [4
|
|
275
|
+
case 0: return [4, context.endpoint()];
|
|
276
276
|
case 1:
|
|
277
277
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
278
278
|
headers = {};
|
|
@@ -287,7 +287,7 @@ export var serializeAws_restJson1DescribeAppInstanceUserCommand = function (inpu
|
|
|
287
287
|
else {
|
|
288
288
|
throw new Error("No value provided for input HTTP label: AppInstanceUserArn.");
|
|
289
289
|
}
|
|
290
|
-
return [2
|
|
290
|
+
return [2, new __HttpRequest({
|
|
291
291
|
protocol: protocol,
|
|
292
292
|
hostname: hostname,
|
|
293
293
|
port: port,
|
|
@@ -303,7 +303,7 @@ export var serializeAws_restJson1GetAppInstanceRetentionSettingsCommand = functi
|
|
|
303
303
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
304
304
|
return __generator(this, function (_c) {
|
|
305
305
|
switch (_c.label) {
|
|
306
|
-
case 0: return [4
|
|
306
|
+
case 0: return [4, context.endpoint()];
|
|
307
307
|
case 1:
|
|
308
308
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
309
309
|
headers = {};
|
|
@@ -319,7 +319,7 @@ export var serializeAws_restJson1GetAppInstanceRetentionSettingsCommand = functi
|
|
|
319
319
|
else {
|
|
320
320
|
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
321
321
|
}
|
|
322
|
-
return [2
|
|
322
|
+
return [2, new __HttpRequest({
|
|
323
323
|
protocol: protocol,
|
|
324
324
|
hostname: hostname,
|
|
325
325
|
port: port,
|
|
@@ -335,7 +335,7 @@ export var serializeAws_restJson1ListAppInstanceAdminsCommand = function (input,
|
|
|
335
335
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
336
336
|
return __generator(this, function (_c) {
|
|
337
337
|
switch (_c.label) {
|
|
338
|
-
case 0: return [4
|
|
338
|
+
case 0: return [4, context.endpoint()];
|
|
339
339
|
case 1:
|
|
340
340
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
341
341
|
headers = {};
|
|
@@ -351,7 +351,7 @@ export var serializeAws_restJson1ListAppInstanceAdminsCommand = function (input,
|
|
|
351
351
|
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
352
352
|
}
|
|
353
353
|
query = __assign(__assign({}, (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken }));
|
|
354
|
-
return [2
|
|
354
|
+
return [2, new __HttpRequest({
|
|
355
355
|
protocol: protocol,
|
|
356
356
|
hostname: hostname,
|
|
357
357
|
port: port,
|
|
@@ -368,13 +368,13 @@ export var serializeAws_restJson1ListAppInstancesCommand = function (input, cont
|
|
|
368
368
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
369
369
|
return __generator(this, function (_c) {
|
|
370
370
|
switch (_c.label) {
|
|
371
|
-
case 0: return [4
|
|
371
|
+
case 0: return [4, context.endpoint()];
|
|
372
372
|
case 1:
|
|
373
373
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
374
374
|
headers = {};
|
|
375
375
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instances";
|
|
376
376
|
query = __assign(__assign({}, (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken }));
|
|
377
|
-
return [2
|
|
377
|
+
return [2, new __HttpRequest({
|
|
378
378
|
protocol: protocol,
|
|
379
379
|
hostname: hostname,
|
|
380
380
|
port: port,
|
|
@@ -391,13 +391,13 @@ export var serializeAws_restJson1ListAppInstanceUsersCommand = function (input,
|
|
|
391
391
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
392
392
|
return __generator(this, function (_c) {
|
|
393
393
|
switch (_c.label) {
|
|
394
|
-
case 0: return [4
|
|
394
|
+
case 0: return [4, context.endpoint()];
|
|
395
395
|
case 1:
|
|
396
396
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
397
397
|
headers = {};
|
|
398
398
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/app-instance-users";
|
|
399
399
|
query = __assign(__assign(__assign({}, (input.AppInstanceArn !== undefined && { "app-instance-arn": input.AppInstanceArn })), (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken }));
|
|
400
|
-
return [2
|
|
400
|
+
return [2, new __HttpRequest({
|
|
401
401
|
protocol: protocol,
|
|
402
402
|
hostname: hostname,
|
|
403
403
|
port: port,
|
|
@@ -414,7 +414,7 @@ export var serializeAws_restJson1PutAppInstanceRetentionSettingsCommand = functi
|
|
|
414
414
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
415
415
|
return __generator(this, function (_c) {
|
|
416
416
|
switch (_c.label) {
|
|
417
|
-
case 0: return [4
|
|
417
|
+
case 0: return [4, context.endpoint()];
|
|
418
418
|
case 1:
|
|
419
419
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
420
420
|
headers = {
|
|
@@ -436,7 +436,7 @@ export var serializeAws_restJson1PutAppInstanceRetentionSettingsCommand = functi
|
|
|
436
436
|
input.AppInstanceRetentionSettings !== null && {
|
|
437
437
|
AppInstanceRetentionSettings: serializeAws_restJson1AppInstanceRetentionSettings(input.AppInstanceRetentionSettings, context),
|
|
438
438
|
})));
|
|
439
|
-
return [2
|
|
439
|
+
return [2, new __HttpRequest({
|
|
440
440
|
protocol: protocol,
|
|
441
441
|
hostname: hostname,
|
|
442
442
|
port: port,
|
|
@@ -452,7 +452,7 @@ export var serializeAws_restJson1UpdateAppInstanceCommand = function (input, con
|
|
|
452
452
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
453
453
|
return __generator(this, function (_c) {
|
|
454
454
|
switch (_c.label) {
|
|
455
|
-
case 0: return [4
|
|
455
|
+
case 0: return [4, context.endpoint()];
|
|
456
456
|
case 1:
|
|
457
457
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
458
458
|
headers = {
|
|
@@ -470,7 +470,7 @@ export var serializeAws_restJson1UpdateAppInstanceCommand = function (input, con
|
|
|
470
470
|
throw new Error("No value provided for input HTTP label: AppInstanceArn.");
|
|
471
471
|
}
|
|
472
472
|
body = JSON.stringify(__assign(__assign({}, (input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
|
|
473
|
-
return [2
|
|
473
|
+
return [2, new __HttpRequest({
|
|
474
474
|
protocol: protocol,
|
|
475
475
|
hostname: hostname,
|
|
476
476
|
port: port,
|
|
@@ -486,7 +486,7 @@ export var serializeAws_restJson1UpdateAppInstanceUserCommand = function (input,
|
|
|
486
486
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
487
487
|
return __generator(this, function (_c) {
|
|
488
488
|
switch (_c.label) {
|
|
489
|
-
case 0: return [4
|
|
489
|
+
case 0: return [4, context.endpoint()];
|
|
490
490
|
case 1:
|
|
491
491
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
492
492
|
headers = {
|
|
@@ -504,7 +504,7 @@ export var serializeAws_restJson1UpdateAppInstanceUserCommand = function (input,
|
|
|
504
504
|
throw new Error("No value provided for input HTTP label: AppInstanceUserArn.");
|
|
505
505
|
}
|
|
506
506
|
body = JSON.stringify(__assign(__assign({}, (input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
|
|
507
|
-
return [2
|
|
507
|
+
return [2, new __HttpRequest({
|
|
508
508
|
protocol: protocol,
|
|
509
509
|
hostname: hostname,
|
|
510
510
|
port: port,
|
|
@@ -522,7 +522,7 @@ export var deserializeAws_restJson1CreateAppInstanceCommand = function (output,
|
|
|
522
522
|
switch (_c.label) {
|
|
523
523
|
case 0:
|
|
524
524
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
525
|
-
return [2
|
|
525
|
+
return [2, deserializeAws_restJson1CreateAppInstanceCommandError(output, context)];
|
|
526
526
|
}
|
|
527
527
|
contents = {
|
|
528
528
|
$metadata: deserializeMetadata(output),
|
|
@@ -530,13 +530,13 @@ export var deserializeAws_restJson1CreateAppInstanceCommand = function (output,
|
|
|
530
530
|
};
|
|
531
531
|
_a = __expectNonNull;
|
|
532
532
|
_b = __expectObject;
|
|
533
|
-
return [4
|
|
533
|
+
return [4, parseBody(output.body, context)];
|
|
534
534
|
case 1:
|
|
535
535
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
536
536
|
if (data.AppInstanceArn !== undefined && data.AppInstanceArn !== null) {
|
|
537
537
|
contents.AppInstanceArn = __expectString(data.AppInstanceArn);
|
|
538
538
|
}
|
|
539
|
-
return [2
|
|
539
|
+
return [2, Promise.resolve(contents)];
|
|
540
540
|
}
|
|
541
541
|
});
|
|
542
542
|
}); };
|
|
@@ -548,79 +548,79 @@ var deserializeAws_restJson1CreateAppInstanceCommandError = function (output, co
|
|
|
548
548
|
case 0:
|
|
549
549
|
_a = [__assign({}, output)];
|
|
550
550
|
_l = {};
|
|
551
|
-
return [4
|
|
551
|
+
return [4, parseBody(output.body, context)];
|
|
552
552
|
case 1:
|
|
553
553
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
554
554
|
errorCode = "UnknownError";
|
|
555
555
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
556
556
|
_b = errorCode;
|
|
557
557
|
switch (_b) {
|
|
558
|
-
case "BadRequestException": return [3
|
|
559
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3
|
|
560
|
-
case "ConflictException": return [3
|
|
561
|
-
case "com.amazonaws.chimesdkidentity#ConflictException": return [3
|
|
562
|
-
case "ForbiddenException": return [3
|
|
563
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3
|
|
564
|
-
case "ResourceLimitExceededException": return [3
|
|
565
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3
|
|
566
|
-
case "ServiceFailureException": return [3
|
|
567
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3
|
|
568
|
-
case "ServiceUnavailableException": return [3
|
|
569
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3
|
|
570
|
-
case "ThrottledClientException": return [3
|
|
571
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3
|
|
572
|
-
case "UnauthorizedClientException": return [3
|
|
573
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3
|
|
574
|
-
}
|
|
575
|
-
return [3
|
|
558
|
+
case "BadRequestException": return [3, 2];
|
|
559
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
560
|
+
case "ConflictException": return [3, 4];
|
|
561
|
+
case "com.amazonaws.chimesdkidentity#ConflictException": return [3, 4];
|
|
562
|
+
case "ForbiddenException": return [3, 6];
|
|
563
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 6];
|
|
564
|
+
case "ResourceLimitExceededException": return [3, 8];
|
|
565
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3, 8];
|
|
566
|
+
case "ServiceFailureException": return [3, 10];
|
|
567
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 10];
|
|
568
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
569
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 12];
|
|
570
|
+
case "ThrottledClientException": return [3, 14];
|
|
571
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 14];
|
|
572
|
+
case "UnauthorizedClientException": return [3, 16];
|
|
573
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 16];
|
|
574
|
+
}
|
|
575
|
+
return [3, 18];
|
|
576
576
|
case 2:
|
|
577
577
|
_c = [{}];
|
|
578
|
-
return [4
|
|
578
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
579
579
|
case 3:
|
|
580
580
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
581
|
-
return [3
|
|
581
|
+
return [3, 19];
|
|
582
582
|
case 4:
|
|
583
583
|
_d = [{}];
|
|
584
|
-
return [4
|
|
584
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
585
585
|
case 5:
|
|
586
586
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
587
|
-
return [3
|
|
587
|
+
return [3, 19];
|
|
588
588
|
case 6:
|
|
589
589
|
_e = [{}];
|
|
590
|
-
return [4
|
|
590
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
591
591
|
case 7:
|
|
592
592
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
593
|
-
return [3
|
|
593
|
+
return [3, 19];
|
|
594
594
|
case 8:
|
|
595
595
|
_f = [{}];
|
|
596
|
-
return [4
|
|
596
|
+
return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
597
597
|
case 9:
|
|
598
598
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
599
|
-
return [3
|
|
599
|
+
return [3, 19];
|
|
600
600
|
case 10:
|
|
601
601
|
_g = [{}];
|
|
602
|
-
return [4
|
|
602
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
603
603
|
case 11:
|
|
604
604
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
605
|
-
return [3
|
|
605
|
+
return [3, 19];
|
|
606
606
|
case 12:
|
|
607
607
|
_h = [{}];
|
|
608
|
-
return [4
|
|
608
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
609
609
|
case 13:
|
|
610
610
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
611
|
-
return [3
|
|
611
|
+
return [3, 19];
|
|
612
612
|
case 14:
|
|
613
613
|
_j = [{}];
|
|
614
|
-
return [4
|
|
614
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
615
615
|
case 15:
|
|
616
616
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
617
|
-
return [3
|
|
617
|
+
return [3, 19];
|
|
618
618
|
case 16:
|
|
619
619
|
_k = [{}];
|
|
620
|
-
return [4
|
|
620
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
621
621
|
case 17:
|
|
622
622
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
623
|
-
return [3
|
|
623
|
+
return [3, 19];
|
|
624
624
|
case 18:
|
|
625
625
|
parsedBody = parsedOutput.body;
|
|
626
626
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -630,7 +630,7 @@ var deserializeAws_restJson1CreateAppInstanceCommandError = function (output, co
|
|
|
630
630
|
message = response.message || response.Message || errorCode;
|
|
631
631
|
response.message = message;
|
|
632
632
|
delete response.Message;
|
|
633
|
-
return [2
|
|
633
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
634
634
|
}
|
|
635
635
|
});
|
|
636
636
|
}); };
|
|
@@ -640,7 +640,7 @@ export var deserializeAws_restJson1CreateAppInstanceAdminCommand = function (out
|
|
|
640
640
|
switch (_c.label) {
|
|
641
641
|
case 0:
|
|
642
642
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
643
|
-
return [2
|
|
643
|
+
return [2, deserializeAws_restJson1CreateAppInstanceAdminCommandError(output, context)];
|
|
644
644
|
}
|
|
645
645
|
contents = {
|
|
646
646
|
$metadata: deserializeMetadata(output),
|
|
@@ -649,7 +649,7 @@ export var deserializeAws_restJson1CreateAppInstanceAdminCommand = function (out
|
|
|
649
649
|
};
|
|
650
650
|
_a = __expectNonNull;
|
|
651
651
|
_b = __expectObject;
|
|
652
|
-
return [4
|
|
652
|
+
return [4, parseBody(output.body, context)];
|
|
653
653
|
case 1:
|
|
654
654
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
655
655
|
if (data.AppInstanceAdmin !== undefined && data.AppInstanceAdmin !== null) {
|
|
@@ -658,7 +658,7 @@ export var deserializeAws_restJson1CreateAppInstanceAdminCommand = function (out
|
|
|
658
658
|
if (data.AppInstanceArn !== undefined && data.AppInstanceArn !== null) {
|
|
659
659
|
contents.AppInstanceArn = __expectString(data.AppInstanceArn);
|
|
660
660
|
}
|
|
661
|
-
return [2
|
|
661
|
+
return [2, Promise.resolve(contents)];
|
|
662
662
|
}
|
|
663
663
|
});
|
|
664
664
|
}); };
|
|
@@ -670,79 +670,79 @@ var deserializeAws_restJson1CreateAppInstanceAdminCommandError = function (outpu
|
|
|
670
670
|
case 0:
|
|
671
671
|
_a = [__assign({}, output)];
|
|
672
672
|
_l = {};
|
|
673
|
-
return [4
|
|
673
|
+
return [4, parseBody(output.body, context)];
|
|
674
674
|
case 1:
|
|
675
675
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
676
676
|
errorCode = "UnknownError";
|
|
677
677
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
678
678
|
_b = errorCode;
|
|
679
679
|
switch (_b) {
|
|
680
|
-
case "BadRequestException": return [3
|
|
681
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3
|
|
682
|
-
case "ConflictException": return [3
|
|
683
|
-
case "com.amazonaws.chimesdkidentity#ConflictException": return [3
|
|
684
|
-
case "ForbiddenException": return [3
|
|
685
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3
|
|
686
|
-
case "ResourceLimitExceededException": return [3
|
|
687
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3
|
|
688
|
-
case "ServiceFailureException": return [3
|
|
689
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3
|
|
690
|
-
case "ServiceUnavailableException": return [3
|
|
691
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3
|
|
692
|
-
case "ThrottledClientException": return [3
|
|
693
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3
|
|
694
|
-
case "UnauthorizedClientException": return [3
|
|
695
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3
|
|
696
|
-
}
|
|
697
|
-
return [3
|
|
680
|
+
case "BadRequestException": return [3, 2];
|
|
681
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
682
|
+
case "ConflictException": return [3, 4];
|
|
683
|
+
case "com.amazonaws.chimesdkidentity#ConflictException": return [3, 4];
|
|
684
|
+
case "ForbiddenException": return [3, 6];
|
|
685
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 6];
|
|
686
|
+
case "ResourceLimitExceededException": return [3, 8];
|
|
687
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3, 8];
|
|
688
|
+
case "ServiceFailureException": return [3, 10];
|
|
689
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 10];
|
|
690
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
691
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 12];
|
|
692
|
+
case "ThrottledClientException": return [3, 14];
|
|
693
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 14];
|
|
694
|
+
case "UnauthorizedClientException": return [3, 16];
|
|
695
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 16];
|
|
696
|
+
}
|
|
697
|
+
return [3, 18];
|
|
698
698
|
case 2:
|
|
699
699
|
_c = [{}];
|
|
700
|
-
return [4
|
|
700
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
701
701
|
case 3:
|
|
702
702
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
703
|
-
return [3
|
|
703
|
+
return [3, 19];
|
|
704
704
|
case 4:
|
|
705
705
|
_d = [{}];
|
|
706
|
-
return [4
|
|
706
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
707
707
|
case 5:
|
|
708
708
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
709
|
-
return [3
|
|
709
|
+
return [3, 19];
|
|
710
710
|
case 6:
|
|
711
711
|
_e = [{}];
|
|
712
|
-
return [4
|
|
712
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
713
713
|
case 7:
|
|
714
714
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
715
|
-
return [3
|
|
715
|
+
return [3, 19];
|
|
716
716
|
case 8:
|
|
717
717
|
_f = [{}];
|
|
718
|
-
return [4
|
|
718
|
+
return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
719
719
|
case 9:
|
|
720
720
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
721
|
-
return [3
|
|
721
|
+
return [3, 19];
|
|
722
722
|
case 10:
|
|
723
723
|
_g = [{}];
|
|
724
|
-
return [4
|
|
724
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
725
725
|
case 11:
|
|
726
726
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
727
|
-
return [3
|
|
727
|
+
return [3, 19];
|
|
728
728
|
case 12:
|
|
729
729
|
_h = [{}];
|
|
730
|
-
return [4
|
|
730
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
731
731
|
case 13:
|
|
732
732
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
733
|
-
return [3
|
|
733
|
+
return [3, 19];
|
|
734
734
|
case 14:
|
|
735
735
|
_j = [{}];
|
|
736
|
-
return [4
|
|
736
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
737
737
|
case 15:
|
|
738
738
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
739
|
-
return [3
|
|
739
|
+
return [3, 19];
|
|
740
740
|
case 16:
|
|
741
741
|
_k = [{}];
|
|
742
|
-
return [4
|
|
742
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
743
743
|
case 17:
|
|
744
744
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
745
|
-
return [3
|
|
745
|
+
return [3, 19];
|
|
746
746
|
case 18:
|
|
747
747
|
parsedBody = parsedOutput.body;
|
|
748
748
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -752,7 +752,7 @@ var deserializeAws_restJson1CreateAppInstanceAdminCommandError = function (outpu
|
|
|
752
752
|
message = response.message || response.Message || errorCode;
|
|
753
753
|
response.message = message;
|
|
754
754
|
delete response.Message;
|
|
755
|
-
return [2
|
|
755
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
756
756
|
}
|
|
757
757
|
});
|
|
758
758
|
}); };
|
|
@@ -762,7 +762,7 @@ export var deserializeAws_restJson1CreateAppInstanceUserCommand = function (outp
|
|
|
762
762
|
switch (_c.label) {
|
|
763
763
|
case 0:
|
|
764
764
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
765
|
-
return [2
|
|
765
|
+
return [2, deserializeAws_restJson1CreateAppInstanceUserCommandError(output, context)];
|
|
766
766
|
}
|
|
767
767
|
contents = {
|
|
768
768
|
$metadata: deserializeMetadata(output),
|
|
@@ -770,13 +770,13 @@ export var deserializeAws_restJson1CreateAppInstanceUserCommand = function (outp
|
|
|
770
770
|
};
|
|
771
771
|
_a = __expectNonNull;
|
|
772
772
|
_b = __expectObject;
|
|
773
|
-
return [4
|
|
773
|
+
return [4, parseBody(output.body, context)];
|
|
774
774
|
case 1:
|
|
775
775
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
776
776
|
if (data.AppInstanceUserArn !== undefined && data.AppInstanceUserArn !== null) {
|
|
777
777
|
contents.AppInstanceUserArn = __expectString(data.AppInstanceUserArn);
|
|
778
778
|
}
|
|
779
|
-
return [2
|
|
779
|
+
return [2, Promise.resolve(contents)];
|
|
780
780
|
}
|
|
781
781
|
});
|
|
782
782
|
}); };
|
|
@@ -788,79 +788,79 @@ var deserializeAws_restJson1CreateAppInstanceUserCommandError = function (output
|
|
|
788
788
|
case 0:
|
|
789
789
|
_a = [__assign({}, output)];
|
|
790
790
|
_l = {};
|
|
791
|
-
return [4
|
|
791
|
+
return [4, parseBody(output.body, context)];
|
|
792
792
|
case 1:
|
|
793
793
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
794
794
|
errorCode = "UnknownError";
|
|
795
795
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
796
796
|
_b = errorCode;
|
|
797
797
|
switch (_b) {
|
|
798
|
-
case "BadRequestException": return [3
|
|
799
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3
|
|
800
|
-
case "ConflictException": return [3
|
|
801
|
-
case "com.amazonaws.chimesdkidentity#ConflictException": return [3
|
|
802
|
-
case "ForbiddenException": return [3
|
|
803
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3
|
|
804
|
-
case "ResourceLimitExceededException": return [3
|
|
805
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3
|
|
806
|
-
case "ServiceFailureException": return [3
|
|
807
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3
|
|
808
|
-
case "ServiceUnavailableException": return [3
|
|
809
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3
|
|
810
|
-
case "ThrottledClientException": return [3
|
|
811
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3
|
|
812
|
-
case "UnauthorizedClientException": return [3
|
|
813
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3
|
|
814
|
-
}
|
|
815
|
-
return [3
|
|
798
|
+
case "BadRequestException": return [3, 2];
|
|
799
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
800
|
+
case "ConflictException": return [3, 4];
|
|
801
|
+
case "com.amazonaws.chimesdkidentity#ConflictException": return [3, 4];
|
|
802
|
+
case "ForbiddenException": return [3, 6];
|
|
803
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 6];
|
|
804
|
+
case "ResourceLimitExceededException": return [3, 8];
|
|
805
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3, 8];
|
|
806
|
+
case "ServiceFailureException": return [3, 10];
|
|
807
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 10];
|
|
808
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
809
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 12];
|
|
810
|
+
case "ThrottledClientException": return [3, 14];
|
|
811
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 14];
|
|
812
|
+
case "UnauthorizedClientException": return [3, 16];
|
|
813
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 16];
|
|
814
|
+
}
|
|
815
|
+
return [3, 18];
|
|
816
816
|
case 2:
|
|
817
817
|
_c = [{}];
|
|
818
|
-
return [4
|
|
818
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
819
819
|
case 3:
|
|
820
820
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
821
|
-
return [3
|
|
821
|
+
return [3, 19];
|
|
822
822
|
case 4:
|
|
823
823
|
_d = [{}];
|
|
824
|
-
return [4
|
|
824
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
825
825
|
case 5:
|
|
826
826
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
827
|
-
return [3
|
|
827
|
+
return [3, 19];
|
|
828
828
|
case 6:
|
|
829
829
|
_e = [{}];
|
|
830
|
-
return [4
|
|
830
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
831
831
|
case 7:
|
|
832
832
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
833
|
-
return [3
|
|
833
|
+
return [3, 19];
|
|
834
834
|
case 8:
|
|
835
835
|
_f = [{}];
|
|
836
|
-
return [4
|
|
836
|
+
return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
837
837
|
case 9:
|
|
838
838
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
839
|
-
return [3
|
|
839
|
+
return [3, 19];
|
|
840
840
|
case 10:
|
|
841
841
|
_g = [{}];
|
|
842
|
-
return [4
|
|
842
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
843
843
|
case 11:
|
|
844
844
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
845
|
-
return [3
|
|
845
|
+
return [3, 19];
|
|
846
846
|
case 12:
|
|
847
847
|
_h = [{}];
|
|
848
|
-
return [4
|
|
848
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
849
849
|
case 13:
|
|
850
850
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
851
|
-
return [3
|
|
851
|
+
return [3, 19];
|
|
852
852
|
case 14:
|
|
853
853
|
_j = [{}];
|
|
854
|
-
return [4
|
|
854
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
855
855
|
case 15:
|
|
856
856
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
857
|
-
return [3
|
|
857
|
+
return [3, 19];
|
|
858
858
|
case 16:
|
|
859
859
|
_k = [{}];
|
|
860
|
-
return [4
|
|
860
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
861
861
|
case 17:
|
|
862
862
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
863
|
-
return [3
|
|
863
|
+
return [3, 19];
|
|
864
864
|
case 18:
|
|
865
865
|
parsedBody = parsedOutput.body;
|
|
866
866
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -870,7 +870,7 @@ var deserializeAws_restJson1CreateAppInstanceUserCommandError = function (output
|
|
|
870
870
|
message = response.message || response.Message || errorCode;
|
|
871
871
|
response.message = message;
|
|
872
872
|
delete response.Message;
|
|
873
|
-
return [2
|
|
873
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
874
874
|
}
|
|
875
875
|
});
|
|
876
876
|
}); };
|
|
@@ -880,15 +880,15 @@ export var deserializeAws_restJson1DeleteAppInstanceCommand = function (output,
|
|
|
880
880
|
switch (_a.label) {
|
|
881
881
|
case 0:
|
|
882
882
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
883
|
-
return [2
|
|
883
|
+
return [2, deserializeAws_restJson1DeleteAppInstanceCommandError(output, context)];
|
|
884
884
|
}
|
|
885
885
|
contents = {
|
|
886
886
|
$metadata: deserializeMetadata(output),
|
|
887
887
|
};
|
|
888
|
-
return [4
|
|
888
|
+
return [4, collectBody(output.body, context)];
|
|
889
889
|
case 1:
|
|
890
890
|
_a.sent();
|
|
891
|
-
return [2
|
|
891
|
+
return [2, Promise.resolve(contents)];
|
|
892
892
|
}
|
|
893
893
|
});
|
|
894
894
|
}); };
|
|
@@ -900,71 +900,71 @@ var deserializeAws_restJson1DeleteAppInstanceCommandError = function (output, co
|
|
|
900
900
|
case 0:
|
|
901
901
|
_a = [__assign({}, output)];
|
|
902
902
|
_k = {};
|
|
903
|
-
return [4
|
|
903
|
+
return [4, parseBody(output.body, context)];
|
|
904
904
|
case 1:
|
|
905
905
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
906
906
|
errorCode = "UnknownError";
|
|
907
907
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
908
908
|
_b = errorCode;
|
|
909
909
|
switch (_b) {
|
|
910
|
-
case "BadRequestException": return [3
|
|
911
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3
|
|
912
|
-
case "ForbiddenException": return [3
|
|
913
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3
|
|
914
|
-
case "ResourceLimitExceededException": return [3
|
|
915
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3
|
|
916
|
-
case "ServiceFailureException": return [3
|
|
917
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3
|
|
918
|
-
case "ServiceUnavailableException": return [3
|
|
919
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3
|
|
920
|
-
case "ThrottledClientException": return [3
|
|
921
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3
|
|
922
|
-
case "UnauthorizedClientException": return [3
|
|
923
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3
|
|
924
|
-
}
|
|
925
|
-
return [3
|
|
910
|
+
case "BadRequestException": return [3, 2];
|
|
911
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
912
|
+
case "ForbiddenException": return [3, 4];
|
|
913
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
914
|
+
case "ResourceLimitExceededException": return [3, 6];
|
|
915
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3, 6];
|
|
916
|
+
case "ServiceFailureException": return [3, 8];
|
|
917
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 8];
|
|
918
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
919
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 10];
|
|
920
|
+
case "ThrottledClientException": return [3, 12];
|
|
921
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 12];
|
|
922
|
+
case "UnauthorizedClientException": return [3, 14];
|
|
923
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 14];
|
|
924
|
+
}
|
|
925
|
+
return [3, 16];
|
|
926
926
|
case 2:
|
|
927
927
|
_c = [{}];
|
|
928
|
-
return [4
|
|
928
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
929
929
|
case 3:
|
|
930
930
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
931
|
-
return [3
|
|
931
|
+
return [3, 17];
|
|
932
932
|
case 4:
|
|
933
933
|
_d = [{}];
|
|
934
|
-
return [4
|
|
934
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
935
935
|
case 5:
|
|
936
936
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
937
|
-
return [3
|
|
937
|
+
return [3, 17];
|
|
938
938
|
case 6:
|
|
939
939
|
_e = [{}];
|
|
940
|
-
return [4
|
|
940
|
+
return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
941
941
|
case 7:
|
|
942
942
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
943
|
-
return [3
|
|
943
|
+
return [3, 17];
|
|
944
944
|
case 8:
|
|
945
945
|
_f = [{}];
|
|
946
|
-
return [4
|
|
946
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
947
947
|
case 9:
|
|
948
948
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
949
|
-
return [3
|
|
949
|
+
return [3, 17];
|
|
950
950
|
case 10:
|
|
951
951
|
_g = [{}];
|
|
952
|
-
return [4
|
|
952
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
953
953
|
case 11:
|
|
954
954
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
955
|
-
return [3
|
|
955
|
+
return [3, 17];
|
|
956
956
|
case 12:
|
|
957
957
|
_h = [{}];
|
|
958
|
-
return [4
|
|
958
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
959
959
|
case 13:
|
|
960
960
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
961
|
-
return [3
|
|
961
|
+
return [3, 17];
|
|
962
962
|
case 14:
|
|
963
963
|
_j = [{}];
|
|
964
|
-
return [4
|
|
964
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
965
965
|
case 15:
|
|
966
966
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
967
|
-
return [3
|
|
967
|
+
return [3, 17];
|
|
968
968
|
case 16:
|
|
969
969
|
parsedBody = parsedOutput.body;
|
|
970
970
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -974,7 +974,7 @@ var deserializeAws_restJson1DeleteAppInstanceCommandError = function (output, co
|
|
|
974
974
|
message = response.message || response.Message || errorCode;
|
|
975
975
|
response.message = message;
|
|
976
976
|
delete response.Message;
|
|
977
|
-
return [2
|
|
977
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
978
978
|
}
|
|
979
979
|
});
|
|
980
980
|
}); };
|
|
@@ -984,15 +984,15 @@ export var deserializeAws_restJson1DeleteAppInstanceAdminCommand = function (out
|
|
|
984
984
|
switch (_a.label) {
|
|
985
985
|
case 0:
|
|
986
986
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
987
|
-
return [2
|
|
987
|
+
return [2, deserializeAws_restJson1DeleteAppInstanceAdminCommandError(output, context)];
|
|
988
988
|
}
|
|
989
989
|
contents = {
|
|
990
990
|
$metadata: deserializeMetadata(output),
|
|
991
991
|
};
|
|
992
|
-
return [4
|
|
992
|
+
return [4, collectBody(output.body, context)];
|
|
993
993
|
case 1:
|
|
994
994
|
_a.sent();
|
|
995
|
-
return [2
|
|
995
|
+
return [2, Promise.resolve(contents)];
|
|
996
996
|
}
|
|
997
997
|
});
|
|
998
998
|
}); };
|
|
@@ -1004,79 +1004,79 @@ var deserializeAws_restJson1DeleteAppInstanceAdminCommandError = function (outpu
|
|
|
1004
1004
|
case 0:
|
|
1005
1005
|
_a = [__assign({}, output)];
|
|
1006
1006
|
_l = {};
|
|
1007
|
-
return [4
|
|
1007
|
+
return [4, parseBody(output.body, context)];
|
|
1008
1008
|
case 1:
|
|
1009
1009
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
1010
1010
|
errorCode = "UnknownError";
|
|
1011
1011
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1012
1012
|
_b = errorCode;
|
|
1013
1013
|
switch (_b) {
|
|
1014
|
-
case "BadRequestException": return [3
|
|
1015
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3
|
|
1016
|
-
case "ConflictException": return [3
|
|
1017
|
-
case "com.amazonaws.chimesdkidentity#ConflictException": return [3
|
|
1018
|
-
case "ForbiddenException": return [3
|
|
1019
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3
|
|
1020
|
-
case "ResourceLimitExceededException": return [3
|
|
1021
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3
|
|
1022
|
-
case "ServiceFailureException": return [3
|
|
1023
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3
|
|
1024
|
-
case "ServiceUnavailableException": return [3
|
|
1025
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3
|
|
1026
|
-
case "ThrottledClientException": return [3
|
|
1027
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3
|
|
1028
|
-
case "UnauthorizedClientException": return [3
|
|
1029
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3
|
|
1030
|
-
}
|
|
1031
|
-
return [3
|
|
1014
|
+
case "BadRequestException": return [3, 2];
|
|
1015
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1016
|
+
case "ConflictException": return [3, 4];
|
|
1017
|
+
case "com.amazonaws.chimesdkidentity#ConflictException": return [3, 4];
|
|
1018
|
+
case "ForbiddenException": return [3, 6];
|
|
1019
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 6];
|
|
1020
|
+
case "ResourceLimitExceededException": return [3, 8];
|
|
1021
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3, 8];
|
|
1022
|
+
case "ServiceFailureException": return [3, 10];
|
|
1023
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 10];
|
|
1024
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
1025
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 12];
|
|
1026
|
+
case "ThrottledClientException": return [3, 14];
|
|
1027
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 14];
|
|
1028
|
+
case "UnauthorizedClientException": return [3, 16];
|
|
1029
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 16];
|
|
1030
|
+
}
|
|
1031
|
+
return [3, 18];
|
|
1032
1032
|
case 2:
|
|
1033
1033
|
_c = [{}];
|
|
1034
|
-
return [4
|
|
1034
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1035
1035
|
case 3:
|
|
1036
1036
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1037
|
-
return [3
|
|
1037
|
+
return [3, 19];
|
|
1038
1038
|
case 4:
|
|
1039
1039
|
_d = [{}];
|
|
1040
|
-
return [4
|
|
1040
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1041
1041
|
case 5:
|
|
1042
1042
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1043
|
-
return [3
|
|
1043
|
+
return [3, 19];
|
|
1044
1044
|
case 6:
|
|
1045
1045
|
_e = [{}];
|
|
1046
|
-
return [4
|
|
1046
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1047
1047
|
case 7:
|
|
1048
1048
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1049
|
-
return [3
|
|
1049
|
+
return [3, 19];
|
|
1050
1050
|
case 8:
|
|
1051
1051
|
_f = [{}];
|
|
1052
|
-
return [4
|
|
1052
|
+
return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1053
1053
|
case 9:
|
|
1054
1054
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1055
|
-
return [3
|
|
1055
|
+
return [3, 19];
|
|
1056
1056
|
case 10:
|
|
1057
1057
|
_g = [{}];
|
|
1058
|
-
return [4
|
|
1058
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1059
1059
|
case 11:
|
|
1060
1060
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1061
|
-
return [3
|
|
1061
|
+
return [3, 19];
|
|
1062
1062
|
case 12:
|
|
1063
1063
|
_h = [{}];
|
|
1064
|
-
return [4
|
|
1064
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1065
1065
|
case 13:
|
|
1066
1066
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1067
|
-
return [3
|
|
1067
|
+
return [3, 19];
|
|
1068
1068
|
case 14:
|
|
1069
1069
|
_j = [{}];
|
|
1070
|
-
return [4
|
|
1070
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1071
1071
|
case 15:
|
|
1072
1072
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1073
|
-
return [3
|
|
1073
|
+
return [3, 19];
|
|
1074
1074
|
case 16:
|
|
1075
1075
|
_k = [{}];
|
|
1076
|
-
return [4
|
|
1076
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1077
1077
|
case 17:
|
|
1078
1078
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1079
|
-
return [3
|
|
1079
|
+
return [3, 19];
|
|
1080
1080
|
case 18:
|
|
1081
1081
|
parsedBody = parsedOutput.body;
|
|
1082
1082
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1086,7 +1086,7 @@ var deserializeAws_restJson1DeleteAppInstanceAdminCommandError = function (outpu
|
|
|
1086
1086
|
message = response.message || response.Message || errorCode;
|
|
1087
1087
|
response.message = message;
|
|
1088
1088
|
delete response.Message;
|
|
1089
|
-
return [2
|
|
1089
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1090
1090
|
}
|
|
1091
1091
|
});
|
|
1092
1092
|
}); };
|
|
@@ -1096,15 +1096,15 @@ export var deserializeAws_restJson1DeleteAppInstanceUserCommand = function (outp
|
|
|
1096
1096
|
switch (_a.label) {
|
|
1097
1097
|
case 0:
|
|
1098
1098
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1099
|
-
return [2
|
|
1099
|
+
return [2, deserializeAws_restJson1DeleteAppInstanceUserCommandError(output, context)];
|
|
1100
1100
|
}
|
|
1101
1101
|
contents = {
|
|
1102
1102
|
$metadata: deserializeMetadata(output),
|
|
1103
1103
|
};
|
|
1104
|
-
return [4
|
|
1104
|
+
return [4, collectBody(output.body, context)];
|
|
1105
1105
|
case 1:
|
|
1106
1106
|
_a.sent();
|
|
1107
|
-
return [2
|
|
1107
|
+
return [2, Promise.resolve(contents)];
|
|
1108
1108
|
}
|
|
1109
1109
|
});
|
|
1110
1110
|
}); };
|
|
@@ -1116,79 +1116,79 @@ var deserializeAws_restJson1DeleteAppInstanceUserCommandError = function (output
|
|
|
1116
1116
|
case 0:
|
|
1117
1117
|
_a = [__assign({}, output)];
|
|
1118
1118
|
_l = {};
|
|
1119
|
-
return [4
|
|
1119
|
+
return [4, parseBody(output.body, context)];
|
|
1120
1120
|
case 1:
|
|
1121
1121
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
1122
1122
|
errorCode = "UnknownError";
|
|
1123
1123
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1124
1124
|
_b = errorCode;
|
|
1125
1125
|
switch (_b) {
|
|
1126
|
-
case "BadRequestException": return [3
|
|
1127
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3
|
|
1128
|
-
case "ConflictException": return [3
|
|
1129
|
-
case "com.amazonaws.chimesdkidentity#ConflictException": return [3
|
|
1130
|
-
case "ForbiddenException": return [3
|
|
1131
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3
|
|
1132
|
-
case "ResourceLimitExceededException": return [3
|
|
1133
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3
|
|
1134
|
-
case "ServiceFailureException": return [3
|
|
1135
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3
|
|
1136
|
-
case "ServiceUnavailableException": return [3
|
|
1137
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3
|
|
1138
|
-
case "ThrottledClientException": return [3
|
|
1139
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3
|
|
1140
|
-
case "UnauthorizedClientException": return [3
|
|
1141
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3
|
|
1142
|
-
}
|
|
1143
|
-
return [3
|
|
1126
|
+
case "BadRequestException": return [3, 2];
|
|
1127
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1128
|
+
case "ConflictException": return [3, 4];
|
|
1129
|
+
case "com.amazonaws.chimesdkidentity#ConflictException": return [3, 4];
|
|
1130
|
+
case "ForbiddenException": return [3, 6];
|
|
1131
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 6];
|
|
1132
|
+
case "ResourceLimitExceededException": return [3, 8];
|
|
1133
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3, 8];
|
|
1134
|
+
case "ServiceFailureException": return [3, 10];
|
|
1135
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 10];
|
|
1136
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
1137
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 12];
|
|
1138
|
+
case "ThrottledClientException": return [3, 14];
|
|
1139
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 14];
|
|
1140
|
+
case "UnauthorizedClientException": return [3, 16];
|
|
1141
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 16];
|
|
1142
|
+
}
|
|
1143
|
+
return [3, 18];
|
|
1144
1144
|
case 2:
|
|
1145
1145
|
_c = [{}];
|
|
1146
|
-
return [4
|
|
1146
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1147
1147
|
case 3:
|
|
1148
1148
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1149
|
-
return [3
|
|
1149
|
+
return [3, 19];
|
|
1150
1150
|
case 4:
|
|
1151
1151
|
_d = [{}];
|
|
1152
|
-
return [4
|
|
1152
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1153
1153
|
case 5:
|
|
1154
1154
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1155
|
-
return [3
|
|
1155
|
+
return [3, 19];
|
|
1156
1156
|
case 6:
|
|
1157
1157
|
_e = [{}];
|
|
1158
|
-
return [4
|
|
1158
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1159
1159
|
case 7:
|
|
1160
1160
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1161
|
-
return [3
|
|
1161
|
+
return [3, 19];
|
|
1162
1162
|
case 8:
|
|
1163
1163
|
_f = [{}];
|
|
1164
|
-
return [4
|
|
1164
|
+
return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1165
1165
|
case 9:
|
|
1166
1166
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1167
|
-
return [3
|
|
1167
|
+
return [3, 19];
|
|
1168
1168
|
case 10:
|
|
1169
1169
|
_g = [{}];
|
|
1170
|
-
return [4
|
|
1170
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1171
1171
|
case 11:
|
|
1172
1172
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1173
|
-
return [3
|
|
1173
|
+
return [3, 19];
|
|
1174
1174
|
case 12:
|
|
1175
1175
|
_h = [{}];
|
|
1176
|
-
return [4
|
|
1176
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1177
1177
|
case 13:
|
|
1178
1178
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1179
|
-
return [3
|
|
1179
|
+
return [3, 19];
|
|
1180
1180
|
case 14:
|
|
1181
1181
|
_j = [{}];
|
|
1182
|
-
return [4
|
|
1182
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1183
1183
|
case 15:
|
|
1184
1184
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1185
|
-
return [3
|
|
1185
|
+
return [3, 19];
|
|
1186
1186
|
case 16:
|
|
1187
1187
|
_k = [{}];
|
|
1188
|
-
return [4
|
|
1188
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1189
1189
|
case 17:
|
|
1190
1190
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1191
|
-
return [3
|
|
1191
|
+
return [3, 19];
|
|
1192
1192
|
case 18:
|
|
1193
1193
|
parsedBody = parsedOutput.body;
|
|
1194
1194
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1198,7 +1198,7 @@ var deserializeAws_restJson1DeleteAppInstanceUserCommandError = function (output
|
|
|
1198
1198
|
message = response.message || response.Message || errorCode;
|
|
1199
1199
|
response.message = message;
|
|
1200
1200
|
delete response.Message;
|
|
1201
|
-
return [2
|
|
1201
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1202
1202
|
}
|
|
1203
1203
|
});
|
|
1204
1204
|
}); };
|
|
@@ -1208,7 +1208,7 @@ export var deserializeAws_restJson1DescribeAppInstanceCommand = function (output
|
|
|
1208
1208
|
switch (_c.label) {
|
|
1209
1209
|
case 0:
|
|
1210
1210
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1211
|
-
return [2
|
|
1211
|
+
return [2, deserializeAws_restJson1DescribeAppInstanceCommandError(output, context)];
|
|
1212
1212
|
}
|
|
1213
1213
|
contents = {
|
|
1214
1214
|
$metadata: deserializeMetadata(output),
|
|
@@ -1216,13 +1216,13 @@ export var deserializeAws_restJson1DescribeAppInstanceCommand = function (output
|
|
|
1216
1216
|
};
|
|
1217
1217
|
_a = __expectNonNull;
|
|
1218
1218
|
_b = __expectObject;
|
|
1219
|
-
return [4
|
|
1219
|
+
return [4, parseBody(output.body, context)];
|
|
1220
1220
|
case 1:
|
|
1221
1221
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1222
1222
|
if (data.AppInstance !== undefined && data.AppInstance !== null) {
|
|
1223
1223
|
contents.AppInstance = deserializeAws_restJson1AppInstance(data.AppInstance, context);
|
|
1224
1224
|
}
|
|
1225
|
-
return [2
|
|
1225
|
+
return [2, Promise.resolve(contents)];
|
|
1226
1226
|
}
|
|
1227
1227
|
});
|
|
1228
1228
|
}); };
|
|
@@ -1234,63 +1234,63 @@ var deserializeAws_restJson1DescribeAppInstanceCommandError = function (output,
|
|
|
1234
1234
|
case 0:
|
|
1235
1235
|
_a = [__assign({}, output)];
|
|
1236
1236
|
_j = {};
|
|
1237
|
-
return [4
|
|
1237
|
+
return [4, parseBody(output.body, context)];
|
|
1238
1238
|
case 1:
|
|
1239
1239
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1240
1240
|
errorCode = "UnknownError";
|
|
1241
1241
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1242
1242
|
_b = errorCode;
|
|
1243
1243
|
switch (_b) {
|
|
1244
|
-
case "BadRequestException": return [3
|
|
1245
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3
|
|
1246
|
-
case "ForbiddenException": return [3
|
|
1247
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3
|
|
1248
|
-
case "ServiceFailureException": return [3
|
|
1249
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3
|
|
1250
|
-
case "ServiceUnavailableException": return [3
|
|
1251
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3
|
|
1252
|
-
case "ThrottledClientException": return [3
|
|
1253
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3
|
|
1254
|
-
case "UnauthorizedClientException": return [3
|
|
1255
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3
|
|
1256
|
-
}
|
|
1257
|
-
return [3
|
|
1244
|
+
case "BadRequestException": return [3, 2];
|
|
1245
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1246
|
+
case "ForbiddenException": return [3, 4];
|
|
1247
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
1248
|
+
case "ServiceFailureException": return [3, 6];
|
|
1249
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 6];
|
|
1250
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1251
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 8];
|
|
1252
|
+
case "ThrottledClientException": return [3, 10];
|
|
1253
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 10];
|
|
1254
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
1255
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 12];
|
|
1256
|
+
}
|
|
1257
|
+
return [3, 14];
|
|
1258
1258
|
case 2:
|
|
1259
1259
|
_c = [{}];
|
|
1260
|
-
return [4
|
|
1260
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1261
1261
|
case 3:
|
|
1262
1262
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1263
|
-
return [3
|
|
1263
|
+
return [3, 15];
|
|
1264
1264
|
case 4:
|
|
1265
1265
|
_d = [{}];
|
|
1266
|
-
return [4
|
|
1266
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1267
1267
|
case 5:
|
|
1268
1268
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1269
|
-
return [3
|
|
1269
|
+
return [3, 15];
|
|
1270
1270
|
case 6:
|
|
1271
1271
|
_e = [{}];
|
|
1272
|
-
return [4
|
|
1272
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1273
1273
|
case 7:
|
|
1274
1274
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1275
|
-
return [3
|
|
1275
|
+
return [3, 15];
|
|
1276
1276
|
case 8:
|
|
1277
1277
|
_f = [{}];
|
|
1278
|
-
return [4
|
|
1278
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1279
1279
|
case 9:
|
|
1280
1280
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1281
|
-
return [3
|
|
1281
|
+
return [3, 15];
|
|
1282
1282
|
case 10:
|
|
1283
1283
|
_g = [{}];
|
|
1284
|
-
return [4
|
|
1284
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1285
1285
|
case 11:
|
|
1286
1286
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1287
|
-
return [3
|
|
1287
|
+
return [3, 15];
|
|
1288
1288
|
case 12:
|
|
1289
1289
|
_h = [{}];
|
|
1290
|
-
return [4
|
|
1290
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1291
1291
|
case 13:
|
|
1292
1292
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1293
|
-
return [3
|
|
1293
|
+
return [3, 15];
|
|
1294
1294
|
case 14:
|
|
1295
1295
|
parsedBody = parsedOutput.body;
|
|
1296
1296
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1300,7 +1300,7 @@ var deserializeAws_restJson1DescribeAppInstanceCommandError = function (output,
|
|
|
1300
1300
|
message = response.message || response.Message || errorCode;
|
|
1301
1301
|
response.message = message;
|
|
1302
1302
|
delete response.Message;
|
|
1303
|
-
return [2
|
|
1303
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1304
1304
|
}
|
|
1305
1305
|
});
|
|
1306
1306
|
}); };
|
|
@@ -1310,7 +1310,7 @@ export var deserializeAws_restJson1DescribeAppInstanceAdminCommand = function (o
|
|
|
1310
1310
|
switch (_c.label) {
|
|
1311
1311
|
case 0:
|
|
1312
1312
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1313
|
-
return [2
|
|
1313
|
+
return [2, deserializeAws_restJson1DescribeAppInstanceAdminCommandError(output, context)];
|
|
1314
1314
|
}
|
|
1315
1315
|
contents = {
|
|
1316
1316
|
$metadata: deserializeMetadata(output),
|
|
@@ -1318,13 +1318,13 @@ export var deserializeAws_restJson1DescribeAppInstanceAdminCommand = function (o
|
|
|
1318
1318
|
};
|
|
1319
1319
|
_a = __expectNonNull;
|
|
1320
1320
|
_b = __expectObject;
|
|
1321
|
-
return [4
|
|
1321
|
+
return [4, parseBody(output.body, context)];
|
|
1322
1322
|
case 1:
|
|
1323
1323
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1324
1324
|
if (data.AppInstanceAdmin !== undefined && data.AppInstanceAdmin !== null) {
|
|
1325
1325
|
contents.AppInstanceAdmin = deserializeAws_restJson1AppInstanceAdmin(data.AppInstanceAdmin, context);
|
|
1326
1326
|
}
|
|
1327
|
-
return [2
|
|
1327
|
+
return [2, Promise.resolve(contents)];
|
|
1328
1328
|
}
|
|
1329
1329
|
});
|
|
1330
1330
|
}); };
|
|
@@ -1336,63 +1336,63 @@ var deserializeAws_restJson1DescribeAppInstanceAdminCommandError = function (out
|
|
|
1336
1336
|
case 0:
|
|
1337
1337
|
_a = [__assign({}, output)];
|
|
1338
1338
|
_j = {};
|
|
1339
|
-
return [4
|
|
1339
|
+
return [4, parseBody(output.body, context)];
|
|
1340
1340
|
case 1:
|
|
1341
1341
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1342
1342
|
errorCode = "UnknownError";
|
|
1343
1343
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
1344
|
_b = errorCode;
|
|
1345
1345
|
switch (_b) {
|
|
1346
|
-
case "BadRequestException": return [3
|
|
1347
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3
|
|
1348
|
-
case "ForbiddenException": return [3
|
|
1349
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3
|
|
1350
|
-
case "ServiceFailureException": return [3
|
|
1351
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3
|
|
1352
|
-
case "ServiceUnavailableException": return [3
|
|
1353
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3
|
|
1354
|
-
case "ThrottledClientException": return [3
|
|
1355
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3
|
|
1356
|
-
case "UnauthorizedClientException": return [3
|
|
1357
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3
|
|
1358
|
-
}
|
|
1359
|
-
return [3
|
|
1346
|
+
case "BadRequestException": return [3, 2];
|
|
1347
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1348
|
+
case "ForbiddenException": return [3, 4];
|
|
1349
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
1350
|
+
case "ServiceFailureException": return [3, 6];
|
|
1351
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 6];
|
|
1352
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1353
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 8];
|
|
1354
|
+
case "ThrottledClientException": return [3, 10];
|
|
1355
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 10];
|
|
1356
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
1357
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 12];
|
|
1358
|
+
}
|
|
1359
|
+
return [3, 14];
|
|
1360
1360
|
case 2:
|
|
1361
1361
|
_c = [{}];
|
|
1362
|
-
return [4
|
|
1362
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1363
1363
|
case 3:
|
|
1364
1364
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1365
|
-
return [3
|
|
1365
|
+
return [3, 15];
|
|
1366
1366
|
case 4:
|
|
1367
1367
|
_d = [{}];
|
|
1368
|
-
return [4
|
|
1368
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1369
1369
|
case 5:
|
|
1370
1370
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1371
|
-
return [3
|
|
1371
|
+
return [3, 15];
|
|
1372
1372
|
case 6:
|
|
1373
1373
|
_e = [{}];
|
|
1374
|
-
return [4
|
|
1374
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1375
1375
|
case 7:
|
|
1376
1376
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1377
|
-
return [3
|
|
1377
|
+
return [3, 15];
|
|
1378
1378
|
case 8:
|
|
1379
1379
|
_f = [{}];
|
|
1380
|
-
return [4
|
|
1380
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1381
1381
|
case 9:
|
|
1382
1382
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1383
|
-
return [3
|
|
1383
|
+
return [3, 15];
|
|
1384
1384
|
case 10:
|
|
1385
1385
|
_g = [{}];
|
|
1386
|
-
return [4
|
|
1386
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1387
1387
|
case 11:
|
|
1388
1388
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1389
|
-
return [3
|
|
1389
|
+
return [3, 15];
|
|
1390
1390
|
case 12:
|
|
1391
1391
|
_h = [{}];
|
|
1392
|
-
return [4
|
|
1392
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1393
1393
|
case 13:
|
|
1394
1394
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1395
|
-
return [3
|
|
1395
|
+
return [3, 15];
|
|
1396
1396
|
case 14:
|
|
1397
1397
|
parsedBody = parsedOutput.body;
|
|
1398
1398
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1402,7 +1402,7 @@ var deserializeAws_restJson1DescribeAppInstanceAdminCommandError = function (out
|
|
|
1402
1402
|
message = response.message || response.Message || errorCode;
|
|
1403
1403
|
response.message = message;
|
|
1404
1404
|
delete response.Message;
|
|
1405
|
-
return [2
|
|
1405
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1406
1406
|
}
|
|
1407
1407
|
});
|
|
1408
1408
|
}); };
|
|
@@ -1412,7 +1412,7 @@ export var deserializeAws_restJson1DescribeAppInstanceUserCommand = function (ou
|
|
|
1412
1412
|
switch (_c.label) {
|
|
1413
1413
|
case 0:
|
|
1414
1414
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1415
|
-
return [2
|
|
1415
|
+
return [2, deserializeAws_restJson1DescribeAppInstanceUserCommandError(output, context)];
|
|
1416
1416
|
}
|
|
1417
1417
|
contents = {
|
|
1418
1418
|
$metadata: deserializeMetadata(output),
|
|
@@ -1420,13 +1420,13 @@ export var deserializeAws_restJson1DescribeAppInstanceUserCommand = function (ou
|
|
|
1420
1420
|
};
|
|
1421
1421
|
_a = __expectNonNull;
|
|
1422
1422
|
_b = __expectObject;
|
|
1423
|
-
return [4
|
|
1423
|
+
return [4, parseBody(output.body, context)];
|
|
1424
1424
|
case 1:
|
|
1425
1425
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1426
1426
|
if (data.AppInstanceUser !== undefined && data.AppInstanceUser !== null) {
|
|
1427
1427
|
contents.AppInstanceUser = deserializeAws_restJson1AppInstanceUser(data.AppInstanceUser, context);
|
|
1428
1428
|
}
|
|
1429
|
-
return [2
|
|
1429
|
+
return [2, Promise.resolve(contents)];
|
|
1430
1430
|
}
|
|
1431
1431
|
});
|
|
1432
1432
|
}); };
|
|
@@ -1438,63 +1438,63 @@ var deserializeAws_restJson1DescribeAppInstanceUserCommandError = function (outp
|
|
|
1438
1438
|
case 0:
|
|
1439
1439
|
_a = [__assign({}, output)];
|
|
1440
1440
|
_j = {};
|
|
1441
|
-
return [4
|
|
1441
|
+
return [4, parseBody(output.body, context)];
|
|
1442
1442
|
case 1:
|
|
1443
1443
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1444
1444
|
errorCode = "UnknownError";
|
|
1445
1445
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1446
1446
|
_b = errorCode;
|
|
1447
1447
|
switch (_b) {
|
|
1448
|
-
case "BadRequestException": return [3
|
|
1449
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3
|
|
1450
|
-
case "ForbiddenException": return [3
|
|
1451
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3
|
|
1452
|
-
case "ServiceFailureException": return [3
|
|
1453
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3
|
|
1454
|
-
case "ServiceUnavailableException": return [3
|
|
1455
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3
|
|
1456
|
-
case "ThrottledClientException": return [3
|
|
1457
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3
|
|
1458
|
-
case "UnauthorizedClientException": return [3
|
|
1459
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3
|
|
1460
|
-
}
|
|
1461
|
-
return [3
|
|
1448
|
+
case "BadRequestException": return [3, 2];
|
|
1449
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1450
|
+
case "ForbiddenException": return [3, 4];
|
|
1451
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
1452
|
+
case "ServiceFailureException": return [3, 6];
|
|
1453
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 6];
|
|
1454
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1455
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 8];
|
|
1456
|
+
case "ThrottledClientException": return [3, 10];
|
|
1457
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 10];
|
|
1458
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
1459
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 12];
|
|
1460
|
+
}
|
|
1461
|
+
return [3, 14];
|
|
1462
1462
|
case 2:
|
|
1463
1463
|
_c = [{}];
|
|
1464
|
-
return [4
|
|
1464
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1465
1465
|
case 3:
|
|
1466
1466
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1467
|
-
return [3
|
|
1467
|
+
return [3, 15];
|
|
1468
1468
|
case 4:
|
|
1469
1469
|
_d = [{}];
|
|
1470
|
-
return [4
|
|
1470
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1471
1471
|
case 5:
|
|
1472
1472
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1473
|
-
return [3
|
|
1473
|
+
return [3, 15];
|
|
1474
1474
|
case 6:
|
|
1475
1475
|
_e = [{}];
|
|
1476
|
-
return [4
|
|
1476
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1477
1477
|
case 7:
|
|
1478
1478
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1479
|
-
return [3
|
|
1479
|
+
return [3, 15];
|
|
1480
1480
|
case 8:
|
|
1481
1481
|
_f = [{}];
|
|
1482
|
-
return [4
|
|
1482
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1483
1483
|
case 9:
|
|
1484
1484
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1485
|
-
return [3
|
|
1485
|
+
return [3, 15];
|
|
1486
1486
|
case 10:
|
|
1487
1487
|
_g = [{}];
|
|
1488
|
-
return [4
|
|
1488
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1489
1489
|
case 11:
|
|
1490
1490
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1491
|
-
return [3
|
|
1491
|
+
return [3, 15];
|
|
1492
1492
|
case 12:
|
|
1493
1493
|
_h = [{}];
|
|
1494
|
-
return [4
|
|
1494
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1495
1495
|
case 13:
|
|
1496
1496
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1497
|
-
return [3
|
|
1497
|
+
return [3, 15];
|
|
1498
1498
|
case 14:
|
|
1499
1499
|
parsedBody = parsedOutput.body;
|
|
1500
1500
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1504,7 +1504,7 @@ var deserializeAws_restJson1DescribeAppInstanceUserCommandError = function (outp
|
|
|
1504
1504
|
message = response.message || response.Message || errorCode;
|
|
1505
1505
|
response.message = message;
|
|
1506
1506
|
delete response.Message;
|
|
1507
|
-
return [2
|
|
1507
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1508
1508
|
}
|
|
1509
1509
|
});
|
|
1510
1510
|
}); };
|
|
@@ -1514,7 +1514,7 @@ export var deserializeAws_restJson1GetAppInstanceRetentionSettingsCommand = func
|
|
|
1514
1514
|
switch (_c.label) {
|
|
1515
1515
|
case 0:
|
|
1516
1516
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1517
|
-
return [2
|
|
1517
|
+
return [2, deserializeAws_restJson1GetAppInstanceRetentionSettingsCommandError(output, context)];
|
|
1518
1518
|
}
|
|
1519
1519
|
contents = {
|
|
1520
1520
|
$metadata: deserializeMetadata(output),
|
|
@@ -1523,7 +1523,7 @@ export var deserializeAws_restJson1GetAppInstanceRetentionSettingsCommand = func
|
|
|
1523
1523
|
};
|
|
1524
1524
|
_a = __expectNonNull;
|
|
1525
1525
|
_b = __expectObject;
|
|
1526
|
-
return [4
|
|
1526
|
+
return [4, parseBody(output.body, context)];
|
|
1527
1527
|
case 1:
|
|
1528
1528
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1529
1529
|
if (data.AppInstanceRetentionSettings !== undefined && data.AppInstanceRetentionSettings !== null) {
|
|
@@ -1532,7 +1532,7 @@ export var deserializeAws_restJson1GetAppInstanceRetentionSettingsCommand = func
|
|
|
1532
1532
|
if (data.InitiateDeletionTimestamp !== undefined && data.InitiateDeletionTimestamp !== null) {
|
|
1533
1533
|
contents.InitiateDeletionTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.InitiateDeletionTimestamp)));
|
|
1534
1534
|
}
|
|
1535
|
-
return [2
|
|
1535
|
+
return [2, Promise.resolve(contents)];
|
|
1536
1536
|
}
|
|
1537
1537
|
});
|
|
1538
1538
|
}); };
|
|
@@ -1544,63 +1544,63 @@ var deserializeAws_restJson1GetAppInstanceRetentionSettingsCommandError = functi
|
|
|
1544
1544
|
case 0:
|
|
1545
1545
|
_a = [__assign({}, output)];
|
|
1546
1546
|
_j = {};
|
|
1547
|
-
return [4
|
|
1547
|
+
return [4, parseBody(output.body, context)];
|
|
1548
1548
|
case 1:
|
|
1549
1549
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1550
1550
|
errorCode = "UnknownError";
|
|
1551
1551
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1552
1552
|
_b = errorCode;
|
|
1553
1553
|
switch (_b) {
|
|
1554
|
-
case "BadRequestException": return [3
|
|
1555
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3
|
|
1556
|
-
case "ForbiddenException": return [3
|
|
1557
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3
|
|
1558
|
-
case "ServiceFailureException": return [3
|
|
1559
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3
|
|
1560
|
-
case "ServiceUnavailableException": return [3
|
|
1561
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3
|
|
1562
|
-
case "ThrottledClientException": return [3
|
|
1563
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3
|
|
1564
|
-
case "UnauthorizedClientException": return [3
|
|
1565
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3
|
|
1566
|
-
}
|
|
1567
|
-
return [3
|
|
1554
|
+
case "BadRequestException": return [3, 2];
|
|
1555
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1556
|
+
case "ForbiddenException": return [3, 4];
|
|
1557
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
1558
|
+
case "ServiceFailureException": return [3, 6];
|
|
1559
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 6];
|
|
1560
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1561
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 8];
|
|
1562
|
+
case "ThrottledClientException": return [3, 10];
|
|
1563
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 10];
|
|
1564
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
1565
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 12];
|
|
1566
|
+
}
|
|
1567
|
+
return [3, 14];
|
|
1568
1568
|
case 2:
|
|
1569
1569
|
_c = [{}];
|
|
1570
|
-
return [4
|
|
1570
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1571
1571
|
case 3:
|
|
1572
1572
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1573
|
-
return [3
|
|
1573
|
+
return [3, 15];
|
|
1574
1574
|
case 4:
|
|
1575
1575
|
_d = [{}];
|
|
1576
|
-
return [4
|
|
1576
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1577
1577
|
case 5:
|
|
1578
1578
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1579
|
-
return [3
|
|
1579
|
+
return [3, 15];
|
|
1580
1580
|
case 6:
|
|
1581
1581
|
_e = [{}];
|
|
1582
|
-
return [4
|
|
1582
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1583
1583
|
case 7:
|
|
1584
1584
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1585
|
-
return [3
|
|
1585
|
+
return [3, 15];
|
|
1586
1586
|
case 8:
|
|
1587
1587
|
_f = [{}];
|
|
1588
|
-
return [4
|
|
1588
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1589
1589
|
case 9:
|
|
1590
1590
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1591
|
-
return [3
|
|
1591
|
+
return [3, 15];
|
|
1592
1592
|
case 10:
|
|
1593
1593
|
_g = [{}];
|
|
1594
|
-
return [4
|
|
1594
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1595
1595
|
case 11:
|
|
1596
1596
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1597
|
-
return [3
|
|
1597
|
+
return [3, 15];
|
|
1598
1598
|
case 12:
|
|
1599
1599
|
_h = [{}];
|
|
1600
|
-
return [4
|
|
1600
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1601
1601
|
case 13:
|
|
1602
1602
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1603
|
-
return [3
|
|
1603
|
+
return [3, 15];
|
|
1604
1604
|
case 14:
|
|
1605
1605
|
parsedBody = parsedOutput.body;
|
|
1606
1606
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1610,7 +1610,7 @@ var deserializeAws_restJson1GetAppInstanceRetentionSettingsCommandError = functi
|
|
|
1610
1610
|
message = response.message || response.Message || errorCode;
|
|
1611
1611
|
response.message = message;
|
|
1612
1612
|
delete response.Message;
|
|
1613
|
-
return [2
|
|
1613
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1614
1614
|
}
|
|
1615
1615
|
});
|
|
1616
1616
|
}); };
|
|
@@ -1620,7 +1620,7 @@ export var deserializeAws_restJson1ListAppInstanceAdminsCommand = function (outp
|
|
|
1620
1620
|
switch (_c.label) {
|
|
1621
1621
|
case 0:
|
|
1622
1622
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1623
|
-
return [2
|
|
1623
|
+
return [2, deserializeAws_restJson1ListAppInstanceAdminsCommandError(output, context)];
|
|
1624
1624
|
}
|
|
1625
1625
|
contents = {
|
|
1626
1626
|
$metadata: deserializeMetadata(output),
|
|
@@ -1630,7 +1630,7 @@ export var deserializeAws_restJson1ListAppInstanceAdminsCommand = function (outp
|
|
|
1630
1630
|
};
|
|
1631
1631
|
_a = __expectNonNull;
|
|
1632
1632
|
_b = __expectObject;
|
|
1633
|
-
return [4
|
|
1633
|
+
return [4, parseBody(output.body, context)];
|
|
1634
1634
|
case 1:
|
|
1635
1635
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1636
1636
|
if (data.AppInstanceAdmins !== undefined && data.AppInstanceAdmins !== null) {
|
|
@@ -1642,7 +1642,7 @@ export var deserializeAws_restJson1ListAppInstanceAdminsCommand = function (outp
|
|
|
1642
1642
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1643
1643
|
contents.NextToken = __expectString(data.NextToken);
|
|
1644
1644
|
}
|
|
1645
|
-
return [2
|
|
1645
|
+
return [2, Promise.resolve(contents)];
|
|
1646
1646
|
}
|
|
1647
1647
|
});
|
|
1648
1648
|
}); };
|
|
@@ -1654,71 +1654,71 @@ var deserializeAws_restJson1ListAppInstanceAdminsCommandError = function (output
|
|
|
1654
1654
|
case 0:
|
|
1655
1655
|
_a = [__assign({}, output)];
|
|
1656
1656
|
_k = {};
|
|
1657
|
-
return [4
|
|
1657
|
+
return [4, parseBody(output.body, context)];
|
|
1658
1658
|
case 1:
|
|
1659
1659
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
1660
1660
|
errorCode = "UnknownError";
|
|
1661
1661
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1662
1662
|
_b = errorCode;
|
|
1663
1663
|
switch (_b) {
|
|
1664
|
-
case "BadRequestException": return [3
|
|
1665
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3
|
|
1666
|
-
case "ForbiddenException": return [3
|
|
1667
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3
|
|
1668
|
-
case "ResourceLimitExceededException": return [3
|
|
1669
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3
|
|
1670
|
-
case "ServiceFailureException": return [3
|
|
1671
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3
|
|
1672
|
-
case "ServiceUnavailableException": return [3
|
|
1673
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3
|
|
1674
|
-
case "ThrottledClientException": return [3
|
|
1675
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3
|
|
1676
|
-
case "UnauthorizedClientException": return [3
|
|
1677
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3
|
|
1678
|
-
}
|
|
1679
|
-
return [3
|
|
1664
|
+
case "BadRequestException": return [3, 2];
|
|
1665
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1666
|
+
case "ForbiddenException": return [3, 4];
|
|
1667
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
1668
|
+
case "ResourceLimitExceededException": return [3, 6];
|
|
1669
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3, 6];
|
|
1670
|
+
case "ServiceFailureException": return [3, 8];
|
|
1671
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 8];
|
|
1672
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1673
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 10];
|
|
1674
|
+
case "ThrottledClientException": return [3, 12];
|
|
1675
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 12];
|
|
1676
|
+
case "UnauthorizedClientException": return [3, 14];
|
|
1677
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 14];
|
|
1678
|
+
}
|
|
1679
|
+
return [3, 16];
|
|
1680
1680
|
case 2:
|
|
1681
1681
|
_c = [{}];
|
|
1682
|
-
return [4
|
|
1682
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1683
1683
|
case 3:
|
|
1684
1684
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1685
|
-
return [3
|
|
1685
|
+
return [3, 17];
|
|
1686
1686
|
case 4:
|
|
1687
1687
|
_d = [{}];
|
|
1688
|
-
return [4
|
|
1688
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1689
1689
|
case 5:
|
|
1690
1690
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1691
|
-
return [3
|
|
1691
|
+
return [3, 17];
|
|
1692
1692
|
case 6:
|
|
1693
1693
|
_e = [{}];
|
|
1694
|
-
return [4
|
|
1694
|
+
return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1695
1695
|
case 7:
|
|
1696
1696
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1697
|
-
return [3
|
|
1697
|
+
return [3, 17];
|
|
1698
1698
|
case 8:
|
|
1699
1699
|
_f = [{}];
|
|
1700
|
-
return [4
|
|
1700
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1701
1701
|
case 9:
|
|
1702
1702
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1703
|
-
return [3
|
|
1703
|
+
return [3, 17];
|
|
1704
1704
|
case 10:
|
|
1705
1705
|
_g = [{}];
|
|
1706
|
-
return [4
|
|
1706
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1707
1707
|
case 11:
|
|
1708
1708
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1709
|
-
return [3
|
|
1709
|
+
return [3, 17];
|
|
1710
1710
|
case 12:
|
|
1711
1711
|
_h = [{}];
|
|
1712
|
-
return [4
|
|
1712
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1713
1713
|
case 13:
|
|
1714
1714
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1715
|
-
return [3
|
|
1715
|
+
return [3, 17];
|
|
1716
1716
|
case 14:
|
|
1717
1717
|
_j = [{}];
|
|
1718
|
-
return [4
|
|
1718
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1719
1719
|
case 15:
|
|
1720
1720
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1721
|
-
return [3
|
|
1721
|
+
return [3, 17];
|
|
1722
1722
|
case 16:
|
|
1723
1723
|
parsedBody = parsedOutput.body;
|
|
1724
1724
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1728,7 +1728,7 @@ var deserializeAws_restJson1ListAppInstanceAdminsCommandError = function (output
|
|
|
1728
1728
|
message = response.message || response.Message || errorCode;
|
|
1729
1729
|
response.message = message;
|
|
1730
1730
|
delete response.Message;
|
|
1731
|
-
return [2
|
|
1731
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1732
1732
|
}
|
|
1733
1733
|
});
|
|
1734
1734
|
}); };
|
|
@@ -1738,7 +1738,7 @@ export var deserializeAws_restJson1ListAppInstancesCommand = function (output, c
|
|
|
1738
1738
|
switch (_c.label) {
|
|
1739
1739
|
case 0:
|
|
1740
1740
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1741
|
-
return [2
|
|
1741
|
+
return [2, deserializeAws_restJson1ListAppInstancesCommandError(output, context)];
|
|
1742
1742
|
}
|
|
1743
1743
|
contents = {
|
|
1744
1744
|
$metadata: deserializeMetadata(output),
|
|
@@ -1747,7 +1747,7 @@ export var deserializeAws_restJson1ListAppInstancesCommand = function (output, c
|
|
|
1747
1747
|
};
|
|
1748
1748
|
_a = __expectNonNull;
|
|
1749
1749
|
_b = __expectObject;
|
|
1750
|
-
return [4
|
|
1750
|
+
return [4, parseBody(output.body, context)];
|
|
1751
1751
|
case 1:
|
|
1752
1752
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1753
1753
|
if (data.AppInstances !== undefined && data.AppInstances !== null) {
|
|
@@ -1756,7 +1756,7 @@ export var deserializeAws_restJson1ListAppInstancesCommand = function (output, c
|
|
|
1756
1756
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1757
1757
|
contents.NextToken = __expectString(data.NextToken);
|
|
1758
1758
|
}
|
|
1759
|
-
return [2
|
|
1759
|
+
return [2, Promise.resolve(contents)];
|
|
1760
1760
|
}
|
|
1761
1761
|
});
|
|
1762
1762
|
}); };
|
|
@@ -1768,63 +1768,63 @@ var deserializeAws_restJson1ListAppInstancesCommandError = function (output, con
|
|
|
1768
1768
|
case 0:
|
|
1769
1769
|
_a = [__assign({}, output)];
|
|
1770
1770
|
_j = {};
|
|
1771
|
-
return [4
|
|
1771
|
+
return [4, parseBody(output.body, context)];
|
|
1772
1772
|
case 1:
|
|
1773
1773
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1774
1774
|
errorCode = "UnknownError";
|
|
1775
1775
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1776
1776
|
_b = errorCode;
|
|
1777
1777
|
switch (_b) {
|
|
1778
|
-
case "BadRequestException": return [3
|
|
1779
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3
|
|
1780
|
-
case "ForbiddenException": return [3
|
|
1781
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3
|
|
1782
|
-
case "ServiceFailureException": return [3
|
|
1783
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3
|
|
1784
|
-
case "ServiceUnavailableException": return [3
|
|
1785
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3
|
|
1786
|
-
case "ThrottledClientException": return [3
|
|
1787
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3
|
|
1788
|
-
case "UnauthorizedClientException": return [3
|
|
1789
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3
|
|
1790
|
-
}
|
|
1791
|
-
return [3
|
|
1778
|
+
case "BadRequestException": return [3, 2];
|
|
1779
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1780
|
+
case "ForbiddenException": return [3, 4];
|
|
1781
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
1782
|
+
case "ServiceFailureException": return [3, 6];
|
|
1783
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 6];
|
|
1784
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1785
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 8];
|
|
1786
|
+
case "ThrottledClientException": return [3, 10];
|
|
1787
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 10];
|
|
1788
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
1789
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 12];
|
|
1790
|
+
}
|
|
1791
|
+
return [3, 14];
|
|
1792
1792
|
case 2:
|
|
1793
1793
|
_c = [{}];
|
|
1794
|
-
return [4
|
|
1794
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1795
1795
|
case 3:
|
|
1796
1796
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1797
|
-
return [3
|
|
1797
|
+
return [3, 15];
|
|
1798
1798
|
case 4:
|
|
1799
1799
|
_d = [{}];
|
|
1800
|
-
return [4
|
|
1800
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1801
1801
|
case 5:
|
|
1802
1802
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1803
|
-
return [3
|
|
1803
|
+
return [3, 15];
|
|
1804
1804
|
case 6:
|
|
1805
1805
|
_e = [{}];
|
|
1806
|
-
return [4
|
|
1806
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1807
1807
|
case 7:
|
|
1808
1808
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1809
|
-
return [3
|
|
1809
|
+
return [3, 15];
|
|
1810
1810
|
case 8:
|
|
1811
1811
|
_f = [{}];
|
|
1812
|
-
return [4
|
|
1812
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1813
1813
|
case 9:
|
|
1814
1814
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1815
|
-
return [3
|
|
1815
|
+
return [3, 15];
|
|
1816
1816
|
case 10:
|
|
1817
1817
|
_g = [{}];
|
|
1818
|
-
return [4
|
|
1818
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1819
1819
|
case 11:
|
|
1820
1820
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1821
|
-
return [3
|
|
1821
|
+
return [3, 15];
|
|
1822
1822
|
case 12:
|
|
1823
1823
|
_h = [{}];
|
|
1824
|
-
return [4
|
|
1824
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1825
1825
|
case 13:
|
|
1826
1826
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1827
|
-
return [3
|
|
1827
|
+
return [3, 15];
|
|
1828
1828
|
case 14:
|
|
1829
1829
|
parsedBody = parsedOutput.body;
|
|
1830
1830
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1834,7 +1834,7 @@ var deserializeAws_restJson1ListAppInstancesCommandError = function (output, con
|
|
|
1834
1834
|
message = response.message || response.Message || errorCode;
|
|
1835
1835
|
response.message = message;
|
|
1836
1836
|
delete response.Message;
|
|
1837
|
-
return [2
|
|
1837
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1838
1838
|
}
|
|
1839
1839
|
});
|
|
1840
1840
|
}); };
|
|
@@ -1844,7 +1844,7 @@ export var deserializeAws_restJson1ListAppInstanceUsersCommand = function (outpu
|
|
|
1844
1844
|
switch (_c.label) {
|
|
1845
1845
|
case 0:
|
|
1846
1846
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1847
|
-
return [2
|
|
1847
|
+
return [2, deserializeAws_restJson1ListAppInstanceUsersCommandError(output, context)];
|
|
1848
1848
|
}
|
|
1849
1849
|
contents = {
|
|
1850
1850
|
$metadata: deserializeMetadata(output),
|
|
@@ -1854,7 +1854,7 @@ export var deserializeAws_restJson1ListAppInstanceUsersCommand = function (outpu
|
|
|
1854
1854
|
};
|
|
1855
1855
|
_a = __expectNonNull;
|
|
1856
1856
|
_b = __expectObject;
|
|
1857
|
-
return [4
|
|
1857
|
+
return [4, parseBody(output.body, context)];
|
|
1858
1858
|
case 1:
|
|
1859
1859
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1860
1860
|
if (data.AppInstanceArn !== undefined && data.AppInstanceArn !== null) {
|
|
@@ -1866,7 +1866,7 @@ export var deserializeAws_restJson1ListAppInstanceUsersCommand = function (outpu
|
|
|
1866
1866
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1867
1867
|
contents.NextToken = __expectString(data.NextToken);
|
|
1868
1868
|
}
|
|
1869
|
-
return [2
|
|
1869
|
+
return [2, Promise.resolve(contents)];
|
|
1870
1870
|
}
|
|
1871
1871
|
});
|
|
1872
1872
|
}); };
|
|
@@ -1878,63 +1878,63 @@ var deserializeAws_restJson1ListAppInstanceUsersCommandError = function (output,
|
|
|
1878
1878
|
case 0:
|
|
1879
1879
|
_a = [__assign({}, output)];
|
|
1880
1880
|
_j = {};
|
|
1881
|
-
return [4
|
|
1881
|
+
return [4, parseBody(output.body, context)];
|
|
1882
1882
|
case 1:
|
|
1883
1883
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1884
1884
|
errorCode = "UnknownError";
|
|
1885
1885
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1886
1886
|
_b = errorCode;
|
|
1887
1887
|
switch (_b) {
|
|
1888
|
-
case "BadRequestException": return [3
|
|
1889
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3
|
|
1890
|
-
case "ForbiddenException": return [3
|
|
1891
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3
|
|
1892
|
-
case "ServiceFailureException": return [3
|
|
1893
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3
|
|
1894
|
-
case "ServiceUnavailableException": return [3
|
|
1895
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3
|
|
1896
|
-
case "ThrottledClientException": return [3
|
|
1897
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3
|
|
1898
|
-
case "UnauthorizedClientException": return [3
|
|
1899
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3
|
|
1900
|
-
}
|
|
1901
|
-
return [3
|
|
1888
|
+
case "BadRequestException": return [3, 2];
|
|
1889
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1890
|
+
case "ForbiddenException": return [3, 4];
|
|
1891
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
1892
|
+
case "ServiceFailureException": return [3, 6];
|
|
1893
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 6];
|
|
1894
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1895
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 8];
|
|
1896
|
+
case "ThrottledClientException": return [3, 10];
|
|
1897
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 10];
|
|
1898
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
1899
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 12];
|
|
1900
|
+
}
|
|
1901
|
+
return [3, 14];
|
|
1902
1902
|
case 2:
|
|
1903
1903
|
_c = [{}];
|
|
1904
|
-
return [4
|
|
1904
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1905
1905
|
case 3:
|
|
1906
1906
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1907
|
-
return [3
|
|
1907
|
+
return [3, 15];
|
|
1908
1908
|
case 4:
|
|
1909
1909
|
_d = [{}];
|
|
1910
|
-
return [4
|
|
1910
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1911
1911
|
case 5:
|
|
1912
1912
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1913
|
-
return [3
|
|
1913
|
+
return [3, 15];
|
|
1914
1914
|
case 6:
|
|
1915
1915
|
_e = [{}];
|
|
1916
|
-
return [4
|
|
1916
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1917
1917
|
case 7:
|
|
1918
1918
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1919
|
-
return [3
|
|
1919
|
+
return [3, 15];
|
|
1920
1920
|
case 8:
|
|
1921
1921
|
_f = [{}];
|
|
1922
|
-
return [4
|
|
1922
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1923
1923
|
case 9:
|
|
1924
1924
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1925
|
-
return [3
|
|
1925
|
+
return [3, 15];
|
|
1926
1926
|
case 10:
|
|
1927
1927
|
_g = [{}];
|
|
1928
|
-
return [4
|
|
1928
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1929
1929
|
case 11:
|
|
1930
1930
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1931
|
-
return [3
|
|
1931
|
+
return [3, 15];
|
|
1932
1932
|
case 12:
|
|
1933
1933
|
_h = [{}];
|
|
1934
|
-
return [4
|
|
1934
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1935
1935
|
case 13:
|
|
1936
1936
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1937
|
-
return [3
|
|
1937
|
+
return [3, 15];
|
|
1938
1938
|
case 14:
|
|
1939
1939
|
parsedBody = parsedOutput.body;
|
|
1940
1940
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1944,7 +1944,7 @@ var deserializeAws_restJson1ListAppInstanceUsersCommandError = function (output,
|
|
|
1944
1944
|
message = response.message || response.Message || errorCode;
|
|
1945
1945
|
response.message = message;
|
|
1946
1946
|
delete response.Message;
|
|
1947
|
-
return [2
|
|
1947
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1948
1948
|
}
|
|
1949
1949
|
});
|
|
1950
1950
|
}); };
|
|
@@ -1954,7 +1954,7 @@ export var deserializeAws_restJson1PutAppInstanceRetentionSettingsCommand = func
|
|
|
1954
1954
|
switch (_c.label) {
|
|
1955
1955
|
case 0:
|
|
1956
1956
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1957
|
-
return [2
|
|
1957
|
+
return [2, deserializeAws_restJson1PutAppInstanceRetentionSettingsCommandError(output, context)];
|
|
1958
1958
|
}
|
|
1959
1959
|
contents = {
|
|
1960
1960
|
$metadata: deserializeMetadata(output),
|
|
@@ -1963,7 +1963,7 @@ export var deserializeAws_restJson1PutAppInstanceRetentionSettingsCommand = func
|
|
|
1963
1963
|
};
|
|
1964
1964
|
_a = __expectNonNull;
|
|
1965
1965
|
_b = __expectObject;
|
|
1966
|
-
return [4
|
|
1966
|
+
return [4, parseBody(output.body, context)];
|
|
1967
1967
|
case 1:
|
|
1968
1968
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1969
1969
|
if (data.AppInstanceRetentionSettings !== undefined && data.AppInstanceRetentionSettings !== null) {
|
|
@@ -1972,7 +1972,7 @@ export var deserializeAws_restJson1PutAppInstanceRetentionSettingsCommand = func
|
|
|
1972
1972
|
if (data.InitiateDeletionTimestamp !== undefined && data.InitiateDeletionTimestamp !== null) {
|
|
1973
1973
|
contents.InitiateDeletionTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.InitiateDeletionTimestamp)));
|
|
1974
1974
|
}
|
|
1975
|
-
return [2
|
|
1975
|
+
return [2, Promise.resolve(contents)];
|
|
1976
1976
|
}
|
|
1977
1977
|
});
|
|
1978
1978
|
}); };
|
|
@@ -1984,63 +1984,63 @@ var deserializeAws_restJson1PutAppInstanceRetentionSettingsCommandError = functi
|
|
|
1984
1984
|
case 0:
|
|
1985
1985
|
_a = [__assign({}, output)];
|
|
1986
1986
|
_j = {};
|
|
1987
|
-
return [4
|
|
1987
|
+
return [4, parseBody(output.body, context)];
|
|
1988
1988
|
case 1:
|
|
1989
1989
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1990
1990
|
errorCode = "UnknownError";
|
|
1991
1991
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1992
1992
|
_b = errorCode;
|
|
1993
1993
|
switch (_b) {
|
|
1994
|
-
case "BadRequestException": return [3
|
|
1995
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3
|
|
1996
|
-
case "ForbiddenException": return [3
|
|
1997
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3
|
|
1998
|
-
case "ServiceFailureException": return [3
|
|
1999
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3
|
|
2000
|
-
case "ServiceUnavailableException": return [3
|
|
2001
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3
|
|
2002
|
-
case "ThrottledClientException": return [3
|
|
2003
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3
|
|
2004
|
-
case "UnauthorizedClientException": return [3
|
|
2005
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3
|
|
2006
|
-
}
|
|
2007
|
-
return [3
|
|
1994
|
+
case "BadRequestException": return [3, 2];
|
|
1995
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
1996
|
+
case "ForbiddenException": return [3, 4];
|
|
1997
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 4];
|
|
1998
|
+
case "ServiceFailureException": return [3, 6];
|
|
1999
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 6];
|
|
2000
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
2001
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 8];
|
|
2002
|
+
case "ThrottledClientException": return [3, 10];
|
|
2003
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 10];
|
|
2004
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
2005
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 12];
|
|
2006
|
+
}
|
|
2007
|
+
return [3, 14];
|
|
2008
2008
|
case 2:
|
|
2009
2009
|
_c = [{}];
|
|
2010
|
-
return [4
|
|
2010
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2011
2011
|
case 3:
|
|
2012
2012
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2013
|
-
return [3
|
|
2013
|
+
return [3, 15];
|
|
2014
2014
|
case 4:
|
|
2015
2015
|
_d = [{}];
|
|
2016
|
-
return [4
|
|
2016
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2017
2017
|
case 5:
|
|
2018
2018
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2019
|
-
return [3
|
|
2019
|
+
return [3, 15];
|
|
2020
2020
|
case 6:
|
|
2021
2021
|
_e = [{}];
|
|
2022
|
-
return [4
|
|
2022
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
2023
2023
|
case 7:
|
|
2024
2024
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2025
|
-
return [3
|
|
2025
|
+
return [3, 15];
|
|
2026
2026
|
case 8:
|
|
2027
2027
|
_f = [{}];
|
|
2028
|
-
return [4
|
|
2028
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2029
2029
|
case 9:
|
|
2030
2030
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2031
|
-
return [3
|
|
2031
|
+
return [3, 15];
|
|
2032
2032
|
case 10:
|
|
2033
2033
|
_g = [{}];
|
|
2034
|
-
return [4
|
|
2034
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
2035
2035
|
case 11:
|
|
2036
2036
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2037
|
-
return [3
|
|
2037
|
+
return [3, 15];
|
|
2038
2038
|
case 12:
|
|
2039
2039
|
_h = [{}];
|
|
2040
|
-
return [4
|
|
2040
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
2041
2041
|
case 13:
|
|
2042
2042
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2043
|
-
return [3
|
|
2043
|
+
return [3, 15];
|
|
2044
2044
|
case 14:
|
|
2045
2045
|
parsedBody = parsedOutput.body;
|
|
2046
2046
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2050,7 +2050,7 @@ var deserializeAws_restJson1PutAppInstanceRetentionSettingsCommandError = functi
|
|
|
2050
2050
|
message = response.message || response.Message || errorCode;
|
|
2051
2051
|
response.message = message;
|
|
2052
2052
|
delete response.Message;
|
|
2053
|
-
return [2
|
|
2053
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2054
2054
|
}
|
|
2055
2055
|
});
|
|
2056
2056
|
}); };
|
|
@@ -2060,7 +2060,7 @@ export var deserializeAws_restJson1UpdateAppInstanceCommand = function (output,
|
|
|
2060
2060
|
switch (_c.label) {
|
|
2061
2061
|
case 0:
|
|
2062
2062
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2063
|
-
return [2
|
|
2063
|
+
return [2, deserializeAws_restJson1UpdateAppInstanceCommandError(output, context)];
|
|
2064
2064
|
}
|
|
2065
2065
|
contents = {
|
|
2066
2066
|
$metadata: deserializeMetadata(output),
|
|
@@ -2068,13 +2068,13 @@ export var deserializeAws_restJson1UpdateAppInstanceCommand = function (output,
|
|
|
2068
2068
|
};
|
|
2069
2069
|
_a = __expectNonNull;
|
|
2070
2070
|
_b = __expectObject;
|
|
2071
|
-
return [4
|
|
2071
|
+
return [4, parseBody(output.body, context)];
|
|
2072
2072
|
case 1:
|
|
2073
2073
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2074
2074
|
if (data.AppInstanceArn !== undefined && data.AppInstanceArn !== null) {
|
|
2075
2075
|
contents.AppInstanceArn = __expectString(data.AppInstanceArn);
|
|
2076
2076
|
}
|
|
2077
|
-
return [2
|
|
2077
|
+
return [2, Promise.resolve(contents)];
|
|
2078
2078
|
}
|
|
2079
2079
|
});
|
|
2080
2080
|
}); };
|
|
@@ -2086,71 +2086,71 @@ var deserializeAws_restJson1UpdateAppInstanceCommandError = function (output, co
|
|
|
2086
2086
|
case 0:
|
|
2087
2087
|
_a = [__assign({}, output)];
|
|
2088
2088
|
_k = {};
|
|
2089
|
-
return [4
|
|
2089
|
+
return [4, parseBody(output.body, context)];
|
|
2090
2090
|
case 1:
|
|
2091
2091
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
2092
2092
|
errorCode = "UnknownError";
|
|
2093
2093
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2094
2094
|
_b = errorCode;
|
|
2095
2095
|
switch (_b) {
|
|
2096
|
-
case "BadRequestException": return [3
|
|
2097
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3
|
|
2098
|
-
case "ConflictException": return [3
|
|
2099
|
-
case "com.amazonaws.chimesdkidentity#ConflictException": return [3
|
|
2100
|
-
case "ForbiddenException": return [3
|
|
2101
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3
|
|
2102
|
-
case "ServiceFailureException": return [3
|
|
2103
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3
|
|
2104
|
-
case "ServiceUnavailableException": return [3
|
|
2105
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3
|
|
2106
|
-
case "ThrottledClientException": return [3
|
|
2107
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3
|
|
2108
|
-
case "UnauthorizedClientException": return [3
|
|
2109
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3
|
|
2110
|
-
}
|
|
2111
|
-
return [3
|
|
2096
|
+
case "BadRequestException": return [3, 2];
|
|
2097
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
2098
|
+
case "ConflictException": return [3, 4];
|
|
2099
|
+
case "com.amazonaws.chimesdkidentity#ConflictException": return [3, 4];
|
|
2100
|
+
case "ForbiddenException": return [3, 6];
|
|
2101
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 6];
|
|
2102
|
+
case "ServiceFailureException": return [3, 8];
|
|
2103
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 8];
|
|
2104
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
2105
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 10];
|
|
2106
|
+
case "ThrottledClientException": return [3, 12];
|
|
2107
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 12];
|
|
2108
|
+
case "UnauthorizedClientException": return [3, 14];
|
|
2109
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 14];
|
|
2110
|
+
}
|
|
2111
|
+
return [3, 16];
|
|
2112
2112
|
case 2:
|
|
2113
2113
|
_c = [{}];
|
|
2114
|
-
return [4
|
|
2114
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2115
2115
|
case 3:
|
|
2116
2116
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2117
|
-
return [3
|
|
2117
|
+
return [3, 17];
|
|
2118
2118
|
case 4:
|
|
2119
2119
|
_d = [{}];
|
|
2120
|
-
return [4
|
|
2120
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2121
2121
|
case 5:
|
|
2122
2122
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2123
|
-
return [3
|
|
2123
|
+
return [3, 17];
|
|
2124
2124
|
case 6:
|
|
2125
2125
|
_e = [{}];
|
|
2126
|
-
return [4
|
|
2126
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2127
2127
|
case 7:
|
|
2128
2128
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2129
|
-
return [3
|
|
2129
|
+
return [3, 17];
|
|
2130
2130
|
case 8:
|
|
2131
2131
|
_f = [{}];
|
|
2132
|
-
return [4
|
|
2132
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
2133
2133
|
case 9:
|
|
2134
2134
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2135
|
-
return [3
|
|
2135
|
+
return [3, 17];
|
|
2136
2136
|
case 10:
|
|
2137
2137
|
_g = [{}];
|
|
2138
|
-
return [4
|
|
2138
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2139
2139
|
case 11:
|
|
2140
2140
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2141
|
-
return [3
|
|
2141
|
+
return [3, 17];
|
|
2142
2142
|
case 12:
|
|
2143
2143
|
_h = [{}];
|
|
2144
|
-
return [4
|
|
2144
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
2145
2145
|
case 13:
|
|
2146
2146
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2147
|
-
return [3
|
|
2147
|
+
return [3, 17];
|
|
2148
2148
|
case 14:
|
|
2149
2149
|
_j = [{}];
|
|
2150
|
-
return [4
|
|
2150
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
2151
2151
|
case 15:
|
|
2152
2152
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2153
|
-
return [3
|
|
2153
|
+
return [3, 17];
|
|
2154
2154
|
case 16:
|
|
2155
2155
|
parsedBody = parsedOutput.body;
|
|
2156
2156
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2160,7 +2160,7 @@ var deserializeAws_restJson1UpdateAppInstanceCommandError = function (output, co
|
|
|
2160
2160
|
message = response.message || response.Message || errorCode;
|
|
2161
2161
|
response.message = message;
|
|
2162
2162
|
delete response.Message;
|
|
2163
|
-
return [2
|
|
2163
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2164
2164
|
}
|
|
2165
2165
|
});
|
|
2166
2166
|
}); };
|
|
@@ -2170,7 +2170,7 @@ export var deserializeAws_restJson1UpdateAppInstanceUserCommand = function (outp
|
|
|
2170
2170
|
switch (_c.label) {
|
|
2171
2171
|
case 0:
|
|
2172
2172
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2173
|
-
return [2
|
|
2173
|
+
return [2, deserializeAws_restJson1UpdateAppInstanceUserCommandError(output, context)];
|
|
2174
2174
|
}
|
|
2175
2175
|
contents = {
|
|
2176
2176
|
$metadata: deserializeMetadata(output),
|
|
@@ -2178,13 +2178,13 @@ export var deserializeAws_restJson1UpdateAppInstanceUserCommand = function (outp
|
|
|
2178
2178
|
};
|
|
2179
2179
|
_a = __expectNonNull;
|
|
2180
2180
|
_b = __expectObject;
|
|
2181
|
-
return [4
|
|
2181
|
+
return [4, parseBody(output.body, context)];
|
|
2182
2182
|
case 1:
|
|
2183
2183
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2184
2184
|
if (data.AppInstanceUserArn !== undefined && data.AppInstanceUserArn !== null) {
|
|
2185
2185
|
contents.AppInstanceUserArn = __expectString(data.AppInstanceUserArn);
|
|
2186
2186
|
}
|
|
2187
|
-
return [2
|
|
2187
|
+
return [2, Promise.resolve(contents)];
|
|
2188
2188
|
}
|
|
2189
2189
|
});
|
|
2190
2190
|
}); };
|
|
@@ -2196,79 +2196,79 @@ var deserializeAws_restJson1UpdateAppInstanceUserCommandError = function (output
|
|
|
2196
2196
|
case 0:
|
|
2197
2197
|
_a = [__assign({}, output)];
|
|
2198
2198
|
_l = {};
|
|
2199
|
-
return [4
|
|
2199
|
+
return [4, parseBody(output.body, context)];
|
|
2200
2200
|
case 1:
|
|
2201
2201
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
2202
2202
|
errorCode = "UnknownError";
|
|
2203
2203
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2204
2204
|
_b = errorCode;
|
|
2205
2205
|
switch (_b) {
|
|
2206
|
-
case "BadRequestException": return [3
|
|
2207
|
-
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3
|
|
2208
|
-
case "ConflictException": return [3
|
|
2209
|
-
case "com.amazonaws.chimesdkidentity#ConflictException": return [3
|
|
2210
|
-
case "ForbiddenException": return [3
|
|
2211
|
-
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3
|
|
2212
|
-
case "ResourceLimitExceededException": return [3
|
|
2213
|
-
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3
|
|
2214
|
-
case "ServiceFailureException": return [3
|
|
2215
|
-
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3
|
|
2216
|
-
case "ServiceUnavailableException": return [3
|
|
2217
|
-
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3
|
|
2218
|
-
case "ThrottledClientException": return [3
|
|
2219
|
-
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3
|
|
2220
|
-
case "UnauthorizedClientException": return [3
|
|
2221
|
-
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3
|
|
2222
|
-
}
|
|
2223
|
-
return [3
|
|
2206
|
+
case "BadRequestException": return [3, 2];
|
|
2207
|
+
case "com.amazonaws.chimesdkidentity#BadRequestException": return [3, 2];
|
|
2208
|
+
case "ConflictException": return [3, 4];
|
|
2209
|
+
case "com.amazonaws.chimesdkidentity#ConflictException": return [3, 4];
|
|
2210
|
+
case "ForbiddenException": return [3, 6];
|
|
2211
|
+
case "com.amazonaws.chimesdkidentity#ForbiddenException": return [3, 6];
|
|
2212
|
+
case "ResourceLimitExceededException": return [3, 8];
|
|
2213
|
+
case "com.amazonaws.chimesdkidentity#ResourceLimitExceededException": return [3, 8];
|
|
2214
|
+
case "ServiceFailureException": return [3, 10];
|
|
2215
|
+
case "com.amazonaws.chimesdkidentity#ServiceFailureException": return [3, 10];
|
|
2216
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
2217
|
+
case "com.amazonaws.chimesdkidentity#ServiceUnavailableException": return [3, 12];
|
|
2218
|
+
case "ThrottledClientException": return [3, 14];
|
|
2219
|
+
case "com.amazonaws.chimesdkidentity#ThrottledClientException": return [3, 14];
|
|
2220
|
+
case "UnauthorizedClientException": return [3, 16];
|
|
2221
|
+
case "com.amazonaws.chimesdkidentity#UnauthorizedClientException": return [3, 16];
|
|
2222
|
+
}
|
|
2223
|
+
return [3, 18];
|
|
2224
2224
|
case 2:
|
|
2225
2225
|
_c = [{}];
|
|
2226
|
-
return [4
|
|
2226
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2227
2227
|
case 3:
|
|
2228
2228
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2229
|
-
return [3
|
|
2229
|
+
return [3, 19];
|
|
2230
2230
|
case 4:
|
|
2231
2231
|
_d = [{}];
|
|
2232
|
-
return [4
|
|
2232
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2233
2233
|
case 5:
|
|
2234
2234
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2235
|
-
return [3
|
|
2235
|
+
return [3, 19];
|
|
2236
2236
|
case 6:
|
|
2237
2237
|
_e = [{}];
|
|
2238
|
-
return [4
|
|
2238
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2239
2239
|
case 7:
|
|
2240
2240
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2241
|
-
return [3
|
|
2241
|
+
return [3, 19];
|
|
2242
2242
|
case 8:
|
|
2243
2243
|
_f = [{}];
|
|
2244
|
-
return [4
|
|
2244
|
+
return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
2245
2245
|
case 9:
|
|
2246
2246
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2247
|
-
return [3
|
|
2247
|
+
return [3, 19];
|
|
2248
2248
|
case 10:
|
|
2249
2249
|
_g = [{}];
|
|
2250
|
-
return [4
|
|
2250
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
2251
2251
|
case 11:
|
|
2252
2252
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2253
|
-
return [3
|
|
2253
|
+
return [3, 19];
|
|
2254
2254
|
case 12:
|
|
2255
2255
|
_h = [{}];
|
|
2256
|
-
return [4
|
|
2256
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2257
2257
|
case 13:
|
|
2258
2258
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2259
|
-
return [3
|
|
2259
|
+
return [3, 19];
|
|
2260
2260
|
case 14:
|
|
2261
2261
|
_j = [{}];
|
|
2262
|
-
return [4
|
|
2262
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
2263
2263
|
case 15:
|
|
2264
2264
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2265
|
-
return [3
|
|
2265
|
+
return [3, 19];
|
|
2266
2266
|
case 16:
|
|
2267
2267
|
_k = [{}];
|
|
2268
|
-
return [4
|
|
2268
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
2269
2269
|
case 17:
|
|
2270
2270
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2271
|
-
return [3
|
|
2271
|
+
return [3, 19];
|
|
2272
2272
|
case 18:
|
|
2273
2273
|
parsedBody = parsedOutput.body;
|
|
2274
2274
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2278,7 +2278,7 @@ var deserializeAws_restJson1UpdateAppInstanceUserCommandError = function (output
|
|
|
2278
2278
|
message = response.message || response.Message || errorCode;
|
|
2279
2279
|
response.message = message;
|
|
2280
2280
|
delete response.Message;
|
|
2281
|
-
return [2
|
|
2281
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2282
2282
|
}
|
|
2283
2283
|
});
|
|
2284
2284
|
}); };
|
|
@@ -2299,7 +2299,7 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
2299
2299
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2300
2300
|
contents.Message = __expectString(data.Message);
|
|
2301
2301
|
}
|
|
2302
|
-
return [2
|
|
2302
|
+
return [2, contents];
|
|
2303
2303
|
});
|
|
2304
2304
|
}); };
|
|
2305
2305
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2319,7 +2319,7 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
2319
2319
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2320
2320
|
contents.Message = __expectString(data.Message);
|
|
2321
2321
|
}
|
|
2322
|
-
return [2
|
|
2322
|
+
return [2, contents];
|
|
2323
2323
|
});
|
|
2324
2324
|
}); };
|
|
2325
2325
|
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2339,7 +2339,7 @@ var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput,
|
|
|
2339
2339
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2340
2340
|
contents.Message = __expectString(data.Message);
|
|
2341
2341
|
}
|
|
2342
|
-
return [2
|
|
2342
|
+
return [2, contents];
|
|
2343
2343
|
});
|
|
2344
2344
|
}); };
|
|
2345
2345
|
var deserializeAws_restJson1ResourceLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2359,7 +2359,7 @@ var deserializeAws_restJson1ResourceLimitExceededExceptionResponse = function (p
|
|
|
2359
2359
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2360
2360
|
contents.Message = __expectString(data.Message);
|
|
2361
2361
|
}
|
|
2362
|
-
return [2
|
|
2362
|
+
return [2, contents];
|
|
2363
2363
|
});
|
|
2364
2364
|
}); };
|
|
2365
2365
|
var deserializeAws_restJson1ServiceFailureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2379,7 +2379,7 @@ var deserializeAws_restJson1ServiceFailureExceptionResponse = function (parsedOu
|
|
|
2379
2379
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2380
2380
|
contents.Message = __expectString(data.Message);
|
|
2381
2381
|
}
|
|
2382
|
-
return [2
|
|
2382
|
+
return [2, contents];
|
|
2383
2383
|
});
|
|
2384
2384
|
}); };
|
|
2385
2385
|
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2399,7 +2399,7 @@ var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (pars
|
|
|
2399
2399
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2400
2400
|
contents.Message = __expectString(data.Message);
|
|
2401
2401
|
}
|
|
2402
|
-
return [2
|
|
2402
|
+
return [2, contents];
|
|
2403
2403
|
});
|
|
2404
2404
|
}); };
|
|
2405
2405
|
var deserializeAws_restJson1ThrottledClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2419,7 +2419,7 @@ var deserializeAws_restJson1ThrottledClientExceptionResponse = function (parsedO
|
|
|
2419
2419
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2420
2420
|
contents.Message = __expectString(data.Message);
|
|
2421
2421
|
}
|
|
2422
|
-
return [2
|
|
2422
|
+
return [2, contents];
|
|
2423
2423
|
});
|
|
2424
2424
|
}); };
|
|
2425
2425
|
var deserializeAws_restJson1UnauthorizedClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2439,7 +2439,7 @@ var deserializeAws_restJson1UnauthorizedClientExceptionResponse = function (pars
|
|
|
2439
2439
|
if (data.Message !== undefined && data.Message !== null) {
|
|
2440
2440
|
contents.Message = __expectString(data.Message);
|
|
2441
2441
|
}
|
|
2442
|
-
return [2
|
|
2442
|
+
return [2, contents];
|
|
2443
2443
|
});
|
|
2444
2444
|
}); };
|
|
2445
2445
|
var serializeAws_restJson1AppInstanceRetentionSettings = function (input, context) {
|
|
@@ -2579,7 +2579,6 @@ var deserializeMetadata = function (output) {
|
|
|
2579
2579
|
cfId: output.headers["x-amz-cf-id"],
|
|
2580
2580
|
});
|
|
2581
2581
|
};
|
|
2582
|
-
// Collect low-level response body stream to Uint8Array.
|
|
2583
2582
|
var collectBody = function (streamBody, context) {
|
|
2584
2583
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2585
2584
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -2587,7 +2586,6 @@ var collectBody = function (streamBody, context) {
|
|
|
2587
2586
|
}
|
|
2588
2587
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2589
2588
|
};
|
|
2590
|
-
// Encode Uint8Array data into string with utf-8.
|
|
2591
2589
|
var collectBodyString = function (streamBody, context) {
|
|
2592
2590
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
2593
2591
|
};
|
|
@@ -2606,9 +2604,6 @@ var parseBody = function (streamBody, context) {
|
|
|
2606
2604
|
return {};
|
|
2607
2605
|
});
|
|
2608
2606
|
};
|
|
2609
|
-
/**
|
|
2610
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
2611
|
-
*/
|
|
2612
2607
|
var loadRestJsonErrorCode = function (output, data) {
|
|
2613
2608
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2614
2609
|
var sanitizeErrorCode = function (rawValue) {
|