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