@aws-sdk/client-cloud9 3.306.0 → 3.310.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/dist-cjs/commands/CreateEnvironmentEC2Command.js +2 -2
- package/dist-cjs/commands/CreateEnvironmentMembershipCommand.js +2 -2
- package/dist-cjs/commands/DeleteEnvironmentCommand.js +2 -2
- package/dist-cjs/commands/DeleteEnvironmentMembershipCommand.js +2 -2
- package/dist-cjs/commands/DescribeEnvironmentMembershipsCommand.js +2 -2
- package/dist-cjs/commands/DescribeEnvironmentStatusCommand.js +2 -2
- package/dist-cjs/commands/DescribeEnvironmentsCommand.js +2 -2
- package/dist-cjs/commands/ListEnvironmentsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateEnvironmentCommand.js +2 -2
- package/dist-cjs/commands/UpdateEnvironmentMembershipCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +265 -271
- package/dist-es/commands/CreateEnvironmentEC2Command.js +3 -3
- package/dist-es/commands/CreateEnvironmentMembershipCommand.js +3 -3
- package/dist-es/commands/DeleteEnvironmentCommand.js +3 -3
- package/dist-es/commands/DeleteEnvironmentMembershipCommand.js +3 -3
- package/dist-es/commands/DescribeEnvironmentMembershipsCommand.js +3 -3
- package/dist-es/commands/DescribeEnvironmentStatusCommand.js +3 -3
- package/dist-es/commands/DescribeEnvironmentsCommand.js +3 -3
- package/dist-es/commands/ListEnvironmentsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateEnvironmentCommand.js +3 -3
- package/dist-es/commands/UpdateEnvironmentMembershipCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +238 -244
- package/dist-types/protocols/Aws_json1_1.d.ts +104 -26
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +26 -26
- package/package.json +35 -35
|
@@ -2,137 +2,137 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { Cloud9ServiceException as __BaseException } from "../models/Cloud9ServiceException";
|
|
4
4
|
import { BadRequestException, ConcurrentAccessException, ConflictException, ForbiddenException, InternalServerErrorException, LimitExceededException, NotFoundException, TooManyRequestsException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_CreateEnvironmentEC2Command = async (input, context) => {
|
|
6
6
|
const headers = {
|
|
7
7
|
"content-type": "application/x-amz-json-1.1",
|
|
8
8
|
"x-amz-target": "AWSCloud9WorkspaceManagementService.CreateEnvironmentEC2",
|
|
9
9
|
};
|
|
10
10
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify(se_CreateEnvironmentEC2Request(input, context));
|
|
12
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
13
|
};
|
|
14
|
-
export const
|
|
14
|
+
export const se_CreateEnvironmentMembershipCommand = async (input, context) => {
|
|
15
15
|
const headers = {
|
|
16
16
|
"content-type": "application/x-amz-json-1.1",
|
|
17
17
|
"x-amz-target": "AWSCloud9WorkspaceManagementService.CreateEnvironmentMembership",
|
|
18
18
|
};
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(se_CreateEnvironmentMembershipRequest(input, context));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
|
-
export const
|
|
23
|
+
export const se_DeleteEnvironmentCommand = async (input, context) => {
|
|
24
24
|
const headers = {
|
|
25
25
|
"content-type": "application/x-amz-json-1.1",
|
|
26
26
|
"x-amz-target": "AWSCloud9WorkspaceManagementService.DeleteEnvironment",
|
|
27
27
|
};
|
|
28
28
|
let body;
|
|
29
|
-
body = JSON.stringify(
|
|
29
|
+
body = JSON.stringify(se_DeleteEnvironmentRequest(input, context));
|
|
30
30
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
31
|
};
|
|
32
|
-
export const
|
|
32
|
+
export const se_DeleteEnvironmentMembershipCommand = async (input, context) => {
|
|
33
33
|
const headers = {
|
|
34
34
|
"content-type": "application/x-amz-json-1.1",
|
|
35
35
|
"x-amz-target": "AWSCloud9WorkspaceManagementService.DeleteEnvironmentMembership",
|
|
36
36
|
};
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(se_DeleteEnvironmentMembershipRequest(input, context));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
|
-
export const
|
|
41
|
+
export const se_DescribeEnvironmentMembershipsCommand = async (input, context) => {
|
|
42
42
|
const headers = {
|
|
43
43
|
"content-type": "application/x-amz-json-1.1",
|
|
44
44
|
"x-amz-target": "AWSCloud9WorkspaceManagementService.DescribeEnvironmentMemberships",
|
|
45
45
|
};
|
|
46
46
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify(se_DescribeEnvironmentMembershipsRequest(input, context));
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
|
-
export const
|
|
50
|
+
export const se_DescribeEnvironmentsCommand = async (input, context) => {
|
|
51
51
|
const headers = {
|
|
52
52
|
"content-type": "application/x-amz-json-1.1",
|
|
53
53
|
"x-amz-target": "AWSCloud9WorkspaceManagementService.DescribeEnvironments",
|
|
54
54
|
};
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(se_DescribeEnvironmentsRequest(input, context));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
|
-
export const
|
|
59
|
+
export const se_DescribeEnvironmentStatusCommand = async (input, context) => {
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/x-amz-json-1.1",
|
|
62
62
|
"x-amz-target": "AWSCloud9WorkspaceManagementService.DescribeEnvironmentStatus",
|
|
63
63
|
};
|
|
64
64
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
65
|
+
body = JSON.stringify(se_DescribeEnvironmentStatusRequest(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
-
export const
|
|
68
|
+
export const se_ListEnvironmentsCommand = async (input, context) => {
|
|
69
69
|
const headers = {
|
|
70
70
|
"content-type": "application/x-amz-json-1.1",
|
|
71
71
|
"x-amz-target": "AWSCloud9WorkspaceManagementService.ListEnvironments",
|
|
72
72
|
};
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(se_ListEnvironmentsRequest(input, context));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
|
-
export const
|
|
77
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
78
78
|
const headers = {
|
|
79
79
|
"content-type": "application/x-amz-json-1.1",
|
|
80
80
|
"x-amz-target": "AWSCloud9WorkspaceManagementService.ListTagsForResource",
|
|
81
81
|
};
|
|
82
82
|
let body;
|
|
83
|
-
body = JSON.stringify(
|
|
83
|
+
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
84
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
85
|
};
|
|
86
|
-
export const
|
|
86
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
87
87
|
const headers = {
|
|
88
88
|
"content-type": "application/x-amz-json-1.1",
|
|
89
89
|
"x-amz-target": "AWSCloud9WorkspaceManagementService.TagResource",
|
|
90
90
|
};
|
|
91
91
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
93
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
94
|
};
|
|
95
|
-
export const
|
|
95
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
96
96
|
const headers = {
|
|
97
97
|
"content-type": "application/x-amz-json-1.1",
|
|
98
98
|
"x-amz-target": "AWSCloud9WorkspaceManagementService.UntagResource",
|
|
99
99
|
};
|
|
100
100
|
let body;
|
|
101
|
-
body = JSON.stringify(
|
|
101
|
+
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
102
102
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
103
|
};
|
|
104
|
-
export const
|
|
104
|
+
export const se_UpdateEnvironmentCommand = async (input, context) => {
|
|
105
105
|
const headers = {
|
|
106
106
|
"content-type": "application/x-amz-json-1.1",
|
|
107
107
|
"x-amz-target": "AWSCloud9WorkspaceManagementService.UpdateEnvironment",
|
|
108
108
|
};
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(se_UpdateEnvironmentRequest(input, context));
|
|
111
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
112
|
};
|
|
113
|
-
export const
|
|
113
|
+
export const se_UpdateEnvironmentMembershipCommand = async (input, context) => {
|
|
114
114
|
const headers = {
|
|
115
115
|
"content-type": "application/x-amz-json-1.1",
|
|
116
116
|
"x-amz-target": "AWSCloud9WorkspaceManagementService.UpdateEnvironmentMembership",
|
|
117
117
|
};
|
|
118
118
|
let body;
|
|
119
|
-
body = JSON.stringify(
|
|
119
|
+
body = JSON.stringify(se_UpdateEnvironmentMembershipRequest(input, context));
|
|
120
120
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
121
|
};
|
|
122
|
-
export const
|
|
122
|
+
export const de_CreateEnvironmentEC2Command = async (output, context) => {
|
|
123
123
|
if (output.statusCode >= 300) {
|
|
124
|
-
return
|
|
124
|
+
return de_CreateEnvironmentEC2CommandError(output, context);
|
|
125
125
|
}
|
|
126
126
|
const data = await parseBody(output.body, context);
|
|
127
127
|
let contents = {};
|
|
128
|
-
contents =
|
|
128
|
+
contents = de_CreateEnvironmentEC2Result(data, context);
|
|
129
129
|
const response = {
|
|
130
130
|
$metadata: deserializeMetadata(output),
|
|
131
131
|
...contents,
|
|
132
132
|
};
|
|
133
133
|
return Promise.resolve(response);
|
|
134
134
|
};
|
|
135
|
-
const
|
|
135
|
+
const de_CreateEnvironmentEC2CommandError = async (output, context) => {
|
|
136
136
|
const parsedOutput = {
|
|
137
137
|
...output,
|
|
138
138
|
body: await parseErrorBody(output.body, context),
|
|
@@ -141,25 +141,25 @@ const deserializeAws_json1_1CreateEnvironmentEC2CommandError = async (output, co
|
|
|
141
141
|
switch (errorCode) {
|
|
142
142
|
case "BadRequestException":
|
|
143
143
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
144
|
-
throw await
|
|
144
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
145
145
|
case "ConflictException":
|
|
146
146
|
case "com.amazonaws.cloud9#ConflictException":
|
|
147
|
-
throw await
|
|
147
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
148
148
|
case "ForbiddenException":
|
|
149
149
|
case "com.amazonaws.cloud9#ForbiddenException":
|
|
150
|
-
throw await
|
|
150
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
151
151
|
case "InternalServerErrorException":
|
|
152
152
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
153
|
-
throw await
|
|
153
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
154
154
|
case "LimitExceededException":
|
|
155
155
|
case "com.amazonaws.cloud9#LimitExceededException":
|
|
156
|
-
throw await
|
|
156
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
157
157
|
case "NotFoundException":
|
|
158
158
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
159
|
-
throw await
|
|
159
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
160
160
|
case "TooManyRequestsException":
|
|
161
161
|
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
162
|
-
throw await
|
|
162
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
163
163
|
default:
|
|
164
164
|
const parsedBody = parsedOutput.body;
|
|
165
165
|
throwDefaultError({
|
|
@@ -170,20 +170,20 @@ const deserializeAws_json1_1CreateEnvironmentEC2CommandError = async (output, co
|
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
172
|
};
|
|
173
|
-
export const
|
|
173
|
+
export const de_CreateEnvironmentMembershipCommand = async (output, context) => {
|
|
174
174
|
if (output.statusCode >= 300) {
|
|
175
|
-
return
|
|
175
|
+
return de_CreateEnvironmentMembershipCommandError(output, context);
|
|
176
176
|
}
|
|
177
177
|
const data = await parseBody(output.body, context);
|
|
178
178
|
let contents = {};
|
|
179
|
-
contents =
|
|
179
|
+
contents = de_CreateEnvironmentMembershipResult(data, context);
|
|
180
180
|
const response = {
|
|
181
181
|
$metadata: deserializeMetadata(output),
|
|
182
182
|
...contents,
|
|
183
183
|
};
|
|
184
184
|
return Promise.resolve(response);
|
|
185
185
|
};
|
|
186
|
-
const
|
|
186
|
+
const de_CreateEnvironmentMembershipCommandError = async (output, context) => {
|
|
187
187
|
const parsedOutput = {
|
|
188
188
|
...output,
|
|
189
189
|
body: await parseErrorBody(output.body, context),
|
|
@@ -192,25 +192,25 @@ const deserializeAws_json1_1CreateEnvironmentMembershipCommandError = async (out
|
|
|
192
192
|
switch (errorCode) {
|
|
193
193
|
case "BadRequestException":
|
|
194
194
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
195
|
-
throw await
|
|
195
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
196
196
|
case "ConflictException":
|
|
197
197
|
case "com.amazonaws.cloud9#ConflictException":
|
|
198
|
-
throw await
|
|
198
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
199
199
|
case "ForbiddenException":
|
|
200
200
|
case "com.amazonaws.cloud9#ForbiddenException":
|
|
201
|
-
throw await
|
|
201
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
202
202
|
case "InternalServerErrorException":
|
|
203
203
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
204
|
-
throw await
|
|
204
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
205
205
|
case "LimitExceededException":
|
|
206
206
|
case "com.amazonaws.cloud9#LimitExceededException":
|
|
207
|
-
throw await
|
|
207
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
208
208
|
case "NotFoundException":
|
|
209
209
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
210
|
-
throw await
|
|
210
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
211
211
|
case "TooManyRequestsException":
|
|
212
212
|
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
213
|
-
throw await
|
|
213
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
214
214
|
default:
|
|
215
215
|
const parsedBody = parsedOutput.body;
|
|
216
216
|
throwDefaultError({
|
|
@@ -221,20 +221,20 @@ const deserializeAws_json1_1CreateEnvironmentMembershipCommandError = async (out
|
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
|
-
export const
|
|
224
|
+
export const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
225
225
|
if (output.statusCode >= 300) {
|
|
226
|
-
return
|
|
226
|
+
return de_DeleteEnvironmentCommandError(output, context);
|
|
227
227
|
}
|
|
228
228
|
const data = await parseBody(output.body, context);
|
|
229
229
|
let contents = {};
|
|
230
|
-
contents =
|
|
230
|
+
contents = de_DeleteEnvironmentResult(data, context);
|
|
231
231
|
const response = {
|
|
232
232
|
$metadata: deserializeMetadata(output),
|
|
233
233
|
...contents,
|
|
234
234
|
};
|
|
235
235
|
return Promise.resolve(response);
|
|
236
236
|
};
|
|
237
|
-
const
|
|
237
|
+
const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
238
238
|
const parsedOutput = {
|
|
239
239
|
...output,
|
|
240
240
|
body: await parseErrorBody(output.body, context),
|
|
@@ -243,25 +243,25 @@ const deserializeAws_json1_1DeleteEnvironmentCommandError = async (output, conte
|
|
|
243
243
|
switch (errorCode) {
|
|
244
244
|
case "BadRequestException":
|
|
245
245
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
246
|
-
throw await
|
|
246
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
247
247
|
case "ConflictException":
|
|
248
248
|
case "com.amazonaws.cloud9#ConflictException":
|
|
249
|
-
throw await
|
|
249
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
250
250
|
case "ForbiddenException":
|
|
251
251
|
case "com.amazonaws.cloud9#ForbiddenException":
|
|
252
|
-
throw await
|
|
252
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
253
253
|
case "InternalServerErrorException":
|
|
254
254
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
255
|
-
throw await
|
|
255
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
256
256
|
case "LimitExceededException":
|
|
257
257
|
case "com.amazonaws.cloud9#LimitExceededException":
|
|
258
|
-
throw await
|
|
258
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
259
259
|
case "NotFoundException":
|
|
260
260
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
261
|
-
throw await
|
|
261
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
262
262
|
case "TooManyRequestsException":
|
|
263
263
|
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
264
|
-
throw await
|
|
264
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
265
265
|
default:
|
|
266
266
|
const parsedBody = parsedOutput.body;
|
|
267
267
|
throwDefaultError({
|
|
@@ -272,20 +272,20 @@ const deserializeAws_json1_1DeleteEnvironmentCommandError = async (output, conte
|
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
|
-
export const
|
|
275
|
+
export const de_DeleteEnvironmentMembershipCommand = async (output, context) => {
|
|
276
276
|
if (output.statusCode >= 300) {
|
|
277
|
-
return
|
|
277
|
+
return de_DeleteEnvironmentMembershipCommandError(output, context);
|
|
278
278
|
}
|
|
279
279
|
const data = await parseBody(output.body, context);
|
|
280
280
|
let contents = {};
|
|
281
|
-
contents =
|
|
281
|
+
contents = de_DeleteEnvironmentMembershipResult(data, context);
|
|
282
282
|
const response = {
|
|
283
283
|
$metadata: deserializeMetadata(output),
|
|
284
284
|
...contents,
|
|
285
285
|
};
|
|
286
286
|
return Promise.resolve(response);
|
|
287
287
|
};
|
|
288
|
-
const
|
|
288
|
+
const de_DeleteEnvironmentMembershipCommandError = async (output, context) => {
|
|
289
289
|
const parsedOutput = {
|
|
290
290
|
...output,
|
|
291
291
|
body: await parseErrorBody(output.body, context),
|
|
@@ -294,25 +294,25 @@ const deserializeAws_json1_1DeleteEnvironmentMembershipCommandError = async (out
|
|
|
294
294
|
switch (errorCode) {
|
|
295
295
|
case "BadRequestException":
|
|
296
296
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
297
|
-
throw await
|
|
297
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
298
298
|
case "ConflictException":
|
|
299
299
|
case "com.amazonaws.cloud9#ConflictException":
|
|
300
|
-
throw await
|
|
300
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
301
301
|
case "ForbiddenException":
|
|
302
302
|
case "com.amazonaws.cloud9#ForbiddenException":
|
|
303
|
-
throw await
|
|
303
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
304
304
|
case "InternalServerErrorException":
|
|
305
305
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
306
|
-
throw await
|
|
306
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
307
307
|
case "LimitExceededException":
|
|
308
308
|
case "com.amazonaws.cloud9#LimitExceededException":
|
|
309
|
-
throw await
|
|
309
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
310
310
|
case "NotFoundException":
|
|
311
311
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
312
|
-
throw await
|
|
312
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
313
313
|
case "TooManyRequestsException":
|
|
314
314
|
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
315
|
-
throw await
|
|
315
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
316
316
|
default:
|
|
317
317
|
const parsedBody = parsedOutput.body;
|
|
318
318
|
throwDefaultError({
|
|
@@ -323,20 +323,20 @@ const deserializeAws_json1_1DeleteEnvironmentMembershipCommandError = async (out
|
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
325
|
};
|
|
326
|
-
export const
|
|
326
|
+
export const de_DescribeEnvironmentMembershipsCommand = async (output, context) => {
|
|
327
327
|
if (output.statusCode >= 300) {
|
|
328
|
-
return
|
|
328
|
+
return de_DescribeEnvironmentMembershipsCommandError(output, context);
|
|
329
329
|
}
|
|
330
330
|
const data = await parseBody(output.body, context);
|
|
331
331
|
let contents = {};
|
|
332
|
-
contents =
|
|
332
|
+
contents = de_DescribeEnvironmentMembershipsResult(data, context);
|
|
333
333
|
const response = {
|
|
334
334
|
$metadata: deserializeMetadata(output),
|
|
335
335
|
...contents,
|
|
336
336
|
};
|
|
337
337
|
return Promise.resolve(response);
|
|
338
338
|
};
|
|
339
|
-
const
|
|
339
|
+
const de_DescribeEnvironmentMembershipsCommandError = async (output, context) => {
|
|
340
340
|
const parsedOutput = {
|
|
341
341
|
...output,
|
|
342
342
|
body: await parseErrorBody(output.body, context),
|
|
@@ -345,25 +345,25 @@ const deserializeAws_json1_1DescribeEnvironmentMembershipsCommandError = async (
|
|
|
345
345
|
switch (errorCode) {
|
|
346
346
|
case "BadRequestException":
|
|
347
347
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
348
|
-
throw await
|
|
348
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
349
349
|
case "ConflictException":
|
|
350
350
|
case "com.amazonaws.cloud9#ConflictException":
|
|
351
|
-
throw await
|
|
351
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
352
352
|
case "ForbiddenException":
|
|
353
353
|
case "com.amazonaws.cloud9#ForbiddenException":
|
|
354
|
-
throw await
|
|
354
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
355
355
|
case "InternalServerErrorException":
|
|
356
356
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
357
|
-
throw await
|
|
357
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
358
358
|
case "LimitExceededException":
|
|
359
359
|
case "com.amazonaws.cloud9#LimitExceededException":
|
|
360
|
-
throw await
|
|
360
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
361
361
|
case "NotFoundException":
|
|
362
362
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
363
|
-
throw await
|
|
363
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
364
364
|
case "TooManyRequestsException":
|
|
365
365
|
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
366
|
-
throw await
|
|
366
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
367
367
|
default:
|
|
368
368
|
const parsedBody = parsedOutput.body;
|
|
369
369
|
throwDefaultError({
|
|
@@ -374,20 +374,20 @@ const deserializeAws_json1_1DescribeEnvironmentMembershipsCommandError = async (
|
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
376
|
};
|
|
377
|
-
export const
|
|
377
|
+
export const de_DescribeEnvironmentsCommand = async (output, context) => {
|
|
378
378
|
if (output.statusCode >= 300) {
|
|
379
|
-
return
|
|
379
|
+
return de_DescribeEnvironmentsCommandError(output, context);
|
|
380
380
|
}
|
|
381
381
|
const data = await parseBody(output.body, context);
|
|
382
382
|
let contents = {};
|
|
383
|
-
contents =
|
|
383
|
+
contents = de_DescribeEnvironmentsResult(data, context);
|
|
384
384
|
const response = {
|
|
385
385
|
$metadata: deserializeMetadata(output),
|
|
386
386
|
...contents,
|
|
387
387
|
};
|
|
388
388
|
return Promise.resolve(response);
|
|
389
389
|
};
|
|
390
|
-
const
|
|
390
|
+
const de_DescribeEnvironmentsCommandError = async (output, context) => {
|
|
391
391
|
const parsedOutput = {
|
|
392
392
|
...output,
|
|
393
393
|
body: await parseErrorBody(output.body, context),
|
|
@@ -396,25 +396,25 @@ const deserializeAws_json1_1DescribeEnvironmentsCommandError = async (output, co
|
|
|
396
396
|
switch (errorCode) {
|
|
397
397
|
case "BadRequestException":
|
|
398
398
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
399
|
-
throw await
|
|
399
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
400
400
|
case "ConflictException":
|
|
401
401
|
case "com.amazonaws.cloud9#ConflictException":
|
|
402
|
-
throw await
|
|
402
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
403
403
|
case "ForbiddenException":
|
|
404
404
|
case "com.amazonaws.cloud9#ForbiddenException":
|
|
405
|
-
throw await
|
|
405
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
406
406
|
case "InternalServerErrorException":
|
|
407
407
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
408
|
-
throw await
|
|
408
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
409
409
|
case "LimitExceededException":
|
|
410
410
|
case "com.amazonaws.cloud9#LimitExceededException":
|
|
411
|
-
throw await
|
|
411
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
412
412
|
case "NotFoundException":
|
|
413
413
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
414
|
-
throw await
|
|
414
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
415
415
|
case "TooManyRequestsException":
|
|
416
416
|
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
417
|
-
throw await
|
|
417
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
418
418
|
default:
|
|
419
419
|
const parsedBody = parsedOutput.body;
|
|
420
420
|
throwDefaultError({
|
|
@@ -425,20 +425,20 @@ const deserializeAws_json1_1DescribeEnvironmentsCommandError = async (output, co
|
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
};
|
|
428
|
-
export const
|
|
428
|
+
export const de_DescribeEnvironmentStatusCommand = async (output, context) => {
|
|
429
429
|
if (output.statusCode >= 300) {
|
|
430
|
-
return
|
|
430
|
+
return de_DescribeEnvironmentStatusCommandError(output, context);
|
|
431
431
|
}
|
|
432
432
|
const data = await parseBody(output.body, context);
|
|
433
433
|
let contents = {};
|
|
434
|
-
contents =
|
|
434
|
+
contents = de_DescribeEnvironmentStatusResult(data, context);
|
|
435
435
|
const response = {
|
|
436
436
|
$metadata: deserializeMetadata(output),
|
|
437
437
|
...contents,
|
|
438
438
|
};
|
|
439
439
|
return Promise.resolve(response);
|
|
440
440
|
};
|
|
441
|
-
const
|
|
441
|
+
const de_DescribeEnvironmentStatusCommandError = async (output, context) => {
|
|
442
442
|
const parsedOutput = {
|
|
443
443
|
...output,
|
|
444
444
|
body: await parseErrorBody(output.body, context),
|
|
@@ -447,25 +447,25 @@ const deserializeAws_json1_1DescribeEnvironmentStatusCommandError = async (outpu
|
|
|
447
447
|
switch (errorCode) {
|
|
448
448
|
case "BadRequestException":
|
|
449
449
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
450
|
-
throw await
|
|
450
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
451
451
|
case "ConflictException":
|
|
452
452
|
case "com.amazonaws.cloud9#ConflictException":
|
|
453
|
-
throw await
|
|
453
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
454
454
|
case "ForbiddenException":
|
|
455
455
|
case "com.amazonaws.cloud9#ForbiddenException":
|
|
456
|
-
throw await
|
|
456
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
457
457
|
case "InternalServerErrorException":
|
|
458
458
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
459
|
-
throw await
|
|
459
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
460
460
|
case "LimitExceededException":
|
|
461
461
|
case "com.amazonaws.cloud9#LimitExceededException":
|
|
462
|
-
throw await
|
|
462
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
463
463
|
case "NotFoundException":
|
|
464
464
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
465
|
-
throw await
|
|
465
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
466
466
|
case "TooManyRequestsException":
|
|
467
467
|
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
468
|
-
throw await
|
|
468
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
469
469
|
default:
|
|
470
470
|
const parsedBody = parsedOutput.body;
|
|
471
471
|
throwDefaultError({
|
|
@@ -476,20 +476,20 @@ const deserializeAws_json1_1DescribeEnvironmentStatusCommandError = async (outpu
|
|
|
476
476
|
});
|
|
477
477
|
}
|
|
478
478
|
};
|
|
479
|
-
export const
|
|
479
|
+
export const de_ListEnvironmentsCommand = async (output, context) => {
|
|
480
480
|
if (output.statusCode >= 300) {
|
|
481
|
-
return
|
|
481
|
+
return de_ListEnvironmentsCommandError(output, context);
|
|
482
482
|
}
|
|
483
483
|
const data = await parseBody(output.body, context);
|
|
484
484
|
let contents = {};
|
|
485
|
-
contents =
|
|
485
|
+
contents = de_ListEnvironmentsResult(data, context);
|
|
486
486
|
const response = {
|
|
487
487
|
$metadata: deserializeMetadata(output),
|
|
488
488
|
...contents,
|
|
489
489
|
};
|
|
490
490
|
return Promise.resolve(response);
|
|
491
491
|
};
|
|
492
|
-
const
|
|
492
|
+
const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
493
493
|
const parsedOutput = {
|
|
494
494
|
...output,
|
|
495
495
|
body: await parseErrorBody(output.body, context),
|
|
@@ -498,25 +498,25 @@ const deserializeAws_json1_1ListEnvironmentsCommandError = async (output, contex
|
|
|
498
498
|
switch (errorCode) {
|
|
499
499
|
case "BadRequestException":
|
|
500
500
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
501
|
-
throw await
|
|
501
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
502
502
|
case "ConflictException":
|
|
503
503
|
case "com.amazonaws.cloud9#ConflictException":
|
|
504
|
-
throw await
|
|
504
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
505
505
|
case "ForbiddenException":
|
|
506
506
|
case "com.amazonaws.cloud9#ForbiddenException":
|
|
507
|
-
throw await
|
|
507
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
508
508
|
case "InternalServerErrorException":
|
|
509
509
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
510
|
-
throw await
|
|
510
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
511
511
|
case "LimitExceededException":
|
|
512
512
|
case "com.amazonaws.cloud9#LimitExceededException":
|
|
513
|
-
throw await
|
|
513
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
514
514
|
case "NotFoundException":
|
|
515
515
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
516
|
-
throw await
|
|
516
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
517
517
|
case "TooManyRequestsException":
|
|
518
518
|
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
519
|
-
throw await
|
|
519
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
520
520
|
default:
|
|
521
521
|
const parsedBody = parsedOutput.body;
|
|
522
522
|
throwDefaultError({
|
|
@@ -527,20 +527,20 @@ const deserializeAws_json1_1ListEnvironmentsCommandError = async (output, contex
|
|
|
527
527
|
});
|
|
528
528
|
}
|
|
529
529
|
};
|
|
530
|
-
export const
|
|
530
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
531
531
|
if (output.statusCode >= 300) {
|
|
532
|
-
return
|
|
532
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
533
533
|
}
|
|
534
534
|
const data = await parseBody(output.body, context);
|
|
535
535
|
let contents = {};
|
|
536
|
-
contents =
|
|
536
|
+
contents = de_ListTagsForResourceResponse(data, context);
|
|
537
537
|
const response = {
|
|
538
538
|
$metadata: deserializeMetadata(output),
|
|
539
539
|
...contents,
|
|
540
540
|
};
|
|
541
541
|
return Promise.resolve(response);
|
|
542
542
|
};
|
|
543
|
-
const
|
|
543
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
544
544
|
const parsedOutput = {
|
|
545
545
|
...output,
|
|
546
546
|
body: await parseErrorBody(output.body, context),
|
|
@@ -549,13 +549,13 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
549
549
|
switch (errorCode) {
|
|
550
550
|
case "BadRequestException":
|
|
551
551
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
552
|
-
throw await
|
|
552
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
553
553
|
case "InternalServerErrorException":
|
|
554
554
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
555
|
-
throw await
|
|
555
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
556
556
|
case "NotFoundException":
|
|
557
557
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
558
|
-
throw await
|
|
558
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
559
559
|
default:
|
|
560
560
|
const parsedBody = parsedOutput.body;
|
|
561
561
|
throwDefaultError({
|
|
@@ -566,20 +566,20 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
568
|
};
|
|
569
|
-
export const
|
|
569
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
570
570
|
if (output.statusCode >= 300) {
|
|
571
|
-
return
|
|
571
|
+
return de_TagResourceCommandError(output, context);
|
|
572
572
|
}
|
|
573
573
|
const data = await parseBody(output.body, context);
|
|
574
574
|
let contents = {};
|
|
575
|
-
contents =
|
|
575
|
+
contents = de_TagResourceResponse(data, context);
|
|
576
576
|
const response = {
|
|
577
577
|
$metadata: deserializeMetadata(output),
|
|
578
578
|
...contents,
|
|
579
579
|
};
|
|
580
580
|
return Promise.resolve(response);
|
|
581
581
|
};
|
|
582
|
-
const
|
|
582
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
583
583
|
const parsedOutput = {
|
|
584
584
|
...output,
|
|
585
585
|
body: await parseErrorBody(output.body, context),
|
|
@@ -588,16 +588,16 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
588
588
|
switch (errorCode) {
|
|
589
589
|
case "BadRequestException":
|
|
590
590
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
591
|
-
throw await
|
|
591
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
592
592
|
case "ConcurrentAccessException":
|
|
593
593
|
case "com.amazonaws.cloud9#ConcurrentAccessException":
|
|
594
|
-
throw await
|
|
594
|
+
throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
|
|
595
595
|
case "InternalServerErrorException":
|
|
596
596
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
597
|
-
throw await
|
|
597
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
598
598
|
case "NotFoundException":
|
|
599
599
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
600
|
-
throw await
|
|
600
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
601
601
|
default:
|
|
602
602
|
const parsedBody = parsedOutput.body;
|
|
603
603
|
throwDefaultError({
|
|
@@ -608,20 +608,20 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
608
608
|
});
|
|
609
609
|
}
|
|
610
610
|
};
|
|
611
|
-
export const
|
|
611
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
612
612
|
if (output.statusCode >= 300) {
|
|
613
|
-
return
|
|
613
|
+
return de_UntagResourceCommandError(output, context);
|
|
614
614
|
}
|
|
615
615
|
const data = await parseBody(output.body, context);
|
|
616
616
|
let contents = {};
|
|
617
|
-
contents =
|
|
617
|
+
contents = de_UntagResourceResponse(data, context);
|
|
618
618
|
const response = {
|
|
619
619
|
$metadata: deserializeMetadata(output),
|
|
620
620
|
...contents,
|
|
621
621
|
};
|
|
622
622
|
return Promise.resolve(response);
|
|
623
623
|
};
|
|
624
|
-
const
|
|
624
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
625
625
|
const parsedOutput = {
|
|
626
626
|
...output,
|
|
627
627
|
body: await parseErrorBody(output.body, context),
|
|
@@ -630,16 +630,16 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
630
630
|
switch (errorCode) {
|
|
631
631
|
case "BadRequestException":
|
|
632
632
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
633
|
-
throw await
|
|
633
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
634
634
|
case "ConcurrentAccessException":
|
|
635
635
|
case "com.amazonaws.cloud9#ConcurrentAccessException":
|
|
636
|
-
throw await
|
|
636
|
+
throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
|
|
637
637
|
case "InternalServerErrorException":
|
|
638
638
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
639
|
-
throw await
|
|
639
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
640
640
|
case "NotFoundException":
|
|
641
641
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
642
|
-
throw await
|
|
642
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
643
643
|
default:
|
|
644
644
|
const parsedBody = parsedOutput.body;
|
|
645
645
|
throwDefaultError({
|
|
@@ -650,20 +650,20 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
652
|
};
|
|
653
|
-
export const
|
|
653
|
+
export const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
654
654
|
if (output.statusCode >= 300) {
|
|
655
|
-
return
|
|
655
|
+
return de_UpdateEnvironmentCommandError(output, context);
|
|
656
656
|
}
|
|
657
657
|
const data = await parseBody(output.body, context);
|
|
658
658
|
let contents = {};
|
|
659
|
-
contents =
|
|
659
|
+
contents = de_UpdateEnvironmentResult(data, context);
|
|
660
660
|
const response = {
|
|
661
661
|
$metadata: deserializeMetadata(output),
|
|
662
662
|
...contents,
|
|
663
663
|
};
|
|
664
664
|
return Promise.resolve(response);
|
|
665
665
|
};
|
|
666
|
-
const
|
|
666
|
+
const de_UpdateEnvironmentCommandError = async (output, context) => {
|
|
667
667
|
const parsedOutput = {
|
|
668
668
|
...output,
|
|
669
669
|
body: await parseErrorBody(output.body, context),
|
|
@@ -672,25 +672,25 @@ const deserializeAws_json1_1UpdateEnvironmentCommandError = async (output, conte
|
|
|
672
672
|
switch (errorCode) {
|
|
673
673
|
case "BadRequestException":
|
|
674
674
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
675
|
-
throw await
|
|
675
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
676
676
|
case "ConflictException":
|
|
677
677
|
case "com.amazonaws.cloud9#ConflictException":
|
|
678
|
-
throw await
|
|
678
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
679
679
|
case "ForbiddenException":
|
|
680
680
|
case "com.amazonaws.cloud9#ForbiddenException":
|
|
681
|
-
throw await
|
|
681
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
682
682
|
case "InternalServerErrorException":
|
|
683
683
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
684
|
-
throw await
|
|
684
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
685
685
|
case "LimitExceededException":
|
|
686
686
|
case "com.amazonaws.cloud9#LimitExceededException":
|
|
687
|
-
throw await
|
|
687
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
688
688
|
case "NotFoundException":
|
|
689
689
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
690
|
-
throw await
|
|
690
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
691
691
|
case "TooManyRequestsException":
|
|
692
692
|
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
693
|
-
throw await
|
|
693
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
694
694
|
default:
|
|
695
695
|
const parsedBody = parsedOutput.body;
|
|
696
696
|
throwDefaultError({
|
|
@@ -701,20 +701,20 @@ const deserializeAws_json1_1UpdateEnvironmentCommandError = async (output, conte
|
|
|
701
701
|
});
|
|
702
702
|
}
|
|
703
703
|
};
|
|
704
|
-
export const
|
|
704
|
+
export const de_UpdateEnvironmentMembershipCommand = async (output, context) => {
|
|
705
705
|
if (output.statusCode >= 300) {
|
|
706
|
-
return
|
|
706
|
+
return de_UpdateEnvironmentMembershipCommandError(output, context);
|
|
707
707
|
}
|
|
708
708
|
const data = await parseBody(output.body, context);
|
|
709
709
|
let contents = {};
|
|
710
|
-
contents =
|
|
710
|
+
contents = de_UpdateEnvironmentMembershipResult(data, context);
|
|
711
711
|
const response = {
|
|
712
712
|
$metadata: deserializeMetadata(output),
|
|
713
713
|
...contents,
|
|
714
714
|
};
|
|
715
715
|
return Promise.resolve(response);
|
|
716
716
|
};
|
|
717
|
-
const
|
|
717
|
+
const de_UpdateEnvironmentMembershipCommandError = async (output, context) => {
|
|
718
718
|
const parsedOutput = {
|
|
719
719
|
...output,
|
|
720
720
|
body: await parseErrorBody(output.body, context),
|
|
@@ -723,25 +723,25 @@ const deserializeAws_json1_1UpdateEnvironmentMembershipCommandError = async (out
|
|
|
723
723
|
switch (errorCode) {
|
|
724
724
|
case "BadRequestException":
|
|
725
725
|
case "com.amazonaws.cloud9#BadRequestException":
|
|
726
|
-
throw await
|
|
726
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
727
727
|
case "ConflictException":
|
|
728
728
|
case "com.amazonaws.cloud9#ConflictException":
|
|
729
|
-
throw await
|
|
729
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
730
730
|
case "ForbiddenException":
|
|
731
731
|
case "com.amazonaws.cloud9#ForbiddenException":
|
|
732
|
-
throw await
|
|
732
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
733
733
|
case "InternalServerErrorException":
|
|
734
734
|
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
735
|
-
throw await
|
|
735
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
736
736
|
case "LimitExceededException":
|
|
737
737
|
case "com.amazonaws.cloud9#LimitExceededException":
|
|
738
|
-
throw await
|
|
738
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
739
739
|
case "NotFoundException":
|
|
740
740
|
case "com.amazonaws.cloud9#NotFoundException":
|
|
741
|
-
throw await
|
|
741
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
742
742
|
case "TooManyRequestsException":
|
|
743
743
|
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
744
|
-
throw await
|
|
744
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
745
745
|
default:
|
|
746
746
|
const parsedBody = parsedOutput.body;
|
|
747
747
|
throwDefaultError({
|
|
@@ -752,86 +752,86 @@ const deserializeAws_json1_1UpdateEnvironmentMembershipCommandError = async (out
|
|
|
752
752
|
});
|
|
753
753
|
}
|
|
754
754
|
};
|
|
755
|
-
const
|
|
755
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
756
756
|
const body = parsedOutput.body;
|
|
757
|
-
const deserialized =
|
|
757
|
+
const deserialized = de_BadRequestException(body, context);
|
|
758
758
|
const exception = new BadRequestException({
|
|
759
759
|
$metadata: deserializeMetadata(parsedOutput),
|
|
760
760
|
...deserialized,
|
|
761
761
|
});
|
|
762
762
|
return __decorateServiceException(exception, body);
|
|
763
763
|
};
|
|
764
|
-
const
|
|
764
|
+
const de_ConcurrentAccessExceptionRes = async (parsedOutput, context) => {
|
|
765
765
|
const body = parsedOutput.body;
|
|
766
|
-
const deserialized =
|
|
766
|
+
const deserialized = de_ConcurrentAccessException(body, context);
|
|
767
767
|
const exception = new ConcurrentAccessException({
|
|
768
768
|
$metadata: deserializeMetadata(parsedOutput),
|
|
769
769
|
...deserialized,
|
|
770
770
|
});
|
|
771
771
|
return __decorateServiceException(exception, body);
|
|
772
772
|
};
|
|
773
|
-
const
|
|
773
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
774
774
|
const body = parsedOutput.body;
|
|
775
|
-
const deserialized =
|
|
775
|
+
const deserialized = de_ConflictException(body, context);
|
|
776
776
|
const exception = new ConflictException({
|
|
777
777
|
$metadata: deserializeMetadata(parsedOutput),
|
|
778
778
|
...deserialized,
|
|
779
779
|
});
|
|
780
780
|
return __decorateServiceException(exception, body);
|
|
781
781
|
};
|
|
782
|
-
const
|
|
782
|
+
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
783
783
|
const body = parsedOutput.body;
|
|
784
|
-
const deserialized =
|
|
784
|
+
const deserialized = de_ForbiddenException(body, context);
|
|
785
785
|
const exception = new ForbiddenException({
|
|
786
786
|
$metadata: deserializeMetadata(parsedOutput),
|
|
787
787
|
...deserialized,
|
|
788
788
|
});
|
|
789
789
|
return __decorateServiceException(exception, body);
|
|
790
790
|
};
|
|
791
|
-
const
|
|
791
|
+
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
792
792
|
const body = parsedOutput.body;
|
|
793
|
-
const deserialized =
|
|
793
|
+
const deserialized = de_InternalServerErrorException(body, context);
|
|
794
794
|
const exception = new InternalServerErrorException({
|
|
795
795
|
$metadata: deserializeMetadata(parsedOutput),
|
|
796
796
|
...deserialized,
|
|
797
797
|
});
|
|
798
798
|
return __decorateServiceException(exception, body);
|
|
799
799
|
};
|
|
800
|
-
const
|
|
800
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
801
801
|
const body = parsedOutput.body;
|
|
802
|
-
const deserialized =
|
|
802
|
+
const deserialized = de_LimitExceededException(body, context);
|
|
803
803
|
const exception = new LimitExceededException({
|
|
804
804
|
$metadata: deserializeMetadata(parsedOutput),
|
|
805
805
|
...deserialized,
|
|
806
806
|
});
|
|
807
807
|
return __decorateServiceException(exception, body);
|
|
808
808
|
};
|
|
809
|
-
const
|
|
809
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
810
810
|
const body = parsedOutput.body;
|
|
811
|
-
const deserialized =
|
|
811
|
+
const deserialized = de_NotFoundException(body, context);
|
|
812
812
|
const exception = new NotFoundException({
|
|
813
813
|
$metadata: deserializeMetadata(parsedOutput),
|
|
814
814
|
...deserialized,
|
|
815
815
|
});
|
|
816
816
|
return __decorateServiceException(exception, body);
|
|
817
817
|
};
|
|
818
|
-
const
|
|
818
|
+
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
819
819
|
const body = parsedOutput.body;
|
|
820
|
-
const deserialized =
|
|
820
|
+
const deserialized = de_TooManyRequestsException(body, context);
|
|
821
821
|
const exception = new TooManyRequestsException({
|
|
822
822
|
$metadata: deserializeMetadata(parsedOutput),
|
|
823
823
|
...deserialized,
|
|
824
824
|
});
|
|
825
825
|
return __decorateServiceException(exception, body);
|
|
826
826
|
};
|
|
827
|
-
const
|
|
827
|
+
const se_BoundedEnvironmentIdList = (input, context) => {
|
|
828
828
|
return input
|
|
829
829
|
.filter((e) => e != null)
|
|
830
830
|
.map((entry) => {
|
|
831
831
|
return entry;
|
|
832
832
|
});
|
|
833
833
|
};
|
|
834
|
-
const
|
|
834
|
+
const se_CreateEnvironmentEC2Request = (input, context) => {
|
|
835
835
|
return {
|
|
836
836
|
...(input.automaticStopTimeMinutes != null && { automaticStopTimeMinutes: input.automaticStopTimeMinutes }),
|
|
837
837
|
...(input.clientRequestToken != null && { clientRequestToken: input.clientRequestToken }),
|
|
@@ -843,106 +843,104 @@ const serializeAws_json1_1CreateEnvironmentEC2Request = (input, context) => {
|
|
|
843
843
|
...(input.name != null && { name: input.name }),
|
|
844
844
|
...(input.ownerArn != null && { ownerArn: input.ownerArn }),
|
|
845
845
|
...(input.subnetId != null && { subnetId: input.subnetId }),
|
|
846
|
-
...(input.tags != null && { tags:
|
|
846
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
847
847
|
};
|
|
848
848
|
};
|
|
849
|
-
const
|
|
849
|
+
const se_CreateEnvironmentMembershipRequest = (input, context) => {
|
|
850
850
|
return {
|
|
851
851
|
...(input.environmentId != null && { environmentId: input.environmentId }),
|
|
852
852
|
...(input.permissions != null && { permissions: input.permissions }),
|
|
853
853
|
...(input.userArn != null && { userArn: input.userArn }),
|
|
854
854
|
};
|
|
855
855
|
};
|
|
856
|
-
const
|
|
856
|
+
const se_DeleteEnvironmentMembershipRequest = (input, context) => {
|
|
857
857
|
return {
|
|
858
858
|
...(input.environmentId != null && { environmentId: input.environmentId }),
|
|
859
859
|
...(input.userArn != null && { userArn: input.userArn }),
|
|
860
860
|
};
|
|
861
861
|
};
|
|
862
|
-
const
|
|
862
|
+
const se_DeleteEnvironmentRequest = (input, context) => {
|
|
863
863
|
return {
|
|
864
864
|
...(input.environmentId != null && { environmentId: input.environmentId }),
|
|
865
865
|
};
|
|
866
866
|
};
|
|
867
|
-
const
|
|
867
|
+
const se_DescribeEnvironmentMembershipsRequest = (input, context) => {
|
|
868
868
|
return {
|
|
869
869
|
...(input.environmentId != null && { environmentId: input.environmentId }),
|
|
870
870
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
871
871
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
872
|
-
...(input.permissions != null && { permissions:
|
|
872
|
+
...(input.permissions != null && { permissions: se_PermissionsList(input.permissions, context) }),
|
|
873
873
|
...(input.userArn != null && { userArn: input.userArn }),
|
|
874
874
|
};
|
|
875
875
|
};
|
|
876
|
-
const
|
|
876
|
+
const se_DescribeEnvironmentsRequest = (input, context) => {
|
|
877
877
|
return {
|
|
878
|
-
...(input.environmentIds != null && {
|
|
879
|
-
environmentIds: serializeAws_json1_1BoundedEnvironmentIdList(input.environmentIds, context),
|
|
880
|
-
}),
|
|
878
|
+
...(input.environmentIds != null && { environmentIds: se_BoundedEnvironmentIdList(input.environmentIds, context) }),
|
|
881
879
|
};
|
|
882
880
|
};
|
|
883
|
-
const
|
|
881
|
+
const se_DescribeEnvironmentStatusRequest = (input, context) => {
|
|
884
882
|
return {
|
|
885
883
|
...(input.environmentId != null && { environmentId: input.environmentId }),
|
|
886
884
|
};
|
|
887
885
|
};
|
|
888
|
-
const
|
|
886
|
+
const se_ListEnvironmentsRequest = (input, context) => {
|
|
889
887
|
return {
|
|
890
888
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
891
889
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
892
890
|
};
|
|
893
891
|
};
|
|
894
|
-
const
|
|
892
|
+
const se_ListTagsForResourceRequest = (input, context) => {
|
|
895
893
|
return {
|
|
896
894
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
897
895
|
};
|
|
898
896
|
};
|
|
899
|
-
const
|
|
897
|
+
const se_PermissionsList = (input, context) => {
|
|
900
898
|
return input
|
|
901
899
|
.filter((e) => e != null)
|
|
902
900
|
.map((entry) => {
|
|
903
901
|
return entry;
|
|
904
902
|
});
|
|
905
903
|
};
|
|
906
|
-
const
|
|
904
|
+
const se_Tag = (input, context) => {
|
|
907
905
|
return {
|
|
908
906
|
...(input.Key != null && { Key: input.Key }),
|
|
909
907
|
...(input.Value != null && { Value: input.Value }),
|
|
910
908
|
};
|
|
911
909
|
};
|
|
912
|
-
const
|
|
910
|
+
const se_TagKeyList = (input, context) => {
|
|
913
911
|
return input
|
|
914
912
|
.filter((e) => e != null)
|
|
915
913
|
.map((entry) => {
|
|
916
914
|
return entry;
|
|
917
915
|
});
|
|
918
916
|
};
|
|
919
|
-
const
|
|
917
|
+
const se_TagList = (input, context) => {
|
|
920
918
|
return input
|
|
921
919
|
.filter((e) => e != null)
|
|
922
920
|
.map((entry) => {
|
|
923
|
-
return
|
|
921
|
+
return se_Tag(entry, context);
|
|
924
922
|
});
|
|
925
923
|
};
|
|
926
|
-
const
|
|
924
|
+
const se_TagResourceRequest = (input, context) => {
|
|
927
925
|
return {
|
|
928
926
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
929
|
-
...(input.Tags != null && { Tags:
|
|
927
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
930
928
|
};
|
|
931
929
|
};
|
|
932
|
-
const
|
|
930
|
+
const se_UntagResourceRequest = (input, context) => {
|
|
933
931
|
return {
|
|
934
932
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
935
|
-
...(input.TagKeys != null && { TagKeys:
|
|
933
|
+
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
936
934
|
};
|
|
937
935
|
};
|
|
938
|
-
const
|
|
936
|
+
const se_UpdateEnvironmentMembershipRequest = (input, context) => {
|
|
939
937
|
return {
|
|
940
938
|
...(input.environmentId != null && { environmentId: input.environmentId }),
|
|
941
939
|
...(input.permissions != null && { permissions: input.permissions }),
|
|
942
940
|
...(input.userArn != null && { userArn: input.userArn }),
|
|
943
941
|
};
|
|
944
942
|
};
|
|
945
|
-
const
|
|
943
|
+
const se_UpdateEnvironmentRequest = (input, context) => {
|
|
946
944
|
return {
|
|
947
945
|
...(input.description != null && { description: input.description }),
|
|
948
946
|
...(input.environmentId != null && { environmentId: input.environmentId }),
|
|
@@ -950,76 +948,74 @@ const serializeAws_json1_1UpdateEnvironmentRequest = (input, context) => {
|
|
|
950
948
|
...(input.name != null && { name: input.name }),
|
|
951
949
|
};
|
|
952
950
|
};
|
|
953
|
-
const
|
|
951
|
+
const de_BadRequestException = (output, context) => {
|
|
954
952
|
return {
|
|
955
953
|
className: __expectString(output.className),
|
|
956
954
|
code: __expectInt32(output.code),
|
|
957
955
|
message: __expectString(output.message),
|
|
958
956
|
};
|
|
959
957
|
};
|
|
960
|
-
const
|
|
958
|
+
const de_ConcurrentAccessException = (output, context) => {
|
|
961
959
|
return {
|
|
962
960
|
className: __expectString(output.className),
|
|
963
961
|
code: __expectInt32(output.code),
|
|
964
962
|
message: __expectString(output.message),
|
|
965
963
|
};
|
|
966
964
|
};
|
|
967
|
-
const
|
|
965
|
+
const de_ConflictException = (output, context) => {
|
|
968
966
|
return {
|
|
969
967
|
className: __expectString(output.className),
|
|
970
968
|
code: __expectInt32(output.code),
|
|
971
969
|
message: __expectString(output.message),
|
|
972
970
|
};
|
|
973
971
|
};
|
|
974
|
-
const
|
|
972
|
+
const de_CreateEnvironmentEC2Result = (output, context) => {
|
|
975
973
|
return {
|
|
976
974
|
environmentId: __expectString(output.environmentId),
|
|
977
975
|
};
|
|
978
976
|
};
|
|
979
|
-
const
|
|
977
|
+
const de_CreateEnvironmentMembershipResult = (output, context) => {
|
|
980
978
|
return {
|
|
981
|
-
membership: output.membership != null ?
|
|
979
|
+
membership: output.membership != null ? de_EnvironmentMember(output.membership, context) : undefined,
|
|
982
980
|
};
|
|
983
981
|
};
|
|
984
|
-
const
|
|
982
|
+
const de_DeleteEnvironmentMembershipResult = (output, context) => {
|
|
985
983
|
return {};
|
|
986
984
|
};
|
|
987
|
-
const
|
|
985
|
+
const de_DeleteEnvironmentResult = (output, context) => {
|
|
988
986
|
return {};
|
|
989
987
|
};
|
|
990
|
-
const
|
|
988
|
+
const de_DescribeEnvironmentMembershipsResult = (output, context) => {
|
|
991
989
|
return {
|
|
992
|
-
memberships: output.memberships != null
|
|
993
|
-
? deserializeAws_json1_1EnvironmentMembersList(output.memberships, context)
|
|
994
|
-
: undefined,
|
|
990
|
+
memberships: output.memberships != null ? de_EnvironmentMembersList(output.memberships, context) : undefined,
|
|
995
991
|
nextToken: __expectString(output.nextToken),
|
|
996
992
|
};
|
|
997
993
|
};
|
|
998
|
-
const
|
|
994
|
+
const de_DescribeEnvironmentsResult = (output, context) => {
|
|
999
995
|
return {
|
|
1000
|
-
environments: output.environments != null ?
|
|
996
|
+
environments: output.environments != null ? de_EnvironmentList(output.environments, context) : undefined,
|
|
1001
997
|
};
|
|
1002
998
|
};
|
|
1003
|
-
const
|
|
999
|
+
const de_DescribeEnvironmentStatusResult = (output, context) => {
|
|
1004
1000
|
return {
|
|
1005
1001
|
message: __expectString(output.message),
|
|
1006
1002
|
status: __expectString(output.status),
|
|
1007
1003
|
};
|
|
1008
1004
|
};
|
|
1009
|
-
const
|
|
1005
|
+
const de_Environment = (output, context) => {
|
|
1010
1006
|
return {
|
|
1011
1007
|
arn: __expectString(output.arn),
|
|
1012
1008
|
connectionType: __expectString(output.connectionType),
|
|
1013
1009
|
description: __expectString(output.description),
|
|
1014
1010
|
id: __expectString(output.id),
|
|
1015
|
-
lifecycle: output.lifecycle != null ?
|
|
1011
|
+
lifecycle: output.lifecycle != null ? de_EnvironmentLifecycle(output.lifecycle, context) : undefined,
|
|
1016
1012
|
managedCredentialsStatus: __expectString(output.managedCredentialsStatus),
|
|
1017
1013
|
name: __expectString(output.name),
|
|
1018
1014
|
ownerArn: __expectString(output.ownerArn),
|
|
1019
1015
|
type: __expectString(output.type),
|
|
1020
1016
|
};
|
|
1021
1017
|
};
|
|
1022
|
-
const
|
|
1018
|
+
const de_EnvironmentIdList = (output, context) => {
|
|
1023
1019
|
const retVal = (output || [])
|
|
1024
1020
|
.filter((e) => e != null)
|
|
1025
1021
|
.map((entry) => {
|
|
@@ -1030,25 +1026,25 @@ const deserializeAws_json1_1EnvironmentIdList = (output, context) => {
|
|
|
1030
1026
|
});
|
|
1031
1027
|
return retVal;
|
|
1032
1028
|
};
|
|
1033
|
-
const
|
|
1029
|
+
const de_EnvironmentLifecycle = (output, context) => {
|
|
1034
1030
|
return {
|
|
1035
1031
|
failureResource: __expectString(output.failureResource),
|
|
1036
1032
|
reason: __expectString(output.reason),
|
|
1037
1033
|
status: __expectString(output.status),
|
|
1038
1034
|
};
|
|
1039
1035
|
};
|
|
1040
|
-
const
|
|
1036
|
+
const de_EnvironmentList = (output, context) => {
|
|
1041
1037
|
const retVal = (output || [])
|
|
1042
1038
|
.filter((e) => e != null)
|
|
1043
1039
|
.map((entry) => {
|
|
1044
1040
|
if (entry === null) {
|
|
1045
1041
|
return null;
|
|
1046
1042
|
}
|
|
1047
|
-
return
|
|
1043
|
+
return de_Environment(entry, context);
|
|
1048
1044
|
});
|
|
1049
1045
|
return retVal;
|
|
1050
1046
|
};
|
|
1051
|
-
const
|
|
1047
|
+
const de_EnvironmentMember = (output, context) => {
|
|
1052
1048
|
return {
|
|
1053
1049
|
environmentId: __expectString(output.environmentId),
|
|
1054
1050
|
lastAccess: output.lastAccess != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastAccess))) : undefined,
|
|
@@ -1057,94 +1053,92 @@ const deserializeAws_json1_1EnvironmentMember = (output, context) => {
|
|
|
1057
1053
|
userId: __expectString(output.userId),
|
|
1058
1054
|
};
|
|
1059
1055
|
};
|
|
1060
|
-
const
|
|
1056
|
+
const de_EnvironmentMembersList = (output, context) => {
|
|
1061
1057
|
const retVal = (output || [])
|
|
1062
1058
|
.filter((e) => e != null)
|
|
1063
1059
|
.map((entry) => {
|
|
1064
1060
|
if (entry === null) {
|
|
1065
1061
|
return null;
|
|
1066
1062
|
}
|
|
1067
|
-
return
|
|
1063
|
+
return de_EnvironmentMember(entry, context);
|
|
1068
1064
|
});
|
|
1069
1065
|
return retVal;
|
|
1070
1066
|
};
|
|
1071
|
-
const
|
|
1067
|
+
const de_ForbiddenException = (output, context) => {
|
|
1072
1068
|
return {
|
|
1073
1069
|
className: __expectString(output.className),
|
|
1074
1070
|
code: __expectInt32(output.code),
|
|
1075
1071
|
message: __expectString(output.message),
|
|
1076
1072
|
};
|
|
1077
1073
|
};
|
|
1078
|
-
const
|
|
1074
|
+
const de_InternalServerErrorException = (output, context) => {
|
|
1079
1075
|
return {
|
|
1080
1076
|
className: __expectString(output.className),
|
|
1081
1077
|
code: __expectInt32(output.code),
|
|
1082
1078
|
message: __expectString(output.message),
|
|
1083
1079
|
};
|
|
1084
1080
|
};
|
|
1085
|
-
const
|
|
1081
|
+
const de_LimitExceededException = (output, context) => {
|
|
1086
1082
|
return {
|
|
1087
1083
|
className: __expectString(output.className),
|
|
1088
1084
|
code: __expectInt32(output.code),
|
|
1089
1085
|
message: __expectString(output.message),
|
|
1090
1086
|
};
|
|
1091
1087
|
};
|
|
1092
|
-
const
|
|
1088
|
+
const de_ListEnvironmentsResult = (output, context) => {
|
|
1093
1089
|
return {
|
|
1094
|
-
environmentIds: output.environmentIds != null
|
|
1095
|
-
? deserializeAws_json1_1EnvironmentIdList(output.environmentIds, context)
|
|
1096
|
-
: undefined,
|
|
1090
|
+
environmentIds: output.environmentIds != null ? de_EnvironmentIdList(output.environmentIds, context) : undefined,
|
|
1097
1091
|
nextToken: __expectString(output.nextToken),
|
|
1098
1092
|
};
|
|
1099
1093
|
};
|
|
1100
|
-
const
|
|
1094
|
+
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1101
1095
|
return {
|
|
1102
|
-
Tags: output.Tags != null ?
|
|
1096
|
+
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
1103
1097
|
};
|
|
1104
1098
|
};
|
|
1105
|
-
const
|
|
1099
|
+
const de_NotFoundException = (output, context) => {
|
|
1106
1100
|
return {
|
|
1107
1101
|
className: __expectString(output.className),
|
|
1108
1102
|
code: __expectInt32(output.code),
|
|
1109
1103
|
message: __expectString(output.message),
|
|
1110
1104
|
};
|
|
1111
1105
|
};
|
|
1112
|
-
const
|
|
1106
|
+
const de_Tag = (output, context) => {
|
|
1113
1107
|
return {
|
|
1114
1108
|
Key: __expectString(output.Key),
|
|
1115
1109
|
Value: __expectString(output.Value),
|
|
1116
1110
|
};
|
|
1117
1111
|
};
|
|
1118
|
-
const
|
|
1112
|
+
const de_TagList = (output, context) => {
|
|
1119
1113
|
const retVal = (output || [])
|
|
1120
1114
|
.filter((e) => e != null)
|
|
1121
1115
|
.map((entry) => {
|
|
1122
1116
|
if (entry === null) {
|
|
1123
1117
|
return null;
|
|
1124
1118
|
}
|
|
1125
|
-
return
|
|
1119
|
+
return de_Tag(entry, context);
|
|
1126
1120
|
});
|
|
1127
1121
|
return retVal;
|
|
1128
1122
|
};
|
|
1129
|
-
const
|
|
1123
|
+
const de_TagResourceResponse = (output, context) => {
|
|
1130
1124
|
return {};
|
|
1131
1125
|
};
|
|
1132
|
-
const
|
|
1126
|
+
const de_TooManyRequestsException = (output, context) => {
|
|
1133
1127
|
return {
|
|
1134
1128
|
className: __expectString(output.className),
|
|
1135
1129
|
code: __expectInt32(output.code),
|
|
1136
1130
|
message: __expectString(output.message),
|
|
1137
1131
|
};
|
|
1138
1132
|
};
|
|
1139
|
-
const
|
|
1133
|
+
const de_UntagResourceResponse = (output, context) => {
|
|
1140
1134
|
return {};
|
|
1141
1135
|
};
|
|
1142
|
-
const
|
|
1136
|
+
const de_UpdateEnvironmentMembershipResult = (output, context) => {
|
|
1143
1137
|
return {
|
|
1144
|
-
membership: output.membership != null ?
|
|
1138
|
+
membership: output.membership != null ? de_EnvironmentMember(output.membership, context) : undefined,
|
|
1145
1139
|
};
|
|
1146
1140
|
};
|
|
1147
|
-
const
|
|
1141
|
+
const de_UpdateEnvironmentResult = (output, context) => {
|
|
1148
1142
|
return {};
|
|
1149
1143
|
};
|
|
1150
1144
|
const deserializeMetadata = (output) => ({
|