@aws-sdk/client-cloud9 3.35.0 → 3.38.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 +47 -0
- package/dist-cjs/Cloud9.js +0 -70
- package/dist-cjs/Cloud9Client.js +0 -75
- package/dist-cjs/commands/CreateEnvironmentEC2Command.js +0 -26
- package/dist-cjs/commands/CreateEnvironmentMembershipCommand.js +0 -25
- package/dist-cjs/commands/DeleteEnvironmentCommand.js +0 -26
- package/dist-cjs/commands/DeleteEnvironmentMembershipCommand.js +0 -25
- package/dist-cjs/commands/DescribeEnvironmentMembershipsCommand.js +0 -25
- package/dist-cjs/commands/DescribeEnvironmentStatusCommand.js +0 -25
- package/dist-cjs/commands/DescribeEnvironmentsCommand.js +0 -25
- package/dist-cjs/commands/ListEnvironmentsCommand.js +0 -25
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
- package/dist-cjs/commands/TagResourceCommand.js +0 -29
- package/dist-cjs/commands/UntagResourceCommand.js +0 -25
- package/dist-cjs/commands/UpdateEnvironmentCommand.js +0 -25
- package/dist-cjs/commands/UpdateEnvironmentMembershipCommand.js +0 -26
- package/dist-cjs/commands/index.js +16 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -19
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -115
- package/dist-cjs/pagination/DescribeEnvironmentMembershipsPaginator.js +0 -11
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListEnvironmentsPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/Cloud9.js +0 -1
- package/dist-es/Cloud9Client.js +0 -1
- package/dist-es/commands/CreateEnvironmentEC2Command.js +0 -1
- package/dist-es/commands/CreateEnvironmentMembershipCommand.js +0 -1
- package/dist-es/commands/DeleteEnvironmentCommand.js +0 -1
- package/dist-es/commands/DeleteEnvironmentMembershipCommand.js +0 -1
- package/dist-es/commands/DescribeEnvironmentMembershipsCommand.js +0 -1
- package/dist-es/commands/DescribeEnvironmentStatusCommand.js +0 -1
- package/dist-es/commands/DescribeEnvironmentsCommand.js +0 -1
- package/dist-es/commands/ListEnvironmentsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateEnvironmentCommand.js +0 -1
- package/dist-es/commands/UpdateEnvironmentMembershipCommand.js +0 -1
- package/dist-es/commands/index.js +13 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -19
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/DescribeEnvironmentMembershipsPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListEnvironmentsPaginator.js +0 -1
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/index.d.ts +4 -18
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/Cloud9.d.ts +14 -115
- package/dist-types/ts3.4/Cloud9Client.d.ts +24 -155
- package/dist-types/ts3.4/commands/CreateEnvironmentEC2Command.d.ts +2 -21
- package/dist-types/ts3.4/commands/CreateEnvironmentMembershipCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteEnvironmentCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteEnvironmentMembershipCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeEnvironmentMembershipsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeEnvironmentStatusCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeEnvironmentsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListEnvironmentsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateEnvironmentCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateEnvironmentMembershipCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/index.d.ts +4 -18
- package/dist-types/ts3.4/models/models_0.d.ts +118 -629
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/Cloud9.js.map +0 -1
- package/dist-cjs/Cloud9Client.js.map +0 -1
- package/dist-cjs/commands/CreateEnvironmentEC2Command.js.map +0 -1
- package/dist-cjs/commands/CreateEnvironmentMembershipCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteEnvironmentCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteEnvironmentMembershipCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeEnvironmentMembershipsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeEnvironmentStatusCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeEnvironmentsCommand.js.map +0 -1
- package/dist-cjs/commands/ListEnvironmentsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateEnvironmentCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateEnvironmentMembershipCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/DescribeEnvironmentMembershipsPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListEnvironmentsPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.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/Cloud9.js.map +0 -1
- package/dist-es/Cloud9Client.js.map +0 -1
- package/dist-es/commands/CreateEnvironmentEC2Command.js.map +0 -1
- package/dist-es/commands/CreateEnvironmentMembershipCommand.js.map +0 -1
- package/dist-es/commands/DeleteEnvironmentCommand.js.map +0 -1
- package/dist-es/commands/DeleteEnvironmentMembershipCommand.js.map +0 -1
- package/dist-es/commands/DescribeEnvironmentMembershipsCommand.js.map +0 -1
- package/dist-es/commands/DescribeEnvironmentStatusCommand.js.map +0 -1
- package/dist-es/commands/DescribeEnvironmentsCommand.js.map +0 -1
- package/dist-es/commands/ListEnvironmentsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateEnvironmentCommand.js.map +0 -1
- package/dist-es/commands/UpdateEnvironmentMembershipCommand.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/pagination/DescribeEnvironmentMembershipsPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListEnvironmentsPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.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
- package/jest.config.js +0 -4
- package/src/Cloud9.ts +0 -552
- package/src/Cloud9Client.ts +0 -365
- package/src/commands/CreateEnvironmentEC2Command.ts +0 -96
- package/src/commands/CreateEnvironmentMembershipCommand.ts +0 -98
- package/src/commands/DeleteEnvironmentCommand.ts +0 -96
- package/src/commands/DeleteEnvironmentMembershipCommand.ts +0 -98
- package/src/commands/DescribeEnvironmentMembershipsCommand.ts +0 -103
- package/src/commands/DescribeEnvironmentStatusCommand.ts +0 -98
- package/src/commands/DescribeEnvironmentsCommand.ts +0 -95
- package/src/commands/ListEnvironmentsCommand.ts +0 -95
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/TagResourceCommand.ts +0 -99
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UpdateEnvironmentCommand.ts +0 -95
- package/src/commands/UpdateEnvironmentMembershipCommand.ts +0 -99
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -19
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -1187
- package/src/pagination/DescribeEnvironmentMembershipsPaginator.ts +0 -59
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListEnvironmentsPaginator.ts +0 -59
- package/src/protocols/Aws_json1_1.ts +0 -2189
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,2189 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
|
-
import {
|
|
3
|
-
expectInt32 as __expectInt32,
|
|
4
|
-
expectNonNull as __expectNonNull,
|
|
5
|
-
expectNumber as __expectNumber,
|
|
6
|
-
expectString as __expectString,
|
|
7
|
-
parseEpochTimestamp as __parseEpochTimestamp,
|
|
8
|
-
} from "@aws-sdk/smithy-client";
|
|
9
|
-
import {
|
|
10
|
-
Endpoint as __Endpoint,
|
|
11
|
-
HeaderBag as __HeaderBag,
|
|
12
|
-
MetadataBearer as __MetadataBearer,
|
|
13
|
-
ResponseMetadata as __ResponseMetadata,
|
|
14
|
-
SerdeContext as __SerdeContext,
|
|
15
|
-
SmithyException as __SmithyException,
|
|
16
|
-
} from "@aws-sdk/types";
|
|
17
|
-
|
|
18
|
-
import {
|
|
19
|
-
CreateEnvironmentEC2CommandInput,
|
|
20
|
-
CreateEnvironmentEC2CommandOutput,
|
|
21
|
-
} from "../commands/CreateEnvironmentEC2Command";
|
|
22
|
-
import {
|
|
23
|
-
CreateEnvironmentMembershipCommandInput,
|
|
24
|
-
CreateEnvironmentMembershipCommandOutput,
|
|
25
|
-
} from "../commands/CreateEnvironmentMembershipCommand";
|
|
26
|
-
import { DeleteEnvironmentCommandInput, DeleteEnvironmentCommandOutput } from "../commands/DeleteEnvironmentCommand";
|
|
27
|
-
import {
|
|
28
|
-
DeleteEnvironmentMembershipCommandInput,
|
|
29
|
-
DeleteEnvironmentMembershipCommandOutput,
|
|
30
|
-
} from "../commands/DeleteEnvironmentMembershipCommand";
|
|
31
|
-
import {
|
|
32
|
-
DescribeEnvironmentMembershipsCommandInput,
|
|
33
|
-
DescribeEnvironmentMembershipsCommandOutput,
|
|
34
|
-
} from "../commands/DescribeEnvironmentMembershipsCommand";
|
|
35
|
-
import {
|
|
36
|
-
DescribeEnvironmentsCommandInput,
|
|
37
|
-
DescribeEnvironmentsCommandOutput,
|
|
38
|
-
} from "../commands/DescribeEnvironmentsCommand";
|
|
39
|
-
import {
|
|
40
|
-
DescribeEnvironmentStatusCommandInput,
|
|
41
|
-
DescribeEnvironmentStatusCommandOutput,
|
|
42
|
-
} from "../commands/DescribeEnvironmentStatusCommand";
|
|
43
|
-
import { ListEnvironmentsCommandInput, ListEnvironmentsCommandOutput } from "../commands/ListEnvironmentsCommand";
|
|
44
|
-
import {
|
|
45
|
-
ListTagsForResourceCommandInput,
|
|
46
|
-
ListTagsForResourceCommandOutput,
|
|
47
|
-
} from "../commands/ListTagsForResourceCommand";
|
|
48
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
49
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
50
|
-
import { UpdateEnvironmentCommandInput, UpdateEnvironmentCommandOutput } from "../commands/UpdateEnvironmentCommand";
|
|
51
|
-
import {
|
|
52
|
-
UpdateEnvironmentMembershipCommandInput,
|
|
53
|
-
UpdateEnvironmentMembershipCommandOutput,
|
|
54
|
-
} from "../commands/UpdateEnvironmentMembershipCommand";
|
|
55
|
-
import {
|
|
56
|
-
BadRequestException,
|
|
57
|
-
ConcurrentAccessException,
|
|
58
|
-
ConflictException,
|
|
59
|
-
CreateEnvironmentEC2Request,
|
|
60
|
-
CreateEnvironmentEC2Result,
|
|
61
|
-
CreateEnvironmentMembershipRequest,
|
|
62
|
-
CreateEnvironmentMembershipResult,
|
|
63
|
-
DeleteEnvironmentMembershipRequest,
|
|
64
|
-
DeleteEnvironmentMembershipResult,
|
|
65
|
-
DeleteEnvironmentRequest,
|
|
66
|
-
DeleteEnvironmentResult,
|
|
67
|
-
DescribeEnvironmentMembershipsRequest,
|
|
68
|
-
DescribeEnvironmentMembershipsResult,
|
|
69
|
-
DescribeEnvironmentsRequest,
|
|
70
|
-
DescribeEnvironmentsResult,
|
|
71
|
-
DescribeEnvironmentStatusRequest,
|
|
72
|
-
DescribeEnvironmentStatusResult,
|
|
73
|
-
Environment,
|
|
74
|
-
EnvironmentLifecycle,
|
|
75
|
-
EnvironmentMember,
|
|
76
|
-
ForbiddenException,
|
|
77
|
-
InternalServerErrorException,
|
|
78
|
-
LimitExceededException,
|
|
79
|
-
ListEnvironmentsRequest,
|
|
80
|
-
ListEnvironmentsResult,
|
|
81
|
-
ListTagsForResourceRequest,
|
|
82
|
-
ListTagsForResourceResponse,
|
|
83
|
-
NotFoundException,
|
|
84
|
-
Permissions,
|
|
85
|
-
Tag,
|
|
86
|
-
TagResourceRequest,
|
|
87
|
-
TagResourceResponse,
|
|
88
|
-
TooManyRequestsException,
|
|
89
|
-
UntagResourceRequest,
|
|
90
|
-
UntagResourceResponse,
|
|
91
|
-
UpdateEnvironmentMembershipRequest,
|
|
92
|
-
UpdateEnvironmentMembershipResult,
|
|
93
|
-
UpdateEnvironmentRequest,
|
|
94
|
-
UpdateEnvironmentResult,
|
|
95
|
-
} from "../models/models_0";
|
|
96
|
-
|
|
97
|
-
export const serializeAws_json1_1CreateEnvironmentEC2Command = async (
|
|
98
|
-
input: CreateEnvironmentEC2CommandInput,
|
|
99
|
-
context: __SerdeContext
|
|
100
|
-
): Promise<__HttpRequest> => {
|
|
101
|
-
const headers: __HeaderBag = {
|
|
102
|
-
"content-type": "application/x-amz-json-1.1",
|
|
103
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.CreateEnvironmentEC2",
|
|
104
|
-
};
|
|
105
|
-
let body: any;
|
|
106
|
-
body = JSON.stringify(serializeAws_json1_1CreateEnvironmentEC2Request(input, context));
|
|
107
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
export const serializeAws_json1_1CreateEnvironmentMembershipCommand = async (
|
|
111
|
-
input: CreateEnvironmentMembershipCommandInput,
|
|
112
|
-
context: __SerdeContext
|
|
113
|
-
): Promise<__HttpRequest> => {
|
|
114
|
-
const headers: __HeaderBag = {
|
|
115
|
-
"content-type": "application/x-amz-json-1.1",
|
|
116
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.CreateEnvironmentMembership",
|
|
117
|
-
};
|
|
118
|
-
let body: any;
|
|
119
|
-
body = JSON.stringify(serializeAws_json1_1CreateEnvironmentMembershipRequest(input, context));
|
|
120
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
export const serializeAws_json1_1DeleteEnvironmentCommand = async (
|
|
124
|
-
input: DeleteEnvironmentCommandInput,
|
|
125
|
-
context: __SerdeContext
|
|
126
|
-
): Promise<__HttpRequest> => {
|
|
127
|
-
const headers: __HeaderBag = {
|
|
128
|
-
"content-type": "application/x-amz-json-1.1",
|
|
129
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.DeleteEnvironment",
|
|
130
|
-
};
|
|
131
|
-
let body: any;
|
|
132
|
-
body = JSON.stringify(serializeAws_json1_1DeleteEnvironmentRequest(input, context));
|
|
133
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
export const serializeAws_json1_1DeleteEnvironmentMembershipCommand = async (
|
|
137
|
-
input: DeleteEnvironmentMembershipCommandInput,
|
|
138
|
-
context: __SerdeContext
|
|
139
|
-
): Promise<__HttpRequest> => {
|
|
140
|
-
const headers: __HeaderBag = {
|
|
141
|
-
"content-type": "application/x-amz-json-1.1",
|
|
142
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.DeleteEnvironmentMembership",
|
|
143
|
-
};
|
|
144
|
-
let body: any;
|
|
145
|
-
body = JSON.stringify(serializeAws_json1_1DeleteEnvironmentMembershipRequest(input, context));
|
|
146
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
export const serializeAws_json1_1DescribeEnvironmentMembershipsCommand = async (
|
|
150
|
-
input: DescribeEnvironmentMembershipsCommandInput,
|
|
151
|
-
context: __SerdeContext
|
|
152
|
-
): Promise<__HttpRequest> => {
|
|
153
|
-
const headers: __HeaderBag = {
|
|
154
|
-
"content-type": "application/x-amz-json-1.1",
|
|
155
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.DescribeEnvironmentMemberships",
|
|
156
|
-
};
|
|
157
|
-
let body: any;
|
|
158
|
-
body = JSON.stringify(serializeAws_json1_1DescribeEnvironmentMembershipsRequest(input, context));
|
|
159
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
export const serializeAws_json1_1DescribeEnvironmentsCommand = async (
|
|
163
|
-
input: DescribeEnvironmentsCommandInput,
|
|
164
|
-
context: __SerdeContext
|
|
165
|
-
): Promise<__HttpRequest> => {
|
|
166
|
-
const headers: __HeaderBag = {
|
|
167
|
-
"content-type": "application/x-amz-json-1.1",
|
|
168
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.DescribeEnvironments",
|
|
169
|
-
};
|
|
170
|
-
let body: any;
|
|
171
|
-
body = JSON.stringify(serializeAws_json1_1DescribeEnvironmentsRequest(input, context));
|
|
172
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
export const serializeAws_json1_1DescribeEnvironmentStatusCommand = async (
|
|
176
|
-
input: DescribeEnvironmentStatusCommandInput,
|
|
177
|
-
context: __SerdeContext
|
|
178
|
-
): Promise<__HttpRequest> => {
|
|
179
|
-
const headers: __HeaderBag = {
|
|
180
|
-
"content-type": "application/x-amz-json-1.1",
|
|
181
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.DescribeEnvironmentStatus",
|
|
182
|
-
};
|
|
183
|
-
let body: any;
|
|
184
|
-
body = JSON.stringify(serializeAws_json1_1DescribeEnvironmentStatusRequest(input, context));
|
|
185
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
export const serializeAws_json1_1ListEnvironmentsCommand = async (
|
|
189
|
-
input: ListEnvironmentsCommandInput,
|
|
190
|
-
context: __SerdeContext
|
|
191
|
-
): Promise<__HttpRequest> => {
|
|
192
|
-
const headers: __HeaderBag = {
|
|
193
|
-
"content-type": "application/x-amz-json-1.1",
|
|
194
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.ListEnvironments",
|
|
195
|
-
};
|
|
196
|
-
let body: any;
|
|
197
|
-
body = JSON.stringify(serializeAws_json1_1ListEnvironmentsRequest(input, context));
|
|
198
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
export const serializeAws_json1_1ListTagsForResourceCommand = async (
|
|
202
|
-
input: ListTagsForResourceCommandInput,
|
|
203
|
-
context: __SerdeContext
|
|
204
|
-
): Promise<__HttpRequest> => {
|
|
205
|
-
const headers: __HeaderBag = {
|
|
206
|
-
"content-type": "application/x-amz-json-1.1",
|
|
207
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.ListTagsForResource",
|
|
208
|
-
};
|
|
209
|
-
let body: any;
|
|
210
|
-
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
211
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
export const serializeAws_json1_1TagResourceCommand = async (
|
|
215
|
-
input: TagResourceCommandInput,
|
|
216
|
-
context: __SerdeContext
|
|
217
|
-
): Promise<__HttpRequest> => {
|
|
218
|
-
const headers: __HeaderBag = {
|
|
219
|
-
"content-type": "application/x-amz-json-1.1",
|
|
220
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.TagResource",
|
|
221
|
-
};
|
|
222
|
-
let body: any;
|
|
223
|
-
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
224
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
export const serializeAws_json1_1UntagResourceCommand = async (
|
|
228
|
-
input: UntagResourceCommandInput,
|
|
229
|
-
context: __SerdeContext
|
|
230
|
-
): Promise<__HttpRequest> => {
|
|
231
|
-
const headers: __HeaderBag = {
|
|
232
|
-
"content-type": "application/x-amz-json-1.1",
|
|
233
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.UntagResource",
|
|
234
|
-
};
|
|
235
|
-
let body: any;
|
|
236
|
-
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
237
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
export const serializeAws_json1_1UpdateEnvironmentCommand = async (
|
|
241
|
-
input: UpdateEnvironmentCommandInput,
|
|
242
|
-
context: __SerdeContext
|
|
243
|
-
): Promise<__HttpRequest> => {
|
|
244
|
-
const headers: __HeaderBag = {
|
|
245
|
-
"content-type": "application/x-amz-json-1.1",
|
|
246
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.UpdateEnvironment",
|
|
247
|
-
};
|
|
248
|
-
let body: any;
|
|
249
|
-
body = JSON.stringify(serializeAws_json1_1UpdateEnvironmentRequest(input, context));
|
|
250
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
export const serializeAws_json1_1UpdateEnvironmentMembershipCommand = async (
|
|
254
|
-
input: UpdateEnvironmentMembershipCommandInput,
|
|
255
|
-
context: __SerdeContext
|
|
256
|
-
): Promise<__HttpRequest> => {
|
|
257
|
-
const headers: __HeaderBag = {
|
|
258
|
-
"content-type": "application/x-amz-json-1.1",
|
|
259
|
-
"x-amz-target": "AWSCloud9WorkspaceManagementService.UpdateEnvironmentMembership",
|
|
260
|
-
};
|
|
261
|
-
let body: any;
|
|
262
|
-
body = JSON.stringify(serializeAws_json1_1UpdateEnvironmentMembershipRequest(input, context));
|
|
263
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
264
|
-
};
|
|
265
|
-
|
|
266
|
-
export const deserializeAws_json1_1CreateEnvironmentEC2Command = async (
|
|
267
|
-
output: __HttpResponse,
|
|
268
|
-
context: __SerdeContext
|
|
269
|
-
): Promise<CreateEnvironmentEC2CommandOutput> => {
|
|
270
|
-
if (output.statusCode >= 300) {
|
|
271
|
-
return deserializeAws_json1_1CreateEnvironmentEC2CommandError(output, context);
|
|
272
|
-
}
|
|
273
|
-
const data: any = await parseBody(output.body, context);
|
|
274
|
-
let contents: any = {};
|
|
275
|
-
contents = deserializeAws_json1_1CreateEnvironmentEC2Result(data, context);
|
|
276
|
-
const response: CreateEnvironmentEC2CommandOutput = {
|
|
277
|
-
$metadata: deserializeMetadata(output),
|
|
278
|
-
...contents,
|
|
279
|
-
};
|
|
280
|
-
return Promise.resolve(response);
|
|
281
|
-
};
|
|
282
|
-
|
|
283
|
-
const deserializeAws_json1_1CreateEnvironmentEC2CommandError = async (
|
|
284
|
-
output: __HttpResponse,
|
|
285
|
-
context: __SerdeContext
|
|
286
|
-
): Promise<CreateEnvironmentEC2CommandOutput> => {
|
|
287
|
-
const parsedOutput: any = {
|
|
288
|
-
...output,
|
|
289
|
-
body: await parseBody(output.body, context),
|
|
290
|
-
};
|
|
291
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
292
|
-
let errorCode = "UnknownError";
|
|
293
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
294
|
-
switch (errorCode) {
|
|
295
|
-
case "BadRequestException":
|
|
296
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
297
|
-
response = {
|
|
298
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
299
|
-
name: errorCode,
|
|
300
|
-
$metadata: deserializeMetadata(output),
|
|
301
|
-
};
|
|
302
|
-
break;
|
|
303
|
-
case "ConflictException":
|
|
304
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
305
|
-
response = {
|
|
306
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
307
|
-
name: errorCode,
|
|
308
|
-
$metadata: deserializeMetadata(output),
|
|
309
|
-
};
|
|
310
|
-
break;
|
|
311
|
-
case "ForbiddenException":
|
|
312
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
313
|
-
response = {
|
|
314
|
-
...(await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
315
|
-
name: errorCode,
|
|
316
|
-
$metadata: deserializeMetadata(output),
|
|
317
|
-
};
|
|
318
|
-
break;
|
|
319
|
-
case "InternalServerErrorException":
|
|
320
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
321
|
-
response = {
|
|
322
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
323
|
-
name: errorCode,
|
|
324
|
-
$metadata: deserializeMetadata(output),
|
|
325
|
-
};
|
|
326
|
-
break;
|
|
327
|
-
case "LimitExceededException":
|
|
328
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
329
|
-
response = {
|
|
330
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
331
|
-
name: errorCode,
|
|
332
|
-
$metadata: deserializeMetadata(output),
|
|
333
|
-
};
|
|
334
|
-
break;
|
|
335
|
-
case "NotFoundException":
|
|
336
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
337
|
-
response = {
|
|
338
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
339
|
-
name: errorCode,
|
|
340
|
-
$metadata: deserializeMetadata(output),
|
|
341
|
-
};
|
|
342
|
-
break;
|
|
343
|
-
case "TooManyRequestsException":
|
|
344
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
345
|
-
response = {
|
|
346
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
347
|
-
name: errorCode,
|
|
348
|
-
$metadata: deserializeMetadata(output),
|
|
349
|
-
};
|
|
350
|
-
break;
|
|
351
|
-
default:
|
|
352
|
-
const parsedBody = parsedOutput.body;
|
|
353
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
354
|
-
response = {
|
|
355
|
-
...parsedBody,
|
|
356
|
-
name: `${errorCode}`,
|
|
357
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
358
|
-
$fault: "client",
|
|
359
|
-
$metadata: deserializeMetadata(output),
|
|
360
|
-
} as any;
|
|
361
|
-
}
|
|
362
|
-
const message = response.message || response.Message || errorCode;
|
|
363
|
-
response.message = message;
|
|
364
|
-
delete response.Message;
|
|
365
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
366
|
-
};
|
|
367
|
-
|
|
368
|
-
export const deserializeAws_json1_1CreateEnvironmentMembershipCommand = async (
|
|
369
|
-
output: __HttpResponse,
|
|
370
|
-
context: __SerdeContext
|
|
371
|
-
): Promise<CreateEnvironmentMembershipCommandOutput> => {
|
|
372
|
-
if (output.statusCode >= 300) {
|
|
373
|
-
return deserializeAws_json1_1CreateEnvironmentMembershipCommandError(output, context);
|
|
374
|
-
}
|
|
375
|
-
const data: any = await parseBody(output.body, context);
|
|
376
|
-
let contents: any = {};
|
|
377
|
-
contents = deserializeAws_json1_1CreateEnvironmentMembershipResult(data, context);
|
|
378
|
-
const response: CreateEnvironmentMembershipCommandOutput = {
|
|
379
|
-
$metadata: deserializeMetadata(output),
|
|
380
|
-
...contents,
|
|
381
|
-
};
|
|
382
|
-
return Promise.resolve(response);
|
|
383
|
-
};
|
|
384
|
-
|
|
385
|
-
const deserializeAws_json1_1CreateEnvironmentMembershipCommandError = async (
|
|
386
|
-
output: __HttpResponse,
|
|
387
|
-
context: __SerdeContext
|
|
388
|
-
): Promise<CreateEnvironmentMembershipCommandOutput> => {
|
|
389
|
-
const parsedOutput: any = {
|
|
390
|
-
...output,
|
|
391
|
-
body: await parseBody(output.body, context),
|
|
392
|
-
};
|
|
393
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
394
|
-
let errorCode = "UnknownError";
|
|
395
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
396
|
-
switch (errorCode) {
|
|
397
|
-
case "BadRequestException":
|
|
398
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
399
|
-
response = {
|
|
400
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
401
|
-
name: errorCode,
|
|
402
|
-
$metadata: deserializeMetadata(output),
|
|
403
|
-
};
|
|
404
|
-
break;
|
|
405
|
-
case "ConflictException":
|
|
406
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
407
|
-
response = {
|
|
408
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
409
|
-
name: errorCode,
|
|
410
|
-
$metadata: deserializeMetadata(output),
|
|
411
|
-
};
|
|
412
|
-
break;
|
|
413
|
-
case "ForbiddenException":
|
|
414
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
415
|
-
response = {
|
|
416
|
-
...(await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
417
|
-
name: errorCode,
|
|
418
|
-
$metadata: deserializeMetadata(output),
|
|
419
|
-
};
|
|
420
|
-
break;
|
|
421
|
-
case "InternalServerErrorException":
|
|
422
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
423
|
-
response = {
|
|
424
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
425
|
-
name: errorCode,
|
|
426
|
-
$metadata: deserializeMetadata(output),
|
|
427
|
-
};
|
|
428
|
-
break;
|
|
429
|
-
case "LimitExceededException":
|
|
430
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
431
|
-
response = {
|
|
432
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
433
|
-
name: errorCode,
|
|
434
|
-
$metadata: deserializeMetadata(output),
|
|
435
|
-
};
|
|
436
|
-
break;
|
|
437
|
-
case "NotFoundException":
|
|
438
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
439
|
-
response = {
|
|
440
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
441
|
-
name: errorCode,
|
|
442
|
-
$metadata: deserializeMetadata(output),
|
|
443
|
-
};
|
|
444
|
-
break;
|
|
445
|
-
case "TooManyRequestsException":
|
|
446
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
447
|
-
response = {
|
|
448
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
449
|
-
name: errorCode,
|
|
450
|
-
$metadata: deserializeMetadata(output),
|
|
451
|
-
};
|
|
452
|
-
break;
|
|
453
|
-
default:
|
|
454
|
-
const parsedBody = parsedOutput.body;
|
|
455
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
456
|
-
response = {
|
|
457
|
-
...parsedBody,
|
|
458
|
-
name: `${errorCode}`,
|
|
459
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
460
|
-
$fault: "client",
|
|
461
|
-
$metadata: deserializeMetadata(output),
|
|
462
|
-
} as any;
|
|
463
|
-
}
|
|
464
|
-
const message = response.message || response.Message || errorCode;
|
|
465
|
-
response.message = message;
|
|
466
|
-
delete response.Message;
|
|
467
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
468
|
-
};
|
|
469
|
-
|
|
470
|
-
export const deserializeAws_json1_1DeleteEnvironmentCommand = async (
|
|
471
|
-
output: __HttpResponse,
|
|
472
|
-
context: __SerdeContext
|
|
473
|
-
): Promise<DeleteEnvironmentCommandOutput> => {
|
|
474
|
-
if (output.statusCode >= 300) {
|
|
475
|
-
return deserializeAws_json1_1DeleteEnvironmentCommandError(output, context);
|
|
476
|
-
}
|
|
477
|
-
const data: any = await parseBody(output.body, context);
|
|
478
|
-
let contents: any = {};
|
|
479
|
-
contents = deserializeAws_json1_1DeleteEnvironmentResult(data, context);
|
|
480
|
-
const response: DeleteEnvironmentCommandOutput = {
|
|
481
|
-
$metadata: deserializeMetadata(output),
|
|
482
|
-
...contents,
|
|
483
|
-
};
|
|
484
|
-
return Promise.resolve(response);
|
|
485
|
-
};
|
|
486
|
-
|
|
487
|
-
const deserializeAws_json1_1DeleteEnvironmentCommandError = async (
|
|
488
|
-
output: __HttpResponse,
|
|
489
|
-
context: __SerdeContext
|
|
490
|
-
): Promise<DeleteEnvironmentCommandOutput> => {
|
|
491
|
-
const parsedOutput: any = {
|
|
492
|
-
...output,
|
|
493
|
-
body: await parseBody(output.body, context),
|
|
494
|
-
};
|
|
495
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
496
|
-
let errorCode = "UnknownError";
|
|
497
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
498
|
-
switch (errorCode) {
|
|
499
|
-
case "BadRequestException":
|
|
500
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
501
|
-
response = {
|
|
502
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
503
|
-
name: errorCode,
|
|
504
|
-
$metadata: deserializeMetadata(output),
|
|
505
|
-
};
|
|
506
|
-
break;
|
|
507
|
-
case "ConflictException":
|
|
508
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
509
|
-
response = {
|
|
510
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
511
|
-
name: errorCode,
|
|
512
|
-
$metadata: deserializeMetadata(output),
|
|
513
|
-
};
|
|
514
|
-
break;
|
|
515
|
-
case "ForbiddenException":
|
|
516
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
517
|
-
response = {
|
|
518
|
-
...(await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
519
|
-
name: errorCode,
|
|
520
|
-
$metadata: deserializeMetadata(output),
|
|
521
|
-
};
|
|
522
|
-
break;
|
|
523
|
-
case "InternalServerErrorException":
|
|
524
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
525
|
-
response = {
|
|
526
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
527
|
-
name: errorCode,
|
|
528
|
-
$metadata: deserializeMetadata(output),
|
|
529
|
-
};
|
|
530
|
-
break;
|
|
531
|
-
case "LimitExceededException":
|
|
532
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
533
|
-
response = {
|
|
534
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
535
|
-
name: errorCode,
|
|
536
|
-
$metadata: deserializeMetadata(output),
|
|
537
|
-
};
|
|
538
|
-
break;
|
|
539
|
-
case "NotFoundException":
|
|
540
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
541
|
-
response = {
|
|
542
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
543
|
-
name: errorCode,
|
|
544
|
-
$metadata: deserializeMetadata(output),
|
|
545
|
-
};
|
|
546
|
-
break;
|
|
547
|
-
case "TooManyRequestsException":
|
|
548
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
549
|
-
response = {
|
|
550
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
551
|
-
name: errorCode,
|
|
552
|
-
$metadata: deserializeMetadata(output),
|
|
553
|
-
};
|
|
554
|
-
break;
|
|
555
|
-
default:
|
|
556
|
-
const parsedBody = parsedOutput.body;
|
|
557
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
558
|
-
response = {
|
|
559
|
-
...parsedBody,
|
|
560
|
-
name: `${errorCode}`,
|
|
561
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
562
|
-
$fault: "client",
|
|
563
|
-
$metadata: deserializeMetadata(output),
|
|
564
|
-
} as any;
|
|
565
|
-
}
|
|
566
|
-
const message = response.message || response.Message || errorCode;
|
|
567
|
-
response.message = message;
|
|
568
|
-
delete response.Message;
|
|
569
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
570
|
-
};
|
|
571
|
-
|
|
572
|
-
export const deserializeAws_json1_1DeleteEnvironmentMembershipCommand = async (
|
|
573
|
-
output: __HttpResponse,
|
|
574
|
-
context: __SerdeContext
|
|
575
|
-
): Promise<DeleteEnvironmentMembershipCommandOutput> => {
|
|
576
|
-
if (output.statusCode >= 300) {
|
|
577
|
-
return deserializeAws_json1_1DeleteEnvironmentMembershipCommandError(output, context);
|
|
578
|
-
}
|
|
579
|
-
const data: any = await parseBody(output.body, context);
|
|
580
|
-
let contents: any = {};
|
|
581
|
-
contents = deserializeAws_json1_1DeleteEnvironmentMembershipResult(data, context);
|
|
582
|
-
const response: DeleteEnvironmentMembershipCommandOutput = {
|
|
583
|
-
$metadata: deserializeMetadata(output),
|
|
584
|
-
...contents,
|
|
585
|
-
};
|
|
586
|
-
return Promise.resolve(response);
|
|
587
|
-
};
|
|
588
|
-
|
|
589
|
-
const deserializeAws_json1_1DeleteEnvironmentMembershipCommandError = async (
|
|
590
|
-
output: __HttpResponse,
|
|
591
|
-
context: __SerdeContext
|
|
592
|
-
): Promise<DeleteEnvironmentMembershipCommandOutput> => {
|
|
593
|
-
const parsedOutput: any = {
|
|
594
|
-
...output,
|
|
595
|
-
body: await parseBody(output.body, context),
|
|
596
|
-
};
|
|
597
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
598
|
-
let errorCode = "UnknownError";
|
|
599
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
600
|
-
switch (errorCode) {
|
|
601
|
-
case "BadRequestException":
|
|
602
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
603
|
-
response = {
|
|
604
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
605
|
-
name: errorCode,
|
|
606
|
-
$metadata: deserializeMetadata(output),
|
|
607
|
-
};
|
|
608
|
-
break;
|
|
609
|
-
case "ConflictException":
|
|
610
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
611
|
-
response = {
|
|
612
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
613
|
-
name: errorCode,
|
|
614
|
-
$metadata: deserializeMetadata(output),
|
|
615
|
-
};
|
|
616
|
-
break;
|
|
617
|
-
case "ForbiddenException":
|
|
618
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
619
|
-
response = {
|
|
620
|
-
...(await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
621
|
-
name: errorCode,
|
|
622
|
-
$metadata: deserializeMetadata(output),
|
|
623
|
-
};
|
|
624
|
-
break;
|
|
625
|
-
case "InternalServerErrorException":
|
|
626
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
627
|
-
response = {
|
|
628
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
629
|
-
name: errorCode,
|
|
630
|
-
$metadata: deserializeMetadata(output),
|
|
631
|
-
};
|
|
632
|
-
break;
|
|
633
|
-
case "LimitExceededException":
|
|
634
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
635
|
-
response = {
|
|
636
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
637
|
-
name: errorCode,
|
|
638
|
-
$metadata: deserializeMetadata(output),
|
|
639
|
-
};
|
|
640
|
-
break;
|
|
641
|
-
case "NotFoundException":
|
|
642
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
643
|
-
response = {
|
|
644
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
645
|
-
name: errorCode,
|
|
646
|
-
$metadata: deserializeMetadata(output),
|
|
647
|
-
};
|
|
648
|
-
break;
|
|
649
|
-
case "TooManyRequestsException":
|
|
650
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
651
|
-
response = {
|
|
652
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
653
|
-
name: errorCode,
|
|
654
|
-
$metadata: deserializeMetadata(output),
|
|
655
|
-
};
|
|
656
|
-
break;
|
|
657
|
-
default:
|
|
658
|
-
const parsedBody = parsedOutput.body;
|
|
659
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
660
|
-
response = {
|
|
661
|
-
...parsedBody,
|
|
662
|
-
name: `${errorCode}`,
|
|
663
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
664
|
-
$fault: "client",
|
|
665
|
-
$metadata: deserializeMetadata(output),
|
|
666
|
-
} as any;
|
|
667
|
-
}
|
|
668
|
-
const message = response.message || response.Message || errorCode;
|
|
669
|
-
response.message = message;
|
|
670
|
-
delete response.Message;
|
|
671
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
672
|
-
};
|
|
673
|
-
|
|
674
|
-
export const deserializeAws_json1_1DescribeEnvironmentMembershipsCommand = async (
|
|
675
|
-
output: __HttpResponse,
|
|
676
|
-
context: __SerdeContext
|
|
677
|
-
): Promise<DescribeEnvironmentMembershipsCommandOutput> => {
|
|
678
|
-
if (output.statusCode >= 300) {
|
|
679
|
-
return deserializeAws_json1_1DescribeEnvironmentMembershipsCommandError(output, context);
|
|
680
|
-
}
|
|
681
|
-
const data: any = await parseBody(output.body, context);
|
|
682
|
-
let contents: any = {};
|
|
683
|
-
contents = deserializeAws_json1_1DescribeEnvironmentMembershipsResult(data, context);
|
|
684
|
-
const response: DescribeEnvironmentMembershipsCommandOutput = {
|
|
685
|
-
$metadata: deserializeMetadata(output),
|
|
686
|
-
...contents,
|
|
687
|
-
};
|
|
688
|
-
return Promise.resolve(response);
|
|
689
|
-
};
|
|
690
|
-
|
|
691
|
-
const deserializeAws_json1_1DescribeEnvironmentMembershipsCommandError = async (
|
|
692
|
-
output: __HttpResponse,
|
|
693
|
-
context: __SerdeContext
|
|
694
|
-
): Promise<DescribeEnvironmentMembershipsCommandOutput> => {
|
|
695
|
-
const parsedOutput: any = {
|
|
696
|
-
...output,
|
|
697
|
-
body: await parseBody(output.body, context),
|
|
698
|
-
};
|
|
699
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
700
|
-
let errorCode = "UnknownError";
|
|
701
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
702
|
-
switch (errorCode) {
|
|
703
|
-
case "BadRequestException":
|
|
704
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
705
|
-
response = {
|
|
706
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
707
|
-
name: errorCode,
|
|
708
|
-
$metadata: deserializeMetadata(output),
|
|
709
|
-
};
|
|
710
|
-
break;
|
|
711
|
-
case "ConflictException":
|
|
712
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
713
|
-
response = {
|
|
714
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
715
|
-
name: errorCode,
|
|
716
|
-
$metadata: deserializeMetadata(output),
|
|
717
|
-
};
|
|
718
|
-
break;
|
|
719
|
-
case "ForbiddenException":
|
|
720
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
721
|
-
response = {
|
|
722
|
-
...(await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
723
|
-
name: errorCode,
|
|
724
|
-
$metadata: deserializeMetadata(output),
|
|
725
|
-
};
|
|
726
|
-
break;
|
|
727
|
-
case "InternalServerErrorException":
|
|
728
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
729
|
-
response = {
|
|
730
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
731
|
-
name: errorCode,
|
|
732
|
-
$metadata: deserializeMetadata(output),
|
|
733
|
-
};
|
|
734
|
-
break;
|
|
735
|
-
case "LimitExceededException":
|
|
736
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
737
|
-
response = {
|
|
738
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
739
|
-
name: errorCode,
|
|
740
|
-
$metadata: deserializeMetadata(output),
|
|
741
|
-
};
|
|
742
|
-
break;
|
|
743
|
-
case "NotFoundException":
|
|
744
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
745
|
-
response = {
|
|
746
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
747
|
-
name: errorCode,
|
|
748
|
-
$metadata: deserializeMetadata(output),
|
|
749
|
-
};
|
|
750
|
-
break;
|
|
751
|
-
case "TooManyRequestsException":
|
|
752
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
753
|
-
response = {
|
|
754
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
755
|
-
name: errorCode,
|
|
756
|
-
$metadata: deserializeMetadata(output),
|
|
757
|
-
};
|
|
758
|
-
break;
|
|
759
|
-
default:
|
|
760
|
-
const parsedBody = parsedOutput.body;
|
|
761
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
762
|
-
response = {
|
|
763
|
-
...parsedBody,
|
|
764
|
-
name: `${errorCode}`,
|
|
765
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
766
|
-
$fault: "client",
|
|
767
|
-
$metadata: deserializeMetadata(output),
|
|
768
|
-
} as any;
|
|
769
|
-
}
|
|
770
|
-
const message = response.message || response.Message || errorCode;
|
|
771
|
-
response.message = message;
|
|
772
|
-
delete response.Message;
|
|
773
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
774
|
-
};
|
|
775
|
-
|
|
776
|
-
export const deserializeAws_json1_1DescribeEnvironmentsCommand = async (
|
|
777
|
-
output: __HttpResponse,
|
|
778
|
-
context: __SerdeContext
|
|
779
|
-
): Promise<DescribeEnvironmentsCommandOutput> => {
|
|
780
|
-
if (output.statusCode >= 300) {
|
|
781
|
-
return deserializeAws_json1_1DescribeEnvironmentsCommandError(output, context);
|
|
782
|
-
}
|
|
783
|
-
const data: any = await parseBody(output.body, context);
|
|
784
|
-
let contents: any = {};
|
|
785
|
-
contents = deserializeAws_json1_1DescribeEnvironmentsResult(data, context);
|
|
786
|
-
const response: DescribeEnvironmentsCommandOutput = {
|
|
787
|
-
$metadata: deserializeMetadata(output),
|
|
788
|
-
...contents,
|
|
789
|
-
};
|
|
790
|
-
return Promise.resolve(response);
|
|
791
|
-
};
|
|
792
|
-
|
|
793
|
-
const deserializeAws_json1_1DescribeEnvironmentsCommandError = async (
|
|
794
|
-
output: __HttpResponse,
|
|
795
|
-
context: __SerdeContext
|
|
796
|
-
): Promise<DescribeEnvironmentsCommandOutput> => {
|
|
797
|
-
const parsedOutput: any = {
|
|
798
|
-
...output,
|
|
799
|
-
body: await parseBody(output.body, context),
|
|
800
|
-
};
|
|
801
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
802
|
-
let errorCode = "UnknownError";
|
|
803
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
804
|
-
switch (errorCode) {
|
|
805
|
-
case "BadRequestException":
|
|
806
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
807
|
-
response = {
|
|
808
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
809
|
-
name: errorCode,
|
|
810
|
-
$metadata: deserializeMetadata(output),
|
|
811
|
-
};
|
|
812
|
-
break;
|
|
813
|
-
case "ConflictException":
|
|
814
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
815
|
-
response = {
|
|
816
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
817
|
-
name: errorCode,
|
|
818
|
-
$metadata: deserializeMetadata(output),
|
|
819
|
-
};
|
|
820
|
-
break;
|
|
821
|
-
case "ForbiddenException":
|
|
822
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
823
|
-
response = {
|
|
824
|
-
...(await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
825
|
-
name: errorCode,
|
|
826
|
-
$metadata: deserializeMetadata(output),
|
|
827
|
-
};
|
|
828
|
-
break;
|
|
829
|
-
case "InternalServerErrorException":
|
|
830
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
831
|
-
response = {
|
|
832
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
833
|
-
name: errorCode,
|
|
834
|
-
$metadata: deserializeMetadata(output),
|
|
835
|
-
};
|
|
836
|
-
break;
|
|
837
|
-
case "LimitExceededException":
|
|
838
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
839
|
-
response = {
|
|
840
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
841
|
-
name: errorCode,
|
|
842
|
-
$metadata: deserializeMetadata(output),
|
|
843
|
-
};
|
|
844
|
-
break;
|
|
845
|
-
case "NotFoundException":
|
|
846
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
847
|
-
response = {
|
|
848
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
849
|
-
name: errorCode,
|
|
850
|
-
$metadata: deserializeMetadata(output),
|
|
851
|
-
};
|
|
852
|
-
break;
|
|
853
|
-
case "TooManyRequestsException":
|
|
854
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
855
|
-
response = {
|
|
856
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
857
|
-
name: errorCode,
|
|
858
|
-
$metadata: deserializeMetadata(output),
|
|
859
|
-
};
|
|
860
|
-
break;
|
|
861
|
-
default:
|
|
862
|
-
const parsedBody = parsedOutput.body;
|
|
863
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
864
|
-
response = {
|
|
865
|
-
...parsedBody,
|
|
866
|
-
name: `${errorCode}`,
|
|
867
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
868
|
-
$fault: "client",
|
|
869
|
-
$metadata: deserializeMetadata(output),
|
|
870
|
-
} as any;
|
|
871
|
-
}
|
|
872
|
-
const message = response.message || response.Message || errorCode;
|
|
873
|
-
response.message = message;
|
|
874
|
-
delete response.Message;
|
|
875
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
876
|
-
};
|
|
877
|
-
|
|
878
|
-
export const deserializeAws_json1_1DescribeEnvironmentStatusCommand = async (
|
|
879
|
-
output: __HttpResponse,
|
|
880
|
-
context: __SerdeContext
|
|
881
|
-
): Promise<DescribeEnvironmentStatusCommandOutput> => {
|
|
882
|
-
if (output.statusCode >= 300) {
|
|
883
|
-
return deserializeAws_json1_1DescribeEnvironmentStatusCommandError(output, context);
|
|
884
|
-
}
|
|
885
|
-
const data: any = await parseBody(output.body, context);
|
|
886
|
-
let contents: any = {};
|
|
887
|
-
contents = deserializeAws_json1_1DescribeEnvironmentStatusResult(data, context);
|
|
888
|
-
const response: DescribeEnvironmentStatusCommandOutput = {
|
|
889
|
-
$metadata: deserializeMetadata(output),
|
|
890
|
-
...contents,
|
|
891
|
-
};
|
|
892
|
-
return Promise.resolve(response);
|
|
893
|
-
};
|
|
894
|
-
|
|
895
|
-
const deserializeAws_json1_1DescribeEnvironmentStatusCommandError = async (
|
|
896
|
-
output: __HttpResponse,
|
|
897
|
-
context: __SerdeContext
|
|
898
|
-
): Promise<DescribeEnvironmentStatusCommandOutput> => {
|
|
899
|
-
const parsedOutput: any = {
|
|
900
|
-
...output,
|
|
901
|
-
body: await parseBody(output.body, context),
|
|
902
|
-
};
|
|
903
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
904
|
-
let errorCode = "UnknownError";
|
|
905
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
906
|
-
switch (errorCode) {
|
|
907
|
-
case "BadRequestException":
|
|
908
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
909
|
-
response = {
|
|
910
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
911
|
-
name: errorCode,
|
|
912
|
-
$metadata: deserializeMetadata(output),
|
|
913
|
-
};
|
|
914
|
-
break;
|
|
915
|
-
case "ConflictException":
|
|
916
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
917
|
-
response = {
|
|
918
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
919
|
-
name: errorCode,
|
|
920
|
-
$metadata: deserializeMetadata(output),
|
|
921
|
-
};
|
|
922
|
-
break;
|
|
923
|
-
case "ForbiddenException":
|
|
924
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
925
|
-
response = {
|
|
926
|
-
...(await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
927
|
-
name: errorCode,
|
|
928
|
-
$metadata: deserializeMetadata(output),
|
|
929
|
-
};
|
|
930
|
-
break;
|
|
931
|
-
case "InternalServerErrorException":
|
|
932
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
933
|
-
response = {
|
|
934
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
935
|
-
name: errorCode,
|
|
936
|
-
$metadata: deserializeMetadata(output),
|
|
937
|
-
};
|
|
938
|
-
break;
|
|
939
|
-
case "LimitExceededException":
|
|
940
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
941
|
-
response = {
|
|
942
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
943
|
-
name: errorCode,
|
|
944
|
-
$metadata: deserializeMetadata(output),
|
|
945
|
-
};
|
|
946
|
-
break;
|
|
947
|
-
case "NotFoundException":
|
|
948
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
949
|
-
response = {
|
|
950
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
951
|
-
name: errorCode,
|
|
952
|
-
$metadata: deserializeMetadata(output),
|
|
953
|
-
};
|
|
954
|
-
break;
|
|
955
|
-
case "TooManyRequestsException":
|
|
956
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
957
|
-
response = {
|
|
958
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
959
|
-
name: errorCode,
|
|
960
|
-
$metadata: deserializeMetadata(output),
|
|
961
|
-
};
|
|
962
|
-
break;
|
|
963
|
-
default:
|
|
964
|
-
const parsedBody = parsedOutput.body;
|
|
965
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
966
|
-
response = {
|
|
967
|
-
...parsedBody,
|
|
968
|
-
name: `${errorCode}`,
|
|
969
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
970
|
-
$fault: "client",
|
|
971
|
-
$metadata: deserializeMetadata(output),
|
|
972
|
-
} as any;
|
|
973
|
-
}
|
|
974
|
-
const message = response.message || response.Message || errorCode;
|
|
975
|
-
response.message = message;
|
|
976
|
-
delete response.Message;
|
|
977
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
978
|
-
};
|
|
979
|
-
|
|
980
|
-
export const deserializeAws_json1_1ListEnvironmentsCommand = async (
|
|
981
|
-
output: __HttpResponse,
|
|
982
|
-
context: __SerdeContext
|
|
983
|
-
): Promise<ListEnvironmentsCommandOutput> => {
|
|
984
|
-
if (output.statusCode >= 300) {
|
|
985
|
-
return deserializeAws_json1_1ListEnvironmentsCommandError(output, context);
|
|
986
|
-
}
|
|
987
|
-
const data: any = await parseBody(output.body, context);
|
|
988
|
-
let contents: any = {};
|
|
989
|
-
contents = deserializeAws_json1_1ListEnvironmentsResult(data, context);
|
|
990
|
-
const response: ListEnvironmentsCommandOutput = {
|
|
991
|
-
$metadata: deserializeMetadata(output),
|
|
992
|
-
...contents,
|
|
993
|
-
};
|
|
994
|
-
return Promise.resolve(response);
|
|
995
|
-
};
|
|
996
|
-
|
|
997
|
-
const deserializeAws_json1_1ListEnvironmentsCommandError = async (
|
|
998
|
-
output: __HttpResponse,
|
|
999
|
-
context: __SerdeContext
|
|
1000
|
-
): Promise<ListEnvironmentsCommandOutput> => {
|
|
1001
|
-
const parsedOutput: any = {
|
|
1002
|
-
...output,
|
|
1003
|
-
body: await parseBody(output.body, context),
|
|
1004
|
-
};
|
|
1005
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1006
|
-
let errorCode = "UnknownError";
|
|
1007
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1008
|
-
switch (errorCode) {
|
|
1009
|
-
case "BadRequestException":
|
|
1010
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
1011
|
-
response = {
|
|
1012
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1013
|
-
name: errorCode,
|
|
1014
|
-
$metadata: deserializeMetadata(output),
|
|
1015
|
-
};
|
|
1016
|
-
break;
|
|
1017
|
-
case "ConflictException":
|
|
1018
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
1019
|
-
response = {
|
|
1020
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
1021
|
-
name: errorCode,
|
|
1022
|
-
$metadata: deserializeMetadata(output),
|
|
1023
|
-
};
|
|
1024
|
-
break;
|
|
1025
|
-
case "ForbiddenException":
|
|
1026
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
1027
|
-
response = {
|
|
1028
|
-
...(await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1029
|
-
name: errorCode,
|
|
1030
|
-
$metadata: deserializeMetadata(output),
|
|
1031
|
-
};
|
|
1032
|
-
break;
|
|
1033
|
-
case "InternalServerErrorException":
|
|
1034
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
1035
|
-
response = {
|
|
1036
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1037
|
-
name: errorCode,
|
|
1038
|
-
$metadata: deserializeMetadata(output),
|
|
1039
|
-
};
|
|
1040
|
-
break;
|
|
1041
|
-
case "LimitExceededException":
|
|
1042
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
1043
|
-
response = {
|
|
1044
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1045
|
-
name: errorCode,
|
|
1046
|
-
$metadata: deserializeMetadata(output),
|
|
1047
|
-
};
|
|
1048
|
-
break;
|
|
1049
|
-
case "NotFoundException":
|
|
1050
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
1051
|
-
response = {
|
|
1052
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1053
|
-
name: errorCode,
|
|
1054
|
-
$metadata: deserializeMetadata(output),
|
|
1055
|
-
};
|
|
1056
|
-
break;
|
|
1057
|
-
case "TooManyRequestsException":
|
|
1058
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
1059
|
-
response = {
|
|
1060
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1061
|
-
name: errorCode,
|
|
1062
|
-
$metadata: deserializeMetadata(output),
|
|
1063
|
-
};
|
|
1064
|
-
break;
|
|
1065
|
-
default:
|
|
1066
|
-
const parsedBody = parsedOutput.body;
|
|
1067
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1068
|
-
response = {
|
|
1069
|
-
...parsedBody,
|
|
1070
|
-
name: `${errorCode}`,
|
|
1071
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1072
|
-
$fault: "client",
|
|
1073
|
-
$metadata: deserializeMetadata(output),
|
|
1074
|
-
} as any;
|
|
1075
|
-
}
|
|
1076
|
-
const message = response.message || response.Message || errorCode;
|
|
1077
|
-
response.message = message;
|
|
1078
|
-
delete response.Message;
|
|
1079
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1080
|
-
};
|
|
1081
|
-
|
|
1082
|
-
export const deserializeAws_json1_1ListTagsForResourceCommand = async (
|
|
1083
|
-
output: __HttpResponse,
|
|
1084
|
-
context: __SerdeContext
|
|
1085
|
-
): Promise<ListTagsForResourceCommandOutput> => {
|
|
1086
|
-
if (output.statusCode >= 300) {
|
|
1087
|
-
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
1088
|
-
}
|
|
1089
|
-
const data: any = await parseBody(output.body, context);
|
|
1090
|
-
let contents: any = {};
|
|
1091
|
-
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
1092
|
-
const response: ListTagsForResourceCommandOutput = {
|
|
1093
|
-
$metadata: deserializeMetadata(output),
|
|
1094
|
-
...contents,
|
|
1095
|
-
};
|
|
1096
|
-
return Promise.resolve(response);
|
|
1097
|
-
};
|
|
1098
|
-
|
|
1099
|
-
const deserializeAws_json1_1ListTagsForResourceCommandError = async (
|
|
1100
|
-
output: __HttpResponse,
|
|
1101
|
-
context: __SerdeContext
|
|
1102
|
-
): Promise<ListTagsForResourceCommandOutput> => {
|
|
1103
|
-
const parsedOutput: any = {
|
|
1104
|
-
...output,
|
|
1105
|
-
body: await parseBody(output.body, context),
|
|
1106
|
-
};
|
|
1107
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1108
|
-
let errorCode = "UnknownError";
|
|
1109
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1110
|
-
switch (errorCode) {
|
|
1111
|
-
case "BadRequestException":
|
|
1112
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
1113
|
-
response = {
|
|
1114
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1115
|
-
name: errorCode,
|
|
1116
|
-
$metadata: deserializeMetadata(output),
|
|
1117
|
-
};
|
|
1118
|
-
break;
|
|
1119
|
-
case "InternalServerErrorException":
|
|
1120
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
1121
|
-
response = {
|
|
1122
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1123
|
-
name: errorCode,
|
|
1124
|
-
$metadata: deserializeMetadata(output),
|
|
1125
|
-
};
|
|
1126
|
-
break;
|
|
1127
|
-
case "NotFoundException":
|
|
1128
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
1129
|
-
response = {
|
|
1130
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1131
|
-
name: errorCode,
|
|
1132
|
-
$metadata: deserializeMetadata(output),
|
|
1133
|
-
};
|
|
1134
|
-
break;
|
|
1135
|
-
default:
|
|
1136
|
-
const parsedBody = parsedOutput.body;
|
|
1137
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1138
|
-
response = {
|
|
1139
|
-
...parsedBody,
|
|
1140
|
-
name: `${errorCode}`,
|
|
1141
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1142
|
-
$fault: "client",
|
|
1143
|
-
$metadata: deserializeMetadata(output),
|
|
1144
|
-
} as any;
|
|
1145
|
-
}
|
|
1146
|
-
const message = response.message || response.Message || errorCode;
|
|
1147
|
-
response.message = message;
|
|
1148
|
-
delete response.Message;
|
|
1149
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1150
|
-
};
|
|
1151
|
-
|
|
1152
|
-
export const deserializeAws_json1_1TagResourceCommand = async (
|
|
1153
|
-
output: __HttpResponse,
|
|
1154
|
-
context: __SerdeContext
|
|
1155
|
-
): Promise<TagResourceCommandOutput> => {
|
|
1156
|
-
if (output.statusCode >= 300) {
|
|
1157
|
-
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
1158
|
-
}
|
|
1159
|
-
const data: any = await parseBody(output.body, context);
|
|
1160
|
-
let contents: any = {};
|
|
1161
|
-
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
1162
|
-
const response: TagResourceCommandOutput = {
|
|
1163
|
-
$metadata: deserializeMetadata(output),
|
|
1164
|
-
...contents,
|
|
1165
|
-
};
|
|
1166
|
-
return Promise.resolve(response);
|
|
1167
|
-
};
|
|
1168
|
-
|
|
1169
|
-
const deserializeAws_json1_1TagResourceCommandError = async (
|
|
1170
|
-
output: __HttpResponse,
|
|
1171
|
-
context: __SerdeContext
|
|
1172
|
-
): Promise<TagResourceCommandOutput> => {
|
|
1173
|
-
const parsedOutput: any = {
|
|
1174
|
-
...output,
|
|
1175
|
-
body: await parseBody(output.body, context),
|
|
1176
|
-
};
|
|
1177
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1178
|
-
let errorCode = "UnknownError";
|
|
1179
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1180
|
-
switch (errorCode) {
|
|
1181
|
-
case "BadRequestException":
|
|
1182
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
1183
|
-
response = {
|
|
1184
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1185
|
-
name: errorCode,
|
|
1186
|
-
$metadata: deserializeMetadata(output),
|
|
1187
|
-
};
|
|
1188
|
-
break;
|
|
1189
|
-
case "ConcurrentAccessException":
|
|
1190
|
-
case "com.amazonaws.cloud9#ConcurrentAccessException":
|
|
1191
|
-
response = {
|
|
1192
|
-
...(await deserializeAws_json1_1ConcurrentAccessExceptionResponse(parsedOutput, context)),
|
|
1193
|
-
name: errorCode,
|
|
1194
|
-
$metadata: deserializeMetadata(output),
|
|
1195
|
-
};
|
|
1196
|
-
break;
|
|
1197
|
-
case "InternalServerErrorException":
|
|
1198
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
1199
|
-
response = {
|
|
1200
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1201
|
-
name: errorCode,
|
|
1202
|
-
$metadata: deserializeMetadata(output),
|
|
1203
|
-
};
|
|
1204
|
-
break;
|
|
1205
|
-
case "NotFoundException":
|
|
1206
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
1207
|
-
response = {
|
|
1208
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1209
|
-
name: errorCode,
|
|
1210
|
-
$metadata: deserializeMetadata(output),
|
|
1211
|
-
};
|
|
1212
|
-
break;
|
|
1213
|
-
default:
|
|
1214
|
-
const parsedBody = parsedOutput.body;
|
|
1215
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1216
|
-
response = {
|
|
1217
|
-
...parsedBody,
|
|
1218
|
-
name: `${errorCode}`,
|
|
1219
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1220
|
-
$fault: "client",
|
|
1221
|
-
$metadata: deserializeMetadata(output),
|
|
1222
|
-
} as any;
|
|
1223
|
-
}
|
|
1224
|
-
const message = response.message || response.Message || errorCode;
|
|
1225
|
-
response.message = message;
|
|
1226
|
-
delete response.Message;
|
|
1227
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1228
|
-
};
|
|
1229
|
-
|
|
1230
|
-
export const deserializeAws_json1_1UntagResourceCommand = async (
|
|
1231
|
-
output: __HttpResponse,
|
|
1232
|
-
context: __SerdeContext
|
|
1233
|
-
): Promise<UntagResourceCommandOutput> => {
|
|
1234
|
-
if (output.statusCode >= 300) {
|
|
1235
|
-
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
1236
|
-
}
|
|
1237
|
-
const data: any = await parseBody(output.body, context);
|
|
1238
|
-
let contents: any = {};
|
|
1239
|
-
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
1240
|
-
const response: UntagResourceCommandOutput = {
|
|
1241
|
-
$metadata: deserializeMetadata(output),
|
|
1242
|
-
...contents,
|
|
1243
|
-
};
|
|
1244
|
-
return Promise.resolve(response);
|
|
1245
|
-
};
|
|
1246
|
-
|
|
1247
|
-
const deserializeAws_json1_1UntagResourceCommandError = async (
|
|
1248
|
-
output: __HttpResponse,
|
|
1249
|
-
context: __SerdeContext
|
|
1250
|
-
): Promise<UntagResourceCommandOutput> => {
|
|
1251
|
-
const parsedOutput: any = {
|
|
1252
|
-
...output,
|
|
1253
|
-
body: await parseBody(output.body, context),
|
|
1254
|
-
};
|
|
1255
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1256
|
-
let errorCode = "UnknownError";
|
|
1257
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1258
|
-
switch (errorCode) {
|
|
1259
|
-
case "BadRequestException":
|
|
1260
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
1261
|
-
response = {
|
|
1262
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1263
|
-
name: errorCode,
|
|
1264
|
-
$metadata: deserializeMetadata(output),
|
|
1265
|
-
};
|
|
1266
|
-
break;
|
|
1267
|
-
case "ConcurrentAccessException":
|
|
1268
|
-
case "com.amazonaws.cloud9#ConcurrentAccessException":
|
|
1269
|
-
response = {
|
|
1270
|
-
...(await deserializeAws_json1_1ConcurrentAccessExceptionResponse(parsedOutput, context)),
|
|
1271
|
-
name: errorCode,
|
|
1272
|
-
$metadata: deserializeMetadata(output),
|
|
1273
|
-
};
|
|
1274
|
-
break;
|
|
1275
|
-
case "InternalServerErrorException":
|
|
1276
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
1277
|
-
response = {
|
|
1278
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1279
|
-
name: errorCode,
|
|
1280
|
-
$metadata: deserializeMetadata(output),
|
|
1281
|
-
};
|
|
1282
|
-
break;
|
|
1283
|
-
case "NotFoundException":
|
|
1284
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
1285
|
-
response = {
|
|
1286
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1287
|
-
name: errorCode,
|
|
1288
|
-
$metadata: deserializeMetadata(output),
|
|
1289
|
-
};
|
|
1290
|
-
break;
|
|
1291
|
-
default:
|
|
1292
|
-
const parsedBody = parsedOutput.body;
|
|
1293
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1294
|
-
response = {
|
|
1295
|
-
...parsedBody,
|
|
1296
|
-
name: `${errorCode}`,
|
|
1297
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1298
|
-
$fault: "client",
|
|
1299
|
-
$metadata: deserializeMetadata(output),
|
|
1300
|
-
} as any;
|
|
1301
|
-
}
|
|
1302
|
-
const message = response.message || response.Message || errorCode;
|
|
1303
|
-
response.message = message;
|
|
1304
|
-
delete response.Message;
|
|
1305
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1306
|
-
};
|
|
1307
|
-
|
|
1308
|
-
export const deserializeAws_json1_1UpdateEnvironmentCommand = async (
|
|
1309
|
-
output: __HttpResponse,
|
|
1310
|
-
context: __SerdeContext
|
|
1311
|
-
): Promise<UpdateEnvironmentCommandOutput> => {
|
|
1312
|
-
if (output.statusCode >= 300) {
|
|
1313
|
-
return deserializeAws_json1_1UpdateEnvironmentCommandError(output, context);
|
|
1314
|
-
}
|
|
1315
|
-
const data: any = await parseBody(output.body, context);
|
|
1316
|
-
let contents: any = {};
|
|
1317
|
-
contents = deserializeAws_json1_1UpdateEnvironmentResult(data, context);
|
|
1318
|
-
const response: UpdateEnvironmentCommandOutput = {
|
|
1319
|
-
$metadata: deserializeMetadata(output),
|
|
1320
|
-
...contents,
|
|
1321
|
-
};
|
|
1322
|
-
return Promise.resolve(response);
|
|
1323
|
-
};
|
|
1324
|
-
|
|
1325
|
-
const deserializeAws_json1_1UpdateEnvironmentCommandError = async (
|
|
1326
|
-
output: __HttpResponse,
|
|
1327
|
-
context: __SerdeContext
|
|
1328
|
-
): Promise<UpdateEnvironmentCommandOutput> => {
|
|
1329
|
-
const parsedOutput: any = {
|
|
1330
|
-
...output,
|
|
1331
|
-
body: await parseBody(output.body, context),
|
|
1332
|
-
};
|
|
1333
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1334
|
-
let errorCode = "UnknownError";
|
|
1335
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1336
|
-
switch (errorCode) {
|
|
1337
|
-
case "BadRequestException":
|
|
1338
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
1339
|
-
response = {
|
|
1340
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1341
|
-
name: errorCode,
|
|
1342
|
-
$metadata: deserializeMetadata(output),
|
|
1343
|
-
};
|
|
1344
|
-
break;
|
|
1345
|
-
case "ConflictException":
|
|
1346
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
1347
|
-
response = {
|
|
1348
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
1349
|
-
name: errorCode,
|
|
1350
|
-
$metadata: deserializeMetadata(output),
|
|
1351
|
-
};
|
|
1352
|
-
break;
|
|
1353
|
-
case "ForbiddenException":
|
|
1354
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
1355
|
-
response = {
|
|
1356
|
-
...(await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1357
|
-
name: errorCode,
|
|
1358
|
-
$metadata: deserializeMetadata(output),
|
|
1359
|
-
};
|
|
1360
|
-
break;
|
|
1361
|
-
case "InternalServerErrorException":
|
|
1362
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
1363
|
-
response = {
|
|
1364
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1365
|
-
name: errorCode,
|
|
1366
|
-
$metadata: deserializeMetadata(output),
|
|
1367
|
-
};
|
|
1368
|
-
break;
|
|
1369
|
-
case "LimitExceededException":
|
|
1370
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
1371
|
-
response = {
|
|
1372
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1373
|
-
name: errorCode,
|
|
1374
|
-
$metadata: deserializeMetadata(output),
|
|
1375
|
-
};
|
|
1376
|
-
break;
|
|
1377
|
-
case "NotFoundException":
|
|
1378
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
1379
|
-
response = {
|
|
1380
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1381
|
-
name: errorCode,
|
|
1382
|
-
$metadata: deserializeMetadata(output),
|
|
1383
|
-
};
|
|
1384
|
-
break;
|
|
1385
|
-
case "TooManyRequestsException":
|
|
1386
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
1387
|
-
response = {
|
|
1388
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1389
|
-
name: errorCode,
|
|
1390
|
-
$metadata: deserializeMetadata(output),
|
|
1391
|
-
};
|
|
1392
|
-
break;
|
|
1393
|
-
default:
|
|
1394
|
-
const parsedBody = parsedOutput.body;
|
|
1395
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1396
|
-
response = {
|
|
1397
|
-
...parsedBody,
|
|
1398
|
-
name: `${errorCode}`,
|
|
1399
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1400
|
-
$fault: "client",
|
|
1401
|
-
$metadata: deserializeMetadata(output),
|
|
1402
|
-
} as any;
|
|
1403
|
-
}
|
|
1404
|
-
const message = response.message || response.Message || errorCode;
|
|
1405
|
-
response.message = message;
|
|
1406
|
-
delete response.Message;
|
|
1407
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1408
|
-
};
|
|
1409
|
-
|
|
1410
|
-
export const deserializeAws_json1_1UpdateEnvironmentMembershipCommand = async (
|
|
1411
|
-
output: __HttpResponse,
|
|
1412
|
-
context: __SerdeContext
|
|
1413
|
-
): Promise<UpdateEnvironmentMembershipCommandOutput> => {
|
|
1414
|
-
if (output.statusCode >= 300) {
|
|
1415
|
-
return deserializeAws_json1_1UpdateEnvironmentMembershipCommandError(output, context);
|
|
1416
|
-
}
|
|
1417
|
-
const data: any = await parseBody(output.body, context);
|
|
1418
|
-
let contents: any = {};
|
|
1419
|
-
contents = deserializeAws_json1_1UpdateEnvironmentMembershipResult(data, context);
|
|
1420
|
-
const response: UpdateEnvironmentMembershipCommandOutput = {
|
|
1421
|
-
$metadata: deserializeMetadata(output),
|
|
1422
|
-
...contents,
|
|
1423
|
-
};
|
|
1424
|
-
return Promise.resolve(response);
|
|
1425
|
-
};
|
|
1426
|
-
|
|
1427
|
-
const deserializeAws_json1_1UpdateEnvironmentMembershipCommandError = async (
|
|
1428
|
-
output: __HttpResponse,
|
|
1429
|
-
context: __SerdeContext
|
|
1430
|
-
): Promise<UpdateEnvironmentMembershipCommandOutput> => {
|
|
1431
|
-
const parsedOutput: any = {
|
|
1432
|
-
...output,
|
|
1433
|
-
body: await parseBody(output.body, context),
|
|
1434
|
-
};
|
|
1435
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1436
|
-
let errorCode = "UnknownError";
|
|
1437
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1438
|
-
switch (errorCode) {
|
|
1439
|
-
case "BadRequestException":
|
|
1440
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
1441
|
-
response = {
|
|
1442
|
-
...(await deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1443
|
-
name: errorCode,
|
|
1444
|
-
$metadata: deserializeMetadata(output),
|
|
1445
|
-
};
|
|
1446
|
-
break;
|
|
1447
|
-
case "ConflictException":
|
|
1448
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
1449
|
-
response = {
|
|
1450
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
1451
|
-
name: errorCode,
|
|
1452
|
-
$metadata: deserializeMetadata(output),
|
|
1453
|
-
};
|
|
1454
|
-
break;
|
|
1455
|
-
case "ForbiddenException":
|
|
1456
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
1457
|
-
response = {
|
|
1458
|
-
...(await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1459
|
-
name: errorCode,
|
|
1460
|
-
$metadata: deserializeMetadata(output),
|
|
1461
|
-
};
|
|
1462
|
-
break;
|
|
1463
|
-
case "InternalServerErrorException":
|
|
1464
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
1465
|
-
response = {
|
|
1466
|
-
...(await deserializeAws_json1_1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1467
|
-
name: errorCode,
|
|
1468
|
-
$metadata: deserializeMetadata(output),
|
|
1469
|
-
};
|
|
1470
|
-
break;
|
|
1471
|
-
case "LimitExceededException":
|
|
1472
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
1473
|
-
response = {
|
|
1474
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1475
|
-
name: errorCode,
|
|
1476
|
-
$metadata: deserializeMetadata(output),
|
|
1477
|
-
};
|
|
1478
|
-
break;
|
|
1479
|
-
case "NotFoundException":
|
|
1480
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
1481
|
-
response = {
|
|
1482
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1483
|
-
name: errorCode,
|
|
1484
|
-
$metadata: deserializeMetadata(output),
|
|
1485
|
-
};
|
|
1486
|
-
break;
|
|
1487
|
-
case "TooManyRequestsException":
|
|
1488
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
1489
|
-
response = {
|
|
1490
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1491
|
-
name: errorCode,
|
|
1492
|
-
$metadata: deserializeMetadata(output),
|
|
1493
|
-
};
|
|
1494
|
-
break;
|
|
1495
|
-
default:
|
|
1496
|
-
const parsedBody = parsedOutput.body;
|
|
1497
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1498
|
-
response = {
|
|
1499
|
-
...parsedBody,
|
|
1500
|
-
name: `${errorCode}`,
|
|
1501
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1502
|
-
$fault: "client",
|
|
1503
|
-
$metadata: deserializeMetadata(output),
|
|
1504
|
-
} as any;
|
|
1505
|
-
}
|
|
1506
|
-
const message = response.message || response.Message || errorCode;
|
|
1507
|
-
response.message = message;
|
|
1508
|
-
delete response.Message;
|
|
1509
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1510
|
-
};
|
|
1511
|
-
|
|
1512
|
-
const deserializeAws_json1_1BadRequestExceptionResponse = async (
|
|
1513
|
-
parsedOutput: any,
|
|
1514
|
-
context: __SerdeContext
|
|
1515
|
-
): Promise<BadRequestException> => {
|
|
1516
|
-
const body = parsedOutput.body;
|
|
1517
|
-
const deserialized: any = deserializeAws_json1_1BadRequestException(body, context);
|
|
1518
|
-
const contents: BadRequestException = {
|
|
1519
|
-
name: "BadRequestException",
|
|
1520
|
-
$fault: "client",
|
|
1521
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1522
|
-
...deserialized,
|
|
1523
|
-
};
|
|
1524
|
-
return contents;
|
|
1525
|
-
};
|
|
1526
|
-
|
|
1527
|
-
const deserializeAws_json1_1ConcurrentAccessExceptionResponse = async (
|
|
1528
|
-
parsedOutput: any,
|
|
1529
|
-
context: __SerdeContext
|
|
1530
|
-
): Promise<ConcurrentAccessException> => {
|
|
1531
|
-
const body = parsedOutput.body;
|
|
1532
|
-
const deserialized: any = deserializeAws_json1_1ConcurrentAccessException(body, context);
|
|
1533
|
-
const contents: ConcurrentAccessException = {
|
|
1534
|
-
name: "ConcurrentAccessException",
|
|
1535
|
-
$fault: "client",
|
|
1536
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1537
|
-
...deserialized,
|
|
1538
|
-
};
|
|
1539
|
-
return contents;
|
|
1540
|
-
};
|
|
1541
|
-
|
|
1542
|
-
const deserializeAws_json1_1ConflictExceptionResponse = async (
|
|
1543
|
-
parsedOutput: any,
|
|
1544
|
-
context: __SerdeContext
|
|
1545
|
-
): Promise<ConflictException> => {
|
|
1546
|
-
const body = parsedOutput.body;
|
|
1547
|
-
const deserialized: any = deserializeAws_json1_1ConflictException(body, context);
|
|
1548
|
-
const contents: ConflictException = {
|
|
1549
|
-
name: "ConflictException",
|
|
1550
|
-
$fault: "client",
|
|
1551
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1552
|
-
...deserialized,
|
|
1553
|
-
};
|
|
1554
|
-
return contents;
|
|
1555
|
-
};
|
|
1556
|
-
|
|
1557
|
-
const deserializeAws_json1_1ForbiddenExceptionResponse = async (
|
|
1558
|
-
parsedOutput: any,
|
|
1559
|
-
context: __SerdeContext
|
|
1560
|
-
): Promise<ForbiddenException> => {
|
|
1561
|
-
const body = parsedOutput.body;
|
|
1562
|
-
const deserialized: any = deserializeAws_json1_1ForbiddenException(body, context);
|
|
1563
|
-
const contents: ForbiddenException = {
|
|
1564
|
-
name: "ForbiddenException",
|
|
1565
|
-
$fault: "client",
|
|
1566
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1567
|
-
...deserialized,
|
|
1568
|
-
};
|
|
1569
|
-
return contents;
|
|
1570
|
-
};
|
|
1571
|
-
|
|
1572
|
-
const deserializeAws_json1_1InternalServerErrorExceptionResponse = async (
|
|
1573
|
-
parsedOutput: any,
|
|
1574
|
-
context: __SerdeContext
|
|
1575
|
-
): Promise<InternalServerErrorException> => {
|
|
1576
|
-
const body = parsedOutput.body;
|
|
1577
|
-
const deserialized: any = deserializeAws_json1_1InternalServerErrorException(body, context);
|
|
1578
|
-
const contents: InternalServerErrorException = {
|
|
1579
|
-
name: "InternalServerErrorException",
|
|
1580
|
-
$fault: "server",
|
|
1581
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1582
|
-
...deserialized,
|
|
1583
|
-
};
|
|
1584
|
-
return contents;
|
|
1585
|
-
};
|
|
1586
|
-
|
|
1587
|
-
const deserializeAws_json1_1LimitExceededExceptionResponse = async (
|
|
1588
|
-
parsedOutput: any,
|
|
1589
|
-
context: __SerdeContext
|
|
1590
|
-
): Promise<LimitExceededException> => {
|
|
1591
|
-
const body = parsedOutput.body;
|
|
1592
|
-
const deserialized: any = deserializeAws_json1_1LimitExceededException(body, context);
|
|
1593
|
-
const contents: LimitExceededException = {
|
|
1594
|
-
name: "LimitExceededException",
|
|
1595
|
-
$fault: "client",
|
|
1596
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1597
|
-
...deserialized,
|
|
1598
|
-
};
|
|
1599
|
-
return contents;
|
|
1600
|
-
};
|
|
1601
|
-
|
|
1602
|
-
const deserializeAws_json1_1NotFoundExceptionResponse = async (
|
|
1603
|
-
parsedOutput: any,
|
|
1604
|
-
context: __SerdeContext
|
|
1605
|
-
): Promise<NotFoundException> => {
|
|
1606
|
-
const body = parsedOutput.body;
|
|
1607
|
-
const deserialized: any = deserializeAws_json1_1NotFoundException(body, context);
|
|
1608
|
-
const contents: NotFoundException = {
|
|
1609
|
-
name: "NotFoundException",
|
|
1610
|
-
$fault: "client",
|
|
1611
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1612
|
-
...deserialized,
|
|
1613
|
-
};
|
|
1614
|
-
return contents;
|
|
1615
|
-
};
|
|
1616
|
-
|
|
1617
|
-
const deserializeAws_json1_1TooManyRequestsExceptionResponse = async (
|
|
1618
|
-
parsedOutput: any,
|
|
1619
|
-
context: __SerdeContext
|
|
1620
|
-
): Promise<TooManyRequestsException> => {
|
|
1621
|
-
const body = parsedOutput.body;
|
|
1622
|
-
const deserialized: any = deserializeAws_json1_1TooManyRequestsException(body, context);
|
|
1623
|
-
const contents: TooManyRequestsException = {
|
|
1624
|
-
name: "TooManyRequestsException",
|
|
1625
|
-
$fault: "client",
|
|
1626
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1627
|
-
...deserialized,
|
|
1628
|
-
};
|
|
1629
|
-
return contents;
|
|
1630
|
-
};
|
|
1631
|
-
|
|
1632
|
-
const serializeAws_json1_1BoundedEnvironmentIdList = (input: string[], context: __SerdeContext): any => {
|
|
1633
|
-
return input
|
|
1634
|
-
.filter((e: any) => e != null)
|
|
1635
|
-
.map((entry) => {
|
|
1636
|
-
if (entry === null) {
|
|
1637
|
-
return null as any;
|
|
1638
|
-
}
|
|
1639
|
-
return entry;
|
|
1640
|
-
});
|
|
1641
|
-
};
|
|
1642
|
-
|
|
1643
|
-
const serializeAws_json1_1CreateEnvironmentEC2Request = (
|
|
1644
|
-
input: CreateEnvironmentEC2Request,
|
|
1645
|
-
context: __SerdeContext
|
|
1646
|
-
): any => {
|
|
1647
|
-
return {
|
|
1648
|
-
...(input.automaticStopTimeMinutes !== undefined &&
|
|
1649
|
-
input.automaticStopTimeMinutes !== null && { automaticStopTimeMinutes: input.automaticStopTimeMinutes }),
|
|
1650
|
-
...(input.clientRequestToken !== undefined &&
|
|
1651
|
-
input.clientRequestToken !== null && { clientRequestToken: input.clientRequestToken }),
|
|
1652
|
-
...(input.connectionType !== undefined &&
|
|
1653
|
-
input.connectionType !== null && { connectionType: input.connectionType }),
|
|
1654
|
-
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
1655
|
-
...(input.dryRun !== undefined && input.dryRun !== null && { dryRun: input.dryRun }),
|
|
1656
|
-
...(input.imageId !== undefined && input.imageId !== null && { imageId: input.imageId }),
|
|
1657
|
-
...(input.instanceType !== undefined && input.instanceType !== null && { instanceType: input.instanceType }),
|
|
1658
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
1659
|
-
...(input.ownerArn !== undefined && input.ownerArn !== null && { ownerArn: input.ownerArn }),
|
|
1660
|
-
...(input.subnetId !== undefined && input.subnetId !== null && { subnetId: input.subnetId }),
|
|
1661
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
1662
|
-
};
|
|
1663
|
-
};
|
|
1664
|
-
|
|
1665
|
-
const serializeAws_json1_1CreateEnvironmentMembershipRequest = (
|
|
1666
|
-
input: CreateEnvironmentMembershipRequest,
|
|
1667
|
-
context: __SerdeContext
|
|
1668
|
-
): any => {
|
|
1669
|
-
return {
|
|
1670
|
-
...(input.environmentId !== undefined && input.environmentId !== null && { environmentId: input.environmentId }),
|
|
1671
|
-
...(input.permissions !== undefined && input.permissions !== null && { permissions: input.permissions }),
|
|
1672
|
-
...(input.userArn !== undefined && input.userArn !== null && { userArn: input.userArn }),
|
|
1673
|
-
};
|
|
1674
|
-
};
|
|
1675
|
-
|
|
1676
|
-
const serializeAws_json1_1DeleteEnvironmentMembershipRequest = (
|
|
1677
|
-
input: DeleteEnvironmentMembershipRequest,
|
|
1678
|
-
context: __SerdeContext
|
|
1679
|
-
): any => {
|
|
1680
|
-
return {
|
|
1681
|
-
...(input.environmentId !== undefined && input.environmentId !== null && { environmentId: input.environmentId }),
|
|
1682
|
-
...(input.userArn !== undefined && input.userArn !== null && { userArn: input.userArn }),
|
|
1683
|
-
};
|
|
1684
|
-
};
|
|
1685
|
-
|
|
1686
|
-
const serializeAws_json1_1DeleteEnvironmentRequest = (
|
|
1687
|
-
input: DeleteEnvironmentRequest,
|
|
1688
|
-
context: __SerdeContext
|
|
1689
|
-
): any => {
|
|
1690
|
-
return {
|
|
1691
|
-
...(input.environmentId !== undefined && input.environmentId !== null && { environmentId: input.environmentId }),
|
|
1692
|
-
};
|
|
1693
|
-
};
|
|
1694
|
-
|
|
1695
|
-
const serializeAws_json1_1DescribeEnvironmentMembershipsRequest = (
|
|
1696
|
-
input: DescribeEnvironmentMembershipsRequest,
|
|
1697
|
-
context: __SerdeContext
|
|
1698
|
-
): any => {
|
|
1699
|
-
return {
|
|
1700
|
-
...(input.environmentId !== undefined && input.environmentId !== null && { environmentId: input.environmentId }),
|
|
1701
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
1702
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
1703
|
-
...(input.permissions !== undefined &&
|
|
1704
|
-
input.permissions !== null && { permissions: serializeAws_json1_1PermissionsList(input.permissions, context) }),
|
|
1705
|
-
...(input.userArn !== undefined && input.userArn !== null && { userArn: input.userArn }),
|
|
1706
|
-
};
|
|
1707
|
-
};
|
|
1708
|
-
|
|
1709
|
-
const serializeAws_json1_1DescribeEnvironmentsRequest = (
|
|
1710
|
-
input: DescribeEnvironmentsRequest,
|
|
1711
|
-
context: __SerdeContext
|
|
1712
|
-
): any => {
|
|
1713
|
-
return {
|
|
1714
|
-
...(input.environmentIds !== undefined &&
|
|
1715
|
-
input.environmentIds !== null && {
|
|
1716
|
-
environmentIds: serializeAws_json1_1BoundedEnvironmentIdList(input.environmentIds, context),
|
|
1717
|
-
}),
|
|
1718
|
-
};
|
|
1719
|
-
};
|
|
1720
|
-
|
|
1721
|
-
const serializeAws_json1_1DescribeEnvironmentStatusRequest = (
|
|
1722
|
-
input: DescribeEnvironmentStatusRequest,
|
|
1723
|
-
context: __SerdeContext
|
|
1724
|
-
): any => {
|
|
1725
|
-
return {
|
|
1726
|
-
...(input.environmentId !== undefined && input.environmentId !== null && { environmentId: input.environmentId }),
|
|
1727
|
-
};
|
|
1728
|
-
};
|
|
1729
|
-
|
|
1730
|
-
const serializeAws_json1_1ListEnvironmentsRequest = (input: ListEnvironmentsRequest, context: __SerdeContext): any => {
|
|
1731
|
-
return {
|
|
1732
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
1733
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
1734
|
-
};
|
|
1735
|
-
};
|
|
1736
|
-
|
|
1737
|
-
const serializeAws_json1_1ListTagsForResourceRequest = (
|
|
1738
|
-
input: ListTagsForResourceRequest,
|
|
1739
|
-
context: __SerdeContext
|
|
1740
|
-
): any => {
|
|
1741
|
-
return {
|
|
1742
|
-
...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
|
|
1743
|
-
};
|
|
1744
|
-
};
|
|
1745
|
-
|
|
1746
|
-
const serializeAws_json1_1PermissionsList = (input: (Permissions | string)[], context: __SerdeContext): any => {
|
|
1747
|
-
return input
|
|
1748
|
-
.filter((e: any) => e != null)
|
|
1749
|
-
.map((entry) => {
|
|
1750
|
-
if (entry === null) {
|
|
1751
|
-
return null as any;
|
|
1752
|
-
}
|
|
1753
|
-
return entry;
|
|
1754
|
-
});
|
|
1755
|
-
};
|
|
1756
|
-
|
|
1757
|
-
const serializeAws_json1_1Tag = (input: Tag, context: __SerdeContext): any => {
|
|
1758
|
-
return {
|
|
1759
|
-
...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
|
|
1760
|
-
...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
|
|
1761
|
-
};
|
|
1762
|
-
};
|
|
1763
|
-
|
|
1764
|
-
const serializeAws_json1_1TagKeyList = (input: string[], context: __SerdeContext): any => {
|
|
1765
|
-
return input
|
|
1766
|
-
.filter((e: any) => e != null)
|
|
1767
|
-
.map((entry) => {
|
|
1768
|
-
if (entry === null) {
|
|
1769
|
-
return null as any;
|
|
1770
|
-
}
|
|
1771
|
-
return entry;
|
|
1772
|
-
});
|
|
1773
|
-
};
|
|
1774
|
-
|
|
1775
|
-
const serializeAws_json1_1TagList = (input: Tag[], context: __SerdeContext): any => {
|
|
1776
|
-
return input
|
|
1777
|
-
.filter((e: any) => e != null)
|
|
1778
|
-
.map((entry) => {
|
|
1779
|
-
if (entry === null) {
|
|
1780
|
-
return null as any;
|
|
1781
|
-
}
|
|
1782
|
-
return serializeAws_json1_1Tag(entry, context);
|
|
1783
|
-
});
|
|
1784
|
-
};
|
|
1785
|
-
|
|
1786
|
-
const serializeAws_json1_1TagResourceRequest = (input: TagResourceRequest, context: __SerdeContext): any => {
|
|
1787
|
-
return {
|
|
1788
|
-
...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
|
|
1789
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
1790
|
-
};
|
|
1791
|
-
};
|
|
1792
|
-
|
|
1793
|
-
const serializeAws_json1_1UntagResourceRequest = (input: UntagResourceRequest, context: __SerdeContext): any => {
|
|
1794
|
-
return {
|
|
1795
|
-
...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
|
|
1796
|
-
...(input.TagKeys !== undefined &&
|
|
1797
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
1798
|
-
};
|
|
1799
|
-
};
|
|
1800
|
-
|
|
1801
|
-
const serializeAws_json1_1UpdateEnvironmentMembershipRequest = (
|
|
1802
|
-
input: UpdateEnvironmentMembershipRequest,
|
|
1803
|
-
context: __SerdeContext
|
|
1804
|
-
): any => {
|
|
1805
|
-
return {
|
|
1806
|
-
...(input.environmentId !== undefined && input.environmentId !== null && { environmentId: input.environmentId }),
|
|
1807
|
-
...(input.permissions !== undefined && input.permissions !== null && { permissions: input.permissions }),
|
|
1808
|
-
...(input.userArn !== undefined && input.userArn !== null && { userArn: input.userArn }),
|
|
1809
|
-
};
|
|
1810
|
-
};
|
|
1811
|
-
|
|
1812
|
-
const serializeAws_json1_1UpdateEnvironmentRequest = (
|
|
1813
|
-
input: UpdateEnvironmentRequest,
|
|
1814
|
-
context: __SerdeContext
|
|
1815
|
-
): any => {
|
|
1816
|
-
return {
|
|
1817
|
-
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
1818
|
-
...(input.environmentId !== undefined && input.environmentId !== null && { environmentId: input.environmentId }),
|
|
1819
|
-
...(input.managedCredentialsAction !== undefined &&
|
|
1820
|
-
input.managedCredentialsAction !== null && { managedCredentialsAction: input.managedCredentialsAction }),
|
|
1821
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
1822
|
-
};
|
|
1823
|
-
};
|
|
1824
|
-
|
|
1825
|
-
const deserializeAws_json1_1BadRequestException = (output: any, context: __SerdeContext): BadRequestException => {
|
|
1826
|
-
return {
|
|
1827
|
-
className: __expectString(output.className),
|
|
1828
|
-
code: __expectInt32(output.code),
|
|
1829
|
-
message: __expectString(output.message),
|
|
1830
|
-
} as any;
|
|
1831
|
-
};
|
|
1832
|
-
|
|
1833
|
-
const deserializeAws_json1_1ConcurrentAccessException = (
|
|
1834
|
-
output: any,
|
|
1835
|
-
context: __SerdeContext
|
|
1836
|
-
): ConcurrentAccessException => {
|
|
1837
|
-
return {
|
|
1838
|
-
className: __expectString(output.className),
|
|
1839
|
-
code: __expectInt32(output.code),
|
|
1840
|
-
message: __expectString(output.message),
|
|
1841
|
-
} as any;
|
|
1842
|
-
};
|
|
1843
|
-
|
|
1844
|
-
const deserializeAws_json1_1ConflictException = (output: any, context: __SerdeContext): ConflictException => {
|
|
1845
|
-
return {
|
|
1846
|
-
className: __expectString(output.className),
|
|
1847
|
-
code: __expectInt32(output.code),
|
|
1848
|
-
message: __expectString(output.message),
|
|
1849
|
-
} as any;
|
|
1850
|
-
};
|
|
1851
|
-
|
|
1852
|
-
const deserializeAws_json1_1CreateEnvironmentEC2Result = (
|
|
1853
|
-
output: any,
|
|
1854
|
-
context: __SerdeContext
|
|
1855
|
-
): CreateEnvironmentEC2Result => {
|
|
1856
|
-
return {
|
|
1857
|
-
environmentId: __expectString(output.environmentId),
|
|
1858
|
-
} as any;
|
|
1859
|
-
};
|
|
1860
|
-
|
|
1861
|
-
const deserializeAws_json1_1CreateEnvironmentMembershipResult = (
|
|
1862
|
-
output: any,
|
|
1863
|
-
context: __SerdeContext
|
|
1864
|
-
): CreateEnvironmentMembershipResult => {
|
|
1865
|
-
return {
|
|
1866
|
-
membership:
|
|
1867
|
-
output.membership !== undefined && output.membership !== null
|
|
1868
|
-
? deserializeAws_json1_1EnvironmentMember(output.membership, context)
|
|
1869
|
-
: undefined,
|
|
1870
|
-
} as any;
|
|
1871
|
-
};
|
|
1872
|
-
|
|
1873
|
-
const deserializeAws_json1_1DeleteEnvironmentMembershipResult = (
|
|
1874
|
-
output: any,
|
|
1875
|
-
context: __SerdeContext
|
|
1876
|
-
): DeleteEnvironmentMembershipResult => {
|
|
1877
|
-
return {} as any;
|
|
1878
|
-
};
|
|
1879
|
-
|
|
1880
|
-
const deserializeAws_json1_1DeleteEnvironmentResult = (
|
|
1881
|
-
output: any,
|
|
1882
|
-
context: __SerdeContext
|
|
1883
|
-
): DeleteEnvironmentResult => {
|
|
1884
|
-
return {} as any;
|
|
1885
|
-
};
|
|
1886
|
-
|
|
1887
|
-
const deserializeAws_json1_1DescribeEnvironmentMembershipsResult = (
|
|
1888
|
-
output: any,
|
|
1889
|
-
context: __SerdeContext
|
|
1890
|
-
): DescribeEnvironmentMembershipsResult => {
|
|
1891
|
-
return {
|
|
1892
|
-
memberships:
|
|
1893
|
-
output.memberships !== undefined && output.memberships !== null
|
|
1894
|
-
? deserializeAws_json1_1EnvironmentMembersList(output.memberships, context)
|
|
1895
|
-
: undefined,
|
|
1896
|
-
nextToken: __expectString(output.nextToken),
|
|
1897
|
-
} as any;
|
|
1898
|
-
};
|
|
1899
|
-
|
|
1900
|
-
const deserializeAws_json1_1DescribeEnvironmentsResult = (
|
|
1901
|
-
output: any,
|
|
1902
|
-
context: __SerdeContext
|
|
1903
|
-
): DescribeEnvironmentsResult => {
|
|
1904
|
-
return {
|
|
1905
|
-
environments:
|
|
1906
|
-
output.environments !== undefined && output.environments !== null
|
|
1907
|
-
? deserializeAws_json1_1EnvironmentList(output.environments, context)
|
|
1908
|
-
: undefined,
|
|
1909
|
-
} as any;
|
|
1910
|
-
};
|
|
1911
|
-
|
|
1912
|
-
const deserializeAws_json1_1DescribeEnvironmentStatusResult = (
|
|
1913
|
-
output: any,
|
|
1914
|
-
context: __SerdeContext
|
|
1915
|
-
): DescribeEnvironmentStatusResult => {
|
|
1916
|
-
return {
|
|
1917
|
-
message: __expectString(output.message),
|
|
1918
|
-
status: __expectString(output.status),
|
|
1919
|
-
} as any;
|
|
1920
|
-
};
|
|
1921
|
-
|
|
1922
|
-
const deserializeAws_json1_1Environment = (output: any, context: __SerdeContext): Environment => {
|
|
1923
|
-
return {
|
|
1924
|
-
arn: __expectString(output.arn),
|
|
1925
|
-
connectionType: __expectString(output.connectionType),
|
|
1926
|
-
description: __expectString(output.description),
|
|
1927
|
-
id: __expectString(output.id),
|
|
1928
|
-
lifecycle:
|
|
1929
|
-
output.lifecycle !== undefined && output.lifecycle !== null
|
|
1930
|
-
? deserializeAws_json1_1EnvironmentLifecycle(output.lifecycle, context)
|
|
1931
|
-
: undefined,
|
|
1932
|
-
managedCredentialsStatus: __expectString(output.managedCredentialsStatus),
|
|
1933
|
-
name: __expectString(output.name),
|
|
1934
|
-
ownerArn: __expectString(output.ownerArn),
|
|
1935
|
-
type: __expectString(output.type),
|
|
1936
|
-
} as any;
|
|
1937
|
-
};
|
|
1938
|
-
|
|
1939
|
-
const deserializeAws_json1_1EnvironmentIdList = (output: any, context: __SerdeContext): string[] => {
|
|
1940
|
-
return (output || [])
|
|
1941
|
-
.filter((e: any) => e != null)
|
|
1942
|
-
.map((entry: any) => {
|
|
1943
|
-
if (entry === null) {
|
|
1944
|
-
return null as any;
|
|
1945
|
-
}
|
|
1946
|
-
return __expectString(entry) as any;
|
|
1947
|
-
});
|
|
1948
|
-
};
|
|
1949
|
-
|
|
1950
|
-
const deserializeAws_json1_1EnvironmentLifecycle = (output: any, context: __SerdeContext): EnvironmentLifecycle => {
|
|
1951
|
-
return {
|
|
1952
|
-
failureResource: __expectString(output.failureResource),
|
|
1953
|
-
reason: __expectString(output.reason),
|
|
1954
|
-
status: __expectString(output.status),
|
|
1955
|
-
} as any;
|
|
1956
|
-
};
|
|
1957
|
-
|
|
1958
|
-
const deserializeAws_json1_1EnvironmentList = (output: any, context: __SerdeContext): Environment[] => {
|
|
1959
|
-
return (output || [])
|
|
1960
|
-
.filter((e: any) => e != null)
|
|
1961
|
-
.map((entry: any) => {
|
|
1962
|
-
if (entry === null) {
|
|
1963
|
-
return null as any;
|
|
1964
|
-
}
|
|
1965
|
-
return deserializeAws_json1_1Environment(entry, context);
|
|
1966
|
-
});
|
|
1967
|
-
};
|
|
1968
|
-
|
|
1969
|
-
const deserializeAws_json1_1EnvironmentMember = (output: any, context: __SerdeContext): EnvironmentMember => {
|
|
1970
|
-
return {
|
|
1971
|
-
environmentId: __expectString(output.environmentId),
|
|
1972
|
-
lastAccess:
|
|
1973
|
-
output.lastAccess !== undefined && output.lastAccess !== null
|
|
1974
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastAccess)))
|
|
1975
|
-
: undefined,
|
|
1976
|
-
permissions: __expectString(output.permissions),
|
|
1977
|
-
userArn: __expectString(output.userArn),
|
|
1978
|
-
userId: __expectString(output.userId),
|
|
1979
|
-
} as any;
|
|
1980
|
-
};
|
|
1981
|
-
|
|
1982
|
-
const deserializeAws_json1_1EnvironmentMembersList = (output: any, context: __SerdeContext): EnvironmentMember[] => {
|
|
1983
|
-
return (output || [])
|
|
1984
|
-
.filter((e: any) => e != null)
|
|
1985
|
-
.map((entry: any) => {
|
|
1986
|
-
if (entry === null) {
|
|
1987
|
-
return null as any;
|
|
1988
|
-
}
|
|
1989
|
-
return deserializeAws_json1_1EnvironmentMember(entry, context);
|
|
1990
|
-
});
|
|
1991
|
-
};
|
|
1992
|
-
|
|
1993
|
-
const deserializeAws_json1_1ForbiddenException = (output: any, context: __SerdeContext): ForbiddenException => {
|
|
1994
|
-
return {
|
|
1995
|
-
className: __expectString(output.className),
|
|
1996
|
-
code: __expectInt32(output.code),
|
|
1997
|
-
message: __expectString(output.message),
|
|
1998
|
-
} as any;
|
|
1999
|
-
};
|
|
2000
|
-
|
|
2001
|
-
const deserializeAws_json1_1InternalServerErrorException = (
|
|
2002
|
-
output: any,
|
|
2003
|
-
context: __SerdeContext
|
|
2004
|
-
): InternalServerErrorException => {
|
|
2005
|
-
return {
|
|
2006
|
-
className: __expectString(output.className),
|
|
2007
|
-
code: __expectInt32(output.code),
|
|
2008
|
-
message: __expectString(output.message),
|
|
2009
|
-
} as any;
|
|
2010
|
-
};
|
|
2011
|
-
|
|
2012
|
-
const deserializeAws_json1_1LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => {
|
|
2013
|
-
return {
|
|
2014
|
-
className: __expectString(output.className),
|
|
2015
|
-
code: __expectInt32(output.code),
|
|
2016
|
-
message: __expectString(output.message),
|
|
2017
|
-
} as any;
|
|
2018
|
-
};
|
|
2019
|
-
|
|
2020
|
-
const deserializeAws_json1_1ListEnvironmentsResult = (output: any, context: __SerdeContext): ListEnvironmentsResult => {
|
|
2021
|
-
return {
|
|
2022
|
-
environmentIds:
|
|
2023
|
-
output.environmentIds !== undefined && output.environmentIds !== null
|
|
2024
|
-
? deserializeAws_json1_1EnvironmentIdList(output.environmentIds, context)
|
|
2025
|
-
: undefined,
|
|
2026
|
-
nextToken: __expectString(output.nextToken),
|
|
2027
|
-
} as any;
|
|
2028
|
-
};
|
|
2029
|
-
|
|
2030
|
-
const deserializeAws_json1_1ListTagsForResourceResponse = (
|
|
2031
|
-
output: any,
|
|
2032
|
-
context: __SerdeContext
|
|
2033
|
-
): ListTagsForResourceResponse => {
|
|
2034
|
-
return {
|
|
2035
|
-
Tags:
|
|
2036
|
-
output.Tags !== undefined && output.Tags !== null
|
|
2037
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
2038
|
-
: undefined,
|
|
2039
|
-
} as any;
|
|
2040
|
-
};
|
|
2041
|
-
|
|
2042
|
-
const deserializeAws_json1_1NotFoundException = (output: any, context: __SerdeContext): NotFoundException => {
|
|
2043
|
-
return {
|
|
2044
|
-
className: __expectString(output.className),
|
|
2045
|
-
code: __expectInt32(output.code),
|
|
2046
|
-
message: __expectString(output.message),
|
|
2047
|
-
} as any;
|
|
2048
|
-
};
|
|
2049
|
-
|
|
2050
|
-
const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => {
|
|
2051
|
-
return {
|
|
2052
|
-
Key: __expectString(output.Key),
|
|
2053
|
-
Value: __expectString(output.Value),
|
|
2054
|
-
} as any;
|
|
2055
|
-
};
|
|
2056
|
-
|
|
2057
|
-
const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => {
|
|
2058
|
-
return (output || [])
|
|
2059
|
-
.filter((e: any) => e != null)
|
|
2060
|
-
.map((entry: any) => {
|
|
2061
|
-
if (entry === null) {
|
|
2062
|
-
return null as any;
|
|
2063
|
-
}
|
|
2064
|
-
return deserializeAws_json1_1Tag(entry, context);
|
|
2065
|
-
});
|
|
2066
|
-
};
|
|
2067
|
-
|
|
2068
|
-
const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => {
|
|
2069
|
-
return {} as any;
|
|
2070
|
-
};
|
|
2071
|
-
|
|
2072
|
-
const deserializeAws_json1_1TooManyRequestsException = (
|
|
2073
|
-
output: any,
|
|
2074
|
-
context: __SerdeContext
|
|
2075
|
-
): TooManyRequestsException => {
|
|
2076
|
-
return {
|
|
2077
|
-
className: __expectString(output.className),
|
|
2078
|
-
code: __expectInt32(output.code),
|
|
2079
|
-
message: __expectString(output.message),
|
|
2080
|
-
} as any;
|
|
2081
|
-
};
|
|
2082
|
-
|
|
2083
|
-
const deserializeAws_json1_1UntagResourceResponse = (output: any, context: __SerdeContext): UntagResourceResponse => {
|
|
2084
|
-
return {} as any;
|
|
2085
|
-
};
|
|
2086
|
-
|
|
2087
|
-
const deserializeAws_json1_1UpdateEnvironmentMembershipResult = (
|
|
2088
|
-
output: any,
|
|
2089
|
-
context: __SerdeContext
|
|
2090
|
-
): UpdateEnvironmentMembershipResult => {
|
|
2091
|
-
return {
|
|
2092
|
-
membership:
|
|
2093
|
-
output.membership !== undefined && output.membership !== null
|
|
2094
|
-
? deserializeAws_json1_1EnvironmentMember(output.membership, context)
|
|
2095
|
-
: undefined,
|
|
2096
|
-
} as any;
|
|
2097
|
-
};
|
|
2098
|
-
|
|
2099
|
-
const deserializeAws_json1_1UpdateEnvironmentResult = (
|
|
2100
|
-
output: any,
|
|
2101
|
-
context: __SerdeContext
|
|
2102
|
-
): UpdateEnvironmentResult => {
|
|
2103
|
-
return {} as any;
|
|
2104
|
-
};
|
|
2105
|
-
|
|
2106
|
-
const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
|
|
2107
|
-
httpStatusCode: output.statusCode,
|
|
2108
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
2109
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2110
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
2111
|
-
});
|
|
2112
|
-
|
|
2113
|
-
// Collect low-level response body stream to Uint8Array.
|
|
2114
|
-
const collectBody = (streamBody: any = new Uint8Array(), context: __SerdeContext): Promise<Uint8Array> => {
|
|
2115
|
-
if (streamBody instanceof Uint8Array) {
|
|
2116
|
-
return Promise.resolve(streamBody);
|
|
2117
|
-
}
|
|
2118
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2119
|
-
};
|
|
2120
|
-
|
|
2121
|
-
// Encode Uint8Array data into string with utf-8.
|
|
2122
|
-
const collectBodyString = (streamBody: any, context: __SerdeContext): Promise<string> =>
|
|
2123
|
-
collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2124
|
-
|
|
2125
|
-
const buildHttpRpcRequest = async (
|
|
2126
|
-
context: __SerdeContext,
|
|
2127
|
-
headers: __HeaderBag,
|
|
2128
|
-
path: string,
|
|
2129
|
-
resolvedHostname: string | undefined,
|
|
2130
|
-
body: any
|
|
2131
|
-
): Promise<__HttpRequest> => {
|
|
2132
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2133
|
-
const contents: any = {
|
|
2134
|
-
protocol,
|
|
2135
|
-
hostname,
|
|
2136
|
-
port,
|
|
2137
|
-
method: "POST",
|
|
2138
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2139
|
-
headers,
|
|
2140
|
-
};
|
|
2141
|
-
if (resolvedHostname !== undefined) {
|
|
2142
|
-
contents.hostname = resolvedHostname;
|
|
2143
|
-
}
|
|
2144
|
-
if (body !== undefined) {
|
|
2145
|
-
contents.body = body;
|
|
2146
|
-
}
|
|
2147
|
-
return new __HttpRequest(contents);
|
|
2148
|
-
};
|
|
2149
|
-
|
|
2150
|
-
const parseBody = (streamBody: any, context: __SerdeContext): any =>
|
|
2151
|
-
collectBodyString(streamBody, context).then((encoded) => {
|
|
2152
|
-
if (encoded.length) {
|
|
2153
|
-
return JSON.parse(encoded);
|
|
2154
|
-
}
|
|
2155
|
-
return {};
|
|
2156
|
-
});
|
|
2157
|
-
|
|
2158
|
-
/**
|
|
2159
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
2160
|
-
*/
|
|
2161
|
-
const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string => {
|
|
2162
|
-
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2163
|
-
|
|
2164
|
-
const sanitizeErrorCode = (rawValue: string): string => {
|
|
2165
|
-
let cleanValue = rawValue;
|
|
2166
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2167
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2168
|
-
}
|
|
2169
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2170
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2171
|
-
}
|
|
2172
|
-
return cleanValue;
|
|
2173
|
-
};
|
|
2174
|
-
|
|
2175
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2176
|
-
if (headerKey !== undefined) {
|
|
2177
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2178
|
-
}
|
|
2179
|
-
|
|
2180
|
-
if (data.code !== undefined) {
|
|
2181
|
-
return sanitizeErrorCode(data.code);
|
|
2182
|
-
}
|
|
2183
|
-
|
|
2184
|
-
if (data["__type"] !== undefined) {
|
|
2185
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2186
|
-
}
|
|
2187
|
-
|
|
2188
|
-
return "";
|
|
2189
|
-
};
|